tests/nap.h: use an adaptive delay to avoid ctime update issues
[gnulib.git] / ChangeLog
1 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
2
3         tests/nap.h: use an adaptive delay to avoid ctime update issues
4         The recent change in nap.h (5191133e) decreased the probability of lost
5         races to about a third, however such problems could still be observed
6         in virtual machines and openSUSE's OBS.
7         Before, nap() detected the needed time once empirically and then used
8         that delay (together with a small correction multiplier) in further
9         calls.  This problem has been reported and discussed several times,
10         including guesses about possible kernel issues:
11         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
12         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
13         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
14         http://bugs.gnu.org/12820
15         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
16         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
17         Now, nap() avoids the race alltogether by verifying on a reference
18         file whether a timestamp difference has happened.
19         * tests/nap.h (nap_fd): Define file descriptor variable for the
20         witness file.
21         (nap_works): Change return value to bool.  Change passing
22         the old file's status by value instead of by reference as this function
23         does no longer update that timestamp; rename the function argument from
24         st to old_st.  Remove the local variables cdiff and mdiff because that
25         function now returns true/false instead of the precise delay.
26         (guess_delay): Remove function.
27         (clear_tmp_file): Add new function to close and unlink the witness file.
28         (nap): Instead of re-using the delay which has been calculated during
29         the first call, avoid the race by actually verifying that a timestamp
30         difference can be observed on the current file system.  Use an adaptive
31         approach for the delay to minimize execution time.  Assert that the
32         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
33         = 2^31 - 1 = 2.1s.
34         Use atexit to call clear_tmp_file when the process terminates.
35
36 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37
38         sig2str: port to C++
39         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
40         Reported by Daniel J Sebald in
41         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
42
43 2013-05-30  Eric Blake  <eblake@redhat.com>
44
45         docs: mention cygwin shortcoming in <sys/un.h>
46         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
47
48         vasnprintf: silence mingw compiler warning
49         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
50
51 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
52
53         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
54         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
55         This fixes a porting bug I recently reintroduced in regex, and
56         some other instances that I discovered while testing the fix.
57         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
58         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
59         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
60         with an empty argument if this is a pedantic pre-C99 GCC.
61         * lib/verify.h: Do not use _Static_assert if this is a pedantic
62         pre-C11 GCC.
63
64         regex: adapt to locking regime instead of depending on pthread
65         Instead of depending on pthread, adapt to whatever thread
66         modules are in use.  Problem reported by Ludovic Courtès in
67         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
68         and by Mats Erik Andersson in
69         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
70         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
71         Support either the 'lock' module, or the 'pthread' module, or
72         no module.
73         (lock_lock, lock_unlock): New macros.
74         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
75         * modules/lock, modules/pthread (configure.ac): Add module indicator.
76         * modules/regex (Depends-on): Remove pthread.
77
78 2013-05-22  Eric Blake  <eblake@redhat.com>
79
80         getgroups: document portability issues
81         * doc/glibc-functions/initgroups.texi (initgroups): Mention
82         multithread safety.
83         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
84         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
85         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
86         getugroups.
87         * doc/posix-functions/getgroups.texi (getgroups): Mention
88         multithread safety and mgetgroups.
89
90 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
91
92         test-lchown, test-chown: also skip test if chown fails with EPERM
93         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
94         skip this test, to handle FAT file systems.
95         * tests/test-chown.h (test_chown): Likewise.
96
97 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98
99         regex: fix dfa race in multithreaded uses
100         Problem reported by Ludovic Courtès in
101         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
102         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
103         New macros.  All uses of __libc_lock_define, __libc_lock_init
104         changed to use the first two of these.
105         (__libc_lock_lock, __libc_lock_unlock): New macros, for
106         non-glibc platforms.
107         (struct re_dfa_t): Define the lock unconditionally.
108         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
109         '#ifdef _LIBC"s.
110         * modules/regex (Depends-on): Add pthread, if we use the
111         included regex.
112
113         * lib/regcomp.c: Do actions that are not needed for glibc,
114         but may be needed elsewhere.
115         (regfree, re_compile_internal): Destroy the lock.
116         (re_compile_internal): Check for lock-initialization failure.
117
118         malloca: port to compilers that reject size-zero arrays
119         This fixes a bug introduced in my previous patch.
120         * lib/malloca.c (struct preliminary_header): Use an int
121         rather than a character array of size int; that's simpler.
122         (struct header): Remove, replacing with ...
123         (union header): New type.  This avoids the need for declaring a
124         character array of size zero, which is not allowed on some platforms.
125         All uses changed.
126
127 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
128
129         parse-datetime, tests: don't use "string" + int
130         Recent versions of 'clang' complain about C source code that
131         uses expressions of the form '"string literal" + integer',
132         I guess on the theory that it's confusing for readers who are
133         used to C++.  On those grounds I suppose it's OK to make this
134         minor style change.
135         * lib/parse-datetime.y (parse_datetime):
136         * tests/test-fchdir.c (main):
137         * tests/test-snprintf-posix.h (test_function):
138         * tests/test-snprintf.c (main):
139         * tests/test-vasnprintf-posix.c (test_function):
140         * tests/test-vasnprintf.c (test_function):
141         * tests/test-vsnprintf.c (main):
142         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
143         Rewrite '"str" + E' to '&"str"[E]'.
144
145 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
146
147         argmatch: port to C++
148         * lib/argmatch.h [__cplusplus]: Add extern "C".
149
150         argp: typo fix
151         * lib/argp-help.c: Typo in comment.
152
153 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
154
155         manywarnings: update for GCC 4.8.0
156         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
157         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
158         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
159         -Wmissing-noreturn, as they are duplicates of other warnings.
160         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
161         was documented to be flaky in earlier versions of GCC.
162
163         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
164         * tests/test-spawn.c (main):
165         * tests/test-sys_socket.c (main):
166         * tests/test-sys_wait.c (main):
167         Don't have a switch value that isn't covered by a case.
168
169         getaddrinfo-tests: port --enable-gcc-warnings to clang
170         * tests/test-getaddrinfo.c (simple):
171         Avoid casts from looser to stricter-aligned pointers.
172
173         thread: port --enable-gcc-warnings to clang
174         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
175         Include <signal.h>, to pacify a warning about pthread_sigmask.
176
177         stdio: use __REDIRECT for fwrite, fwrite_unlocked
178         * lib/stdio.in.h (fwrite):
179         When working around bug 11959, use __REDIRECT rather than '#define
180         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
181         fix the -Wunused-value issue with clang, and it works with GCC too.
182         Problem with targeting reported by Eric Blake in
183         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
184         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
185         debugging the fwrite issue.
186
187         stdio: port --enable-gcc-warnings to clang
188         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
189         since the GCC workaround for fwrite does not pacify clang.
190
191         sig2str: port --enable-gcc-warnings to clang
192         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
193
194         obstack: port --enable-gcc-warnings to clang
195         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
196         Avoid casts from looser to stricter-aligned pointers.
197
198         memchr2: port --enable-gcc-warnings to clang
199         * lib/memchr2.c (memchr2):
200         Avoid casts from looser to stricter-aligned pointers.
201
202         mbsstr: port --enable-gcc-warnings to clang
203         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
204         Avoid casts from looser to stricter-aligned pointers.
205
206         malloca: port --enable-gcc-warnings to clang
207         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
208         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
209
210         inttostr: port --enable-gcc-warnings to clang
211         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
212
213         warnings: port to clang
214         Problem reported by Daniel P. Berrange via Eric Blake in
215         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
216         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
217         (gl_WARN_ADD): Use it.
218
219 2013-05-11  Jim Meyering  <meyering@fb.com>
220
221         quotearg: do not read beyond end of buffer
222         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
223         end of an ARG for which no length was specified.  With an N-byte
224         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
225         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
226         via coreutils' misc/sort-debug-keys.sh test and detected by running
227         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
228         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
229         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
230         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
231         characters correctly."
232
233 2013-05-11  Daiki Ueno  <ueno@gnu.org>
234
235         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
236         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
237         compilation target is Mac OS X 10.6.
238         Problem reported by parafin and Andoni Morales in
239         <http://savannah.gnu.org/bugs/?37844> and
240         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
241
242 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
243
244         mkdir-p: remove assumptions about umask and mode
245         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
246         umask is 0, or that MODE is a subset of MODE_BITS.
247
248 2013-05-10  Eric Blake  <eblake@redhat.com>
249
250         maint.mk: catch more abuse of HAVE_DECL in syntax-check
251         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
252
253 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
254
255         deps: require Automake >= 1.9.6 in generated Makefile fragments
256
257         That is the same minimal version required in the DEPENDENCIES file.
258         Moreover, the old code generated a requirement of Automake >= 1.5,
259         and that is an insanely outdated version.
260
261         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
262         * tests/havelib/rpathlx/Makefile.am: Likewise.
263         * tests/havelib/rpathly/Makefile.am: Likewise.
264         * tests/havelib/rpathlyx/Makefile.am: Likewise.
265         * tests/havelib/rpathlz/Makefile.am: Likewise.
266         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
267         * tests/havelib/rpathx/Makefile.am: Likewise.
268         * tests/havelib/rpathy/Makefile.am: Likewise.
269         * tests/havelib/rpathz/Makefile.am: Likewise.
270
271 2013-05-08  Eric Blake  <eblake@redhat.com>
272
273         bootstrap: AC_INIT may have more than four parameters
274         * build-aux/bootstrap (extract_package_name): Correctly extract
275         non-empty tarname field.  Avoid range in regex.
276         Based on a report by Sami Kerola <kerolasa@iki.fi>.
277
278 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
279
280         qacl: port to MS-Windows port of GNU Emacs
281         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
282         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
283         port of GNU Emacs.  Problem reported by Eli Zaretskii in
284         <http://bugs.gnu.org/14295#14>.
285
286 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
287
288         acl: include quote.h
289         * lib/copy-acl.c: Include quote.h.
290         * lib/set-acl.c: Likewise.
291
292 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
293
294         fchownat, renameat, unlinkat: update statat dependencies
295         These modules use statat and lstatat, not fstatat; so depend on
296         the statat module, which was split out recently from fstatat.
297         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
298         * modules/renameat: Likewise.  Also delete fstat.
299         URL: http://bugs.gentoo.org/468790
300
301 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
302
303         Assume gnulib is checked out from Git, not CVS
304
305         In fact, access to the gnulib repository through CVS has been
306         disabled, or more precisely, got broken and was never restored; see:
307         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
308
309         Note that support for CVS is not removed completely and unthinkingly
310         by this change: only support for CVS checkouts of gnulib itself is
311         removed.  For example, the 'bootstrap' script still cater to .cvsingore
312         files and CVS directories, for the benefit of those poor gnulib clients
313         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
314
315         * gnulib-tool: Simplify accordingly.
316         * posix-modules: Likewise.
317         * MODULES.html.sh: Likewise.
318         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
319         repository.
320         * doc/gnulib-intro.texi: Likewise.
321         * doc/gnulib-readme.texi: Likewise.
322         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
323         sample '.gitignore' file rather than a sample '.cvsignore'.
324         * NEWS: Update.
325         * m4/extensions.m4: While at it, remove a comment mistakenly referring
326         to "CVS Autoconf" rather than "git Autoconf".
327
328 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
329
330         utimensat-tests, etc.: try to fix some races
331         Problem reported by Bernhard Voelker in
332         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
333         I don't know whether this patch fixes that race condition, but it
334         fixes *some* race conditions, so it should be a win.
335         * modules/chown-tests (Depends-on):
336         * modules/fchownat-tests (Depends-on):
337         * modules/fdutimensat-tests (Depends-on):
338         * modules/futimens-tests (Depends-on):
339         * modules/lchown-tests (Depends-on):
340         * modules/stat-time-tests (Depends-on):
341         * modules/utimens-tests (Depends-on):
342         * modules/utimensat-tests (Depends-on):
343         Depend on nanosleep, not usleep.
344         * modules/chown-tests (test_chown_LDADD):
345         * modules/lchown-tests (test_lchown_LDADD):
346         * modules/stat-time-tests (test_stat_time_LDADD):
347         New macro.
348         * modules/fchownat-tests (test_fchownat_LDADD):
349         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
350         * modules/futimens-tests (test_futimens_LDADD):
351         * modules/utimens-tests (test_utimens_LDADD):
352         * modules/utimensat-tests (test_utimensat_LDADD):
353         Add $(LIB_NANOSLEEP).
354         * modules/stat-time-tests (Files): Add tests/nap.h.
355         * tests/nap.h: Include <limits.h>, for INT_MAX.
356         (lt_mtime): Remove.
357         (diff_timespec): New function.
358         (get_stat): Rename from get_mtime.  All callers changed.
359         (nap_works): Determine the needed delay by inspecting the
360         file system's timestamp jumps; this should be more reliable.
361         Look at both mtime and ctime, and take the maximum of the two jumps.
362         (nap_works, guess_delay):
363         Return a nanosecond cound, not a microsecond count.
364         All callers changed.
365         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
366         failure.
367         (nap): Multiply the guess by 1.125, to accommodate the case where
368         the file system's clock is a bit slower than nanosleep's clock.
369         * tests/test-stat-time.c (BASE): New macro.
370         Include nap.h.
371         (nap): Remove; nap.h now defines this.  This removes a duplicate
372         implementation of 'nap'.
373
374         utimens, utimensat: work around Solaris UTIME_OMIT bug
375         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
376         Linux kernel 2.6.32 does.  Work around it in the same way.
377         * doc/posix-functions/futimens.texi (futimens):
378         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
379         * lib/utimens.c (fdutimens, lutimens):
380         * lib/utimensat.c (rpl_utimensat): Work around the bug.
381
382         gettext: now it's your responsibility to add -I$(top_builddir)/intl
383         Formerly, it was your responsibility to do this for all Makefile.ams
384         other than Gnulib's.  Now it's your responsibility to do it for
385         Gnulib's Makefile.am, too.
386         * NEWS: Document this.
387         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
388
389         acl: include errno.h to get errno
390         Reported by Daiki Ueno in
391         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
392         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
393
394 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
395
396         tests: don't assume getdtablesize () <= 10000000
397         * modules/cloexec-tests:
398         * modules/dup2-tests:
399         * modules/dup3-tests:
400         * modules/nonblocking-tests:
401         * modules/posix_spawn_file_actions_addclose-tests:
402         * modules/posix_spawn_file_actions_adddup2-tests:
403         * modules/posix_spawn_file_actions_addopen-tests:
404         * modules/unistd-safer-tests:
405         Depend on the getdtablesize module.
406         * tests/test-cloexec.c:
407         * tests/test-dup-safer.c:
408         * tests/test-dup2.c:
409         * tests/test-dup3.c:
410         * tests/test-fcntl.c:
411         * tests/test-nonblocking.c:
412         * tests/test-posix_spawn_file_actions_addclose.c:
413         * tests/test-posix_spawn_file_actions_adddup2.c:
414         * tests/test-posix_spawn_file_actions_addopen.c:
415         Don't assume getdtablesize () <= 10000000.
416
417 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
418
419         extern-inline: work around bug in Sun c99
420         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
421         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
422
423 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
424
425         qacl: new module, broken out from the acl module
426         This is for GNU Emacs, which wants the acl functions but does
427         not want 'error' invoked when they fail.
428         * lib/acl-internal.h: Do not include error.h, quote.h.
429         (ENOSYS, ENOTSUP): Remove; no longer needed.
430         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
431         * lib/acl.h: Include <stdbool.h>.
432         (acl_errno_valid): New function.
433         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
434         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
435         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
436         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
437         (ACL_INTERNAL_INLINE): Remove; no longer needed.
438         * lib/file-has-acl.c (file_has_acl):
439         * lib/qcopy-acl.c (qcopy_acl):
440         * lib/qset-acl.c (qset_acl):
441         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
442         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
443         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
444         lib/file-has-acl.c, m4/acl.m4 to qacl module.
445         Add lib/set-acl.c.
446         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
447         Add qacl.
448         (configure.ac): Move gl_FUNC_ACL to qacl module.
449         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
450         Rename set-mode-acl.c to set-acl.c.
451         * lib/acl-errno-valid.c: New file.
452         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
453         copy_acl function remains in copy-acl.c.
454         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
455         (_): Remove; not needed.
456         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
457         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
458         * modules/qacl: New file, moved from the old modules/acl.
459         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
460         Remove set-mode-acl.c, copy-acl.c.
461         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
462
463         alignof, intprops, malloca: port better to IBM's C compiler
464         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
465         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
466         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
467
468 2013-04-25  Daiki Ueno  <ueno@gnu.org>
469
470         wctype-h: fix gettext link error on mingw
471         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
472         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
473         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
474         rpl_towupper and rpl_towupper.
475
476 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
477
478         regex-tests, regex: allow glibc re_search behavior
479         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
480         re_search input data to make the multi-character collating element
481         in it clearly visible, and treat re_search return code 0 as valid.
482         * m4/regex.m4 (gl_REGEX): Likewise.
483
484 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
485
486         stdalign: doc fix
487         * doc/posix-headers/stdalign.texi (stdalign.h):
488         Gnulib doesn't support '_Alignof expr'.
489
490 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
491
492         stdalign: port to stricter ISO C11
493         ISO C11 says that _Alignof's operand must be a parenthesized type.
494         Problem reported by Eli Zaretskii in
495         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
496         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
497         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
498
499 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
500
501         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
502         Problem reported by Marco Atzeri in
503         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
504         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
505         Simply delegate to the system <sys/select.h> in this case too.
506         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
507         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
508         be needed on Solaris either.
509         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
510         Simply delgate to the system <sys/time.h> in this case.
511
512 2013-03-19  Karl Berry  <karl@gnu.org>
513
514         * build-aux/gnupload: check for erroneous (with gnupload) use of
515         ftp-upload.gnu.org, tweak help.
516
517 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
518
519         copy-file, rpmatch: fix problems found by cppcheck
520         Reported by Arno Onken in
521         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
522         * lib/rpmatch.c (try): Fix memory leak.
523         * lib/copy-file.c: Include "ignore-value.h".
524         (qcopy_file_preserving): Ignore chown value.
525         * modules/copy-file (Depends-on): Add ignore-value.
526
527 2013-01-27  Jim Meyering  <jim@meyering.net>
528
529         prefix-gnulib-mk: give better diagnostics
530         * build-aux/prefix-gnulib-mk: Don't just "die".
531         Give better diagnostics upon failure.
532
533 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
534
535         putenv: port to Solaris 10
536         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
537         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
538         is not what is wanted here.
539         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
540         declaration, not for its existence.
541
542 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
543
544         mktime: fix configure typo
545         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
546
547 2013-03-12  Eric Blake  <eblake@redhat.com>
548
549         regex-tests: skip UTF-8 test on mingw
550         * modules/regex-tests (Depends-on): Add localcharset.
551         * tests/test-regex.c (main): Use it to skip test on mingw.
552
553 2013-03-11  Eric Blake  <eblake@redhat.com>
554
555         tests: make it easier to bypass alarm time in debugger
556         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
557         * tests/test-memmem.c (main): Likewise.
558         * tests/test-passfd.c (main): Likewise.
559         * tests/test-ptsname.c (main): Likewise.
560         * tests/test-ptsname_r.c (main): Likewise.
561         * tests/test-strcasestr.c (main): Likewise.
562         * tests/test-strstr.c (main): Likewise.
563
564         regex: port to mingw's recent addition of undeclared alarm
565         * doc/posix-functions/alarm.texi (alarm): Document that alarm
566         exists but still doesn't work in newer mingw.
567         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
568         not existence.  Ensure SIGALRM is not trapped.
569         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
570         * m4/regex.m4 (gl_REGEX): Likewise.
571         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
572         * tests/test-regex.c (main): Use correct probe for alarm.
573
574         putenv: avoid compilation warning on mingw
575         * lib/putenv.c (_unsetenv): Protect variable declaration.
576         (putenv): Fix indentation.
577
578 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
579
580         unistd: don't prevent Tru64 Unix from using gnulib strtod.
581         * lib/unistd.in.h: be careful not to include un-needed system
582         stdlib.h from here, because that prevents gnulib stdlib.h from
583         defining rpl_strtod correctly.
584
585 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
586
587         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
588         changesets, but for the 'precision 0' test.
589         * tests/test-vasprintf-posix.c (test_function): Don't insist on
590         round-to-even, since POSIX says rounding is implementation-defined
591         and OS X 10.8.2 rounds 1.51 to 1 here.
592
593         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
594         changeset.
595         * tests/test-vasprintf-posix.c (test_function): Don't insist on
596         round-to-even, since POSIX says rounding is implementation-defined
597         and OS X 10.8.2 rounds 1.5 to 1 here.
598
599 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
600
601         vasnprintf-posix-tests: allow rounding 1.5 to 1
602         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
603         round-to-even, since POSIX says rounding is implementation-defined
604         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
605         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
606
607         bootstrap: port to FreeBSD
608         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
609         that treat '--' differently.  Reported by Mats Erik Andersson in
610         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
611
612 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
613
614         regex: rename remaining __attribute calls to __attribute__.
615         2012-02-25 changed definition of __attribute, but left some uses
616         unchanged, preventing compilation of regex module on most non-gcc
617         environments.
618         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
619         (lookup_collation_sequence_value, build_range_exp)
620         (build_collating_symbol): Set attributes with newly renamed
621         __attribute__ decorator.
622         * lib/regex_internal.c (re_string_peek_byte_case)
623         (re_node_set_compare, re_node_set_contains): Likewise.
624         * lib/regexec.c (acquire_init_state_context): Likewise.
625
626 2013-03-06  Bruno Haible  <bruno@clisp.org>
627
628         execute: Revert last change, but use a different condition.
629         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
630         on Windows.
631
632 2013-03-05  Eric Blake  <eblake@redhat.com>
633
634         execute: drop dead code
635         * lib/execute.c (nonintr_close, nonintr_open): Delete.
636
637 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
638
639         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
640         * m4/non-recursive-gnulib-prefix-hack.m4
641         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
642         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
643         <http://bugs.gnu.org/10305#237>.
644
645 2013-03-04  Eric Blake  <eblake@redhat.com>
646
647         test-getsockopt: avoid compiler warning
648         * tests/test-getsockopt.c (includes): Ensure close is declared.
649
650 2013-03-02  Bruno Haible  <bruno@clisp.org>
651
652         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
653         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
654
655 2013-03-02  Bruno Haible  <bruno@clisp.org>
656
657         gettext: Update to version 0.18.2.
658         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
659         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
660                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
661
662 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
663
664         regex: merge patches from libc
665
666         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
667         * lib/regex_internal.h (__attribute__): Rename from __attribute.
668         All uses changed.
669         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
670         (re_string_wchar_at, re_string_elem_size_at):
671         Mark function as possibly unused.
672
673         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
674         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
675         elements compare against the byte sequence of it, not its name.
676
677 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
678
679         putenv: port better to native Windows
680         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
681         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
682         (_unsetenv): Use _putenv if available.
683         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
684         a bit less likely to cause damage.
685         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
686         Fix the wrong value with SetEnvironmentVariable.
687         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
688         code better.
689
690 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
691
692         regex: ignore old-style-definition warnings
693         * lib/regex.c: Add pragma to ignore these warnings.
694         Problem reported for GNU tar by Pavel Raiskup.
695
696 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
697
698         getcwd: support coreutils better
699         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
700         but this might not be correct in coreutils, which disables
701         the raw decl checks.  Problem reported by Nagendra in
702         <http://bugs.gnu.org/10305#192>.
703         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
704         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
705         Test the getcwd function, not any macro, since getcwd.c wants the
706         function.
707         * m4/getcwd.m4 (gl_FUNC_GETCWD):
708         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
709         compile, as might happen if there's a macro but no function.
710
711         strtod: support coreutils better
712         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
713         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
714         disables the raw decl checks.  This assumes there is an underlying
715         strtod, but that's a safe assumption these days.
716         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
717
718         mountlist: port to HP NonStop
719         Reported by Joachim Schmitz in
720         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
721         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
722         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
723
724 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
725
726         extern-inline: avoid compilation error with HP-UX cc
727         Reported by Richard Lloyd in
728         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
729         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
730         Suppress extern inline with HP-UX cc.  This should be safe,
731         though it may hurt performance.  Perhaps someone with some HP-UX
732         experience can come up with a higher-performance fix.
733
734 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
735
736         putenv: fix heap corruption with mixed putenv/_putenv
737         Problem reported by Michael Goffioul in
738         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
739         * lib/putenv.c (putenv) [HAVE__PUTENV]:
740         Rely on _putenv to allocate the new environment.
741         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
742         * modules/putenv (configure.ac): Use it.
743
744 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
745
746         unsetenv etc.: port to Solaris 11 + GNU Emacs
747         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
748         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
749         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
750         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
751         idea but is too painful to fix right now), and without this gnulib
752         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
753         compiling unsetenv.c on Solaris 11.  Fix the problem for
754         unsetenv.c, and fix other similar occurrences.
755
756 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
757
758         secure_getenv: fix C++ declaration typo
759         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
760         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
761         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
762
763 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
764
765         careadlinkat: stop exporting careadlinkatcwd
766         Only Emacs used it directly, and Emacs no longer needs it.
767         * NEWS: Document this simplification.
768         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
769         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
770         for readlink.
771         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
772         Don't include stdlib.h; no longer needed.
773         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
774         * lib/relocwrapper.c: Adjust comment to match new dependencies.
775         * modules/areadlink (Depends-on): Add readlink.
776         (Maintainer): Add self.
777         * modules/careadlinkat (Depends-on): Remove readlink.
778
779         extensions: port better to HP-UX
780         This is merged from git Autoconf.
781         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
782         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
783         so that it's compatible with the value used when compiling.
784
785         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
786         Problem reported by Mats Erik Andersson in
787         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
788         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
789         openpty function exists, not merely when we intend to replace it.
790         This corrects the 2013-01-31 patch, which mistakenly defined
791         HAVE_OPENPTY even on hosts that lacked it.
792
793 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
794
795         secure_getenv: fix include typo
796         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
797
798         secure_getenv: port better to FreeBSD and Solaris
799         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
800         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
801         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
802         This works better on BSDish platforms.
803         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
804         Test for issetugid if __secure_getenv is missing.
805
806 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
807
808         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
809         Some of these changes are merged in from git Autoconf.
810         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
811         When deciding whether to define _XOPEN_SOURCE, inspect the
812         preprocessor macro __hpux instead of the more-heavyweight
813         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
814         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
815         as the key for __EXTENSIONS__.
816
817         unistd: avoid namespace pollution on non-glibc systems
818         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
819         This avoids namespace pollution on non-glibc systems, by causing
820         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
821         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
822         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
823
824 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
825
826         tmpdir: use secure_getenv
827         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
828         Define to secure_getenv, not getenv.
829         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
830         as that's now secure_getenv's job.
831         * modules/tmpdir (Depends-on): Add secure_getenv.
832
833         tempname: use secure_getenv
834         * lib/tempname.c (__secure_getenv) [!_LIBC]:
835         Define to secure_getenv, not getenv.
836         * modules/tempname (Depends-on):
837         Add secure_getenv.
838
839         secure_getenv: new module
840         * MODULES.html.sh (Extra functions based on ANSI C 89):
841         Add secure_getenv.
842         * doc/glibc-functions/secure_getenv.texi: New file.
843         * doc/gnulib.texi: Include it.
844         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
845         New files.
846         * lib/stdlib.in.h (secure_getenv): New decl.
847         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
848         * modules/stdlib (stdlib.h):
849         Add secure_getenv checks.
850
851 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
852
853         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
854         Reported for OS X 10.8.2 by Assaf Gordon in
855         <http://bugs.gnu.org/13516>.
856         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
857         !HAVE_OPENAT && !HAVE_FDOPENDIR.
858         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
859         so that they can be kept in sync more easily.  Avoid PATH_MAX
860         test on the Hurd.  Sync from test-getcwd.c for errno tests after
861         mkdir or chdir failure.
862         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
863         lib/getcwd.c.
864         (test_abort_bug): Do not test for the deep directory bug unless we
865         have openat support.  Avoid PATH_MAX test on the Hurd.
866
867         regex-tests, regex: fix bug: memset undeclared
868         * tests/test-regex.c: Don't include regex.h twice.  Include
869         string.h, to declare memset.  Christensen's report also mentioned
870         this issue.
871         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
872         test-regex.c, to avoid future problems like this.  Remove
873         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
874         twice.
875
876         regex-tests: fix link errors on older Solaris
877         These need to link with @LIBINTL@ to get libintl_gettext.
878         Problem reported by Tom G. Christensen in
879         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
880         * modules/regex-tests (test_regex_LDADD): New macro.
881
882 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
883
884         regex-tests: new module
885         * modules/regex-tests, tests/test-regex.c: New files.
886
887         regex: fix off-by-one error in configure test
888         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
889
890 2013-01-31  Eric Blake  <eblake@redhat.com>
891
892         regex: avoid infinite configure test
893         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
894
895 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
896
897         openpty: fix bug where HAVE_OPENPTY wasn't defined
898         See the thread starting at:
899         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
900         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
901         openpty function exists, not merely when we intend to replace it.
902
903 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
904
905         sys_time: port to Solaris 2.6
906         There is a circularity problem on Solaris 2.6, where <time.h> includes
907         <sys/time.h> for struct timespec.  The include nesting is gnulib
908         <time.h>, system <time.h>, gnulib <sys/time.h>, system
909         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
910         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
911         <sys/siginfo.h>; the last, innermost file needs struct
912         timestruc_t, which is defined in <sys/time.h>, which has not been
913         fully parsed.  Problem reported by Tom G. Christensen in
914         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
915         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
916         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
917         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
918         uses split double-inclusion guards.
919
920 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
921
922         regex: test for buffer overrun
923         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
924         for the just-fixed regex bug.
925
926 2013-01-29  Andreas Schwab  <schwab@suse.de>
927
928         regex: fix buffer overrun in regexp matcher [BZ #15078]
929         * lib/regexec.c (extend_buffers): Add parameter min_len.
930         (check_matching): Pass minimum needed length.
931         (clean_state_log_if_needed): Likewise.
932         (get_subexp): Likewise.
933
934 2013-01-28  Pádraig Brady  <P@draigBrady.com>
935
936         mountlist: don't consider "devtmpfs" as dummy
937         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
938         as there is storage associcated with it.
939
940 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
941
942         futimens-tests, utimens-tests: Depend on gettext.
943         This works around a problem introduced in my 2013-01-12 patch,
944         which added @LIBINTL@ to these modules.
945         * modules/futimens-tests (Depends-on):
946         * modules/utimens-tests (Depends-on): Add gettext.
947
948 2013-01-26  Eric Blake  <eblake@redhat.com>
949
950         test-getpeername: fix typo
951         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
952
953 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
954
955         bootstrap: remove the need for a sorted .gitignore file
956         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
957         rename to insert_if_absent(), so that we don't need or generate
958         a sorted .gitignore file.  We do require a .gitignore with no
959         existing duplicate entries and enforce that.
960         (sort_patterns): Remove this function as we now use the simpler
961         technigue of inserting blacklist entries at the top of the file,
962         assuming gnulib won't be inserting !whitelist entries.
963
964 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
965
966         readlinkat: don't depend on gl_FUNC_OPENAT
967         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
968         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
969         renameat.m4, symlinkat.m4; but one thing at a time.
970
971         statat: new module, split out from fstatat
972         GNU Emacs needs the POSIX-specified fstatat, but not the
973         gnulib-specified statat and lstat.  Split the latter two into a
974         new module 'statat'.
975         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
976         * lib/openat.h, lib/statat.c (STATAT_INLINE):
977         Rename from FSTATAT_INLINE. All uses changed.
978         * modules/fstatat (Files): Remove lib/statat.c.
979         (gl_MODULE_INDICATOR([fstatat])): Remove.
980         (lib_SOURCES): Remove.
981         (Maintainer): Add self.
982         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
983         * tests/test-fstatat.c (BASE): Don't define if already defined.
984         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
985
986 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
987
988         tests: don't assume fd 99 is closed
989         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
990         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
991         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
992         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
993         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
994         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
995         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
996         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
997         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
998         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
999         * tests/test-fwrite.c, tests/test-getpeername.c:
1000         * tests/test-getsockname.c, tests/test-getsockopt.c:
1001         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1002         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1003         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1004         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1005         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1006         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1007         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1008         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1009         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1010         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1011         Close file descriptor 99, instead of assuming it's already closed.
1012
1013 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1014
1015         stpncpy: port to OS X 10.8
1016         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1017         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1018
1019 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1020
1021         unistd: port to recent mingw
1022         * lib/unistd.in.h: Remove special invocation convention for mingw,
1023         which breaks for the latest mingw version.  See John W. Eaton in
1024         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1025
1026         largefile: port better to Mac OS X 10.5
1027         This patch is backported from Autoconf git.
1028         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1029         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1030         with ino_t size being different for configuration time versus
1031         build/run time.  Problem reported by PHO in
1032         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1033
1034 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1035
1036         doc: clarify -Werror
1037         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1038         clarify that it's intended for developers, not for ordinary builds,
1039         and mention --enable-gcc-warnings as one possible use.
1040
1041 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1042
1043         stdint: fix build with Android's Bionic fox x86
1044         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1045         was already included as _SSIZE_T_DEFINED_ might also be defined
1046         in include/machine/_types.h, which is included by stdio.h
1047
1048 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1049
1050         net_if-tests: port to Solaris 7 + GCC 3.4.6
1051         Problem reported by Tom G. Christensen in
1052         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1053         * tests/test-net_if.c (ni): Move to next the code that uses it,
1054         so that it's declared only if needed.
1055
1056 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1057
1058         net_if-tests: port to older Solaris
1059         Problem reported by Tom G. Christensen in
1060         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1061         * modules/net_if-tests (NET_IF_LIB): New substitution.
1062         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1063         (HAVE_IF_NAMEINDEX): New C macro.
1064         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1065
1066         system-quote-tests: port to older Solaris
1067         Problem reported by Tom G. Christensen in
1068         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1069         * tests/test-system-quote-child.c (fopen, fread): Undef.
1070
1071         c-xvasprintf etc.: fix link errors on older Solaris
1072         These need to link with @LIBINTL@ to get libintl_gettext.
1073         Problem reported by Tom G. Christensen in
1074         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1075         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1076         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1077         * modules/futimens-tests (test_futimens_LDADD):
1078         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1079
1080 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1081
1082         locale: port to Solaris 2.6 and 7 + GNU gettext
1083         * lib/locale.in.h: Just include_next <locale.h> when
1084         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1085         when combining the localename module with GNU gettext 0.18.2.
1086         Problem reported by Tom G. Christensen in
1087         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1088
1089 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1090
1091         stdlib: port to Solaris 2.6
1092         Also, the code worked on Solaris 7 through 9 only by accident.
1093         Problem reported by Tom G. Christensen in
1094         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1095         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1096         simply include the system stdlib.h.
1097         * lib/getopt.in.h (__need_system_stdlib_h):
1098         * lib/pthread.in.h (__need_system_stdlib_h):
1099         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1100         Define when including <stdlib.h>, to avoid problems at least for
1101         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1102         with the system stdlib.h.
1103
1104 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1105
1106         doc: update main copyright year
1107         * doc/gnulib.texi: Update copyright date.
1108
1109         doc: improve ISO 8601 discussion
1110         * doc/parse-datetime.texi (Combined date and time of day items):
1111         Specify more carefully what formats are supported and what is
1112         done with excess precision.
1113
1114 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1115
1116         doc: avoid small caps
1117         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1118         they're more trouble than they're worth.  Suggested by Karl Berry
1119         in <http://bugs.gnu.org/13360>.
1120
1121         regex: conform to strict C
1122         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1123         From Aharon Robbins.
1124
1125         gnulib-tool: fix incompatibility with autopoint 0.18.2
1126         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1127         Problem reported by Tom G. Christensen in
1128         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1129
1130 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1131
1132         fprintftime: bring back and reword fwrite comment
1133         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1134
1135         stdio: remove now-unnecessary stdio.c
1136         Since stdio.in.h no longer uses inline functions, we no longer
1137         need to compile the extern versions.
1138         * lib/stdio.c: Remove.
1139         * modules/stdio (Files): Remove lib/stdio.c.
1140         (lib_SOURCES): Remove.
1141
1142         unicodeio: depend on stdio, not ignore-value
1143         * lib/unicodeio.c: Do not include ignore-value.h.
1144         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1145         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1146
1147         fprintftime: depend on stdio, not ignore-value
1148         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1149         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1150         since the stdio module arranges to silence that warning now.
1151         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1152
1153 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1154
1155         stdint-tests: Fix expanded-before-required-warning.
1156         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1157
1158 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1159
1160         fwrite: silence __wur only for older glibc versions
1161         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1162         This will help us remove this workaround some time in the far future.
1163
1164 2013-01-03  Eric Blake  <eblake@redhat.com>
1165
1166         fwrite: silence __wur without using inline
1167         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1168         just gcc, and in a way that avoids inline issues.
1169         * modules/stdio (Depends-on): Drop extern-inline.
1170
1171 2013-01-03  Jim Meyering  <jim@meyering.net>
1172
1173         update-copyright: avoid copyright notice date corruption
1174         Given a sequence of copyright year numbers in which the final
1175         one was a two-digit number that happened to be a substring of
1176         a preceding four-digit year number, we would mistakenly update
1177         the substring (from two- to four-digit) rather than the two-digit
1178         number at the end, which, combined with the addition of the current
1179         4-digit year number would yield two 5-digit year numbers, e.g.,
1180         here, it would convert the first "99" to "1999, 2013" rather than
1181         the final one:
1182           1991, 99
1183           11999, 20131, 1999
1184         * build-aux/update-copyright: Tighten a regexp.
1185         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1186         Reported by Joseph Myers in
1187         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1188
1189 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1190
1191         regex: omit needless signed-pointer casts
1192         * lib/regcomp.c (build_charclass, build_charclass_op):
1193         Use char *, not unsigned char *, for class name and extra.
1194         The char values are always nonnegative so there's no need to
1195         insist on unsigned char * here, and using char * removes the need
1196         for casts.  Reported by Aharon Robbins in
1197         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1198
1199         regex: support Gawk, which never uses alloca
1200         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1201         Do not include in this case.  Gawk doesn't supply a substitute
1202         alloca.h and doesn't need one.
1203
1204         regex: port __libc_lock_define usage to C89
1205         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1206         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1207         does not conform to C89, as it has an empty macro argument.
1208         Reported by Aharon Robbins in
1209         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1210
1211 2013-01-01  Eric Blake  <eblake@redhat.com>
1212
1213         maint: update all copyright year number ranges
1214         Run "make update-copyright".
1215
1216         version-etc: bump copyright year reported in --version
1217         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1218
1219 2012-12-31  Eric Blake  <eblake@redhat.com>
1220
1221         sigprocmask-tests: skip test if pid is unexpectedly large
1222         * tests/test-sigprocmask.c (main): Add range check.
1223
1224         git-version-gen: avoid test -z portability glitch
1225         * build-aux/git-version-gen: Prefer portable test spelling, since
1226         git-version-gen is run on more than just developer machines.
1227
1228 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1229
1230         git-version-gen: add --fallback option to use if git is not present
1231         * build-aux/git-version-gen: Add support for the new option --fallback,
1232         which comes into play when there is no $tarball_version_file and
1233         git is not working.
1234         (scriptversion): Update.
1235
1236         maint.mk: handle missing git with more grace
1237         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1238         Quietly proceed if git is not present.
1239
1240 2012-12-31  Eric Blake  <eblake@redhat.com>
1241
1242         dup2: work around cygwin bug
1243         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1244         * lib/dup2.c (rpl_dup2): Work around it.
1245         * doc/posix-functions/dup2.texi (dup2): Document it.
1246
1247 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1248
1249         regex: remove unnecessary dependency on localcharset.h
1250         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1251         hasn't been needed for years.
1252         * modules/regex (Depends-on): Remove localcharset.
1253
1254         regex: revert single-byte change
1255         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1256         to this function.  This was alredy fixed in a different way, at
1257         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1258         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1259         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1260
1261         regex: simplify based on Gawk version
1262         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1263         Reported by Aharon Robbins in
1264         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1265
1266 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1267
1268         regex: check that pattern char is single-byte
1269         Reported by Aharon Robbins in
1270         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1271         * lib/regexec.c (check_node_accept_bytes):
1272         Return 0 if the pattern string has a multibyte character here.
1273
1274         regex: implement rational ranges
1275         Reported by Aharon Robbins in
1276         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1277         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1278         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1279         Implement rational ranges.
1280
1281         regex: avoid redefining __wctype
1282         Reported by Aharon Robbins in
1283         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1284         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1285         #undef before defining.
1286
1287         regex: port to hosts where malloc (0) == NULL
1288         Reported by Aharon Robbins in
1289         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1290         * lib/regex_internal.c (re_node_set_alloc):
1291         Don't assume that malloc (0) yields nonnull.
1292         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1293         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1294         * modules/regex (Files): Add m4/eealloc.m4.
1295
1296         regex: port to C89
1297         Reported by Aharon Robbins in
1298         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1299         * lib/regcomp.c (init_word_char): Declaration before statement.
1300
1301         regex: merge glibc changes
1302         Also, copy the license wording from glibc.  This simplifies
1303         merging changes.  gnulib-tool will change the wording to GPL as
1304         appropriate, when importing it to other packages.  The only
1305         glibc change made since the last merge, which needs merging, is:
1306         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1307         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1308
1309         * users.txt: Add Emacs.
1310
1311         doc: omit mention of version when not needed
1312         * doc/gnulib-intro.texi (Portability and Application Code):
1313         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1314         Don't mention particular dates or versions when not necessary, so
1315         that the documentation won't go out of date so quickly.
1316
1317         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1318
1319 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1320
1321         bootstrap: pass --force to autoreconf.
1322         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1323         Add "--force" so that Automake's ylwrap and other such tools
1324         be updated at each bootstrap invocation.
1325         Use it.
1326
1327 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1328
1329         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1330         The earlier patch forgot to update one of the #if conditions, causing
1331         a problem on Debian testing i386 reported by Mats Erik Andersson
1332         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1333         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1334         (__argp_fmtstream_puts, argp_fmtstream_puts)
1335         (__argp_fmtstream_write, argp_fmtstream_write)
1336         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1337
1338         * doc/gnulib-readme.texi: Minor fixups.
1339         (Portability guidelines): Modernize URLs.  Remove some repetition.
1340         (Indent with spaces not TABs): Reword to avoid too-long lines.
1341         Remove some '@ifset standalone' stuff that isn't used.
1342
1343         * doc/gnulib-readme.texi (Portability guidelines):
1344         ctype.h, not ctime.h.
1345
1346         Correct name of POSIX.1-2001.
1347         * doc/posix-functions/fgetc.texi (fgetc):
1348         * doc/posix-functions/fgets.texi (fgets):
1349         * doc/posix-functions/fread.texi (fread):
1350         * doc/posix-functions/fscanf.texi (fscanf):
1351         * doc/posix-functions/getc.texi (getc):
1352         * doc/posix-functions/getchar.texi (getchar):
1353         * doc/posix-functions/scanf.texi (scanf):
1354         POSIX.1-2001, not POSIX-2001.
1355
1356         doc: move README into manual
1357         * README: Move contents to new file doc/gnulib-readme.texi.
1358         Replace with a one-line summary.
1359         * doc/gnulib.texi (Brief Overview): New section,
1360         with old intro preface.  Include gnulib-readme.texi for contents.
1361         (Philosophy): Rename from "Introduction", since this
1362         section no longer introduces the rest.  Write a new preface.
1363         * doc/gnulib-readme.texi: New file, with the old contents of
1364         README texinfo-ized.  This way, the README info appears
1365         in the online and printed manual.
1366
1367 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1368
1369         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1370         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1371         c_vasprintf() prototype.
1372
1373 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1374
1375         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1376         * lib/c-vasprintf.h: Remove stray semicolon.
1377
1378 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1379
1380         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1381         It is obsolete and is planned to be removed from Automake 1.14; see
1382         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1383         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1384         (installdirs-data, installdirs-data-yes):
1385         Use $(MKDIR_P), not $(mkdir_p).
1386         * m4/intl.m4 (AM_INTL_SUBDIR):
1387         * m4/po.m4 (AM_PO_SUBDIRS):
1388         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1389
1390 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1391
1392         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1393         On this platform, we are not optimizing but we are using
1394         the substitute for extern inlines, so compile as if
1395         C99-style extern inline, or a substitute, is available.
1396         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1397         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1398         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1399         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1400         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1401         Declare as ARGP_FS_EI, not as extern.
1402         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1403         (__option_is_short, _option_is_end, __option_is_end)
1404         [!_LIBC && __USE_EXTERN_INLINES]:
1405         Declare as ARGP_EI, not as extern.
1406
1407 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1408
1409         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1410         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1411         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1412         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1413         ...), as the latter is fatal with older Autoconfs.
1414         Problem reported and fix suggested by Eric Blake in thread starting at
1415         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1416
1417 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1418
1419         AC_PROG_MKDIR_P: don't workaround if not buggy
1420         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1421         Define only for Autoconf versions before 2.62.
1422         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1423         undocumented m4_PACKAGE_VERSION, for consistency with the
1424         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1425         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1426         was introduced in 2.62.
1427
1428 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1429
1430         New 'c-*printf' modules for formatted output in C locale.
1431
1432         New module 'c-vasnprintf'.
1433         * modules/c-vasnprintf: New file.
1434         * lib/c-vasnprintf.c: New file.
1435         * lib/c-vasnprintf.h: New file.
1436
1437         New module 'c-snprintf'.
1438         * modules/c-snprintf: New file.
1439         * modules/c-snprintf-tests: New file.
1440         * lib/c-snprintf.c: New file.
1441         * lib/c-snprintf.h: New file.
1442         * tests/test-c-snprintf.c: New file.
1443         * tests/test-c-snprintf.sh: New file.
1444
1445         New module 'c-vsnprintf'.
1446         * modules/c-vsnprintf: New file.
1447         * modules/c-vsnprintf-tests: New file.
1448         * lib/c-vsnprintf.c: New file.
1449         * lib/c-vsnprintf.h: New file.
1450         * tests/test-c-vsnprintf.c: New file.
1451         * tests/test-c-vsnprintf.sh: New file.
1452
1453         New module 'c-vasprintf'.
1454         * modules/c-vasprintf: New file.
1455         * modules/c-vasprintf-tests: New file.
1456         * lib/c-asprintf.c: New file.
1457         * lib/c-vasprintf.c: New file.
1458         * lib/c-vasprintf.h: New file.
1459         * tests/test-c-vasprintf.c  +: New file.
1460         * tests/test-c-vasprintf.sh: New file.
1461
1462         New module 'c-xvasprintf'.
1463         * modules/c-xvasprintf: New file.
1464         * modules/c-xvasprintf-tests: New file.
1465         * lib/c-xasprintf.c: New file.
1466         * lib/c-xvasprintf.c: New file.
1467         * lib/c-xvasprintf.h: New file.
1468         * tests/test-c-xvasprintf.c: New file.
1469         * tests/test-c-xvasprintf.sh: New file.
1470
1471 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1472
1473         argp: better 'inline'
1474         Use extern-inline module to declare extern inline functions.
1475         This avoids some bogus warning diagnostics.  Problem discovered
1476         when modifying GNU tar to use the manywarnings module.
1477         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1478         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1479         Define based on extern-inline.
1480         * modules/argp (Depends-on): Add extern-inline.
1481
1482 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1483
1484         filemode, sys_stat: Handle MPX files a la AIX.
1485         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1486         * lib/sys_stat.in.h (S_ISMPX): New macro.
1487         * tests/test-sys_stat.c: Add tests for MPX files.
1488
1489 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1490
1491         x-to-1: honor $PERL
1492         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1493         a chance to use his preferred version of Perl.  This is typically
1494         required by Darwin users whose default /usr/bin/perl does not have all
1495         the libraries required by help2man, and who need to use their MacPorts
1496         installation of Perl instead.
1497
1498 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1499
1500         gnu-web-doc-update: add all the new files, even in new directories
1501         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1502         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1503         Use it.
1504         (main): Don't use cvsutils to get the list of unknown files,
1505         just add all the existing files and directories.
1506
1507 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1508
1509         gnu-web-doc-update: improve --help
1510         * build-aux/gnu-web-doc-update: Move comments into --help.
1511
1512 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1513
1514         mountlist: recognize more "dummy" file systems
1515         * lib/mountlist.c (ME_DUMMY_0):
1516         Add these dummy FS names to the list:
1517         - "debugfs" virtual filesystem for kernel debugging
1518         - "devpts" PTY slave filesystem
1519         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1520         - "fusectl" control filesystem for FUSE
1521         - "mqueue" enumerates POSIX message queues
1522         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1523         - "sysfs" is for exporting kernel objects
1524         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1525
1526 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1527
1528         extern-inline: avoid incompatibility with Darwin Libc
1529         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1530         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1531         Problem reported by Akim Demaille in
1532         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1533
1534 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1535
1536         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1537         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1538         let it handle password prompting.
1539
1540 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1541
1542         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1543         * lib/canonicalize.c (canonicalize_filename_mode):
1544         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1545         fetching the current directory.  Don't overrun the beginning of
1546         rpath if there's no slashes after the MS-Windows drive letter.
1547
1548 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1549
1550         maint.mk: avoid extra forks
1551         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1552         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1553         So use that instead of "$(shell test -f FILE && echo FILE)".
1554
1555 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1556
1557         vasnprintf: fix ASCII_ONLY typo
1558         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1559         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1560         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1561         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1562         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1563
1564 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1565
1566         list, oset, xlist, xoset: fix extern inline issue with C99
1567         This was introduced by my recent changes for 'inline'.
1568         Problem reported for gettext by Daiki Ueno in
1569         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1570         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1571         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1572         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1573         (gl_list_previous_node, gl_list_get_at)
1574         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1575         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1576         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1577         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1578         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1579         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1580         (gl_list_iterator_free, gl_sortedlist_search)
1581         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1582         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1583         (gl_sortedlist_remove):
1584         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1585         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1586         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1587         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1588         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1589         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1590         (gl_list_add_at, gl_sortedlist_add):
1591         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1592         Wrap these extern decls inside "#if 0", because they are implemented
1593         as inline functions, and extern inline is not what's wanted here.
1594         It would simplify these .h files to remove the extern decls entirely,
1595         although a downside would be less-clear separation between
1596         specification and implementation.
1597
1598 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1599
1600         sys_stat: no 'static inline'
1601         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1603
1604         extern-inline: no 'static inline'
1605         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1606         Do not require AC_C_INLINE.
1607         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1608         'static inline', for older compilers.
1609
1610         snippet/warn-on-use: no 'static inline'
1611         * build-aux/snippet/warn-on-use.h:
1612         Remove unnecessary 'inline' in comment.
1613
1614         rbtree-list, rbtreehash-list: no 'static inline'
1615         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1616         * lib/gl_anytree_list2.h (node_at):
1617         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1618         (gl_oset_first, add_nodes_to_buckets):
1619         Now static, not static inline.
1620
1621         regex: no 'static inline'
1622         * lib/regex_internal.c (calc_state_hash):
1623         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1624         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1625         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1626         Now static, not static inline.
1627         (inline) [__GNUC__ < 3 && _LIBC]:
1628         Remove macro; no longer needed.
1629
1630         xvasprintf: no 'static inline'
1631         * lib/xvasprintf.c (xstrcat):
1632         Now static, not static inline.
1633         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1634         Do not require AC_C_INLINE.
1635
1636         parse-datetime, parse-duration: no 'static inline'
1637         * lib/parse-datetime.y (to_uchar):
1638         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1639         (scale_n_add):
1640         Now static, not static inline.
1641         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1642         * modules/parse-duration (configure.ac):
1643         Do not require AC_C_INLINE.
1644
1645         getaddrinfo: no 'static inline'
1646         * lib/getaddrinfo.c (validate_family):
1647         Now static, not static inline.
1648         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1649         Do not require AC_C_INLINE.
1650
1651         ftruncate, fts, lstat, openat, raise: no 'static inline'
1652         * lib/ftruncate.c (chsize_nothrow):
1653         * lib/fts.c (opendirat, diropen):
1654         * lib/lstat.c (orig_lstat):
1655         * lib/openat.c (orig_openat):
1656         * lib/raise.c (raise_nothrow):
1657         Now static, not static inline.
1658         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1659         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1660         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1661         * m4/openat.m4 (gl_PREREQ_OPENAT):
1662         * m4/raise.m4 (gl_PREREQ_RAISE):
1663         Do not require AC_C_INLINE.
1664
1665         fflush, stat: no 'static inline'
1666         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1667         (clear_ungetc_buffer, disable_seek_optimization)
1668         (restore_seek_optimization, update_fpos_cache):
1669         * lib/stat.c (orig_stat):
1670         Now static, not static inline.
1671         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1672         (update_fpos_cache):
1673         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1674         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1675         * m4/stat.m4 (gl_PREREQ_STAT):
1676         Do not require AC_C_INLINE.
1677
1678         error, filevercmp: no 'static inline'
1679         * lib/error.c (is_open, flush_stdout):
1680         * lib/filevercmp.c (order):
1681         Now static, not static inline.
1682         * m4/error.m4 (gl_PREREQ_ERROR):
1683         * modules/filevercmp (configure.ac):
1684         Do not require AC_C_INLINE.
1685
1686         dup, execute, fatal-signal, etc.: no 'static inline'
1687         * lib/dup.c (dup_nothrow):
1688         * lib/execute.c (nonintr_close, nonintr_open):
1689         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1690         * lib/fopen.c (orig_fopen):
1691         * lib/freadseek.c (freadptrinc):
1692         * lib/freopen.c (orig_freopen):
1693         * lib/fstat.c (orig_fstat, fstat_nothrow):
1694         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1695         (get_rusage_as_via_iterator):
1696         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1697         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1698         * lib/isatty.c (_isatty_nothrow):
1699         * lib/open.c (orig_open):
1700         * lib/read.c (read_nothrow):
1701         * lib/sigprocmask.c (signal_nothrow):
1702         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1703         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1704         * lib/wait-process.c (unregister_slave_subprocess):
1705         * lib/write.c (write_nothrow):
1706         Now static, not static inline.
1707         * lib/spawn-pipe.c (nonintr_open): Define only if
1708         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1709         * m4/dup.m4 (gl_PREREQ_DUP):
1710         * m4/execute.m4 (gl_EXECUTE):
1711         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1712         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1713         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1714         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1715         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1716         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1717         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1718         * m4/open.m4 (gl_PREREQ_OPEN):
1719         * m4/read.m4 (gl_PREREQ_READ):
1720         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1721         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1723         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1724         * m4/write.m4 (gl_PREREQ_WRITE):
1725         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1726         Do not require AC_C_INLINE.
1727
1728         c-strtod, memcoll, readutmp: no 'static inline'
1729         * lib/c-strtod.c (c_locale):
1730         * lib/memcoll.c (strcoll_loop):
1731         * lib/readutmp.c (desirable_utmp_entry):
1732         Now static, not static inline.
1733         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1734         * m4/memcoll.m4 (gl_MEMCOLL):
1735         * m4/readutmp.m4 (gl_READUTMP):
1736         Do not require AC_C_INLINE.
1737
1738         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1739         * lib/arctwo.c (to_uchar):
1740         * lib/md4.c (set_uint32):
1741         * lib/md5.c (set_uint32):
1742         * lib/sha1.c (set_uint32):
1743         * lib/sha256.c (set_uint32):
1744         * lib/sha512.c (set_uint64):
1745         Now static, not static inline.  This is a bit simpler, and doesn't
1746         affect performance with GCC and default optimization.
1747         * m4/arctwo.m4 (gl_ARCTWO):
1748         * m4/md4.m4 (gl_MD4):
1749         * m4/md5.m4 (gl_MD5):
1750         * m4/sha1.m4 (gl_SHA1):
1751         * m4/sha256.m4 (gl_SHA256):
1752         * m4/sha512.m4 (gl_SHA512):
1753         Do not require AC_C_INLINE.
1754
1755         cond, lock, thread: better 'inline'
1756         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1757         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1758         New macros.  Use them instead of static inline, for header functions.
1759         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1760         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1761         * lib/glthread/lock.c (gl_waitqueue_init)
1762         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1763         * lib/glthread/thread.c (get_current_thread_handle):
1764         Change 'static inline' to 'inline'.
1765         * lib/glthread/cond.h, lib/glthread/thread.h:
1766         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1767         * m4/cond.m4 (gl_COND):
1768         * m4/lock.m4 (gl_PREREQ_LOCK):
1769         * m4/thread.m4 (gl_THREAD):
1770         Do not require AC_C_INLINE.
1771         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1772
1773         chdir-long, cycle-check, savewd: better 'inline'
1774         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1775         (find_non_slash):
1776         * lib/cycle-check.c (is_zero_or_power_of_two):
1777         * lib/savewd.c (savewd_delegating):
1778         Change 'static inline' to 'inline'.
1779         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1780         Replace all remaining uses of 'static inline' with it.
1781         * lib/savewd.h:
1782         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1783         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1784         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1785         * m4/savewd.m4 (gl_SAVEWD):
1786         Do not require AC_C_INLINE.
1787         * modules/savewd (Depends-on): Add extern-inline.
1788
1789         base32, base64: no need for 'inline'
1790         * lib/base32.c (to_uchar, get_8, decode_8):
1791         * lib/base64.c (to_uchar, get_4, decode_4):
1792         Change 'static inline' to 'inline'.
1793         * m4/base32.m4 (gl_PREREQ_BASE32):
1794         * m4/base64.m4 (gl_PREREQ_BASE64):
1795         Do not require AC_C_INLINE.
1796
1797         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1798         * lib/gl_array_oset.c (gl_array_nx_add_at):
1799         (gl_array_remove_at):
1800         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1801         (add_to_bucket, remove_from_bucket):
1802         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1803         Change 'static inline' to 'static', as it's simpler to omit
1804         'inline' unless there's a significant performance advantage.
1805
1806         list, oset, xlist, xoset, xsublist: simplify via extern inline
1807         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1808         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1809         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1810         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1811         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1812         New macro.  Replace all uses of 'static inline' with it.
1813         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1814         instead of as macros FOO that are defined to static inline
1815         functions FOO_inline.
1816         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1817         * lib/gl_xsublist.c:
1818         Reimplement from scratch, by defining the corresponding *_INLINE
1819         macro and including the corresponding .h file.  This is simpler.
1820         * modules/list, modules/oset, modules/xlist, modules/xoset:
1821         (Files): Remove m4/gl_list.m4.
1822         (configure.ac): Remove gl_LIST.
1823         * m4/gl_list.m4: Remove.
1824         * modules/list, modules/oset, modules/xlist, modules/xoset:
1825         * modules/xsublist:
1826         (Depends-on): Depend on extern-inline, not inline.
1827
1828         xalloc: better 'inline'
1829         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1830         New macro.  Replace all uses of 'static inline' with it.
1831         (static_inline): Remove.
1832         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1833         Let 'extern inline' do the work automatically, instead of doing
1834         it by hand.
1835         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1836         Remove.  All uses removed.
1837         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1838
1839         gethrxtime: better 'inline'
1840         * lib/xtime.c: New file.
1841         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1842         * lib/xtime.h (XTIME_INCLUDE):
1843         New macros.  Replace all uses of 'static inline' with them.
1844         * lib/gethrxtime.c (gethrxtime): Define only if
1845         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1846         this source file is now always compiled, because of the extern inline.
1847         * lib/gethrxtime.h, lib/xtime.h:
1848         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1849         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1850         if gethrtime works, as they're not needed in that case.
1851         (gl_XTIME): Do not require AC_C_INLINE.
1852         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1853         compiled now.  Move the check into gl_GETHRXTIME.
1854         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1855         (Depends-on): Add extern-inline.
1856         (configure.ac): gethrxtime is always compiled now.
1857         (lib_SOURCES): Add gethrxtime.c.
1858
1859         wctype-h: better 'inline'
1860         * lib/wctype-h.c: New file.
1861         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1862         New macro.  Replace all uses of 'static inline' with it.
1863         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1864         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1865         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1866         (Depends-on): Add extern-inline.
1867
1868         unistd: better 'inline'
1869         * lib/unistd.c: New file.
1870         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1871         New macro.  Replace all uses of 'static inline' with it.
1872         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1873         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1874         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1875         (Depends-on): Add extern-inline.
1876
1877         sys_socket: better 'inline'
1878         * lib/sys_socket.c: New file.
1879         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1880         New macro.  Replace all uses of 'static inline' with it.
1881         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1883         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1884         (Depends-on): Add extern-inline.
1885
1886         stdio: better 'inline'
1887         * lib/stdio.c: New file.
1888         * lib/stdio.in.h (_GL_STDIO_INLINE):
1889         New macro.  Replace all uses of 'static inline' with it.
1890         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1891         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1892         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1893         (Depends-on): Add extern-inline.
1894
1895         sigaction: better 'inline'
1896         * lib/sig-handler.c: New file.
1897         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1898         New macro.  Replace all uses of 'static inline' with it.
1899         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1900         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1901         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1902         (Depends-on): Add extern-inline.
1903
1904         selinux-h: better 'inline'
1905         * lib/se-context.c, lib/se-selinux.c: New files.
1906         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1907         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1908         New macro.  Replace all uses of 'static inline' with it.
1909         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1910         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1911         New macro.  Replace all uses of 'static inline' with it.
1912         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1913         * modules/selinux-h (Files, lib_SOURCES):
1914         Add lib/se-context.c, lib/se-selinux.c.
1915         (Depends-on): Add extern-inline.
1916         (configure.ac): Do not require AC_C_INLINE.
1917
1918         pthread: better 'inline'
1919         * lib/pthread.c: New file.
1920         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1921         New macro.  Replace all uses of 'static inline' with it.
1922         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1923         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1924         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1925         * modules/pthread (Files): Add lib/pthread.c.
1926         (Depends-on): Add extern-inline.
1927
1928         math: better 'inline'
1929         * lib/math.c: New file.
1930         * lib/math.in.h (_GL_MATH_INLINE):
1931         New macro.  Replace all uses of 'static inline' with it.
1932         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1933         * m4/math_h.m4 (gl_MATH_H):
1934         Do not require AC_C_INLINE.
1935         * modules/math (Files, lib_SOURCES):
1936         Add lib/math.c.
1937         (Depends-on): Add extern-inline.
1938
1939         count-one-bits: better 'inline'
1940         * lib/count-one-bits.c: New file.
1941         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1942         New macro.  Replace all uses of 'static inline' with it.
1943         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1944         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1945         Do not require AC_C_INLINE.
1946         * modules/count-one-bits (Files, lib_SOURCES):
1947         Add lib/count-one-bits.c.
1948         (Depends-on): Add extern-inline.
1949
1950         count-leading-zeros: better 'inline'
1951         * lib/count-leading-zeros.c: New file.
1952         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1953         New macro.  Replace all uses of 'static inline' with it.
1954         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1955         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1956         Do not require AC_C_INLINE.
1957         * modules/count-leading-zeros (Files, lib_SOURCES):
1958         Add lib/count-leading-zeros.c.
1959         (Depends-on): Add extern-inline.
1960
1961         bitrotate: better 'inline'
1962         * lib/bitrotate.c: New file.
1963         * lib/bitrotate.h (BITROTATE_INLINE):
1964         New macros.
1965         Replace all uses of 'static inline' with them.
1966         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1967         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1968         (Depends-on): Add extern-inline.
1969         (configure.ac): Do not require AC_C_INLINE.
1970
1971 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1972
1973         maint.mk: avoid gratuitous failure
1974         Reported by Stefano Lattarini in
1975         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1976         * top/maint.mk (public-submodule-commit): Quote more safely.
1977
1978 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1979
1980         canonicalize, canonicalize-lgpl: support MS-Windows file names
1981         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1982         for test cases, which it'd be nice to add at some point.
1983         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1984         * lib/canonicalize.c (canonicalize_filename_mode):
1985         * lib/canonicalize-lgpl.c (__realpath):
1986         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1987         slash is at the beginning of the file name.  Use ISSLASH, instead
1988         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1989         the first character with '/'.  Test for
1990         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1991         with a drive letter.
1992         * lib/canonicalize.c (SLASHES): New macro.
1993         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1994
1995 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1996
1997         fts: introduce FTS_VERBATIM
1998         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1999         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2000         * lib/fts.c (fts_open): Honor it.
2001
2002 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2003
2004         getlogin-tests: allow errno == ENXIO
2005         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2006         with errno == ENXIO (No controlling tty).
2007         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2008         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2009         with errno == ENOENT.  This was reported to happen in various
2010         situations on GNU/Linux.
2011
2012 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2013
2014         getlogin-tests: allow errno == ENOENT
2015         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2016         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2017         when running a test in an Emacs shell buffer.
2018
2019 2012-11-08  Jim Meyering  <jim@meyering.net>
2020
2021         tests/nap.h: avoid warning about unused variable
2022         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2023
2024         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2025         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2026         white space before each of the special-cased file names, to avoid
2027         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2028         in http://bugs.gnu.org/12830.
2029
2030 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2031
2032         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2033         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2034         fails with errno == EBADF when fd is opened with O_PATH.
2035         Reported by Jim Meyering in
2036         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2037         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2038         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2039
2040 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2041
2042         test-utimens: speed up by taking shorter naps
2043         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2044         New functions.
2045         (nap): Use them, to do a better job of guessing the delay.
2046         On Fedora 17 with ext4 atop md atop hard disks, this made
2047         test-utimens run 10x faster, because the test napped for
2048         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2049         <http://bugs.gnu.org/12820#11>.
2050
2051 2012-11-07  Jim Meyering  <jim@meyering.net>
2052
2053         mountlist.c: fix a compilation failure
2054         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2055         I introduced while transforming commit v0.0-7683-g613bcb6
2056
2057 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2058
2059         errno: port to LynxOS 178 2.2.2
2060         Problem reported by Joel Brobecker in
2061         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2062         * doc/posix-headers/errno.texi (errno.h): Document this.
2063         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2064         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2065         Supply a string for EILSEQ.
2066         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2067
2068 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2069
2070         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2071         Linux kernel 2.6.39 introduced O_PATH (see
2072         <http://lwn.net/Articles/433854/>) and this is a better fallback
2073         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2074         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2075         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2076         * lib/fcntl.in.h (O_ACCMODE):
2077         * tests/test-fcntl-h.c (main):
2078         Do not reject O_ACCMODE merely because it has more than the
2079         minimal number of bits, as POSIX allows extensions here.
2080
2081 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2082
2083         mountlist: do not classify a bind-mounted dir entry as "dummy"
2084         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2085         the "none"-testing clause.
2086         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2087         exception for bind-mounted directories.
2088
2089 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2090
2091         quote: provide a means to escape strings with nul characters
2092         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2093         (quote, quote_n): Rename formal arguments for consistency with
2094         quotearg.
2095
2096 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2097
2098         test-raise: don't assume 199 is an invalid signal
2099         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2100
2101         sh-quote-tests: port to Solaris 9
2102         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2103         Problem reported by Dagobert Michelsen in
2104         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2105
2106 2012-10-28  Jim Meyering  <jim@meyering.net>
2107
2108         maint.mk: rename a new configurable variable
2109         * top/maint.mk (_gl_translatable_string_re): Rename from
2110         translation-markers: _gl_ prefix to insulate from user Makefile code,
2111         and the _re suffix to inform that it's a regular expression.
2112
2113 2012-10-26  Eric Blake  <eblake@redhat.com>
2114
2115         maint.mk: let packages tweak sc_po_check pattern
2116         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2117         finding files with other translation markers.
2118
2119 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2120
2121         euidaccess: speed up 'configure' on GNU hosts
2122         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2123         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2124         it's needed only in this case.  Use AC_CHECK_DECLS, not
2125         AC_CHECK_DECLS_ONCE.
2126         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2127         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2128
2129         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2130
2131 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2132
2133         fchmodat, fchownat, fstatat: port to non-inlining compilers
2134         Problem reported for FreeBSD 9 by Jim Meyering in
2135         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2136         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2137         New files, which define FCHMODAT_INLINE etc.
2138         * lib/fchmodat.c (FCHMODAT_INLINE):
2139         * lib/fchownat.c (FCHOWNAT_INLINE):
2140         * lib/fstatat.c (FSTATAT_INLINE):
2141         Remove, as chmodat.c etc. now do this.
2142         * modules/fchmodat (Files): Add lib/chmodat.c.
2143         * modules/fchownat (Files): Add lib/chownat.c.
2144         * modules/fstatat (Files): Add lib/statat.c.
2145
2146 2012-10-15  Jim Meyering  <jim@meyering.net>
2147
2148         fchmodat.c, fchownat.c: compile-impeding typos
2149         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2150         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2151         Introduced in commit v0.0-7636-gd202279.
2152
2153 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2154
2155         fcntl-h: support GNU flags like O_IGNORE_CTTY
2156         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2157         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2158         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2159         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2160         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2161         Define to 0 if not already defined.
2162         * tests/test-fcntl-h.c: Test these new flags.
2163
2164 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2165
2166         faccessat, etc.: support AT_FDCWD-only use
2167         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2168         this function only if its first argument is AT_FDCWD.
2169         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2170         values other than AT_FDCWD, so it doesn't want all the openat
2171         machinery with fchdir etc.
2172         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2173         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2174         * modules/unlinkat (Files):
2175         Remove lib/openat-priv.h, as at-internal supplies this file.
2176         Removing this file here allows us to support programs like Emacs
2177         that avoid at-internal.
2178
2179         faccessat: speed up 'configure' on mainstream hosts
2180         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2181         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2182         since it's only on unusual platforms that we need to check for
2183         'access', and it's better not to slow 'configure' down on all
2184         platforms.
2185
2186         faccessat: port to Solaris 10
2187         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2188         Needed on Solaris 10, which doesn't have AT_EACCESS,
2189         so we need the Gnulib fcntl.h, which defines it.
2190
2191 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2192         canonicalize: fix C89 compilation
2193         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2194         declarations so C89 is supported.  Also remove the comment
2195         referencing memorty allocation as the suggested feature could
2196         not be implemented as suggested.
2197         Reported by Michael Goffioul.
2198
2199 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2200
2201         group-member: omit unnecessary dependencies
2202         This is for Emacs, which has its own allocator and where we
2203         don't want to use xalloc.
2204         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2205         since we no longer use xmalloc.  Do not include stdbool.h, since
2206         the changes below happen to remove the only use of bool.
2207         (GROUPBUF_SIZE): New constant.
2208         (struct group_info): Remove n_groups member.  Add groupbuf member.
2209         This lets us get the groups without using malloc, usually.
2210         (free_group_info, get_group_info): Adjust to this.
2211         (get_group_info): Return the number of groups found, or -1 on error.
2212         Use plain malloc not xmalloc, and treat its failure as if there
2213         are no groups, as the user already loses in case of error.
2214         (group_member): Simplify, based on changes to get_group_info.
2215         * modules/group-member (Depends-on): Remove dependencies on
2216         xalloc and stdbool.  Add dependency on xalloc-oversized.
2217
2218 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2219
2220         gethrxtime: port to C++
2221         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2222
2223 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2224
2225         ptsname: fix macro-name typo
2226         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2227
2228 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2229
2230         inttostr: Relax license.
2231         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2232
2233 2012-10-03  Eric Blake  <eblake@redhat.com>
2234
2235         ptsname_r: support ptys returned by FreeBSD posix_openpt
2236         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2237         lives in /dev/pts/.
2238
2239 2012-10-02  Eric Blake  <eblake@redhat.com>
2240
2241         pselect: reject invalid file descriptors
2242         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2243         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2244         * modules/pselect (Depends-on): Add dup2.
2245         * doc/posix-functions/pselect.texi (pselect): Document this.
2246
2247         select: reject invalid file descriptors
2248         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2249         * lib/select.c (rpl_select) [!win32]: Work around it.
2250         * modules/select (Depends-on): Add dup2.
2251         * doc/posix-functions/select.texi (select): Document this.
2252
2253         select: enhance test
2254         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2255         New functions.
2256         (test_function): Enhance test.
2257         (do_select_bad_fd): Avoid any stale errno values.
2258
2259         ptsname: reject invalid file descriptors
2260         http://www.austingroupbugs.net/view.php?id=503
2261         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2263         * modules/stdlib (Makefile.am): Replace witness.
2264         * lib/stdlib.in.h (ptsname): Allow for replacement.
2265         * modules/ptsname (configure.ac): Trigger replacement.
2266         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2267
2268 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2269
2270         hash-pjw-bare: new module
2271         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2272         * lib/hash-pjw-bare.h: Likewise.
2273         * modules/hash-pjw-bare: New file.
2274         * MODULES.html.sh (Misc): Add it.
2275
2276 2012-10-02  Eric Blake  <eblake@redhat.com>
2277
2278         manywarnings: cater to more gcc infelicities
2279         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2280         -Wuninitialized without -O.
2281
2282 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2283
2284         select, poll tests: Make setsockopt invocation effective.
2285         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2286         the bind() call.
2287         * tests/test-select.h (open_server_socket): Likewise.
2288
2289 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2290
2291         sockets, sys_stat: restore AC_C_INLINE
2292         This undoes the 2012-09-22 patch.
2293         * m4/sockets.m4 (gl_SOCKETS):
2294         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2295         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2296         and does not support plain 'inline'.  Reported by Bruno Haible in
2297         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2298
2299 2012-09-30  Bruno Haible  <bruno@clisp.org>
2300
2301         localeconv tests: Avoid test failure on OpenIndiana.
2302         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2303         skip the 'grouping' and 'mon_grouping' tests.
2304         Reported by Jim Meyering.
2305
2306 2012-09-30  Bruno Haible  <bruno@clisp.org>
2307
2308         havelib: Follow libtool developments.
2309         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2310         Suggested by Simon Josefsson.
2311
2312 2012-09-29  Jim Meyering  <meyering@redhat.com>
2313
2314         fstatat.c: fix a compile-impeding typo
2315         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2316         Introduced in commit v0.0-7636-gd202279.
2317         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2318
2319 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2320
2321         extern-inline: provide a -Wundef safe config.h
2322         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2323         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2324         to produce a -Wundef warning free config.h.
2325
2326 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2327
2328         hash-pjw: relax license to LGPLv2+
2329         * modules/hash-pjw (License): Relax, with consent of author.
2330
2331 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2332
2333         maint.mk: fix strict vs. lazy variable issues with RELEASE
2334         * top/maint.mk (_equal): New function.
2335         (member_check): Strip the result to avoid spurious spaces.
2336         (url_dir_list): Do not use ifeq, which is strict, as it will
2337         require RELEASE_TYPE to be defined.
2338         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2339         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2340         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2341         (announcement_Cc_beta,announcement_mail_headers_beta)
2342         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2343         (release): Do not depend on $(release-type), as it forces its
2344         evaluation.  Bounce to it.
2345
2346 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2347
2348         maint.mk: formatting changes
2349         * top/maint.mk: Indent bodies of if's.
2350
2351 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2352
2353         maint.mk: factor the validation of RELEASE_TYPE
2354         With help from Jim Meyering.
2355         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2356         * top/maint.mk (_empty, _sp): Move their definition earlier.
2357         (member-check, release-type): New.
2358         Use the latter instead of $(RELEASE_TYPE).
2359         Remove now useless local checks.
2360
2361 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2362
2363         maint.mk: provide "make upload" to ease uploading
2364         See
2365         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2366         Do not depend simply on the current $(VERSION), as there may have been
2367         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2368         as "make release-commit" already does.
2369
2370         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2371         "make TYPE".
2372
2373         * top/maint.mk (upload_command, upload, release): New.
2374         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2375         (VERSION): first word of $(RELEASE) is always right.
2376         (emit_upload_commands): Adjust.
2377         * top/README-release: Update.
2378
2379 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2380
2381         maint.mk: silent rules
2382         With help from Stefano Lattarini.
2383         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2384         (announcement): Use $(AM_V_at).
2385
2386 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2387
2388         localename: port gl_locale_name_thread_unsafe to FreeBSD
2389         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2390         and use the simpler FreeBSD implementation on Mac OS X as well.
2391         Original idea suggested by Ed Maste in
2392         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2393
2394 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2395
2396         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2397         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2398         * lib/mbuiter.c, lib/xsize.c: New files.
2399         * lib/binary-io.h (BINARY_IO_INLINE):
2400         * lib/eealloc.h (EEALLOC_INLINE):
2401         * lib/mbfile.h (MBFILE_INLINE):
2402         * lib/mbiter.h (MBITER_INLINE):
2403         * lib/mbuiter.h (MBUITER_INLINE):
2404         * lib/xsize.h (XSIZE_INLINE):
2405         New macros.
2406         Replace all uses of 'static inline' with them.
2407         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2408         * m4/eealloc.m4 (gl_EEALLOC):
2409         * m4/mbfile.m4 (gl_MBFILE):
2410         * m4/mbiter.m4 (gl_MBITER):
2411         * m4/xsize.m4 (gl_XSIZE):
2412         Do not require AC_C_INLINE.
2413         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2414         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2415         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2416         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2417         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2418         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2419         * modules/binary-io, modules/eealloc, modules/mbfile:
2420         * modules/mbiter, modules/mbuiter:
2421         (Depends-on): Add extern-inline.
2422
2423         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2424         * lib/pipe-filter-aux.c: New file.
2425         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2426         Replace all uses of 'static inline' with it.
2427         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2428         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2429         (filter_retcode): No real need for inline here.
2430         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2431         (Files): Add lib/pipe-filter-aux.c.
2432         (Depends-on): Add extern-inline.
2433         (configure.ac): Do not require AC_C_INLINE.
2434         (lib_SOURCES): Add pipe-filter-aux.c.
2435
2436         fdutimensat: omit unnecessary AC_C_INLINE
2437         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2438
2439         fchmodat, fchownat, fstatat: use extern-inline
2440         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2441         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2442         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2443         New macros.
2444         * lib/openat.h:
2445         Replace all uses of 'static inline' with them.
2446         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2447         * modules/fchmodat, modules/fchownat, modules/fstatat:
2448         * modules/openat-h:
2449         (Depends-on):
2450         Add extern-inline.
2451         (configure.ac): Remove AC_C_INLINE.
2452
2453         acl, mbchar, priv-set: use extern-inline
2454         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2455         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2456         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2457         New macros.
2458         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2459         Replace all uses of 'static inline' with it.
2460         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2461         * m4/acl.m4 (gl_FUNC_ACL):
2462         * m4/mbchar.m4 (gl_MBCHAR):
2463         * m4/priv-set.m4 (gl_PRIV_SET):
2464         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2465         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2466         Add extern-inline.
2467
2468         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2469         * m4/sockets.m4 (gl_SOCKETS):
2470         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2471         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2472         environments where it's already guaranteed to work, so we needn't
2473         check for it at 'configure'-time.
2474
2475         tls-tests: omit unnecessary 'inline'
2476         * tests/test-tls.c (perhaps_yield): No longer inline.
2477         Simplicity and portability trump efficiency in test cases.
2478
2479         utimens-tests: avoid unnecessary 'inline'
2480         * modules/fdutimensat-tests (configure.ac):
2481         * modules/futimens-tests (configure.ac):
2482         * modules/utimens-tests (configure.ac):
2483         * modules/utimensat-tests (configure.ac):
2484         Remove AC_C_INLINE.
2485         * tests/test-utimens-common.h (ctime_compare):
2486         No longer inline.  Simplicity and portability trump efficiency here.
2487
2488         misc: don't limit commentary to inline functions
2489         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2490         * lib/xalloc-oversized.h, lib/xsize.h:
2491         Contrast macros to functions in general, not just to inline functions,
2492         when the commentary does not apply only to inline functions.
2493
2494 2012-09-20  Jim Meyering  <meyering@redhat.com>
2495
2496         non-recursive-gnulib-prefix-hack: new module
2497         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2498         the file that originated in Bison.
2499         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2500         largely copied from a snippet that resided in bison's configure.ac.
2501         * modules/non-recursive-gnulib-prefix-hack: New file.
2502         * MODULES.html.sh (Support for maintaining and releasing projects):
2503         Add it.
2504
2505 2012-09-18  Jim Meyering  <meyering@redhat.com>
2506
2507         maint.mk: generalize _gl_tight_scope for non-recursive make
2508         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2509         that *.h would describe additional .h files in the directory
2510         specified by $(_gl_TS_dir).  I.e., add this...
2511         (_gl_TS_other_headers): New variable.
2512
2513         maint.mk: exempt trailing blanks found in "binary" files
2514         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2515         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2516         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2517
2518 2012-09-17  Jim Meyering  <meyering@redhat.com>
2519
2520         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2521         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2522         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2523         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2524
2525 2012-09-17  Jim Meyering  <meyering@redhat.com>
2526
2527         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2528         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2529         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2530         It is not in the same category as "exit (0)" or "exit (1)", and
2531         besides, I know of no symbolic name for that 77.  Reported by
2532         Richard W.M. Jones in
2533         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2534
2535 2012-09-17  Jim Meyering  <meyering@redhat.com>
2536
2537         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2538         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2539         all uses of #define, not just those that start in column 1.
2540         Richard W.M. Jones reported a false positive in
2541         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2542
2543 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2544
2545         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2546         * lib/localcharset.c (locale_charset) [DARWIN7]:
2547         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2548         as these two values are incompatible.  Problem reported by Max Horn.
2549         For more discussion, please see
2550         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2551
2552         doc: document sticky-EOF issue
2553         * doc/posix-functions/fgetc.texi (fgetc):
2554         * doc/posix-functions/fgets.texi (fgets):
2555         * doc/posix-functions/fread.texi (fread):
2556         * doc/posix-functions/fscanf.texi (fscanf):
2557         * doc/posix-functions/getc.texi (getc):
2558         * doc/posix-functions/getchar.texi (getchar):
2559         * doc/posix-functions/scanf.texi (scanf):
2560         Mention that glibc and default Solaris do not conform to
2561         C99 and POSIX-2001 or later, with respect to how getchar
2562         etc. behave when feof reports nonzero.
2563
2564 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2565
2566         poll: fix poll(0, NULL, msec)
2567         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2568         but nfd is 0.  In that case poll should behave like select.
2569
2570 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2571             Paolo Bonzini <bonzini@gnu.org>
2572
2573         poll: fix for systems that can't recv() on a non-socket
2574         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2575         is readable.  In this case POLLHUP will not be supported.
2576         * doc/posix-functions/poll.texi: Document this.
2577
2578 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2579
2580         poll/select: document portability problems not fixed by Gnulib.
2581         * doc/posix-functions/poll.texi: poll does not work well on
2582         pipes under Windows.  It has the same limitations as select on
2583         BeOS.
2584         * doc/posix-functions/select.texi: select does not work well
2585         on pipes under Windows.
2586
2587 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2588
2589         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2590         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2591         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2592         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2593
2594 2012-09-06  Eric Blake  <eblake@redhat.com>
2595
2596         net_if: give more details about the bug being fixed
2597         * doc/posix-headers/net_if.texi: Add clarification.
2598
2599 2012-09-05  Eric Blake  <eblake@redhat.com>
2600
2601         net_if: new module
2602         * modules/net_if: New module, borrowing ideas from netinet_in.
2603         * m4/net_if_h.m4: New file.
2604         * lib/net_if.in.h: Likewise.
2605         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2606         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2607         * tests/test-net_if.c: Make function checks conditional.
2608         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2609
2610 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2611
2612         readutmp: fix non-portable UT_PID use
2613         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2614         Use `UT_PID (u) > 0' as absolute condition.
2615
2616 2012-09-04  Jim Meyering  <meyering@redhat.com>
2617
2618         fts: reduce two or more trailing spaces to just one, usually
2619         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2620         or more slashes, trim all but the final one.  But if a name consists
2621         solely of two slashes, don't modify it.  If it consists solely of
2622         three or more slashes, strip all but one.
2623
2624         This is part of the solution to a minor problem with rm:
2625         it would print a bogus ELOOP diagnostic when failing to remove
2626         the slash-decorated name of a symlink-to-directory:
2627
2628             $ mkdir d && ln -s d s && env rm -r s/
2629             rm: cannot remove 's': Too many levels of symbolic links
2630
2631         With the change below and a trivial don't-trim-trailing-slashes
2632         adjustment to remove.c, it does this:
2633
2634             $ env rm -r s/
2635             rm: cannot remove 's/': Not a directory
2636
2637         Improved by: Eric Blake
2638
2639         fts: when there is no risk of overlap, use memcpy, not memmove
2640         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2641
2642 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2643
2644         stdbool: be more compatible with mixed C/C++ compiles
2645         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2646         Define to bool, true, false, respectively, as GCC's builtin
2647         stdbool.h does.  Problem reported by Michael Goffioul in
2648         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2649
2650 2012-08-28  Jim Meyering  <meyering@redhat.com>
2651
2652         revert last change: it was not needed
2653         * tests/test-vc-list-files-git.sh: There's already a test for
2654         a working git, just below.
2655
2656 2012-08-28  Jim Meyering  <meyering@redhat.com>
2657
2658         tests: test-vc-list-files-git.sh: skip if git is not available
2659         * tests/test-vc-list-files-git.sh: Skip this test when git is
2660         not available.
2661
2662 2012-08-26  Bruno Haible  <bruno@clisp.org>
2663
2664         gnulib-tool: Remove no-op option --no-changelog.
2665         * gnulib-tool (func_usage): Don't mention --no-changelog.
2666         (do_changelog): Remove variable.
2667         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2668
2669 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2670
2671         doc: remove fdl-1.2.texi
2672         It is no longer used or maintained, and its use of @acronym
2673         is problematic.  See the thread containing
2674         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2675         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2676         * doc/old-licenses/fdl-1.2.texi: Remove.
2677
2678         execinfo: port to FreeBSD
2679         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2680         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2681         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2682         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2683
2684 2012-08-23  Jim Meyering  <meyering@redhat.com>
2685
2686         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2687         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2688         to placate gcc's -Wold-style-declaration.
2689
2690 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2691
2692         doc: do not use @acronym
2693         * doc/inet_ntoa.texi (inet_ntoa):
2694         * doc/parse-datetime.texi (Seconds since the Epoch)
2695         (Specifying time zone rules):
2696         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2697         Don't use @acronym.  Problem reported by John Darlington in
2698         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2699
2700 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2701
2702         stdnoreturn: port to newer GCCs
2703         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2704         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2705         Problem reported by Jim Meyering in
2706         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2707         Also, rename the 'test' function to a void a clash with the
2708         already-supplied 'main' function; this fixes a bug that incorrectly
2709         rejected GCC 4.7.1's <stdnoreturn.h>.
2710         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2711         Document GCC problem.
2712
2713 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2714
2715         pipe-filter: fix comment typo
2716         * lib/pipe-filter.h: Mention correct function.
2717
2718 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2719
2720         execinfo: new module
2721         This is for Emacs.  Currently, it provides a no-effect stub
2722         on all platforms where it does not already work.
2723         It already works on glibc-based systems, and on Solaris 11.
2724         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2725         New files.
2726         * doc/glibc-headers/execinfo.texi (execinfo.h):
2727         * MODULES.html.sh (Misc): Document it.
2728
2729 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2730
2731         extern-inline: support old GCC 'inline'
2732         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2733         if available.  This applies to GCC versions 2.7 through 4.2, or
2734         when newer GCC is using -fgnu89-inline.  The goal is to address
2735         some of the performance issues mentioned by Bruno Haible in
2736         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2737
2738 2012-08-20  Eric Blake  <eblake@redhat.com>
2739
2740         maint.mk: avoid redundant file name in message
2741         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2742         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2743         (sc_makefile_path_separator_check): Remove bogus $(ME).
2744
2745 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2746
2747         timer-time: fix link order when static linking on glibc
2748         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2749         _after_ -lrt so that it's significant.
2750
2751 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2752
2753         timespec: omit unnecessary AC_C_INLINE
2754         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2755
2756         stat-time: omit unnecessary AC_C_INLINE
2757         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2758         Do not require AC_C_INLINE.
2759
2760         ignore-value: omit unnecessary AC_C_INLINE
2761         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2762
2763         sys_select: avoid 'static inline'
2764         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2765
2766         mktime: avoid 'static inline'
2767         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2768         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2769
2770 2012-08-19  Bruno Haible  <bruno@clisp.org>
2771
2772         gnulib-tool: Improve coding style.
2773         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2774         func_emit_lib_Makefile_am.
2775         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2776
2777 2012-08-19  Bruno Haible  <bruno@clisp.org>
2778
2779         gnulib-tool: Fix indentation.
2780         * gnulib-tool (func_import): Fix indentation.
2781
2782 2012-08-19  Bruno Haible  <bruno@clisp.org>
2783
2784         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2785         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2786         on the list of removed files.
2787
2788 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2789
2790         test-parse-datetime: avoid glibc leap-second glitch
2791         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2792         with the 2012 rules.  Problem reported by Bruce Dubbs in
2793         <http://bugs.gnu.org/12206>.
2794
2795 2012-08-14  Bruno Haible  <bruno@clisp.org>
2796
2797         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2798         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2799         from argument.
2800         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2801
2802 2012-08-14  Eric Blake  <eblake@redhat.com>
2803
2804         ldexp: relax license
2805         * modules/ldexp (License): Trivial relax, since the module only
2806         provides a permissively licensed m4 file.
2807
2808 2012-08-13  Bruno Haible  <bruno@clisp.org>
2809
2810         gnulib-tool: Fix persistence of --witness-c-macro option.
2811         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2812         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2813
2814 2012-08-11  Eric Blake  <eblake@redhat.com>
2815
2816         count-leading-zeros: use a lookup table on non-gcc compilers
2817         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2818         alternate implementation, suggested by Jim Meyering.
2819
2820 2012-08-10  Eric Blake  <eblake@redhat.com>
2821
2822         count-leading-zeros: new module
2823         * modules/count-leading-zeros: New module.
2824         * m4/count-leading-zeros.m4: New file.
2825         * lib/count-leading-zeros.h: Likewise.
2826         * modules/count-leading-zeros-tests: New test.
2827         * tests/test-count-leading-zeros.c: New file.
2828         * MODULES.html.sh (Integer arithmetic functions): Document it.
2829
2830 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2831             Jim Meyering  <meyering@redhat.com>
2832
2833         maintainer-makefile: Fix syntax error with dash.
2834         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2835         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2836
2837 2012-08-05  Jim Meyering  <meyering@redhat.com>
2838
2839         extern-inline: also ignore -Wmissing-declarations
2840         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2841         required with gcc-4.8.0-to-be.
2842
2843         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2844         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2845         for /error ?([^,]*)/.  This avoids false-positives for strings like
2846         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2847
2848 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2849
2850         gnumakefile: better interaction with Automake-NG
2851         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2852         Automake-NG always contain a definition of VPATH, even in non-VPATH
2853         builds (its value being simply '.' in that case).  So, in the
2854         'clean-GNUmakefile' rule, to determine whether running under a
2855         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2856         '$(VPATH)' expands to the empty string.
2857
2858 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2859
2860         base64: Use extern C scope in header file, for C++.
2861         * lib/base64.h: Add C++ namespace protection.
2862
2863 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2864
2865         stat-time, timespec, u64: support naive out-of-dir builds
2866         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2867         Use '#include "foo.h"', not '#include <foo.h>', when including
2868         one's own interface.  This works better when configuring with
2869         out-of-directory builds, since packages need not add an
2870         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2871
2872 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2873
2874         utimens: use extern-inline
2875         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2876         * lib/utimens.h: Add copyright notice, since this is now large enough
2877         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2878         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2879         * modules/utimens (Depends-on): Add extern-inline.
2880
2881         u64: use extern-inline
2882         * lib/u64.c: New file.
2883         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2884         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2885         * modules/u64 (Files): Add lib/u64.c.
2886         (Depends-on): Add extern-inline.
2887         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2888         does that now.
2889         (lib_SOURCES): Add u64.c.
2890
2891         timespec: use extern-inline
2892         * lib/timespec.c: New file.
2893         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2894         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2895         * modules/timespec (Files): Add lib/timespec.c.
2896         (Depends-on): Add extern-inline.
2897         (lib_SOURCES): Add timespec.c.
2898
2899         stat-time: use extern-inline
2900         * lib/stat-time.c: New file.
2901         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2902         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2903         * modules/stat-time (Files): Add lib/stat-time.c.
2904         (Depends-on): Add extern-inline.
2905         (lib_SOURCES): Add stat-time.c.
2906
2907         extern-inline: new module
2908         * modules/extern-inline, m4/extern-inline.m4: New files.
2909         This is for better support of 'extern inline' a la ISO C99,
2910         with a portable alternative on compilers that do not support
2911         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2912         of the Emacs executable, when compiled with debugging disabled,
2913         which is a typical way that Emacs is built while developing.
2914
2915 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2916
2917         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2918         * build-aux/do-release-commit-and-tag: Move variable definitions
2919         together.
2920         ($branch): Instead of defaulting to "master", default to the current
2921         branch (as gnu-web-doc-update does).
2922         (help): Display the current values of the option arguments.
2923         * top/maint.mk (release-commit): New.
2924         * top/README-release: Simplify the corresponding step.
2925
2926 2012-07-30  Eric Blake  <eblake@redhat.com>
2927
2928         passfd: fix comment on recvfd
2929         * lib/passfd.c (recvfd): Fix comment.
2930         Reported by Jann Horn <jannhorn@googlemail.com>.
2931
2932 2012-07-30  Jim Meyering  <meyering@redhat.com>
2933
2934         maint.mk: avoid a sub-shell
2935         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2936
2937 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2938
2939         maint.mk: use silent-rules support from Automake
2940         * top/maint.mk (news-check, vc-diff-check, announcement)
2941         (no-submodule-changes, alpha beta stable, release-prep)
2942         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2943
2944 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2945
2946         maint.mk: provide a web-manual-update target
2947         * top/maint.mk: here.
2948         * top/README-release: Use it to simplify the web manual update step.
2949
2950 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2951
2952         README-release: shorten the circuit to post a news
2953         * top/README-release: Point directly to the news submission form.
2954
2955 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2956
2957         gnu-web-doc-update: fix --help
2958         * build-aux/gnu-web-doc-update: The information "top level" was written
2959         twice.
2960
2961 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2962
2963         maint.mk: absolute VPATH issue
2964         * top/maint.mk (release-prep): Help Git find .git/.
2965         From Jim Meyering.
2966
2967 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2968
2969         gitlog-to-changelog: fix previous change
2970         * build-aux/gitlog-to-changelog: Fix condition.
2971         Add missing ";".
2972
2973 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2974
2975         gitlog-to-changelog: don't expect .git to be in $srcdir
2976         Reported by Bruno Haible.
2977         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2978         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2979         Use it.
2980
2981 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2982
2983         maint.mk: absolute VPATH build fix
2984         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2985         $(srcdir) is not a parent of $(builddir).
2986
2987 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2988
2989         clean-temp: Fix memory leak.
2990         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2991         'files' members of tmpdir.
2992
2993 2012-07-27  Jim Meyering  <meyering@redhat.com>
2994
2995         maint.mk: new rule: refresh-gnulib-patches
2996         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2997         Use this rule to refresh them.
2998         * top/maint.mk (refresh-gnulib-patches): New rule.
2999
3000 2012-07-24  Bruno Haible  <bruno@clisp.org>
3001
3002         gnulib-tool: Fix handling of inctests variable.
3003         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3004         Reported by Nick Bowler <nbowler@elliptictech.com>.
3005
3006 2012-07-22  Bruno Haible  <bruno@clisp.org>
3007
3008         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3009         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3010         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3011         Remove exemption for getpass.h.
3012         Suggested by Eric Blake.
3013
3014 2012-07-20  Eric Blake  <eblake@redhat.com>
3015
3016         verify: document conflict with -Wnested-externs
3017         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3018
3019         maint.mk: forbid exit(-1)
3020         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3021
3022 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3023
3024         fsusage: port back to Solaris
3025         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3026         error (fsd not declared) on Solaris 10.  Reported privately by
3027         Andrew Borodin.
3028
3029 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3030
3031         gnu-web-doc-update: fix error messages
3032         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3033
3034         gnu-web-doc-update: check the requirements.
3035         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3036         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3037         * build-aux/bootstrap (find_tool): Comment change.
3038
3039 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3040
3041         maint.mk: minor simplication.
3042         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3043         for default values.
3044
3045 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3046
3047         gitlog-to-changelog: VPATH build issues
3048         If builddir is not a subdirectory of srcdir, running git from it will
3049         fail.
3050         * build-aux/gitlog-to-changelog (--srcdir): New option.
3051
3052 2012-07-15  Bruno Haible  <bruno@clisp.org>
3053
3054         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3055         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3056         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3057         Remove exemption for fpending.h.
3058         Suggested by Eric Blake.
3059
3060 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3061
3062         pthread_sigmask: fix bug on FreeBSD 9
3063         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3064         Include string.h.
3065         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3066         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3067         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3068         but pthread_sigmask (1729, NULL, NULL) returns zero.
3069         See <http://bugs.gnu.org/11884>.
3070         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3071         by inspecting whether the main call changed the old mask.
3072
3073 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3074
3075         README-release: make it more legible
3076         * top/README-release: Improve typography slightly.
3077
3078 2012-07-15  Jim Meyering  <meyering@redhat.com>
3079
3080         maint: require that each sc_... command start with "@"
3081         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3082         "make sc_maint" helps us avoid this nit.
3083
3084 2012-07-15  Jim Meyering  <meyering@redhat.com>
3085
3086         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3087         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3088
3089 2012-07-13  Eric Blake  <eblake@redhat.com>
3090
3091         maint.mk: new syntax check for HAVE_DECL checks
3092         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3093         * cfg.mk
3094         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3095         Exempt some false positives.
3096         Based on a report by Karel Zak.
3097
3098         argp: make HAVE_DECL usage consistent
3099         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3100         macros, not whether they are defined.
3101         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3102         convention with other declaration checks.
3103         Reported by Karel Zak, with suggestions from Paul Eggert.
3104
3105         stat-time: relax license to LGPLv2+
3106         * modules/stat-time (License): Relax, with consent of all authors.
3107
3108         strndup: fix m4 usage error
3109         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3110         defined, to either 0 or 1.
3111         Reported by Karel Zak.
3112
3113 2012-07-11  Jim Meyering  <meyering@redhat.com>
3114
3115         maint: enable the sc_avoid_if_before_free syntax-check rule
3116         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3117         (if_before_free_offenders_): Define.
3118         (if_before_free_basename_re_): Define.
3119         Exempt current files with useless if-before-free.
3120
3121 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3122
3123         gettext: do not assume '#define ... defined ...' behavior
3124         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3125         Do not use '#define FOO ... defined BAR ...', as the C standard says
3126         it's not portable to expect that this works after macro expansion.
3127         Problem reported for gzip by Steven M. Schweda in
3128         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3129
3130 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3131
3132         getloadavg: clean out old Emacs and Autoconf cruft
3133         See Glenn Morris in <http://bugs.gnu.org/11905>.
3134         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3135         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3136         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3137         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3138
3139 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3140
3141         bootstrap: let warn be like tests/init.sh's warn_
3142         Reported by Jim Meyering.
3143         * build-aux/bootstrap (warn): Remove, replaced by...
3144         (warnf_, warn_): these.
3145         Adjust callers.
3146         Shorten messages that no longer fit in 80 columns.
3147
3148 2012-07-09  Bruno Haible  <bruno@clisp.org>
3149
3150         getopt: Simplify after Emacs changed.
3151         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3152         (gl_GETOPT_IFELSE): Remove macro.
3153
3154 2012-07-09  Jim Meyering  <meyering@redhat.com>
3155
3156         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3157         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3158
3159         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3160         Bugs in both of those conspired to make the
3161         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3162         _sc_search_regexp's handling of non-empty $in_files would filter
3163         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3164         choice of in_files value meant there would be no match in most
3165         projects, due to the presence of two or more Makefile.in files.
3166         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3167         Fix a bug in how a non-empty $$in_files was processed:
3168         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3169         in spite of the name, it's a regexp, not a list of file names.
3170
3171 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3172
3173         getloadavg, getopt: fix commentary re configure.in
3174         Autoconf is deprecating the name 'configure.in', so change it to
3175         to the new name 'configure.ac' in a couple of places.
3176         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3177         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3178         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3179         Emacs has renamed it to configure.ac, and it no longer refers
3180         to these macros anyway.
3181
3182         timespec: mark functions with const attributes
3183         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3184         Mark with _GL_ATTRIBUTE_CONST.
3185
3186 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3187
3188         canonicalize[-lgpl]: handle "guessing" values when cross-building
3189         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3190         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3191         matches "*yes" instead of just "yes".  Regression introduced in commit
3192         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3193
3194 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3195             Bruno Haible  <bruno@clisp.org>
3196
3197         canonicalize: make the right guess when cross-compiling to GNU
3198         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3199         determine whether cross-compiling to glibc systems, so as to
3200         include GNU/Hurd.
3201
3202 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3203
3204         timespec-sub: avoid duplicate include
3205         * lib/timespec-sub.c: Do not include <config.h> twice.
3206         Reported by Juanma Barranquero.
3207
3208 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3209
3210         bootstrap: use a more consistent error reporting scheme
3211         * build-aux/bootstrap (warn, die): New.
3212         Use them.
3213
3214 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3215
3216         sys_time: allow too-wide tv_sec
3217         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3218         timeval even if tv_sec is wider than time_t.  This allows
3219         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3220         as without this patch gnulib replaces struct timeval
3221         and OpenBSD futimes therefore has a type mismatch.
3222         * doc/posix-headers/sys_time.texi: Mention this.
3223
3224         pthread: check for both pthread_create and pthread_join
3225         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3226         alter the check so that it tests for both pthread_create and
3227         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3228         Suggested by Bruno Haible and Richard Yao in
3229         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3230
3231         parse-datetime: doc tuneup
3232         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3233         spacing issues.
3234
3235 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3236
3237         do-release-commit-and-tag: fix the previous commit
3238         * build-aux/do-release-commit-and-tag: Actually the test was right,
3239         but the comment and the error message were misleading.
3240         Fix comment, and improve error message.
3241         Perform check first, so that NEWS is not modified uselessly.
3242
3243         do-release-commit-and-tag: fix typo
3244         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3245         _not_ start with a stub.
3246
3247 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3248
3249         pthread: check for pthread_create, not pthread_join
3250         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3251         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3252         pthread_join in libc.  I hope this removes the need for all the
3253         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3254         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3255
3256 2012-07-04  Jim Meyering  <meyering@redhat.com>
3257
3258         parse-datetime: fix failure to diagnose invalid input
3259         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3260         rather than diagnosing the invalid input.  Now it reports this:
3261         date: invalid date '\260'
3262         * lib/parse-datetime.y (to_uchar): Define.
3263         (yylex): Don't sign-extend "other" bytes.
3264         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3265         Thanks to Bruno Haible for the patch to this file.
3266         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3267         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3268
3269 2012-07-03  Jim Meyering  <meyering@redhat.com>
3270
3271         bootstrap: do not require now-removed build-aux/missing
3272         Now that build-aux/missing is, er, missing, bootstrap would
3273         silently fail.
3274         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3275         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3276         no longer part of gnulib.
3277         Diagnose the failure.
3278
3279 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3280
3281         alloca: add support for HP NonStop TNS/E native
3282         * lib/alloca.in.h (alloca): Support the new host.
3283         From a suggestion by Joachim Schmitz in
3284         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3285
3286 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3287
3288         fsusage: remove code not needed on non GNU/Linux systems.
3289
3290         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3291         Don't include headers no longer needed in this case.
3292         * lib/fsusage.c [STAT_STATVFS &&
3293         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3294         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3295
3296 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3297
3298         fsusage: include files needed for glibc 2.6 fallback
3299         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3300         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3301         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3302         Problem reported by Ludovic Courtès in
3303         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3304
3305         fsusage: avoid needless check on GNU/Linux
3306         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3307         on GNU/Linux systems, since it can't possibly work.
3308
3309 2012-07-01  Bruno Haible  <bruno@clisp.org>
3310
3311         log: Fix an autoconf >= 2.64 warning.
3312         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3313         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3314
3315 2012-06-28  Bruno Haible  <bruno@clisp.org>
3316
3317         log10f: Fix possible configuration problem.
3318         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3319         $LOGF_LIBM.
3320         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3321
3322 2012-06-28  Bruno Haible  <bruno@clisp.org>
3323
3324         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3325         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3326         not gl_cv_func_unlink_works.
3327         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3328
3329 2012-06-27  Eric Blake  <eblake@redhat.com>
3330
3331         config: drop scripts that automake says are not independent
3332         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3333         * build-aux/elisp-comp: Delete.
3334         * build-aux/missing: Likewise.
3335         * build-aux/ylwrap: Likewise.
3336         * modules/elisp-comp: Likewise.
3337         * MODULES.html.sh: Drop mention of elisp-comp.
3338         * NEWS: Mention this.
3339
3340 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3341
3342         root-uid: new module
3343         This is for portability to Tandem's NonStop Kernel.
3344         * lib/root-uid.h, modules/root-uid: New files.
3345         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3346         * lib/write-any-file.c, tests/test-sethostname2.c:
3347         Include "root-uid.h".
3348         * lib/euidaccess.c (euidaccess):
3349         * lib/pt_chown.c (main):
3350         * lib/unlinkdir.c (cannot_unlink_dir):
3351         * lib/write-any-file.c (can_write_any_file):
3352         * m4/mknod.m4 (gl_FUNC_MKNOD):
3353         * tests/test-sethostname2.c (geteuid, main):
3354         Don't assume ROOT_UID == 0.
3355         * modules/euidaccess (Depends-on):
3356         * modules/pt_chown (Depends-on):
3357         * modules/sethostname-tests (Depends-on):
3358         * modules/unlinkdir (Depends-on):
3359         * modules/write-any-file (Depends-on):
3360         Add root-uid.
3361
3362         regex: use locale-independent comparison for codeset name
3363         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3364         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3365         for codeset name.
3366         * lib/regex_internal.h: Do not include <strings.h>, since we
3367         no longer use strcasecmp.
3368         * modules/regex (Depends-on): Remove strcase.
3369
3370 2012-06-23  Bruno Haible  <bruno@clisp.org>
3371
3372         getopt-posix: No longer guarantee that option processing is resettable.
3373         * doc/posix-functions/getopt.texi: Drop description of problem with
3374         internal state. Fix info about mingw and msvc9.
3375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3376         option processing by getopt(). Run three test programs instead of one.
3377         Simplify cross-compilation guess.
3378         * NEWS: Mention the change.
3379         Reported by Rich Felker <dalias@aerifal.cx>.
3380
3381 2012-06-26  Bruno Haible  <bruno@clisp.org>
3382
3383         argp, regex: Ensure strcasecmp gets declared.
3384         * lib/argp-help.c: Include <strings.h>.
3385         * lib/regex_internal.h: Likewise.
3386         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3387
3388 2012-06-24  Bruno Haible  <bruno@clisp.org>
3389
3390         ptsname_r: Make it consistent with ptsname on AIX.
3391         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3392         implementation as for OSF/1.
3393         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3394         a pty master.
3395
3396         ptsname_r: Make it consistent with ptsname on OSF/1.
3397         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3398         OSF/1.
3399
3400 2012-06-24  Bruno Haible  <bruno@clisp.org>
3401
3402         ttyname_r: Fix result on OSF/1, Solaris.
3403         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3404
3405 2012-06-24  Bruno Haible  <bruno@clisp.org>
3406
3407         ptsname_r: Add support for Solaris.
3408         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3409         Solaris.
3410
3411         ptsname_r: Fix test failure on native Windows.
3412         * modules/ptsname_r (Depends-on): Add isatty.
3413
3414         ptsname_r: Fix test failures on IRIX, Solaris.
3415         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3416         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3417         accordingly.
3418         * lib/ptsname_r.c: Include <fcntl.h>.
3419         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3420         set errno if fd is invalid.
3421         * tests/test-isatty.c (main): Update comments.
3422
3423 2012-06-24  Bruno Haible  <bruno@clisp.org>
3424
3425         ptsname test: Extend test.
3426         * tests/test-ptsname.c: Include <errno.h>.
3427         (main): Test behaviour with invalid file descriptor.
3428
3429 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3430
3431         time: fix obsolete comment
3432         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3433         reference to HAVE_STRUCT_TIMESPEC in comment.
3434
3435 2012-06-23  Bruno Haible  <bruno@clisp.org>
3436
3437         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3439         does not handle abbreviated long options with equivalent
3440         disambiguations, set gl_replace_getopt to yes.
3441         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3442
3443 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3444
3445         time_r: fix typo that always overrode localtime_r decl
3446         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3447         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3448         not in a standard include.
3449
3450 2012-06-22  Bruno Haible  <bruno@clisp.org>
3451
3452         Write "Mac OS X" instead of "MacOS X".
3453         * README: Write "Mac OS X" instead of "MacOS X".
3454         * build-aux/bootstrap: Likewise.
3455         * build-aux/install-reloc: Likewise.
3456         * lib/acl-internal.h: Likewise.
3457         * lib/acl_entries.c: Likewise.
3458         * lib/argp-ba.c: Likewise.
3459         * lib/argp-pv.c: Likewise.
3460         * lib/config.charset: Likewise.
3461         * lib/copy-acl.c: Likewise.
3462         * lib/csharpexec.c: Likewise.
3463         * lib/euidaccess.c: Likewise.
3464         * lib/fbufmode.c: Likewise.
3465         * lib/fflush.c: Likewise.
3466         * lib/file-has-acl.c: Likewise.
3467         * lib/filemode.h: Likewise.
3468         * lib/fpurge.c: Likewise.
3469         * lib/freadable.c: Likewise.
3470         * lib/freadahead.c: Likewise.
3471         * lib/freading.c: Likewise.
3472         * lib/freadptr.c: Likewise.
3473         * lib/freadseek.c: Likewise.
3474         * lib/fseeko.c: Likewise.
3475         * lib/fseterr.c: Likewise.
3476         * lib/fsusage.c: Likewise.
3477         * lib/fwritable.c: Likewise.
3478         * lib/fwriting.c: Likewise.
3479         * lib/get-rusage-as.c: Likewise.
3480         * lib/get-rusage-data.c: Likewise.
3481         * lib/getdomainname.c: Likewise.
3482         * lib/idpriv-drop.c: Likewise.
3483         * lib/idpriv-droptemp.c: Likewise.
3484         * lib/localcharset.c: Likewise.
3485         * lib/locale.in.h: Likewise.
3486         * lib/localename.c: Likewise.
3487         * lib/mbsrtowcs-state.c: Likewise.
3488         * lib/nproc.c: Likewise.
3489         * lib/passfd.c: Likewise.
3490         * lib/posix_openpt.c: Likewise.
3491         * lib/printf-parse.c: Likewise.
3492         * lib/progreloc.c: Likewise.
3493         * lib/safe-read.h: Likewise.
3494         * lib/safe-write.h: Likewise.
3495         * lib/sched.in.h: Likewise.
3496         * lib/set-mode-acl.c: Likewise.
3497         * lib/signal.in.h: Likewise.
3498         * lib/stdint.in.h: Likewise.
3499         * lib/stdio-impl.h: Likewise.
3500         * lib/stdlib.in.h: Likewise.
3501         * lib/strtod.c: Likewise.
3502         * lib/sys_select.in.h: Likewise.
3503         * lib/tcgetsid.c: Likewise.
3504         * lib/unistd.in.h: Likewise.
3505         * lib/unlockpt.c: Likewise.
3506         * lib/vasnprintf.c: Likewise.
3507         * lib/vma-iter.c: Likewise.
3508         * lib/wcsrtombs-state.c: Likewise.
3509         * m4/acl.m4: Likewise.
3510         * m4/acosl.m4: Likewise.
3511         * m4/asinl.m4: Likewise.
3512         * m4/atanl.m4: Likewise.
3513         * m4/c-stack.m4: Likewise.
3514         * m4/cosl.m4: Likewise.
3515         * m4/expl.m4: Likewise.
3516         * m4/extensions.m4: Likewise.
3517         * m4/fdatasync.m4: Likewise.
3518         * m4/fmal.m4: Likewise.
3519         * m4/frexp.m4: Likewise.
3520         * m4/frexpf.m4: Likewise.
3521         * m4/frexpl.m4: Likewise.
3522         * m4/fsusage.m4: Likewise.
3523         * m4/getdomainname.m4: Likewise.
3524         * m4/getloadavg.m4: Likewise.
3525         * m4/getopt.m4: Likewise.
3526         * m4/gettext.m4: Likewise.
3527         * m4/gnulib-common.m4: Likewise.
3528         * m4/intdiv0.m4: Likewise.
3529         * m4/intlmacosx.m4: Likewise.
3530         * m4/largefile.m4: Likewise.
3531         * m4/ldexpl.m4: Likewise.
3532         * m4/link-follow.m4: Likewise.
3533         * m4/locale-ar.m4: Likewise.
3534         * m4/locale-fr.m4: Likewise.
3535         * m4/locale-ja.m4: Likewise.
3536         * m4/locale-tr.m4: Likewise.
3537         * m4/locale-zh.m4: Likewise.
3538         * m4/locale_h.m4: Likewise.
3539         * m4/lock.m4: Likewise.
3540         * m4/logl.m4: Likewise.
3541         * m4/mathfunc.m4: Likewise.
3542         * m4/minus-zero.m4: Likewise.
3543         * m4/mktime.m4: Likewise.
3544         * m4/mmap-anon.m4: Likewise.
3545         * m4/multiarch.m4: Likewise.
3546         * m4/nanosleep.m4: Likewise.
3547         * m4/nocrash.m4: Likewise.
3548         * m4/poll.m4: Likewise.
3549         * m4/printf-frexpl.m4: Likewise.
3550         * m4/printf.m4: Likewise.
3551         * m4/signbit.m4: Likewise.
3552         * m4/sinl.m4: Likewise.
3553         * m4/sqrtl.m4: Likewise.
3554         * m4/strerror_r.m4: Likewise.
3555         * m4/tanl.m4: Likewise.
3556         * m4/threadlib.m4: Likewise.
3557         * m4/ttyname_r.m4: Likewise.
3558         * m4/unlink.m4: Likewise.
3559         * m4/visibility.m4: Likewise.
3560         * m4/wcwidth.m4: Likewise.
3561         * tests/minus-zero.h: Likewise.
3562         * tests/test-alloca-opt.c: Likewise.
3563         * tests/test-copy-acl.sh: Likewise.
3564         * tests/test-copy-file.sh: Likewise.
3565         * tests/test-fdatasync.c: Likewise.
3566         * tests/test-file-has-acl.sh: Likewise.
3567         * tests/test-flock.c: Likewise.
3568         * tests/test-fsync.c: Likewise.
3569         * tests/test-localename.c: Likewise.
3570         * tests/test-malloca.c: Likewise.
3571         * tests/test-nonblocking-pipe.h: Likewise.
3572         * tests/test-nonblocking-socket.h: Likewise.
3573         * tests/test-openpty.c: Likewise.
3574         * tests/test-posix_openpt.c: Likewise.
3575         * tests/test-ptsname.c: Likewise.
3576         * tests/test-ptsname_r.c: Likewise.
3577         * tests/test-sameacls.c: Likewise.
3578         * tests/test-select.h: Likewise.
3579         * tests/test-set-mode-acl.sh: Likewise.
3580         * tests/test-snprintf-posix.h: Likewise.
3581         * tests/test-sprintf-posix.h: Likewise.
3582         * tests/test-strtod.c: Likewise.
3583         * tests/test-time.c: Likewise.
3584         * tests/test-vasnprintf-posix.c: Likewise.
3585         * tests/test-vasprintf-posix.c: Likewise.
3586         * doc/acl-resources.txt: Likewise.
3587         * doc/**/*.texi: Likewise.
3588         Reported by Max Horn <max@quendi.de>.
3589
3590 2012-06-22  Bruno Haible  <bruno@clisp.org>
3591
3592         grantpt: Relax requirement regarding invalid file descriptors.
3593         * lib/grantpt.c: Don't include <fcntl.h>.
3594         (grantpt): Don't verify the validity of the file descriptor.
3595         * modules/grantpt (Depends-on): Remove fcntl-h.
3596         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3597         file descriptors.
3598         * doc/posix-functions/grantpt.texi: Document more platforms on which
3599         grantpt succeeds for invalid file descriptors.
3600         Reported by Rich Felker <dalias@aerifal.cx>.
3601
3602 2012-06-22  Bruno Haible  <bruno@clisp.org>
3603
3604         fbufmode test: Don't test unportable behaviour.
3605         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3606         (main): Invoke it three times.
3607         Reported by Szabolcs Nagy <nsz@port70.net>
3608         and Rich Felker <dalias@aerifal.cx>.
3609
3610 2012-06-21  Bruno Haible  <bruno@clisp.org>
3611
3612         gnulib-tool: Refactor inctests variable.
3613         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3614         (func_modules_transitive_closure,
3615         func_modules_transitive_closure_separately,
3616         func_import, func_create_testdir): Update.
3617
3618         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3619         * gnulib-tool: Accept option --without-tests.
3620         (func_usage): Document --without-tests option. Rearrange.
3621         (inctests): Normalize according to the mode.
3622         * NEWS: Mention the change.
3623         Suggested by Simon Josefsson.
3624
3625 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3626
3627         parse-duration test: Avoid spurious output.
3628         * tests/test-parse-duration.sh: Reindent with leading tabs.
3629
3630 2012-06-21  Jim Meyering  <meyering@redhat.com>
3631
3632         maint: disable the strncpy prohibition
3633         * cfg.mk: Do not prohibit strncpy here.
3634
3635 2012-06-21  Bruno Haible  <bruno@clisp.org>
3636
3637         nonblocking: Avoid compilation error on mingw64.
3638         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3639         fscanf.
3640         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3641         * modules/vfscanf (configure.ac): Likewise.
3642         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3643         definition only if stdio.h has prepared it.
3644         Reported by Daniel P. Berrange <berrange@redhat.com>.
3645
3646 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3647
3648         gnulib-tool: Use readlink if it is available.
3649         * gnulib-tool (func_readlink): Choose function more appropriately.
3650
3651 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3652
3653         posixtm-tests: port to buggy compiler
3654         Problem reported by Simon Josefsson in
3655         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3656         * modules/posixtm-tests (Depends-on): Add stdint.
3657         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3658         Now of type int_least64_t, not int64_t, both because that's
3659         what INT64_C returns and because int_least64_t works even
3660         on 72-bit hosts.
3661         (T): Use INT64_C on constants outside the traditional int range,
3662         to work around compiler bug noted by Simon.
3663
3664         mktime: fix integer overflow in 'configure'-time test
3665         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3666         after integer overflow.  Problem reported by Rich Felker in
3667         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3668         Also, don't look for further instances of a bug if we've already
3669         found one instance; this helps 'configure' run faster.
3670
3671 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3672
3673         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3674         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3675         GetVersionEx correctly.
3676         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3677
3678 2012-06-20  Bruno Haible  <bruno@clisp.org>
3679
3680         fdopen: Allow implementations that don't reject invalid fd arguments.
3681         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3682         succeeds.
3683         Reported by Rich Felker <dalias@aerifal.cx>.
3684
3685 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3686
3687         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3688         bring in LIBINTL.
3689
3690 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3691
3692         init.sh: do not rely on autoupated PWD
3693         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3694         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3695         Although Nelson's bug was not necessarily fixed by this patch,
3696         it seems wise to make the change for safety.
3697         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3698         automagically after 'cd'; this is not reliable on older shells.
3699         (setup_): Fail if we cannot cd to temporary directory.
3700
3701 2012-06-19  Bruno Haible  <bruno@clisp.org>
3702
3703         stat, fstat: Avoid warnings on mingw64.
3704         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3705         redefining.
3706         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3707         Reported by Daniel P. Berrange <berrange@redhat.com>.
3708
3709 2012-06-19  Bruno Haible  <bruno@clisp.org>
3710
3711         stdioext: Add support for musl libc.
3712
3713         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3714         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3715
3716         * m4/fseterr.m4: New file.
3717         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3718         function exists.
3719         * modules/fseterr (Files): Add m4/fseterr.m4.
3720         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3721         __fseterr does not exist.
3722         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3723
3724         * lib/freadable.h: Update comment.
3725
3726         * lib/fwritable.h: Update comment.
3727
3728         * lib/freading.h: Update comment.
3729
3730         * lib/fwriting.h: Update comment.
3731
3732         * m4/freadahead.m4: New file.
3733         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3734         that function exists.
3735         * modules/freadahead (Files): Add m4/freadahead.m4.
3736         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3737         __freadahead does not exist.
3738         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3739
3740         * m4/freadptr.m4: New file.
3741         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3742         function exists.
3743         * modules/freadptr (Files): Add m4/freadptr.m4.
3744         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3745         __freadptr does not exist.
3746         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3747
3748         * m4/freadseek.m4: New file.
3749         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3750         exists.
3751         * modules/freadseek (Files): Add m4/freadseek.m4.
3752         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3753
3754         * lib/fpurge.c (fpurge): Update comment.
3755
3756         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3757
3758 2012-06-19  Bruno Haible  <bruno@clisp.org>
3759
3760         *printf-posix: Put more info into config.log.
3761         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3762         exit code into config.log.
3763
3764 2012-06-19  Bruno Haible  <bruno@clisp.org>
3765
3766         getopt-gnu: Fix exit code overflow in autoconf test.
3767         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3768         to keep them below < 128.
3769
3770 2012-06-17  Jim Meyering  <meyering@redhat.com>
3771
3772         maint.mk: fix typo in code to derive GPG key at release time
3773         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3774
3775 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3776
3777         regex: avoid warning when pointers are not long
3778         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3779         and uintptr_t, not long, for portability to hosts where pointers and
3780         long have different sizes.  Issue noted by Daniel P. Berrange in
3781         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3782         and fix suggested by Bruno Haible in
3783         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3784
3785 2012-06-17  Bruno Haible  <bruno@clisp.org>
3786
3787         dummy: Relicense into the public domain.
3788         * modules/dummy (License): Set to "public domain".
3789         Suggested by Reuben Thomas.
3790
3791 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3792
3793         announce-gen: VPATH issues
3794         * build-aux/announce-gen (--srcdir): New option, used to trim the
3795         $srcdir part of the path from $builddir to NEWS.
3796         * top/maint.mk (announcement): Adjust.
3797
3798 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3799
3800         gnu-web-doc-update: VPATH builds
3801         * build-aux/gnu-web-doc-update (--builddir): New option.
3802         Revamp the handling of options.
3803         Prefer $(...) to `...`.
3804         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3805         the template, and it is GNU mktemp specific.
3806         Prefer set -e to long series of &&.
3807         Restore the initial git branch, not "master".
3808         Properly initialize submodules (don't rely only on bootstrap).
3809         Do not reconfigure blindly, use config.status.
3810         * top/README-release: Update instructions for gnu-web-doc-update.
3811
3812 2012-06-11  Jim Meyering  <meyering@redhat.com>
3813
3814         maint.mk: revert most of the previous change re "all these"
3815         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3816         For rationale, see the discussion at
3817         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3818
3819 2012-06-10  Karl Berry  <karl@gnu.org>
3820
3821         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3822
3823         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3824
3825 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3826
3827         parse-duration: Relicense under LGPLv2+.
3828         * modules/parse-duration (License): Change to LGPLv2+.
3829
3830 2012-06-10  Jim Meyering  <meyering@redhat.com>
3831
3832         maint.mk: prohibit common grammar error: "all these"
3833         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3834         the list of prohibited word sequences.  It should be "all of these".
3835         * lib/tempname.c (__gen_tempname): Fix one of them.
3836
3837 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3838
3839         do-release-commit-and-tag: support VPATH builds
3840         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3841         (noteworthy): Defined earlier to factor its value.
3842         (noteworthy_stub): New.
3843         Use it to factor.
3844         (help_version): Split into...
3845         (help, version): these.
3846         Adjust the option processing part.
3847         Support "--option=value" in addition to "--option value".
3848         (builddir): New.
3849         (--builddir): New option.
3850         * top/README-release: Document this.
3851         Reword slightly so that the reader cannot understand that he
3852         has to do these steps before calling do-release-commit-and-tag.
3853
3854 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3855
3856         readme-release: also require announce-gen and maintainer-makefile
3857         * modules/readme-release (Depends-on): here.
3858         * modules/announce-gen, modules/do-release-commit-and-tag,
3859         modules/gnu-web-doc-update, modules/maintainer-makefile
3860         (Description): Point to readme-release.
3861
3862 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3863
3864         maint.mk: fix VPATH issues.
3865         * top/maint.mk (news-check): GNU Make understand $< very well.
3866         (release-prep): NEWS is in $(srcdir).
3867
3868 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3869
3870         readme-release: require the promoted modules.
3871         * modules/readme-release (Depends-on): Add
3872         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3873         in this text.
3874
3875 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3876             Bruno Haible  <bruno@clisp.org>
3877
3878         error, strerror-override: Support mingw64 from Fedora 17.
3879         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3880         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3881         EINPROGRESS.
3882         * lib/strerror-override.h (strerror_override): Test it.
3883         * lib/strerror-override.c (strerror_override): Likewise.
3884         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3885
3886 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3887             Bruno Haible  <bruno@clisp.org>
3888
3889         error, strerror-override: Support mingw64 from Fedora 17.
3890         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3891         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3892         * lib/strerror-override.h (strerror_override): Test it.
3893         * lib/strerror-override.c (strerror_override): Likewise.
3894
3895 2012-06-03  Bruno Haible  <bruno@clisp.org>
3896
3897         error, strerror-override: Support new errno values from POSIX:2008.
3898         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3899         ENOTRECOVERABLE.
3900         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3901         platforms.
3902         * lib/strerror-override.c (strerror_override): Conditionalize the
3903         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3904         * lib/strerror-override.h (strerror_override): Declare also if
3905         GNULIB_defined_EOWNERDEAD is defined.
3906         * tests/test-errno.c (e130, e131): New variables.
3907         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3908         ENOTRECOVERABLE.
3909         Reported by Paolo Bonzini.
3910
3911 2012-05-31  Jim Meyering  <meyering@redhat.com>
3912
3913         savewd: add missing dependency on sys_wait module
3914         * modules/savewd (Depends-on): Add sys_wait, needed at least
3915         for MSVC.  Report and suggested change by Michael Goffioul.
3916
3917 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3918
3919         system-quote-tests: port to CentOS 5
3920         Problem reported by Tom G. Christensen in
3921         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3922         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3923
3924 2012-05-29  Jim Meyering  <meyering@redhat.com>
3925
3926         maint: fix typos in comments and ChangeLog
3927         Culprits identified and fixed mostly automatically using these commands:
3928         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3929         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3930         using http://github.com/lyda/misspell-check
3931         * ChangeLog: Fix typos.
3932         * doc/solaris-versions: Likewise.
3933         * lib/regexec.c (re_search_stub): Likewise.
3934         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3935
3936 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3937
3938         manywarnings: remove duplicate -Wmultichar entry
3939         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3940         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3941         so keep the entry marked as documented.
3942
3943 2012-05-27  Karl Berry  <karl@gnu.org>
3944
3945         * config/srclist.txt (mktime.c): remove last libc sync,
3946         perhaps just temporarily.
3947
3948 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3949
3950         regex: don't assume uint64_t or uint32_t
3951         * lib/regcomp.c (init_word_char): Don't assume that the types
3952         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3953         them, and on some 32-bit compilers there is no uint64_t.
3954         Problem reported by Gianluigi Tiesi in
3955         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3956
3957 2012-05-25  Jim Meyering  <meyering@redhat.com>
3958
3959         maint.mk: add strncpy-prohibiting syntax-check rule
3960         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3961
3962 2012-05-24  Jim Meyering  <meyering@redhat.com>
3963
3964         maint.mk: compute $(gpg_key_ID) more portably
3965         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3966         That use of sed is not portable to some fringe systems.
3967         Reported by Paul Eggert in
3968         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3969
3970 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3971
3972         mktime: sync from glibc
3973         * config/srclist.txt: Uncomment mktime.c.
3974         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3975         First, indent with tabs, since glibc uses tabs and doesn't want to
3976         change and we'd rather be identical to glibc.  Also, two small
3977         coding changes:
3978         (isdst_differ): Use &&, not &, as && is the usual style.
3979         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3980         for clarity.
3981
3982 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3983
3984         announce-gen: du -h is more portable than du --human
3985         * build-aux/announce-gen (sizes): Invoke du with -h instead
3986         of --human.  Accept leading white space in its output.
3987
3988 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3989
3990         announce-gen: Improve diagnostics.
3991         * build-aux/announce-gen: When parsing command line options,
3992         prefer "announce-gen: option --release-type requires an argument"
3993         to "Option release-type requires an argument".
3994
3995 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3996
3997         maint.mk: gpg_key_ID: use sed more portably
3998         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3999         the closing brace.
4000         (refresh-po): Fuse two sed invocations into one.
4001
4002 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4003
4004         gitlog-to-changelog: support the log message format used in Bison.
4005         * build-aux/gitlog-to-changelog: Support --strip-tab and
4006         --strip-cherry-picked.
4007
4008 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4009
4010         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4011         the rest of the current time slice to another thread in the current
4012         process. So if the thread that feeds the file decscriptor we're
4013         polling is not in the current process, we get busy-waiting.
4014         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4015         Patch from Theodore Leblond.
4016         * lib/select.c: Split polling out of the loop that sets the output
4017         fd_sets.  Check for zero result and loop if the wait timeout is
4018         infinite.
4019
4020 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4021
4022         select: Fix build error on IRIX 6.5.
4023         * lib/select.c: Include stddef.h for NULL.
4024
4025 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4026
4027         gc: fix libgcrypt detection on older machines.
4028         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4029         copyright years because the file has been distributed every year
4030         since it was created.
4031
4032 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4033
4034         crypto: fix bug in large buffer handling
4035         Problem reported by Serge Belyshev for glibc in
4036         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4037         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4038         * lib/md4.c (md4_process_block):
4039         * lib/md5.c (md5_process_block):
4040         * lib/sha1.c (sha1_process_block):
4041         * lib/sha256.c (sha256_process_block):
4042         Don't assume the buffer length is less than 2**32.
4043         * lib/sha512.c (sha512_process_block): Likewise.
4044         Here, the bug is present only in the rare case where the host does
4045         not support uint64_t or where size_t is wider than 64 bits.
4046         Use u64size to work around the problems.
4047         * lib/u64.h (u64size): New macro.
4048
4049 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4050
4051         fsusage: fix block size returned on older Linux 2.6
4052
4053         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4054         which is available since Linux 2.6.
4055         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4056         when the member is available so it can be used as a fallback.
4057         * doc/posix-functions/statvfs.texi: Mention the hang issue
4058         on Linux < 2.6.36.
4059
4060 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4061
4062         bootstrap: suppress stderr chatter
4063         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4064         Omit unnecessary chatter to stderr.  The main program chatter
4065         was there only inadvertantly.
4066
4067         bootstrap: .gitignore files created by autopoint, libtool
4068         I ran into this problem when bootstrapping the latest diffutils.
4069         After './bootstrap', 'git status' reported lots of untracked files
4070         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4071         autopoint and do not need to be version-controlled.
4072         * build-aux/bootstrap: Put into .gitignore the files that
4073         autopoint and libtool create, by keeping track of files that exist
4074         after but not before these programs are run.
4075         (version_controlled_file): Move up.  2nd arg is now full file
4076         name, not base name; this is more convenient.  Put CVS at the end,
4077         as it's now somewhat deprecated.
4078
4079 2012-05-14  Jim Meyering  <meyering@redhat.com>
4080
4081         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4082         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4083         definition.  Reported by Bruno Haible.
4084
4085 2012-05-13  Bruno Haible  <bruno@clisp.org>
4086             Paul Eggert  <eggert@cs.ucla.edu>
4087
4088         binary-io: Define set_binary_mode function.
4089         * lib/binary-io.h (set_binary_mode): New function.
4090         (SET_BINARY): Define in terms of set_binary_mode.
4091         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4092         * tests/test-binary-io.c (main): Accept an argument, and test either
4093         set_binary_mode or SET_BINARY depending on the argument.
4094         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4095         argument. Clean up also t-bin-out0.tmp.
4096
4097 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4098
4099         bootstrap: take advantage of POSIX shell features
4100
4101         The 'bootstrap' script offered by Gnulib script already uses POSIX
4102         shell features (like $((...)) arithmetic expansions) that are not
4103         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4104         means that bootstrap must already be run using a proper POSIX shell,
4105         which will thus provide more features, like ${var#pattern} parameter
4106         expansion or inversion of a command exit status with '!'.  We can
4107         thus use these features to improve the clarity and the performances
4108         of the bootstrap script.
4109
4110         Suggested by Eric Blake.
4111
4112         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4113         of sed/expr plus command substitutions, to save some forks.  While
4114         we are at it, prefer the POSIX $(...) form of command substitution,
4115         rather than the legacy form `...` (since the former is visually
4116         clearer and interacts better with quoting), and prefer the idiom:
4117           "if ! CMD; then ACTION ..."
4118         over the idiom:
4119           "if CMD; then :; else ACTION ..."
4120         which was required by legacy Bourne shells not supporting '!'.
4121
4122 2012-05-12  Bruno Haible  <bruno@clisp.org>
4123
4124         system-quote: Add more comments.
4125         * lib/system-quote.h: Add more comments about wilcards and limitations.
4126         Suggested by Eli Zaretskii <eliz@gnu.org>.
4127
4128         sh-quote, system-quote: Add comments about wildcards.
4129         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4130         * lib/system-quote.h: Likewise.
4131         Reported by Eli Zaretskii <eliz@gnu.org>.
4132
4133 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4134
4135         fsusage: check for GNU/Linux statvfs problem dynamically
4136         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4137         Define STAT_STATFS2_BSIZE too, since in this case the code now
4138         checks dynamically whether statvfs is reliable, falling back on
4139         Linux-style statfs otherwise.
4140         (statvfs_works): New function, for dynamically testing statvfs.
4141         (get_fs_usage) [STAT_STATVFS]: Use it.
4142         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4143         statvfs on GNU/Linux hosts, since it's now done dynamically.
4144
4145 2012-05-10  Bruno Haible  <bruno@clisp.org>
4146
4147         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4148         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4149         '?' character.
4150         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4151         * tests/test-system-quote-main.c (check_all): Check also strings like
4152         "??????????".
4153         Reported by Eli Zaretskii <eliz@gnu.org>.
4154
4155 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4156
4157         _Noreturn: port config.h to gcc -Wundef
4158         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4159         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4160         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4161
4162 2012-05-10  Bruno Haible  <bruno@clisp.org>
4163
4164         system-quote: Refactor.
4165         * lib/system-quote.h (system_quote_copy): Fix comment.
4166         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4167         New functions, extracted from system_quote_copy.
4168         (system_quote_length, system_quote_copy): Use these functions.
4169         Reported by Paul Eggert.
4170
4171 2012-05-08  Bruno Haible  <bruno@clisp.org>
4172
4173         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4174         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4175
4176 2012-05-08  Bruno Haible  <bruno@clisp.org>
4177
4178         Tests for module 'system-quote'.
4179         * modules/system-quote-tests: New file.
4180         * tests/test-system-quote.sh: New file.
4181         * tests/test-system-quote-main.c: New file.
4182         * tests/test-system-quote-child.c: New file.
4183
4184         New module 'system-quote'.
4185         * lib/system-quote.h: New file.
4186         * lib/system-quote.c: New file.
4187         * modules/system-quote: New file.
4188
4189 2012-05-08  Bruno Haible  <bruno@clisp.org>
4190
4191         sh-quote: Make C++ safe and allow multiple inclusion.
4192         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4193         declarations in extern "C".
4194
4195 2012-05-08  Bruno Haible  <bruno@clisp.org>
4196
4197         sh-quote tests: Make tests stricter.
4198         * tests/test-sh-quote.c (check_one): Check the return value of
4199         shell_quote_copy.
4200         (main): Check a string with a CR character. Check a string that
4201         contains UCHAR_MAX.
4202
4203 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4204
4205         warnings.m4: provide a means to specify the program to compile.
4206         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4207         (gl_WARN_ADD): here.
4208         Use gl_AS_VAR_APPEND.
4209         Support an argument to specify the program to compile.
4210         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4211         AC_SUBST the WARN_CFLAGS when they are used.
4212         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4213         leave this to gl_WARN_ADD.
4214
4215 2012-05-08  Eric Blake  <eblake@redhat.com>
4216
4217         doc: recommendations on gettext version
4218         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4219         choice between versions.
4220         * DEPENDENCIES (gettext): Cover both approaches.
4221
4222 2012-05-08  Jim Meyering  <meyering@redhat.com>
4223
4224         init.sh: explain why EXEEXT support uses aliases rather than functions
4225         * tests/init.sh: Add a comment.
4226
4227         init.sh: don't let bash aliases interfere with tests
4228         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4229         is bash.  This avoids problems for those who alias standard commands to
4230         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4231         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4232
4233 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4234
4235         stdint: be more consistent with glibc, SunOS libc
4236         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4237         (gl_int_fast16_t, gl_uint_fast16_t)
4238         (gl_int_fast32_t, gl_uint_fast32_t)
4239         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4240         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4241         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4242         Be consistent with glibc by default, and with SunOS 5.10 and later
4243         if __sun is defined.  This lessens the likelihood of clashes if
4244         code compiled for older hosts is combined with code compiled for
4245         newer ones.  Problem reported by Niels Möller in
4246         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4247
4248 2012-05-07  Eric Blake  <eblake@redhat.com>
4249
4250         isatty: relax license to LGPLv2+
4251         * modules/isatty (License): Relax license.
4252
4253 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4254
4255         stat-size: comment fix
4256         * lib/stat-size.h: Remove obsolete comment about indenting.
4257
4258 2012-05-06  Bruno Haible  <bruno@clisp.org>
4259
4260         Tests for module 'sh-quote'.
4261         * modules/sh-quote-tests: New file.
4262         * tests/test-sh-quote.c: New file.
4263
4264 2012-05-06  Bruno Haible  <bruno@clisp.org>
4265
4266         sh-quote: Improve shell_quote_argv's signature.
4267         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4268         * lib/sh-quote.c (shell_quote_argv): Likewise.
4269
4270 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4271
4272         stdint: document issues with int_fast8_t etc.
4273         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4274         stdint.h substitutes may define these types differently.  See
4275         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4276
4277 2012-05-05  Bruno Haible  <bruno@clisp.org>
4278
4279         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4281         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4282         or 'guessing no (mishandles large arguments)'.
4283
4284 2012-05-05  Bruno Haible  <bruno@clisp.org>
4285
4286         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4287         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4288         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4289         set gl_cv_func_link_follows_symlink to "guessing no".
4290
4291 2012-05-05  Bruno Haible  <bruno@clisp.org>
4292
4293         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4294         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4295         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4296         "guessing no".
4297         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4298
4299 2012-05-05  Bruno Haible  <bruno@clisp.org>
4300
4301         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4302         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4303         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4304         set gl_cv_struct_dirent_d_ino to "guessing yes".
4305
4306 2012-05-05  Bruno Haible  <bruno@clisp.org>
4307
4308         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4309         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4310         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4311         "guessing yes".
4312
4313 2012-05-05  Bruno Haible  <bruno@clisp.org>
4314
4315         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4316         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4317         compiling to a glibc system, set gl_cv_func_signbit and
4318         gl_cv_func_signbit_gcc to "guessing yes".
4319
4320 2012-05-05  Bruno Haible  <bruno@clisp.org>
4321
4322         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4323         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4324         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4325         to "guessing yes".
4326         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4327         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4328
4329 2012-05-05  Bruno Haible  <bruno@clisp.org>
4330
4331         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4332         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4333         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4334         gl_cv_func_realpath_works to "guessing yes".
4335
4336 2012-05-05  Bruno Haible  <bruno@clisp.org>
4337
4338         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4339         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4340         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4341
4342 2012-05-04  Bruno Haible  <bruno@clisp.org>
4343
4344         Tweak last commit.
4345         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4346         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4347
4348 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4349
4350         unistd_h: make it easier to avoid sys_types_h
4351         This is useful for Emacs, which has its own method of porting to
4352         Windows, and which therefore does not need the sys_types_h module.
4353         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4354         code moved here from gl_SYS_TYPES_H.
4355         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4356         using the code directly.
4357         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4358         gl_SYS_TYPES_H.
4359         * modules/sys_types (Files):
4360         * modules/unistd (Files): Add m4/off_t.m4.
4361
4362 2012-05-03  Bruno Haible  <bruno@clisp.org>
4363
4364         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4365         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4366         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4367         "guessing yes" or "guessing no".
4368         (gl_FUNC_LSTAT): Update.
4369         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4370         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4371         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4372
4373 2012-05-03  Bruno Haible  <bruno@clisp.org>
4374
4375         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4376         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4377         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4378         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4379         cross-compiling, choose the first alternative on glibc systems.
4380         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4381
4382 2012-05-03  Bruno Haible  <bruno@clisp.org>
4383
4384         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4385         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4386         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4387
4388 2012-05-03  Bruno Haible  <bruno@clisp.org>
4389
4390         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4391         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4392
4393 2012-05-03  Bruno Haible  <bruno@clisp.org>
4394
4395         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4396         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4397         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4398         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4399         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4400         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4401         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4402         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4403         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4404         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4405         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4406         gl_cv_func_chown_ctime_works to "guessing yes".
4407         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4408         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4409         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4410         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4411         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4412         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4413         compiling to glibc systems, set gl_cv_func_open_directory_works to
4414         "guessing yes".
4415         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4416         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4417         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4418         "guessing yes".
4419         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4420         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4421         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4422         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4423         "guessing yes".
4424         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4425         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4426         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4427         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4428         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4429         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4430         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4431         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4432         "guessing yes".
4433         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4434         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4435         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4436         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4437         "guessing yes".
4438         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4439         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4440         "guessing yes".
4441         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4442         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4443         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4444         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4445         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4446         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4447         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4448         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4449         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4450         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4451         "guessing yes".
4452         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4453         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4454         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4455         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4456         "guessing yes".
4457         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4458         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4459         "guessing yes".
4460         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4461         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4462         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4463         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4464         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4465         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4466         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4467         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4468         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4469         "guessing yes".
4470         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4471         compiling to glibc systems, set gl_cv_func_mknod_works to
4472         "guessing yes".
4473         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4474         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4475         "guessing yes".
4476         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4477         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4478         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4479         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4480         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4481         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4482         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4483         compiling to glibc systems, set gl_cv_func_svid_putenv to
4484         "guessing yes".
4485         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4486         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4487         "guessing yes".
4488         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4489         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4490         "guessing yes".
4491         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4492         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4493         to "guessing yes".
4494         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4495         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4496         to "guessing yes".
4497         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4498         compiling to glibc systems, set gl_cv_func_rmdir_works to
4499         "guessing yes".
4500         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4501         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4502         gl_cv_func_unlink_parent_fails to "guessing yes".
4503         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4504         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4505         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4506         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4507         gl_cv_func_rename_dest_works to "guessing yes".
4508         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4509         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4510         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4511         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4512         "guessing yes".
4513         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4514         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4515         "guessing yes".
4516         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4517         compiling to glibc systems, set gl_cv_func_setenv_works to
4518         "guessing yes".
4519         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4520         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4521         "guessing yes".
4522         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4523         compiling to glibc systems, set gl_cv_func_sleep_works to
4524         "guessing yes".
4525         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4526         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4527         "guessing yes".
4528         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4529         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4530         "guessing yes".
4531         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4532         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4533         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4534         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4535         "guessing yes".
4536         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4537         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4538         "guessing yes".
4539         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4540         compiling to glibc systems, set gl_cv_func_usleep_works to
4541         "guessing yes".
4542         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4543         compiling to glibc systems, set gl_cv_func_futimesat_works to
4544         "guessing yes".
4545
4546 2012-05-03  Bruno Haible  <bruno@clisp.org>
4547
4548         Say "guessing yes" or "guessing no" when cross-compiling.
4549         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4550         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4551         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4552         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4553         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4554         am_cv_func_working_getline to "guessing yes" or "guessing no".
4555         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4556         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4557         (gl_FUNC_MEMMEM): When cross-compiling, set
4558         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4559         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4560         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4562         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4563         "guessing no".
4564         (gl_FUNC_STRCASESTR): When cross-compiling, set
4565         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4566         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4567         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4568         (gl_FUNC_STRSTR): When cross-compiling, set
4569         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4570         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4571         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4572         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4573         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4574
4575 2012-05-01  Bruno Haible  <bruno@clisp.org>
4576
4577         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4578         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4579         * build-aux/reloc-ldflags: Likewise.
4580         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4581
4582 2012-05-01  Bruno Haible  <bruno@clisp.org>
4583
4584         gnulib-tool: Remove transitional code.
4585         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4586         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4587
4588 2012-05-01  Bruno Haible  <bruno@clisp.org>
4589
4590         getcwd: Fix misindentation.
4591         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4592
4593 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4594
4595         exclude: process exclude and include directives in order
4596         This restores the pre-2009 behavior, and is part of a fix of a
4597         grep bug reported by Quentin Arce in
4598         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4599         * lib/exclude.c (struct exclude): Remove 'tail' member.
4600         (new_exclude_segment): Prepend the new segment instead of appending.
4601         Return void, since that's now more convenient.
4602         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4603         (file_name_matches): Renamed from excluded_file_name_p.
4604         (file_pattern_matches, file_name_matches):
4605         Return true if the pattern matches, not if it excludes.
4606         All callers changed.
4607         (excluded_file_name): Process the list in reverse order;
4608         since the list is now reversed this restores the pre-2009 behavior.
4609         (add_exclude): Adjust to new reversed-order list.  Use local var
4610         rather than macro, for clarity.
4611         * tests/test-exclude7.sh: Adjust to corrected behavior.
4612
4613         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4614         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4615         it's not possible here.  Handle the case of \ at end of pattern
4616         without dumping core.
4617         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4618
4619         _Noreturn: future-proof non-GNU and non-MSVC compilers
4620         * build-aux/snippet/_Noreturn.h (_Noreturn):
4621         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4622         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4623         C11 or later.  This is more likely to work with random future C
4624         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4625         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4626
4627         exclude: handle wildcards with FNM_EXTMATCH
4628         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4629         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4630         comment that "has wildcards" really means "has or may have
4631         wildcards".  Simplify by avoiding the need to call strcspn.
4632
4633 2012-04-29  Bruno Haible  <bruno@clisp.org>
4634
4635         gnulib-tool: Fix list of authors.
4636         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4637
4638 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4639
4640         bootstrap: support Automake-NG in $buildreq
4641         * bootstrap (check_versions): Handle automake and aclocal from
4642         Automake-NG specially.  They can be specified as respectively
4643         the "automake-ng" and "aclocal-ng" requirements.
4644
4645 2012-04-25  Eric Blake  <eblake@redhat.com>
4646
4647         bootstrap: only force latest Makefile.in.in for gettext module
4648         * build-aux/bootstrap (with_gettext): Only install latest
4649         Makefile.in.in for projects requesting bleeding edge gettext.
4650
4651 2012-04-22  Bruno Haible  <bruno@clisp.org>
4652
4653         doc: Mention reason for replacement on glibc/Linux systems.
4654         * doc/posix-functions/dprintf.texi: Mention the problem with special
4655         'long double' values.
4656         * doc/posix-functions/fprintf.texi: Likewise.
4657         * doc/posix-functions/printf.texi: Likewise.
4658         * doc/posix-functions/snprintf.texi: Likewise.
4659         * doc/posix-functions/sprintf.texi: Likewise.
4660         * doc/posix-functions/vdprintf.texi: Likewise.
4661         * doc/posix-functions/vfprintf.texi: Likewise.
4662         * doc/posix-functions/vprintf.texi: Likewise.
4663         * doc/posix-functions/vsnprintf.texi: Likewise.
4664         * doc/posix-functions/vsprintf.texi: Likewise.
4665         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4666         platforms with F_DUPFD_CLOEXEC problems.
4667         * doc/posix-functions/glob.texi: Mention which platforms are affected
4668         by the problem with symbolic links.
4669         * doc/posix-functions/linkat.texi: Mention the problem with
4670         AT_SYMLINK_FOLLOW on Linux.
4671
4672 2012-04-22  Bruno Haible  <bruno@clisp.org>
4673
4674         pwrite: Don't replace on all platforms.
4675         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4676
4677 2012-04-22  Bruno Haible  <bruno@clisp.org>
4678
4679         rint* tests: Avoid gcc warnings.
4680         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4681         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4682         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4683
4684 2012-04-21  Bruno Haible  <bruno@clisp.org>
4685
4686         users.txt: Update.
4687         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4688         switched from CVS to git, bzr, or svn.
4689
4690 2012-04-21  Bruno Haible  <bruno@clisp.org>
4691
4692         Large File Support for native Windows platforms.
4693
4694         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4695         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4696
4697         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4698         type.
4699         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4700         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4701         * doc/posix-headers/sys_types.texi: Mention the effect of the
4702         'largefile' module.
4703
4704         * lib/fcntl.in.h: Add comments about off_t.
4705         * modules/fcntl-h (Depends-on): Add sys_types.
4706
4707         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4708         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4709         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4710         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4711         * modules/unistd (Depends-on): Add sys_types.
4712         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4713
4714         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4715         instead of lseek.
4716         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4717         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4718         * modules/lseek (Depends-on): Add sys_types.
4719
4720         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4721         msvc-nothrow.h.
4722         (SetFileSize): New function.
4723         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4724         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4725         if Large File Support is requested.
4726         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4727         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4728
4729         * lib/stdio.in.h: Add comments about off_t.
4730         * modules/stdio (Depends-on): Add sys_types.
4731
4732         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4733         instead of ftello.
4734         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4735         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4736         (gl_PREREQ_FTELLO): New macro.
4737         * modules/ftello (Depends-on): Add sys_types.
4738         (configure.ac): Incoke gl_PREREQ_FTELLO.
4739
4740         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4741         instead of fseeko.
4742         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4743         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4744         (gl_PREREQ_FSEEKO): New macro.
4745         * modules/fseeko (Depends-on): Add sys_types.
4746         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4747
4748         * lib/sys_stat.in.h: Add comments about off_t.
4749         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4750         64-bit integer for st_size in 'struct stat'.
4751         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4752         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4753         * modules/sys_stat (Depends-on): Add sys_types.
4754         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4755
4756         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4757         instead of stat or _stat.
4758
4759         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4760         'struct _stati64' instead of fstat and 'struct stat'.
4761         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4762         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4763
4764         Reported by Ray Satiro <raysatiro@yahoo.com>.
4765
4766 2012-04-19  Eric Blake  <eblake@redhat.com>
4767
4768         bootstrap: accommodate older libtool
4769         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4770         Reported by Daniel P. Berrange.
4771
4772 2012-04-19  Jim Meyering  <meyering@redhat.com>
4773
4774         announce-gen: avoid failure due to lack of Digest::SHA1
4775         Even with the preferred Digest::SHA available, this script
4776         would fail when the backup module, Digest::SHA1, was not installed.
4777         * build-aux/announce-gen: Quote the conditional use of "use".
4778         Reported by Reuben Thomas in:
4779         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4780
4781         bootstrap: don't let a user's CDPATH setting affect this script
4782         When CDPATH is set, cd will sometimes generate output.
4783         When "cd" is run in a subshell whose output matters, that
4784         surprising-to-some output can cause malfunction.
4785         Unsetting CDPATH turns off this shell "feature."
4786         * build-aux/bootstrap (CDPATH): Unset.
4787         Reported by Reuben Thomas in:
4788         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4789         and inspired by his patch here:
4790         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4791
4792 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4793         and Jim Meyering  <meyering@redhat.com>
4794
4795         maint.mk: catch "see @xref{}" and similar
4796         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4797         prohibit "See also @xref{", "Also see @pxref{", and similar.
4798
4799 2012-04-16  Jim Meyering  <meyering@redhat.com>
4800
4801         bootstrap: really use gnulib's po/Makefile.in.in
4802         * build-aux/bootstrap: Correct the source file name in previous change.
4803         Reported by Akim Demaille.
4804
4805         configmake: correct minor inconsistency in Makefile rule
4806         * modules/configmake (Makefile.am): All other rules like this one
4807         run the final "mv -f ..." in the same backslash-continued command
4808         as the one that does everything else.  This one put the mv -f ...
4809         command on a separate, non-backslash-continued line.
4810         Make it like the others.
4811
4812         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4813         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4814         the one from gettext.  Reported by Akim Demaille.
4815
4816 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4817
4818         Fix recursion of install-* into po directories.
4819         Bison's install-pdf bug reported by Hans Aberg at
4820         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4821         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4822         (install-info, install-pdf, install-ps): New targets.
4823
4824 2012-04-16  Jim Meyering  <meyering@redhat.com>
4825
4826         maint: avoid spurious "make sc_maint" failure
4827         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4828         exempt all *.class file names, for lib/javaversion.class.
4829
4830 2012-04-15  Bruno Haible  <bruno@clisp.org>
4831
4832         lseek: Make configure test independent of environment.
4833         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4834         Windows, we know that lseek() on pipes is broken; skip the runtime
4835         test.
4836
4837 2012-04-14  Bruno Haible  <bruno@clisp.org>
4838
4839         stat: Bypass buggy override in mingw64.
4840         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4841         * lib/stat.c (stat) [mingw64]: Define to _stat.
4842         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4843
4844 2012-04-14  Bruno Haible  <bruno@clisp.org>
4845
4846         pathmax: Fix compilation error on MSVC 9.
4847         * modules/pathmax (Depends-on): Add unistd.
4848
4849 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4850
4851         README: document pointer comparison assumption
4852         * README (Portability guidelines): Document assumption about
4853         pointer comparisons, in response to a recent bug-gnulib comment by
4854         Jeffrey Kegler.
4855
4856 2012-04-12  Bruno Haible  <bruno@clisp.org>
4857
4858         Tests for module 'getrusage'.
4859         * modules/getrusage-tests: New file.
4860         * tests/test-getrusage.c: New file.
4861
4862         New module 'getrusage'.
4863         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4864         warn-on-use.h.
4865         (getrusage): New declaration.
4866         * lib/getrusage.c: New file.
4867         * m4/getrusage.m4: New file.
4868         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4869         is declared.
4870         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4871         HAVE_GETRUSAGE.
4872         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4873         snippet/c++defs, snippet/warn-on-use.
4874         (Makefile.am): Update generation of sys/resource.h. Substitute
4875         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4876         * modules/getrusage: New file.
4877         * doc/posix-functions/getrusage.texi: Mention the new module.
4878
4879 2012-04-12  Bruno Haible  <bruno@clisp.org>
4880
4881         Tests for module 'sys_resource'.
4882         * modules/sys_resource-tests: New file.
4883         * tests/test-sys_resource.c: New file.
4884
4885         New module 'sys_resource'.
4886         * lib/sys_resource.in.h: New file.
4887         * m4/sys_resource_h.m4: New file.
4888         * modules/sys_resource: New file.
4889         * doc/posix-headers/sys_resource.texi: Mention the new module.
4890
4891 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4892
4893         ioctl: Fix compilation error on mingw.
4894         * lib/ioctl.c: Include <windows.h>.
4895         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4896
4897 2012-04-04  Jim Meyering  <meyering@redhat.com>
4898
4899         regex: correct #pragma guard expression
4900         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4901         not 4.3.  Correct its cpp guard expression.
4902
4903 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4904
4905         regex: remove unnecessary type punning
4906         Problem reported by Vladimir Serbinenko in
4907         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4908         * lib/regex.h (struct re_pattern_buffer): Change the type of
4909         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4910         Fix comment to match code.
4911         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4912         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4913         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4914         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4915         (set_regs):
4916         Omit no-longer-necessary casts.
4917
4918 2012-04-03  Bruno Haible  <bruno@clisp.org>
4919
4920         Tests for module 'ilogbl'.
4921         * modules/ilogbl-tests: New file.
4922         * tests/test-ilogbl.c: New file.
4923
4924         New module 'ilogbl'.
4925         * lib/math.in.h (ilogbl): New declaration.
4926         * lib/ilogbl.c: New file.
4927         * m4/ilogbl.m4: New file.
4928         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4930         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4931         Split sed invocation, to avoid the limit of 100 substitutions of
4932         HP-UX 'sed'.
4933         * modules/ilogbl: New file.
4934         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4935         * doc/posix-functions/ilogbl.texi: Mention the new module.
4936
4937 2012-04-03  Bruno Haible  <bruno@clisp.org>
4938
4939         Tests for module 'ilogbf'.
4940         * modules/ilogbf-tests: New file.
4941         * tests/test-ilogbf.c: New file.
4942
4943         New module 'ilogbf'.
4944         * lib/math.in.h (ilogbf): New declaration.
4945         * lib/ilogbf.c: New file.
4946         * m4/ilogbf.m4: New file.
4947         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4949         REPLACE_ILOGBF.
4950         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4951         REPLACE_ILOGBF.
4952         * modules/ilogbf: New file.
4953         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4954         * doc/posix-functions/ilogbf.texi: Mention the new module.
4955
4956 2012-04-03  Bruno Haible  <bruno@clisp.org>
4957
4958         Tests for module 'ilogb'.
4959         * modules/ilogb-tests: New file.
4960         * tests/test-ilogb.c: New file.
4961         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4962         tests/test-logb-ieee.h.
4963
4964         New module 'ilogb'.
4965         * lib/math.in.h (ilogb): New declaration.
4966         * lib/ilogb.c: New file.
4967         * m4/ilogb.m4: New file.
4968         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4969         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4970         REPLACE_ILOGB.
4971         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4972         REPLACE_ILOGB.
4973         * modules/ilogb: New file.
4974         * tests/test-math-c++.cc: Check the declaration of ilogb.
4975         * doc/posix-functions/ilogb.texi: Mention the new module.
4976
4977 2012-04-03  Bruno Haible  <bruno@clisp.org>
4978
4979         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4980         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4981         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4982         (main): Check their values.
4983         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4984         problem.
4985
4986 2012-04-03  Bruno Haible  <bruno@clisp.org>
4987
4988         Tests for module 'logbl-ieee'.
4989         * modules/logbl-ieee-tests: New file.
4990         * tests/test-logbl-ieee.c: New file.
4991
4992         New module 'logbl-ieee'.
4993         * modules/logbl-ieee: New file.
4994
4995         Tests for module 'logb-ieee'.
4996         * modules/logb-ieee-tests: New file.
4997         * tests/test-logb-ieee.c: New file.
4998
4999         New module 'logb-ieee'.
5000         * modules/logb-ieee: New file.
5001
5002         Tests for module 'logbf-ieee'.
5003         * modules/logbf-ieee-tests: New file.
5004         * tests/test-logbf-ieee.c: New file.
5005         * tests/test-logb-ieee.h: New file.
5006
5007         New module 'logbf-ieee'.
5008         * modules/logbf-ieee: New file.
5009
5010 2012-04-03  Bruno Haible  <bruno@clisp.org>
5011
5012         Tests for module 'logbl'.
5013         * modules/logbl-tests: New file.
5014         * tests/test-logbl.c: New file.
5015
5016         New module 'logbl'.
5017         * lib/math.in.h (logbl): New declaration.
5018         * lib/logbl.c: New file.
5019         * m4/logbl.m4: New file.
5020         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5022         REPLACE_LOGBL.
5023         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5024         REPLACE_LOGBL.
5025         * modules/logbl: New file.
5026         * tests/test-math-c++.cc: Check the declaration of logbl.
5027         * doc/posix-functions/logbl.texi: Mention the new module.
5028
5029 2012-04-02  Bruno Haible  <bruno@clisp.org>
5030
5031         Tests for module 'logbf'.
5032         * modules/logbf-tests: New file.
5033         * tests/test-logbf.c: New file.
5034
5035         New module 'logbf'.
5036         * lib/math.in.h (logbf): New declaration.
5037         * lib/logbf.c: New file.
5038         * m4/logbf.m4: New file.
5039         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5041         REPLACE_LOGBF.
5042         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5043         REPLACE_LOGBF.
5044         * modules/logbf: New file.
5045         * tests/test-math-c++.cc: Check the declaration of logbf.
5046         * doc/posix-functions/logbf.texi: Mention the new module.
5047
5048 2012-04-02  Bruno Haible  <bruno@clisp.org>
5049
5050         logb tests: More tests.
5051         * tests/test-logb.h: New file, based on tests/test-logb.c and
5052         tests/test-frexp.h.
5053         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5054         (main): Just invoke test_function.
5055         * modules/logb-tests (Files): Add tests/test-logb.h,
5056         tests/minus-zero.h, tests/randomd.c.
5057         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5058
5059         logb: Provide replacement and workarounds.
5060         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5061         is 1.
5062         * lib/logb.c: New file.
5063         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5064         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5066         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5067         * modules/logb (Files): Add lib/logb.c.
5068         (Depends-on): Add isfinite, frexp, isnand.
5069         (configure.ac): Compile the replacement code logb.c if needed.
5070         * tests/test-math-c++.cc: Check the declaration of logb.
5071         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5072         with subnormal numbers.
5073
5074 2012-04-02  Bruno Haible  <bruno@clisp.org>
5075
5076         log10* tests: Speed up.
5077         * tests/test-log10.h (test_function): Reduce amount of random numbers
5078         to test.
5079
5080 2012-04-01  Bruno Haible  <bruno@clisp.org>
5081
5082         logf-ieee: Fix test whether logf works.
5083         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5084
5085 2012-04-01  Bruno Haible  <bruno@clisp.org>
5086
5087         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5088         * lib/log10l.c: Include <float.h>
5089         (log10l): On IRIX, normalize the +Infinity value.
5090         * modules/log10l (Depends-on): Add 'float'.
5091         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5092         +Infinity.
5093
5094         log10f-ieee: Work around test failure on NetBSD 5.1.
5095         * m4/log10f-ieee.m4: New file.
5096         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5097         test whether log10f works with a negative argument. Replace it if not.
5098         * lib/log10f.c (log10f): For negative arguments, return NaN.
5099         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5100         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5101         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5102
5103         log10f-ieee: Work around test failure on Solaris 9.
5104         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5105         (configure.ac): Require gl_FUNC_LOG10F.
5106
5107         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5108         * m4/log10-ieee.m4: New file.
5109         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5110         whether log10 works with a negative argument. Replace it if not.
5111         * lib/log10.c (log10): For negative arguments, return NaN.
5112         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5113         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5114         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5115
5116         Tests for module 'log10l-ieee'.
5117         * modules/log10l-ieee-tests: New file.
5118         * tests/test-log10l-ieee.c: New file.
5119
5120         New module 'log10l-ieee'.
5121         * modules/log10l-ieee: New file.
5122
5123         Tests for module 'log10-ieee'.
5124         * modules/log10-ieee-tests: New file.
5125         * tests/test-log10-ieee.c: New file.
5126
5127         New module 'log10-ieee'.
5128         * modules/log10-ieee: New file.
5129
5130         Tests for module 'log10f-ieee'.
5131         * modules/log10f-ieee-tests: New file.
5132         * tests/test-log10f-ieee.c: New file.
5133         * tests/test-log10-ieee.h: New file.
5134
5135         New module 'log10f-ieee'.
5136         * modules/log10f-ieee: New file.
5137
5138 2012-04-01  Bruno Haible  <bruno@clisp.org>
5139
5140         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5141         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5142         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5143         workaround.
5144         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5145         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5147         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5148         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5149         (Depends-on): Update conditions.
5150         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5151         IRIX 6.5, OSF/1 5.1 problems.
5152
5153 2012-04-01  Bruno Haible  <bruno@clisp.org>
5154
5155         log10f: Work around OSF/1 5.1 bug.
5156         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5157         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5158         workaround.
5159         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5160         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5162         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5163         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5164         (Depends-on): Update conditions.
5165         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5166
5167 2012-04-01  Bruno Haible  <bruno@clisp.org>
5168
5169         log10: Work around OSF/1 5.1 bug.
5170         * lib/math.in.h (log10): New declaration.
5171         * lib/log10.c: New file.
5172         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5173         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5174         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5176         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5177         * modules/log10 (Files): Add lib/log10.c.
5178         (Depends-on): Add math.
5179         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5180         * tests/test-math-c++.cc: Check the declaration of log10.
5181         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5182
5183 2012-03-31  Bruno Haible  <bruno@clisp.org>
5184
5185         log10l tests: More tests.
5186         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5187         tests/minus-zero.h, tests/randoml.c.
5188         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5189         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5190         (main): Invoke test_function.
5191
5192         log10f tests: More tests.
5193         * modules/log10f-tests (Files): Add tests/test-log10.h,
5194         tests/minus-zero.h, tests/randomf.c.
5195         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5196         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5197         (main): Invoke test_function.
5198
5199         log10 tests: More tests.
5200         * tests/test-log10.h: New file.
5201         * modules/log10-tests (Files): Add tests/test-log10.h,
5202         tests/minus-zero.h, tests/randomd.c.
5203         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5204         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5205         (main): Invoke test_function.
5206
5207 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5208
5209         fflush: Fix syntax error.
5210         * lib/fflush.c: Include unused-parameter.h, needed for
5211         _GL_UNUSED_PARAMETER.
5212         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5213
5214 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5215
5216         regex: pacify GCC when compiling GRUB
5217         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5218         a diagnostic.  Reported by Vladimir Serbinenko in
5219         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5220
5221 2012-03-29  Eric Blake  <eblake@redhat.com>
5222
5223         stdio: don't assume gets any more
5224         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5225         support.
5226         * modules/stdio (Makefile.am): Likewise.
5227         * lib/stdio-read.c (gets): Likewise.
5228         * tests/test-stdio-c++.cc: Likewise.
5229         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5230         * lib/stdio.in.h (gets): Make warning occur in more places.
5231         * doc/posix-functions/gets.texi (gets): Update documentation.
5232         Reported by Christer Solskogen.
5233
5234         maint.mk: fix syntax checks without exclusions
5235         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5236         Reported by Daniel P. Berrange.
5237
5238         strerror_r: avoid compiler warning
5239         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5240         level.
5241
5242         fflush: avoid compiler warning
5243         * lib/fflush.c (update_fpos_cache): Mark variables that are
5244         potentially unused.
5245
5246 2012-03-25  Bruno Haible  <bruno@clisp.org>
5247
5248         Tests for module 'localeconv'.
5249         * modules/localeconv-tests: New file.
5250         * tests/test-localeconv.c: New file.
5251
5252         New module 'localeconv'.
5253         * lib/locale.in.h (localeconv): New declaration.
5254         * lib/localeconv.c: New file.
5255         * m4/localeconv.m4: New file.
5256         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5257         REPLACE_LOCALECONV.
5258         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5259         REPLACE_LOCALECONV.
5260         * modules/localeconv: New file.
5261         * modules/nl_langinfo (Depends-on): Add localeconv.
5262         * modules/human (Depends-on): Likewise.
5263         * doc/posix-functions/localeconv.texi: Mention the new module.
5264
5265 2012-03-25  Bruno Haible  <bruno@clisp.org>
5266
5267         locale: Provide a complete 'struct lconv'.
5268         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5269         'struct lconv' does not contain int_p_cs_precedes.
5270         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5271         * doc/posix-headers/locale.texi: Update.
5272
5273         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5274         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5275         * doc/posix-headers/locale.texi: Update.
5276
5277         locale: Provide a working 'struct lconv'.
5278         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5279         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5280         'struct lconv' does not even contain decimal_point.
5281         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5282         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5283         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5284         * doc/posix-headers/locale.texi: Mention the problems with
5285         'struct lconv'.
5286         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5287
5288 2012-03-24  Bruno Haible  <bruno@clisp.org>
5289
5290         Enable common subexpression optimization in GCC.
5291         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5292         macros.
5293         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5294         GCC attribute 'const'.
5295         (uc_locale_language): Declare with GCC attribute 'pure'.
5296         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5297         with GCC attribute 'const'.
5298         * lib/unictype.in.h (uc_is_general_category_withtable,
5299         uc_combining_class, uc_combining_class_name,
5300         uc_combining_class_long_name, uc_bidi_class_name,
5301         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5302         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5303         uc_decimal_value, uc_digit_value, uc_numeric_value,
5304         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5305         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5306         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5307         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5308         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5309         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5310         Declare with GCC attribute 'const'.
5311         (uc_general_category_name, uc_general_category_long_name,
5312         uc_general_category_byname, uc_general_category,
5313         uc_is_general_category, uc_combining_class_byname,
5314         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5315         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5316         Declare with GCC attribute 'pure'.
5317         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5318         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5319         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5320         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5321         with GCC attribute 'pure'.
5322         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5323         'const'.
5324         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5325         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5326         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5327         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5328         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5329         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5330         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5331         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5332         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5333         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5334         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5335         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5336         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5337         GCC attribute 'pure'.
5338         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5339         'const'.
5340         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5341         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5342         u32_strwidth): Declare with GCC attribute 'pure'.
5343
5344         Enable common subexpression optimization in GCC.
5345         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5346         (alphasort): Declare with GCC attribute 'pure'.
5347         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5348         (atoll): Declare with GCC attribute 'pure'.
5349         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5350         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5351         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5352         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5353         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5354         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5355         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5356
5357 2012-03-24  Bruno Haible  <bruno@clisp.org>
5358
5359         gnulib-tool: Avoid unintended error output from 'cmp'.
5360         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5361         "cmp -s", not "cmp > /dev/null".
5362
5363 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5364
5365         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5366
5367         It's not just Automake versions < 1.9b that creates an empty
5368         pkgdatadir at installation time if pkgdata_DATA is specified
5369         to empty; modern automake versions do this as well, at least
5370         until automake 1.11.4 (not yet released at the moment of writing,
5371         but soon to appear).  That behaviour was generally considered a
5372         feature rather than a bug, at least until this discussion:
5373         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5374
5375         See also automake bugs #10997 and #11030.
5376
5377         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5378         reference to relevant automake bug numbers.
5379         (func_emit_tests_Makefile_am): Likewise.
5380
5381 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5382
5383         announce-gen: use Digest::SHA when possible
5384         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5385         back to Digest::SHA1 if necessary.
5386
5387 2012-03-20  Jim Meyering  <meyering@redhat.com>
5388
5389         tests: avoid gcc warnings about argv vs. const initializers
5390         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5391         warnings about discarding 'const' qualifier from pointer target type.
5392         * tests/test-posix_spawn2.c (main): Likewise.
5393
5394 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5395
5396         README-release: simplify slightly
5397         * top/README-release: Run "git checkout master" only once.
5398
5399 2012-03-15  Mark Wielaard  <mark@klomp.org>
5400
5401         git-merge-changelog: add specific example on how to use with hg.
5402         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5403
5404 2012-03-18  Mark Wielaard  <mark@klomp.org>
5405
5406         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5407
5408 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5409
5410         git-version-gen: don't let "prefix" envvar cause trouble
5411         * build-aux/git-version-gen (prefix): Initialize properly,
5412         so as not to use a value specified via the environment.
5413         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5414
5415 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5416
5417         regex: diagnose too-large repeat counts in EREs
5418         Previously, the code did not diagnose the too-large repeat count
5419         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5420         as if it were 'b\{1000000000}', which is unexpected.
5421         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5422         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5423         is a reasonable one for this problem.  Another option would be to
5424         create a new REG_OVERFLOW error for repeat counts that are too large.
5425         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5426         count is too large, so that the caller can distinguish the two cases.
5427         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5428         "Too large" return code, and that repeat counts are one example of this.
5429
5430 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5431
5432         doc: some glibc x32 integer width issues
5433         * doc/posix-headers/sys_types.texi (sys/types.h):
5434         * doc/posix-headers/time.texi (time.h):
5435         Mention that glibc x32 does not conform to POSIX in a couple of
5436         areas related to integer widths.
5437
5438 2012-03-15  Bruno Haible  <bruno@clisp.org>
5439
5440         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5441         * lib/fma.c (VOLATILE): New macro.
5442         (FUNC): Use it to work around a GCC compiler bug.
5443
5444 2012-03-13  Bruno Haible  <bruno@clisp.org>
5445
5446         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5447         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5448         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5449         REPLACE_HYPOTL to 1.
5450         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5451
5452 2012-03-13  Bruno Haible  <bruno@clisp.org>
5453
5454         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5455         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5456         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5457         REPLACE_REMAINDERL to 1.
5458         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5459         bug.
5460
5461 2012-03-13  Bruno Haible  <bruno@clisp.org>
5462
5463         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5464         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5465         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5466         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5467         too big rounding errors.
5468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5469         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5470         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5471         (Depends-on): Update conditions.
5472         * tests/test-sqrtl.c (my_ldexpl): New function.
5473         (main): Add test of a particular value.
5474         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5475
5476 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5477
5478         doc: Update timer_* platform portability notes.
5479         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5480         that always return ENOSYS.
5481         * doc/posix-functions/timer_delete.texi: Likewise.
5482         * doc/posix-functions/timer_gettime.texi: Likewise.
5483         * doc/posix-functions/timer_settime.texi: Likewise.
5484
5485 2012-03-13  Bruno Haible  <bruno@clisp.org>
5486
5487         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5488         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5489         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5490         REPLACE_CBRTL to 1.
5491         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5492
5493 2012-03-13  Bruno Haible  <bruno@clisp.org>
5494
5495         remainderl: Avoid compilation error on AIX >= 5.2.
5496         * lib/math.in.h (remainderl): Undefine macro from the system header.
5497
5498 2012-03-13  Bruno Haible  <bruno@clisp.org>
5499
5500         Avoid compilation errors with MSVC option -fp:strict.
5501         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5502         * lib/cbrtf.c: Likewise.
5503         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5504
5505 2012-03-12  Bruno Haible  <bruno@clisp.org>
5506
5507         uninorm: Don't crash in out-of-memory conditions.
5508         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5509         gracefully.
5510         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5511         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5512
5513 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5514
5515         quote: fix syntax-check
5516         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5517         also exports quote_quoting_options.
5518
5519 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5520
5521         Collapse list of copyright years to ranges.  See
5522         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5523         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5524         build-aux/csharpexec.sh.in, build-aux/gnupload,
5525         build-aux/install-reloc, build-aux/javacomp.sh.in,
5526         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5527         build-aux/move-if-change, build-aux/reloc-ldflags,
5528         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5529
5530 2012-03-11  Bruno Haible  <bruno@clisp.org>
5531
5532         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5533         * m4/log2f-ieee.m4: New file.
5534         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5535         whether log2f works with a minus zero argument. Replace it if not.
5536         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5537         (Depends-on): Add log2-ieee.
5538         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5539         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5540
5541         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5542         * m4/log2-ieee.m4: New file.
5543         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5544         whether log2 works with a minus zero argument. Replace it if not.
5545         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5546         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5547         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5548
5549         Tests for module 'log2l-ieee'.
5550         * modules/log2l-ieee-tests: New file.
5551         * tests/test-log2l-ieee.c: New file.
5552
5553         New module 'log2l-ieee'.
5554         * modules/log2l-ieee: New file.
5555
5556         Tests for module 'log2-ieee'.
5557         * modules/log2-ieee-tests: New file.
5558         * tests/test-log2-ieee.c: New file.
5559
5560         New module 'log2-ieee'.
5561         * modules/log2-ieee: New file.
5562
5563         Tests for module 'log2f-ieee'.
5564         * modules/log2f-ieee-tests: New file.
5565         * tests/test-log2f-ieee.c: New file.
5566         * tests/test-log2-ieee.h: New file.
5567
5568         New module 'log2f-ieee'.
5569         * modules/log2f-ieee: New file.
5570
5571 2012-03-11  Bruno Haible  <bruno@clisp.org>
5572
5573         Tests for module 'log2l'.
5574         * modules/log2l-tests: New file.
5575         * tests/test-log2l.c: New file.
5576
5577         New module 'log2l'.
5578         * lib/math.in.h (log2l): New declaration.
5579         * lib/log2l.c: New file.
5580         * m4/log2l.m4: New file.
5581         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5583         REPLACE_LOG2L.
5584         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5585         REPLACE_LOG2L.
5586         * modules/log2l: New file.
5587         * tests/test-math-c++.cc: Check the declaration of log2l.
5588         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5589         and OSF/1 problems.
5590
5591 2012-03-11  Bruno Haible  <bruno@clisp.org>
5592
5593         Tests for module 'log2f'.
5594         * modules/log2f-tests: New file.
5595         * tests/test-log2f.c: New file.
5596
5597         New module 'log2f'.
5598         * lib/math.in.h (log2f): New declaration.
5599         * lib/log2f.c: New file.
5600         * m4/log2f.m4: New file.
5601         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5603         REPLACE_LOG2F.
5604         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5605         REPLACE_LOG2F.
5606         * modules/log2f: New file.
5607         * tests/test-math-c++.cc: Check the declaration of log2f.
5608         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5609         and OSF/1 and Cygwin problems.
5610
5611 2012-03-11  Bruno Haible  <bruno@clisp.org>
5612
5613         Tests for module 'log2'.
5614         * modules/log2-tests: New file.
5615         * tests/test-log2.c: New file.
5616         * tests/test-log2.h: New file.
5617
5618         New module 'log2'.
5619         * lib/math.in.h (log2): New declaration.
5620         * lib/log2.c: New file.
5621         * m4/log2.m4: New file.
5622         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5624         REPLACE_LOG2.
5625         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5626         REPLACE_LOG2.
5627         * modules/log2: New file.
5628         * tests/test-math-c++.cc: Check the declaration of log2.
5629         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5630         and OSF/1 and Cygwin problems.
5631
5632 2012-03-11  Bruno Haible  <bruno@clisp.org>
5633
5634         exp2* tests: More tests.
5635         * tests/test-exp2.h (test_function): Test all integral arguments that
5636         don't need to overflow or denormalized numbers.
5637         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5638         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5639         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5640
5641 2012-03-10  Bruno Haible  <bruno@clisp.org>
5642
5643         log1pl-ieee: Work around test failure on AIX 7.1.
5644         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5645
5646         log1pl-ieee: Work around test failure on IRIX 6.5.
5647         * m4/log1pl-ieee.m4: New file.
5648         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5649         test whether log1pl works with a minus zero argument. Replace it if
5650         not.
5651         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5653         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5654         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5655         (Depends-on): Update conditions.
5656         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5657         m4/signbit.m4.
5658         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5659         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5660
5661         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5662         * m4/log1pf-ieee.m4: New file.
5663         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5664         test whether log1pf works with a minus zero argument. Replace it if
5665         not.
5666         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5667         m4/signbit.m4.
5668         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5669         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5670
5671         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5672         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5673         (configure.ac): Require gl_FUNC_LOG1PF.
5674
5675         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5676         * m4/log1p-ieee.m4: New file.
5677         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5678         whether log1p works with a minus zero argument. Replace it if not.
5679         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5681         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5682         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5683         (Depends-on): Update conditions.
5684         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5685         m4/signbit.m4.
5686         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5687         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5688
5689         Tests for module 'log1pl-ieee'.
5690         * modules/log1pl-ieee-tests: New file.
5691         * tests/test-log1pl-ieee.c: New file.
5692
5693         New module 'log1pl-ieee'.
5694         * modules/log1pl-ieee: New file.
5695
5696         Tests for module 'log1p-ieee'.
5697         * modules/log1p-ieee-tests: New file.
5698         * tests/test-log1p-ieee.c: New file.
5699
5700         New module 'log1p-ieee'.
5701         * modules/log1p-ieee: New file.
5702
5703         Tests for module 'log1pf-ieee'.
5704         * modules/log1pf-ieee-tests: New file.
5705         * tests/test-log1pf-ieee.c: New file.
5706         * tests/test-log1p-ieee.h: New file.
5707
5708         New module 'log1pf-ieee'.
5709         * modules/log1pf-ieee: New file.
5710
5711 2012-03-10  Bruno Haible  <bruno@clisp.org>
5712
5713         Tests for module 'log1pl'.
5714         * modules/log1pl-tests: New file.
5715         * tests/test-log1pl.c: New file.
5716
5717         New module 'log1pl'.
5718         * lib/math.in.h (log1pl): New declaration.
5719         * lib/log1pl.c: New file.
5720         * m4/log1pl.m4: New file.
5721         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5723         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5724         * modules/log1pl: New file.
5725         * tests/test-math-c++.cc: Check the declaration of log1pl.
5726         * doc/posix-functions/log1pl.texi: Mention the new module.
5727
5728 2012-03-10  Bruno Haible  <bruno@clisp.org>
5729
5730         Tests for module 'log1pf'.
5731         * modules/log1pf-tests: New file.
5732         * tests/test-log1pf.c: New file.
5733
5734         New module 'log1pf'.
5735         * lib/math.in.h (log1pf): New declaration.
5736         * lib/log1pf.c: New file.
5737         * m4/log1pf.m4: New file.
5738         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5739         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5740         REPLACE_LOG1PF.
5741         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5742         REPLACE_LOG1PF.
5743         * modules/log1pf: New file.
5744         * tests/test-math-c++.cc: Check the declaration of log1pf.
5745         * doc/posix-functions/log1pf.texi: Mention the new module.
5746
5747 2012-03-10  Bruno Haible  <bruno@clisp.org>
5748
5749         log1p tests: More tests.
5750         * tests/test-log1p.h: New file.
5751         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5752         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5753         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5754         (main): Invoke test_function.
5755
5756         log1p: Provide replacement for Minix and MSVC.
5757         * lib/math.in.h (log1p): New declaration.
5758         * lib/log1p.c: New file.
5759         * m4/log1p.m4: New file.
5760         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5762         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5763         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5764         (Depends-on): Add math, isnand, log, round.
5765         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5766         HAVE_LOG1P is 0.
5767         * tests/test-math-c++.cc: Check the declaration of log1p.
5768         * doc/posix-functions/log1p.texi: Mention the replacement.
5769
5770 2012-03-10  Bruno Haible  <bruno@clisp.org>
5771
5772         math tests: Small simplification.
5773         * tests/test-exp.h (test_function): Use the same err_bound for
5774         'double' on platforms with sizeof (long double) == sizeof (double)
5775         than on platforms with sizeof (long double) > sizeof (double).
5776         * tests/test-exp2.h (test_function): Likewise.
5777         * tests/test-expm1.h (test_function): Likewise.
5778         * tests/test-log.h (test_function): Likewise.
5779
5780 2012-03-10  Bruno Haible  <bruno@clisp.org>
5781
5782         Fix some comments.
5783         * lib/expl.c: Fix an ambiguous comment.
5784         * lib/expm1.c: Likewise.
5785         * lib/expm1l.c: Likewise.
5786         * lib/exp2.c: Likewise.
5787         * lib/exp2l.c: Likewise.
5788
5789 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5790
5791         regex: allow inclusion of <regex.h> before <limits.h>
5792         Without this patch, portable programs had to include <limits.h> before
5793         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5794         I ran into this problem with a test version of GNU grep on Solaris 8.
5795         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5796         This is done conditionally so that this change can be merged
5797         back to glibc.
5798         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5799         using the included regex.
5800
5801         fts: depend on fdopendir
5802         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5803         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5804         problem was introduced when fdopendir was split out.
5805
5806 2012-03-10  Bruno Haible  <bruno@clisp.org>
5807
5808         Remove unused variables.
5809         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5810         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5811
5812 2012-03-10  Bruno Haible  <bruno@clisp.org>
5813
5814         isnanf-nolibm: Fix last commit.
5815         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5816
5817         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5818         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5819
5820 2012-03-10  Bruno Haible  <bruno@clisp.org>
5821
5822         logf-ieee: Work around test failure on NetBSD 5.1.
5823         * m4/logf-ieee.m4: New file.
5824         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5825         whether logf works with a negative argument. Replace it if not.
5826         * lib/logf.c (logf): For negative arguments, return NaN.
5827         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5828         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5829         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5830
5831         logf-ieee: Work around test failure on Solaris 9.
5832         * modules/logf-ieee (Depends-on): Add log-ieee.
5833         (configure.ac): Require gl_FUNC_LOGF.
5834
5835         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5836         * m4/log-ieee.m4: New file.
5837         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5838         log works with a negative argument. Replace it if not.
5839         * lib/log.c (log): For negative arguments, return NaN.
5840         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5841         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5842         * doc/posix-functions/log.texi: Mention the log-ieee module.
5843
5844         Tests for module 'logl-ieee'.
5845         * modules/logl-ieee-tests: New file.
5846         * tests/test-logl-ieee.c: New file.
5847
5848         New module 'logl-ieee'.
5849         * modules/logl-ieee: New file.
5850
5851         Tests for module 'log-ieee'.
5852         * modules/log-ieee-tests: New file.
5853         * tests/test-log-ieee.c: New file.
5854
5855         New module 'log-ieee'.
5856         * modules/log-ieee: New file.
5857
5858         Tests for module 'logf-ieee'.
5859         * modules/logf-ieee-tests: New file.
5860         * tests/test-logf-ieee.c: New file.
5861         * tests/test-log-ieee.h: New file.
5862
5863         New module 'logf-ieee'.
5864         * modules/logf-ieee: New file.
5865
5866 2012-03-10  Bruno Haible  <bruno@clisp.org>
5867
5868         log: Fix bug introduced on 2012-03-09.
5869         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5870
5871 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5872
5873         timer-time: link explicitly with pthreads on glibc
5874         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5875         to support static linking, when newer glibc is
5876         detected, as that contains pthread emulation of
5877         POSIX timer functions where required.
5878         * modules/timer-time: Depend on threadlib to
5879         pull in the appropriate library to link.
5880
5881 2012-03-10  Bruno Haible  <bruno@clisp.org>
5882
5883         log* tests: More tests.
5884         * tests/test-log.h: New file.
5885         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5886         (main): Invoke test_function.
5887         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5888         (main): Invoke test_function.
5889         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5890         (main): Invoke test_function.
5891         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5892         tests/randomd.c.
5893         (Makefile.am): Add randomd.c to test_log_SOURCES.
5894         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5895         tests/randomf.c.
5896         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5897         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5898         tests/randoml.c.
5899         (Depends-on): Add 'float'.
5900         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5901
5902 2012-03-09  Bruno Haible  <bruno@clisp.org>
5903
5904         logl: Work around OSF/1 5.1 bug.
5905         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5906         * lib/logl.c (logl): If logl exists, use it and provide just the
5907         workaround.
5908         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5909         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5911         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5912         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5913         (Depends-on): Update conditions.
5914         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5915
5916 2012-03-09  Bruno Haible  <bruno@clisp.org>
5917
5918         logf: Work around OSF/1 5.1 bug.
5919         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5920         * lib/logf.c (logf): If logf exists, use it and provide just the
5921         workaround.
5922         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5923         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5925         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5926         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5927         (Depends-on): Update conditions.
5928         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5929
5930 2012-03-09  Bruno Haible  <bruno@clisp.org>
5931
5932         log: Work around OSF/1 5.1 bug.
5933         * lib/math.in.h (log): New declaration.
5934         * lib/log.c: New file.
5935         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5936         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5937         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5939         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5940         * modules/log (Files): Add lib/log.c.
5941         (Depends-on): Add math.
5942         (configure.ac): If REPLACE_LOG is 1, compile an override.
5943         * tests/test-math-c++.cc: Check the declaration of log.
5944         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5945
5946 2012-03-09  Jim Meyering  <meyering@redhat.com>
5947
5948         readtokens.c: adjust wording in a comment
5949         * lib/readtokens.c: Insert omitted "that" in a comment.
5950
5951 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5952
5953         modechange: add notations +40, 00440, etc.
5954         * lib/modechange.c (mode_compile): Support new notations
5955         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5956
5957 2012-03-08  Bruno Haible  <bruno@clisp.org>
5958
5959         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5960         * m4/exp2l-ieee.m4: New file.
5961         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5962         test whether exp2l works with a NaN argument and with a negative
5963         infinity argument. Replace it if not.
5964         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5966         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5967         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5968         (Depends-on): Update conditions.
5969         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5970         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5971         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5972
5973         Tests for module 'exp2l-ieee'.
5974         * modules/exp2l-ieee-tests: New file.
5975         * tests/test-exp2l-ieee.c: New file.
5976
5977         New module 'exp2l-ieee'.
5978         * modules/exp2l-ieee: New file.
5979
5980         Tests for module 'exp2-ieee'.
5981         * modules/exp2-ieee-tests: New file.
5982         * tests/test-exp2-ieee.c: New file.
5983
5984         New module 'exp2-ieee'.
5985         * modules/exp2-ieee: New file.
5986
5987         Tests for module 'exp2f-ieee'.
5988         * modules/exp2f-ieee-tests: New file.
5989         * tests/test-exp2f-ieee.c: New file.
5990         * tests/test-exp2-ieee.h: New file.
5991
5992         New module 'exp2f-ieee'.
5993         * modules/exp2f-ieee: New file.
5994
5995 2012-03-08  Bruno Haible  <bruno@clisp.org>
5996
5997         Tests for module 'exp2l'.
5998         * modules/exp2l-tests: New file.
5999         * tests/test-exp2l.c: New file.
6000
6001         New module 'exp2l'.
6002         * lib/math.in.h (exp2l): New declaration.
6003         * lib/exp2l.c: New file.
6004         * lib/expl-table.c: New file, extracted from lib/expl.c.
6005         * lib/expl.c (gl_expl_table): New declaration.
6006         (expl): Remove expl_table. Update reference.
6007         * m4/exp2l.m4: New file.
6008         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6010         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6011         * modules/exp2l: New file.
6012         * modules/expl (Files): Add lib/expl-table.c.
6013         (configure.ac): Compile also expl-table.c.
6014         * tests/test-math-c++.cc: Check the declaration of exp2l.
6015         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6016         problem.
6017
6018 2012-03-08  Bruno Haible  <bruno@clisp.org>
6019
6020         Tests for module 'exp2f'.
6021         * modules/exp2f-tests: New file.
6022         * tests/test-exp2f.c: New file.
6023
6024         New module 'exp2f'.
6025         * lib/math.in.h (exp2f): New declaration.
6026         * lib/exp2f.c: New file.
6027         * m4/exp2f.m4: New file.
6028         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6030         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6031         * modules/exp2f: New file.
6032         * tests/test-math-c++.cc: Check the declaration of exp2f.
6033         * doc/posix-functions/exp2f.texi: Mention the new module and the
6034         IRIX problem.
6035
6036 2012-03-08  Bruno Haible  <bruno@clisp.org>
6037
6038         Tests for module 'exp2'.
6039         * modules/exp2-tests: New file.
6040         * tests/test-exp2.c: New file.
6041         * tests/test-exp2.h: New file.
6042
6043         New module 'exp2'.
6044         * lib/math.in.h (exp2): New declaration.
6045         * lib/exp2.c: New file.
6046         * m4/exp2.m4: New file.
6047         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6049         REPLACE_EXP2.
6050         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6051         REPLACE_EXP2.
6052         * modules/exp2: New file.
6053         * tests/test-math-c++.cc: Check the declaration of exp2.
6054         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6055         and OpenBSD problems.
6056
6057 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6058
6059         savedir: fix comment typo
6060         * lib/savedir.c (savedirstream): Fix typo in comment.
6061
6062 2012-03-08  Bruno Haible  <bruno@clisp.org>
6063
6064         test-readtokens.c: use const; remove unwarranted cast
6065         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6066
6067 2012-03-08  Bruno Haible  <bruno@clisp.org>
6068
6069         fmal: Avoid compilation error on AIX.
6070         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6071         AIX 5.2..7.1.
6072
6073 2012-03-08  Bruno Haible  <bruno@clisp.org>
6074
6075         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6076         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6077         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6078         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6079         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6080         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6081         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6082
6083 2012-03-08  Bruno Haible  <bruno@clisp.org>
6084
6085         remainderf: Override buggy system function on IRIX 6.5.
6086         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6087         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6088         when it exists.
6089         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6090
6091 2012-03-08  Jim Meyering  <meyering@redhat.com>
6092
6093         test-readtokens.c: avoid const-related compilation warnings
6094         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6095
6096 2012-03-07  Jim Meyering  <meyering@redhat.com>
6097             Bruno Haible  <bruno@clisp.org>
6098
6099         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6100         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6101         tests/randomd.c.
6102         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6103         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6104         tests/randoml.c.
6105         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6106
6107 2012-03-07  Bruno Haible  <bruno@clisp.org>
6108
6109         expm1l: Avoid compilation error on AIX.
6110         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6111         AIX 5.2..7.1.
6112
6113 2012-03-07  Bruno Haible  <bruno@clisp.org>
6114
6115         expm1l: Don't override undeclared system function on IRIX 6.5.
6116         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6117         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6118         it exists. Set HAVE_DECL_EXPM1L.
6119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6120         HAVE_EXPM1L.
6121         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6122         HAVE_EXPM1L.
6123         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6124
6125 2012-03-07  Bruno Haible  <bruno@clisp.org>
6126
6127         remainderl: Don't override undeclared system function on IRIX 6.5.
6128         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6129         HAVE_REMAINDERL.
6130         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6131         declared when it exists. Set HAVE_DECL_REMAINDERL.
6132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6133         not HAVE_REMAINDERL.
6134         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6135         HAVE_REMAINDERL.
6136         * doc/posix-functions/remainderl.texi: Mention missing declaration
6137         problem.
6138
6139 2012-03-07  Bruno Haible  <bruno@clisp.org>
6140
6141         rintf: Don't override undeclared system function on IRIX 6.5.
6142         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6143         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6144         exists. Set HAVE_DECL_RINTF.
6145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6146         HAVE_RINTF.
6147         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6148         HAVE_RINTF.
6149         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6150
6151 2012-03-07  Bruno Haible  <bruno@clisp.org>
6152
6153         roundl: Avoid compilation error on AIX.
6154         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6155         AIX 5.2..7.1.
6156
6157 2012-03-07  Bruno Haible  <bruno@clisp.org>
6158
6159         roundl: Don't override undeclared system function on IRIX 6.5.
6160         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6161         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6162         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6163         * modules/roundl (configure.ac): For replacement code, test
6164         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6165         (Depends-on): Update conditions.
6166         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6167
6168 2012-03-07  Bruno Haible  <bruno@clisp.org>
6169
6170         roundf: Don't override undeclared system function on IRIX 6.5.
6171         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6172         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6173         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6174         * modules/roundf (configure.ac): For replacement code, test
6175         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6176         (Depends-on): Update conditions.
6177         * modules/roundf-ieee (Depends-on): Update conditions.
6178         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6179
6180 2012-03-07  Bruno Haible  <bruno@clisp.org>
6181
6182         round: Don't override undeclared system function on IRIX 6.5.
6183         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6184         argument.
6185         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6186         also when it is not declared. Set HAVE_ROUND. For replacement code,
6187         test HAVE_ROUND, not HAVE_DECL_ROUND.
6188         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6189         not HAVE_DECL_ROUND.
6190         (Depends-on): Update conditions.
6191         * modules/round-ieee (Depends-on): Update conditions.
6192         * doc/posix-functions/round.texi: Mention the IRIX problem.
6193
6194 2012-03-07  Bruno Haible  <bruno@clisp.org>
6195
6196         copysignf: Don't override undeclared system function on IRIX 6.5.
6197         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6198         HAVE_COPYSIGNF.
6199         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6200         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6202         not HAVE_COPYSIGNF.
6203         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6204         HAVE_COPYSIGNF.
6205         * doc/posix-functions/copysignf.texi: Mention missing declaration
6206         problem.
6207
6208 2012-03-07  Jim Meyering  <meyering@redhat.com>
6209
6210         readtokens: add tests
6211         * modules/readtokens-tests: New file.
6212         * tests/test-readtokens.c: New file.
6213
6214 2012-03-07  Jim Meyering  <meyering@redhat.com>
6215
6216         quotearg: the module must now include quote.h
6217         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6218         So must the module.
6219         * modules/quotearg (Files): Add quote.h.
6220
6221 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6222
6223         readtokens: avoid core dumps with unusual calling patterns
6224         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6225         * lib/readtokens.c: Include limits.h.
6226         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6227         (readtoken): Don't cache the delimiters; the cache code was buggy
6228         if !delim && saved_delim, or if the new n_delim differs from the old.
6229         Also, it wasn't thread-safe.
6230
6231 2012-03-07  Bruno Haible  <bruno@clisp.org>
6232
6233         quote: Adhere to common module description layout.
6234         * modules/quote (Makefile.am): Add back empty section.
6235
6236 2012-03-06  Akim Demaille  <demaille@gostai.com>
6237
6238         quote: fuse into quotearg
6239         This patch is made for the benefit of Bison.
6240         quote does not leave the choice of the quoting style to the user.
6241         quoting_style provides poor customizability, yet quoting_options,
6242         which is very rich, is hidden inside quotearg.c.  So in order to
6243         allow quote customization, move its implementation to quotearg.c.
6244         * lib/quote.c: Remove.
6245         * modules/quote: Adjust.
6246         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6247         warning: provide all the members of literal structs.
6248         (quote_quoting_options): New.
6249         (quote, quote_n): Import implementation from quote.c.
6250         * lib/quote.h: Import the comments from quote.c.
6251         (quote_quoting_options): New.
6252
6253 2012-03-06  Bruno Haible  <bruno@clisp.org>
6254
6255         Tests for module 'expm1l-ieee'.
6256         * modules/expm1l-ieee-tests: New file.
6257         * tests/test-expm1l-ieee.c: New file.
6258
6259         New module 'expm1l-ieee'.
6260         * modules/expm1l-ieee: New file.
6261
6262         Tests for module 'expm1f-ieee'.
6263         * modules/expm1f-ieee-tests: New file.
6264         * tests/test-expm1f-ieee.c: New file.
6265
6266         New module 'expm1f-ieee'.
6267         * modules/expm1f-ieee: New file.
6268
6269         Tests for module 'expm1-ieee'.
6270         * modules/expm1-ieee-tests: New file.
6271         * tests/test-expm1-ieee.c: New file.
6272         * tests/test-expm1-ieee.h: New file.
6273
6274         New module 'expm1-ieee'.
6275         * modules/expm1-ieee: New file.
6276         * m4/expm1-ieee.m4: New file.
6277         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6278         whether expm1 works with a minus zero argument. Replace it if not.
6279         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6281         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6282         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6283         (Depends-on): Update conditions.
6284         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6285         AIX problem.
6286
6287 2012-03-06  Bruno Haible  <bruno@clisp.org>
6288
6289         Work around expm1f bug on IRIX 6.5.
6290         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6291         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6292         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6293         not work.
6294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6295         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6296         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6297         (Depends-on): Update conditions.
6298         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6299
6300 2012-03-06  Bruno Haible  <bruno@clisp.org>
6301
6302         Tests for module 'expm1l'.
6303         * modules/expm1l-tests: New file.
6304         * tests/test-expm1l.c: New file.
6305
6306         New module 'expm1l'.
6307         * lib/math.in.h (expm1l): New declaration.
6308         * lib/expm1l.c: New file.
6309         * m4/expm1l.m4: New file.
6310         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6312         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6313         * modules/expm1l: New file.
6314         * tests/test-math-c++.cc: Check the declaration of expm1l.
6315         * doc/posix-functions/expm1l.texi: Mention the new module.
6316
6317 2012-03-06  Bruno Haible  <bruno@clisp.org>
6318
6319         Tests for module 'expm1f'.
6320         * modules/expm1f-tests: New file.
6321         * tests/test-expm1f.c: New file.
6322
6323         New module 'expm1f'.
6324         * lib/math.in.h (expm1f): New declaration.
6325         * lib/expm1f.c: New file.
6326         * m4/expm1f.m4: New file.
6327         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6329         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6330         * modules/expm1f: New file.
6331         * tests/test-math-c++.cc: Check the declaration of expm1f.
6332         * doc/posix-functions/expm1f.texi: Mention the new module.
6333
6334 2012-03-06  Bruno Haible  <bruno@clisp.org>
6335
6336         Tests for module 'expm1'.
6337         * modules/expm1-tests: New file.
6338         * tests/test-expm1.c: New file.
6339         * tests/test-expm1.h: New file.
6340
6341         New module 'expm1'.
6342         * lib/math.in.h (expm1): New declaration.
6343         * lib/expm1.c: New file.
6344         * m4/expm1.m4: New file.
6345         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6347         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6348         * modules/expm1: New file.
6349         * tests/test-math-c++.cc: Check the declaration of expm1.
6350         * doc/posix-functions/expm1.texi: Mention the new module.
6351
6352 2012-03-06  Bruno Haible  <bruno@clisp.org>
6353
6354         math: Ensure declarations of math functions.
6355         * modules/acosf (Depends-on): Add 'extensions'.
6356         * modules/asinf (Depends-on): Likewise.
6357         * modules/atan2f (Depends-on): Likewise.
6358         * modules/atanf (Depends-on): Likewise.
6359         * modules/cbrt (Depends-on): Likewise.
6360         * modules/cbrtf (Depends-on): Likewise.
6361         * modules/cbrtl (Depends-on): Likewise.
6362         * modules/copysignf (Depends-on): Likewise.
6363         * modules/copysignl (Depends-on): Likewise.
6364         * modules/cosf (Depends-on): Likewise.
6365         * modules/coshf (Depends-on): Likewise.
6366         * modules/expf (Depends-on): Likewise.
6367         * modules/fabsf (Depends-on): Likewise.
6368         * modules/fabsl (Depends-on): Likewise.
6369         * modules/fmaf (Depends-on): Likewise.
6370         * modules/fmal (Depends-on): Likewise.
6371         * modules/fmodf (Depends-on): Likewise.
6372         * modules/fmodl (Depends-on): Likewise.
6373         * modules/frexpf (Depends-on): Likewise.
6374         * modules/frexpl (Depends-on): Likewise.
6375         * modules/hypot (Depends-on): Likewise.
6376         * modules/hypotf (Depends-on): Likewise.
6377         * modules/hypotl (Depends-on): Likewise.
6378         * modules/ldexpf (Depends-on): Likewise.
6379         * modules/ldexpl (Depends-on): Likewise.
6380         * modules/log10f (Depends-on): Likewise.
6381         * modules/log10l (Depends-on): Likewise.
6382         * modules/log1p (Depends-on): Likewise.
6383         * modules/logb (Depends-on): Likewise.
6384         * modules/logf (Depends-on): Likewise.
6385         * modules/modff (Depends-on): Likewise.
6386         * modules/modfl (Depends-on): Likewise.
6387         * modules/powf (Depends-on): Likewise.
6388         * modules/remainderf (Depends-on): Likewise.
6389         * modules/remainderl (Depends-on): Likewise.
6390         * modules/rintf (Depends-on): Likewise.
6391         * modules/rintl (Depends-on): Likewise.
6392         * modules/sinf (Depends-on): Likewise.
6393         * modules/sinhf (Depends-on): Likewise.
6394         * modules/sqrtf (Depends-on): Likewise.
6395         * modules/tanf (Depends-on): Likewise.
6396         * modules/tanhf (Depends-on): Likewise.
6397         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6398         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6399         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6400         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6401         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6402         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6403         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6404         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6405         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6406         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6407         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6408         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6409         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6410         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6411         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6412         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6413         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6414         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6415         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6416         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6417         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6418         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6419         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6420         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6421         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6422         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6423         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6424         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6425         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6426         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6427         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6428         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6429         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6430         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6431         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6432         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6433         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6434         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6435         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6436         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6437         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6438
6439 2012-03-06  Bruno Haible  <bruno@clisp.org>
6440
6441         math: Update module names in warnings.
6442         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6443         tanl): Use specific module name in warn-on-use warning.
6444
6445 2012-03-06  Bruno Haible  <bruno@clisp.org>
6446
6447         expl: Simplify computation.
6448         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6449
6450 2012-03-05  Bruno Haible  <bruno@clisp.org>
6451
6452         exp* tests: More tests.
6453         * tests/test-exp.h: New file.
6454         * tests/test-exp.c: Include <float.h> and test-exp.h.
6455         (main): Invoke test_function.
6456         * tests/test-expf.c: Include <float.h> and test-exp.h.
6457         (main): Invoke test_function.
6458         * tests/test-expl.c: Include <float.h> and test-exp.h.
6459         (main): Invoke test_function.
6460         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6461         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6462         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6463         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6464         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6465         (Depends-on): Add 'float'.
6466         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6467
6468         expl: Fix precision of computed result.
6469         * lib/expl.c: Completely rewritten.
6470         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6471         (Maintainer): Add me.
6472         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6473
6474 2012-03-05  Bruno Haible  <bruno@clisp.org>
6475
6476         cbrt* tests: More tests.
6477         * tests/test-cbrt.h: New file.
6478         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6479         (main): Invoke test_function.
6480         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6481         (main): Invoke test_function.
6482         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6483         (main): Invoke test_function.
6484         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6485         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6486         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6487         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6488         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6489         (Depends-on): Add 'float'.
6490         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6491
6492 2012-03-05  Bruno Haible  <bruno@clisp.org>
6493
6494         hypot* tests: More tests.
6495         * tests/test-hypot.h: New file, partially extracted from
6496         tests/test-hypotl.c.
6497         * tests/test-hypot.c: Include test-hypot.h.
6498         (main): Invoke test_function.
6499         * tests/test-hypotf.c: Include test-hypot.h.
6500         (main): Invoke test_function.
6501         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6502         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6503         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6504         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6505         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6506         tests/randomf.c.
6507         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6508         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6509         tests/randoml.c.
6510         (Depends-on): Add 'fpucw', 'float'.
6511         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6512
6513 2012-03-05  Bruno Haible  <bruno@clisp.org>
6514
6515         fpucw: Doc about FreeBSD.
6516         * lib/fpucw.h: Mention FreeBSD in comments.
6517
6518 2012-03-04  Bruno Haible  <bruno@clisp.org>
6519
6520         sqrt* tests: More tests.
6521         * tests/test-sqrt.h: New file.
6522         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6523         (main): Invoke test_function.
6524         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6525         (main): Invoke test_function.
6526         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6527         (main): Invoke test_function.
6528         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6529         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6530         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6531         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6532         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6533         (Depends-on): Add 'float'.
6534         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6535
6536 2012-03-04  Bruno Haible  <bruno@clisp.org>
6537
6538         remainder* tests: More tests.
6539         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6540         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6541         (main): Invoke test_function.
6542         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6543         (main): Invoke test_function.
6544         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6545         (main): Invoke test_function.
6546         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6547         tests/randomd.c.
6548         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6549         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6550         tests/randomf.c.
6551         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6552         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6553         tests/randoml.c.
6554         (Depends-on): Add 'float'.
6555         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6556
6557 2012-03-04  Bruno Haible  <bruno@clisp.org>
6558
6559         remainder, remainderf, remainderl: Fix computation for large quotients.
6560         * lib/remainder.c: Completely rewritten.
6561         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6562         USE_FLOAT.
6563         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6564         USE_LONG_DOUBLE.
6565         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6566         isnand, isinf. Remove round, fma.
6567         * modules/remainderf (Files): Add lib/remainder.c.
6568         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6569         Remove roundf, fmaf.
6570         * modules/remainderl (Files): Add lib/remainder.c.
6571         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6572         isinf. Remove roundl, fmal.
6573         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6574         REMAINDER_LIBM.
6575         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6576         REMAINDERF_LIBM.
6577         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6578         REMAINDERL_LIBM.
6579
6580 2012-03-04  Bruno Haible  <bruno@clisp.org>
6581
6582         fmod* tests: More tests.
6583         * tests/test-fmod.h (my_ldexp): New function.
6584         (test_function): Reduce amount of random numbers to test. Add tests
6585         of very large quotients x / y.
6586         * tests/test-fmod.c (MAX_EXP): New macro.
6587         * tests/test-fmodf.c (MAX_EXP): Likewise.
6588         * tests/test-fmodl.c (MAX_EXP): Likewise.
6589
6590 2012-03-04  Bruno Haible  <bruno@clisp.org>
6591
6592         fmod, fmodl: Fix computation for large quotients x / y.
6593         * lib/fmod.c: Completely rewritten.
6594         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6595         USE_LONG_DOUBLE.
6596         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6597         isnand. Remove fma.
6598         * modules/fmodl (Files): Add lib/fmod.c.
6599         (Depends-on): Add float, isfinite, signbit, fabsl,
6600         frexpl, ldexpl, isnanl. Remove fma.
6601         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6602         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6603
6604 2012-03-03  Bruno Haible  <bruno@clisp.org>
6605
6606         fmod* tests: More tests.
6607         * tests/test-fmod.h: New file.
6608         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6609         (main): Invoke test_function.
6610         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6611         (main): Invoke test_function.
6612         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6613         (main): Invoke test_function.
6614         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6615         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6616         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6617         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6618         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6619         (Depends-on): Add 'float'.
6620         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6621
6622 2012-03-03  Bruno Haible  <bruno@clisp.org>
6623
6624         rint* tests: More tests.
6625         * tests/test-rint.h: New file, partially extracted from
6626         tests/test-rintl.c.
6627         * tests/test-rint.c: Include test-rint.h.
6628         (main): Invoke test_function.
6629         * tests/test-rintf.c: Include test-rint.h.
6630         (main): Invoke test_function.
6631         * tests/test-rintl.c: Include test-rint.h.
6632         (main): Invoke test_function.
6633         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6634         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6635         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6636         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6637         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6638         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6639
6640 2012-03-03  Bruno Haible  <bruno@clisp.org>
6641
6642         modf* tests: More tests.
6643         * tests/test-modf.h: New file.
6644         * tests/test-modf.c: Include <float.h> and test-modf.h.
6645         (main): Invoke test_function.
6646         * tests/test-modff.c: Include <float.h> and test-modf.h.
6647         (main): Invoke test_function.
6648         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6649         (main): Invoke test_function.
6650         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6651         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6652         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6653         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6654         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6655         (Depends-on): Add 'float'.
6656         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6657
6658 2012-03-03  Bruno Haible  <bruno@clisp.org>
6659
6660         fabs* tests: More tests.
6661         * tests/test-fabs.h: New file, partially extracted from
6662         tests/test-fabsl.c.
6663         * tests/test-fabs.c (RANDOM): New macro.
6664         * tests/test-fabsf.c (RANDOM): New macro.
6665         * tests/test-fabsl.c (RANDOM): New macro.
6666         * modules/fabs-tests (Files): Add tests/randomd.c.
6667         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6668         * modules/fabsf-tests (Files): Add tests/randomf.c.
6669         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6670         * modules/fabsl-tests (Files): Add tests/randoml.c.
6671         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6672
6673 2012-03-03  Bruno Haible  <bruno@clisp.org>
6674
6675         ldexp* tests: More tests.
6676         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6677         * tests/test-ldexp.c (RANDOM): New macro.
6678         * tests/test-ldexpf.c (RANDOM): New macro.
6679         * tests/test-ldexpl.c (RANDOM): New macro.
6680         * modules/ldexp-tests (Files): Add tests/randomd.c.
6681         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6682         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6683         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6684         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6685         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6686
6687 2012-03-03  Bruno Haible  <bruno@clisp.org>
6688
6689         frexp* tests: More tests.
6690         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6691         * tests/test-frexp.c (RANDOM): New macro.
6692         * tests/test-frexpf.c (RANDOM): New macro.
6693         * tests/test-frexpl.c (RANDOM): New macro.
6694         * modules/frexp-tests (Files): Add tests/randomd.c.
6695         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6696         * modules/frexpf-tests (Files): Add tests/randomf.c.
6697         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6698         * modules/frexpl-tests (Files): Add tests/randoml.c.
6699         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6700
6701 2012-03-03  Bruno Haible  <bruno@clisp.org>
6702
6703         Support for pseudo-random numbers in tests.
6704         * tests/randomf.c: New file.
6705         * tests/randomd.c: New file.
6706         * tests/randoml.c: New file.
6707         * tests/macros.h (randomf, randomd, randoml): New declarations.
6708
6709 2012-03-03  Bruno Haible  <bruno@clisp.org>
6710
6711         frexp* tests: Refactor.
6712         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6713         * tests/test-frexp.c: Include and use it.
6714         * tests/test-frexpf.c: Likewise.
6715         * tests/test-frexpl.c: Likewise.
6716         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6717         * modules/frexpf-tests (Files): Likewise.
6718         * modules/frexpl-tests (Files): Likewise.
6719
6720 2012-03-02  Jim Meyering  <meyering@redhat.com>
6721
6722         maint: don't specify XZ_OPT=-9ev in dist-related rule
6723         Using xz's -9 option is warranted only if you have a very large
6724         tarball (see xz's documentation for the sizes vs. presets), and
6725         requires 64MiB of memory at decompression time.
6726         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6727         Automake's default of just "-e" is fine.  Override on a
6728         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6729
6730 2012-03-01  Eric Blake  <eblake@redhat.com>
6731
6732         maint.mk: allow announcement for non-gnulib project
6733         * maint.mk (announcement): Skip gnulib version if not used.
6734
6735 2012-03-01  Jim Meyering  <meyering@redhat.com>
6736
6737         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6738         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6739         envvar settings cannot interfere.  Otherwise, setting envvars like
6740         prohibit=foo require=bar, etc. would cause spurious test failures.
6741
6742 2012-03-01  Eric Blake  <eblake@redhat.com>
6743
6744         maint.mk: add per-line exclusions to prohibitions
6745         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6746         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6747         (sc_const_long_option): Use it.
6748
6749 2012-03-01  Bruno Haible  <bruno@clisp.org>
6750
6751         Tests for module 'expl-ieee'.
6752         * modules/expl-ieee-tests: New file.
6753         * tests/test-expl-ieee.c: New file.
6754
6755         New module 'expl-ieee'.
6756         * modules/expl-ieee: New file.
6757
6758         Tests for module 'exp-ieee'.
6759         * modules/exp-ieee-tests: New file.
6760         * tests/test-exp-ieee.c: New file.
6761
6762         New module 'exp-ieee'.
6763         * modules/exp-ieee: New file.
6764
6765         Tests for module 'expf-ieee'.
6766         * modules/expf-ieee-tests: New file.
6767         * tests/test-expf-ieee.c: New file.
6768         * tests/test-exp-ieee.h: New file.
6769
6770         New module 'expf-ieee'.
6771         * modules/expf-ieee: New file.
6772
6773 2012-02-29  Bruno Haible  <bruno@clisp.org>
6774
6775         cbrtl-ieee: Work around test failure on IRIX 6.5.
6776         * m4/cbrtl-ieee.m4: New file.
6777         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6778         test whether cbrtl works with a minus zero argument. Replace it if not.
6779         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6781         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6782         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6783         (Depends-on): Update conditions.
6784         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6785         m4/signbit.m4.
6786         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6787         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6788         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6789
6790         Tests for module 'cbrtl-ieee'.
6791         * modules/cbrtl-ieee-tests: New file.
6792         * tests/test-cbrtl-ieee.c: New file.
6793
6794         New module 'cbrtl-ieee'.
6795         * modules/cbrtl-ieee: New file.
6796
6797         Tests for module 'cbrt-ieee'.
6798         * modules/cbrt-ieee-tests: New file.
6799         * tests/test-cbrt-ieee.c: New file.
6800
6801         New module 'cbrt-ieee'.
6802         * modules/cbrt-ieee: New file.
6803
6804         Tests for module 'cbrtf-ieee'.
6805         * modules/cbrtf-ieee-tests: New file.
6806         * tests/test-cbrtf-ieee.c: New file.
6807         * tests/test-cbrt-ieee.h: New file.
6808
6809         New module 'cbrtf-ieee'.
6810         * modules/cbrtf-ieee: New file.
6811
6812 2012-02-29  Bruno Haible  <bruno@clisp.org>
6813
6814         cbrtf: Work around bug in IRIX 6.5 system function.
6815         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6816         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6817         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6818         work.
6819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6820         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6821         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6822         (Depends-on): Update conditions.
6823         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6824
6825 2012-02-29  Bruno Haible  <bruno@clisp.org>
6826
6827         Tests for module 'cbrtl'.
6828         * modules/cbrtl-tests: New file.
6829         * tests/test-cbrtl.c: New file.
6830
6831         New module 'cbrtl'.
6832         * lib/math.in.h (cbrtl): New declaration.
6833         * lib/cbrtl.c: New file.
6834         * m4/cbrtl.m4: New file.
6835         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6837         HAVE_DECL_CBRTL.
6838         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6839         HAVE_DECL_CBRTL.
6840         * modules/cbrtl: New file.
6841         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6842         * doc/posix-functions/cbrtl.texi: Mention the new module.
6843
6844 2012-02-29  Bruno Haible  <bruno@clisp.org>
6845
6846         Tests for module 'cbrtf'.
6847         * modules/cbrtf-tests: New file.
6848         * tests/test-cbrtf.c: New file.
6849
6850         New module 'cbrtf'.
6851         * lib/math.in.h (cbrtf): New declaration.
6852         * lib/cbrtf.c: New file.
6853         * m4/cbrtf.m4: New file.
6854         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6856         HAVE_DECL_CBRTF.
6857         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6858         HAVE_DECL_CBRTF.
6859         * modules/cbrtf: New file.
6860         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6861         * doc/posix-functions/cbrtf.texi: Mention the new module.
6862
6863 2012-02-29  Bruno Haible  <bruno@clisp.org>
6864
6865         cbrt: Provide replacement on MSVC and Minix.
6866         * lib/math.in.h (cbrt): New declaration.
6867         * lib/cbrt.c: New file.
6868         * m4/cbrt.m4: New file.
6869         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6871         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6872         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6873         (Depends-on): Add dependencies.
6874         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6875         * tests/test-math-c++.cc: Check the declaration of cbrt.
6876         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6877         replacement.
6878
6879 2012-02-29  Bruno Haible  <bruno@clisp.org>
6880
6881         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6882         * m4/hypotl-ieee.m4: New file.
6883         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6884         test whether hypotl works with mixed NaN and Infinity arguments.
6885         Replace it if not.
6886         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6888         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6889         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6890         (Depends-on): Update conditions.
6891         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6892         (Depends-on): Add hypot-ieee.
6893         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6894         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6895
6896         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6897         * m4/hypotf-ieee.m4: New file.
6898         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6899         test whether hypotf works with mixed NaN and Infinity arguments.
6900         Replace it if not.
6901         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6902         (Depends-on): Add hypot-ieee.
6903         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6904         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6905
6906         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6907         * lib/math.in.h (hypot): New declaration.
6908         * lib/hypot.c: New file.
6909         * m4/hypot-ieee.m4: New file.
6910         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6911         whether hypot works with mixed NaN and Infinity arguments. Replace it
6912         if not.
6913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6914         REPLACE_HYPOT.
6915         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6916         * modules/hypot (Files): Add lib/hypot.c.
6917         (Depends-on): Add dependencies.
6918         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6919         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6920         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6921         * tests/test-math-c++.cc: Check the declaration of hypot.
6922         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6923
6924         Tests for module 'hypotl-ieee'.
6925         * modules/hypotl-ieee-tests: New file.
6926         * tests/test-hypotl-ieee.c: New file.
6927
6928         New module 'hypotl-ieee'.
6929         * modules/hypotl-ieee: New file.
6930
6931         Tests for module 'hypot-ieee'.
6932         * modules/hypot-ieee-tests: New file.
6933         * tests/test-hypot-ieee.c: New file.
6934
6935         New module 'hypot-ieee'.
6936         * modules/hypot-ieee: New file.
6937
6938         Tests for module 'hypotf-ieee'.
6939         * modules/hypotf-ieee-tests: New file.
6940         * tests/test-hypotf-ieee.c: New file.
6941         * tests/test-hypot-ieee.h: New file.
6942
6943         New module 'hypotf-ieee'.
6944         * modules/hypotf-ieee: New file.
6945
6946 2012-02-29  Bruno Haible  <bruno@clisp.org>
6947
6948         Remove unused variables.
6949         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6950         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6951         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6952         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6953
6954 2012-02-29  Eric Blake  <eblake@redhat.com>
6955
6956         termios: fix pid_t always, not just for tcgetsid
6957         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6958         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6959         just when building tcgetsid.
6960
6961 2012-02-29  Bruno Haible  <bruno@clisp.org>
6962
6963         Tests for module 'hypotl'.
6964         * modules/hypotl-tests: New file.
6965         * tests/test-hypotl.c: New file.
6966
6967         New module 'hypotl'.
6968         * lib/math.in.h (hypotl): New declaration.
6969         * lib/hypotl.c: New file.
6970         * m4/hypotl.m4: New file.
6971         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6973         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6974         * modules/hypotl: New file.
6975         * tests/test-math-c++.cc: Check the hypotl declaration.
6976         * doc/posix-functions/hypotl.texi: Mention the new module.
6977
6978 2012-02-29  Eric Blake  <eblake@redhat.com>
6979
6980         tcgetsid: fix cygwin header bug
6981         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6982
6983         docs: update cygwin progress
6984         * doc/posix-functions/llround.texi (llround): Added in cygwin
6985         1.7.8.
6986         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6987         * doc/glibc-functions/program_invocation_name.texi
6988         (program_invocation_name): Likewise.
6989         * doc/glibc-functions/program_invocation_short_name.texi
6990         (program_invocation_short_name): Likewise.
6991         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6992         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6993         Likewise.
6994         * doc/posix-functions/pthread_spin_destroy.texi
6995         (pthread_spin_destroy): Added in cygwin 1.7.10.
6996         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6997         Likewise.
6998         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6999         Likewise.
7000         * doc/posix-functions/pthread_spin_trylock.texi
7001         (pthread_spin_trylock): Likewise.
7002         * doc/posix-functions/pthread_spin_unlock.texi
7003         (pthread_spin_unlock): Likewise.
7004         * doc/posix-functions/pthread_setschedprio.texi
7005         (pthread_setschedprio): Likewise.
7006         * doc/posix-functions/pthread_attr_getstack.texi
7007         (pthread_attr_getstack): Likewise.
7008         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7009         (pthread_attr_getstackaddr): Likewise.
7010         * doc/glibc-functions/pthread_getattr_np.texi
7011         (pthread_getattr_np): Likewise.
7012         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7013         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7014         * doc/posix-functions/clock_settime.texi (clock_settime):
7015         Likewise.
7016         * doc/posix-functions/pthread_attr_getguardsize.texi
7017         (pthread_attr_getguardsize): Likewise.
7018         * doc/posix-functions/pthread_attr_setguardsize.texi
7019         (pthread_attr_setguardsize): Likewise.
7020         * doc/posix-functions/pthread_attr_setstack.texi
7021         (pthread_attr_setstack): Likewise.
7022         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7023         (pthread_attr_setstackaddr): Likewise.
7024         * doc/posix-functions/clock_getcpuclockid.texi
7025         (clock_getcpuclockid): Likewise.
7026         * doc/posix-functions/pthread_getcpuclockid.texi
7027         (pthread_getcpuclockid): Likewise.
7028         * doc/glibc-functions/error.texi (error): Likewise.
7029         * doc/glibc-functions/error_at_line.texi (error_at_line):
7030         Likewise.
7031         * doc/glibc-functions/error_message_count.texi
7032         (error_message_count): Likewise.
7033         * doc/glibc-functions/error_one_per_line.texi
7034         (error_one_per_line): Likewise.
7035         * doc/glibc-functions/error_print_progname.texi
7036         (error_print_progname): Likewise.
7037         * doc/posix-functions/pthread_condattr_getclock.texi
7038         (pthread_condattr_getclock): Likewise.
7039         * doc/posix-functions/pthread_condattr_setclock.texi
7040         (pthread_condattr_setclock): Likewise.
7041         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7042         Likewise.
7043         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7044         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7045         * doc/glibc-functions/get_current_dir_name.texi
7046         (get_current_dir_name): Likewise.
7047         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7048         Likewise.
7049         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7050         wrong return type.
7051         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7052         1.7.11.
7053
7054 2012-02-29  Bruno Haible  <bruno@clisp.org>
7055
7056         Tests for module 'hypotf'.
7057         * modules/hypotf-tests: New file.
7058         * tests/test-hypotf.c: New file.
7059
7060         New module 'hypotf'.
7061         * lib/math.in.h (hypotf): New declaration.
7062         * lib/hypotf.c: New file.
7063         * m4/hypotf.m4: New file.
7064         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7066         REPLACE_HYPOTF.
7067         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7068         REPLACE_HYPOTF.
7069         * modules/hypotf: New file.
7070         * tests/test-math-c++.cc: Check the hypotf declaration.
7071         * doc/posix-functions/hypotf.texi: Mention the new module.
7072
7073         hypot: Prepare for hypotf module.
7074         * m4/hypot.m4: New file.
7075         * modules/hypot (Files): Add m4/hypot.m4.
7076         (configure.ac): Invoke gl_FUNC_HYPOT.
7077
7078 2012-02-29  Bruno Haible  <bruno@clisp.org>
7079
7080         hypot tests: More tests.
7081         * tests/test-hypot.c: Include <float.h>.
7082         (main): Add tests about overflow and underflow.
7083
7084 2012-02-29  Bruno Haible  <bruno@clisp.org>
7085
7086         math code: Add comments.
7087         * lib/acosl.c: Add comment about related glibc source files.
7088         * lib/asinl.c: Likewise.
7089         * lib/atanl.c: Likewise.
7090         * lib/expl.c: Likewise.
7091         * lib/logl.c: Likewise.
7092         * lib/sincosl.c: Likewise.
7093         * lib/sinl.c: Likewise.
7094         * lib/tanl.c: Likewise.
7095         * lib/trigl.c: Likewise.
7096         * lib/cosl.c: Likewise. Fix comments.
7097
7098 2012-02-28  Bruno Haible  <bruno@clisp.org>
7099
7100         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7101         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7102         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7103         HUGE_VALL are defined.
7104         (numeric_equald): Renamed from numeric_equal.
7105         (numeric_equalf, numeric_equall): New functions.
7106         (main): Check also HUGE_VALF, HUGE_VALL.
7107         * modules/math-tests (Files): Add tests/macros.h.
7108         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7109         HUGE_VALL.
7110
7111 2012-02-28  Bruno Haible  <bruno@clisp.org>
7112
7113         doc: Move ISO C11 feature notes into POSIX chapters.
7114         * doc/posix-functions/aligned_alloc.texi: Renamed from
7115         doc/glibc-functions/aligned_alloc.texi.
7116         * doc/posix-functions/quick_exit.texi: Renamed from
7117         doc/glibc-functions/quick_exit.texi.
7118         * doc/posix-headers/uchar.texi: Renamed from
7119         doc/glibc-headers/uchar.texi.
7120         * doc/posix-functions/c16rtomb.texi: Renamed from
7121         doc/glibc-functions/c16rtomb.texi.
7122         * doc/posix-functions/c32rtomb.texi: Renamed from
7123         doc/glibc-functions/c32rtomb.texi.
7124         * doc/posix-functions/mbrtoc16.texi: Renamed from
7125         doc/glibc-functions/mbrtoc16.texi.
7126         * doc/posix-functions/mbrtoc32.texi: Renamed from
7127         doc/glibc-functions/mbrtoc32.texi.
7128         * doc/gnulib.texi: Update.
7129         (Glibc uchar.h): Remove section.
7130         Suggested by Eric Blake.
7131
7132 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7133
7134         stdnoreturn: port to MSVC better
7135         MSVC standard headers use __declspec(noreturn), so #define noreturn
7136         to empty on that platform.  Reported by Bruno Haible in
7137         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7138         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7139         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7140
7141 2012-02-28  Bruno Haible  <bruno@clisp.org>
7142
7143         doc: Mention new glibc headers and functions.
7144         * doc/glibc-headers/uchar.texi: New file.
7145         * doc/glibc-functions/aligned_alloc.texi: New file.
7146         * doc/glibc-functions/c16rtomb.texi: New file.
7147         * doc/glibc-functions/c32rtomb.texi: New file.
7148         * doc/glibc-functions/clock_adjtime.texi: New file.
7149         * doc/glibc-functions/fanotify_init.texi: New file.
7150         * doc/glibc-functions/fanotify_mark.texi: New file.
7151         * doc/glibc-functions/inet6_opt_append.texi: New file.
7152         * doc/glibc-functions/inet6_opt_find.texi: New file.
7153         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7154         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7155         * doc/glibc-functions/inet6_opt_init.texi: New file.
7156         * doc/glibc-functions/inet6_opt_next.texi: New file.
7157         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7158         * doc/glibc-functions/inet6_rth_add.texi: New file.
7159         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7160         * doc/glibc-functions/inet6_rth_init.texi: New file.
7161         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7162         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7163         * doc/glibc-functions/inet6_rth_space.texi: New file.
7164         * doc/glibc-functions/login.texi: New file.
7165         * doc/glibc-functions/mbrtoc16.texi: New file.
7166         * doc/glibc-functions/mbrtoc32.texi: New file.
7167         * doc/glibc-functions/name_to_handle_at.texi: New file.
7168         * doc/glibc-functions/ntp_gettimex.texi: New file.
7169         * doc/glibc-functions/open_by_handle_at.texi: New file.
7170         * doc/glibc-functions/prlimit.texi: New file.
7171         * doc/glibc-functions/process_vm_readv.texi: New file.
7172         * doc/glibc-functions/process_vm_writev.texi: New file.
7173         * doc/glibc-functions/recvmmsg.texi: New file.
7174         * doc/glibc-functions/scandirat.texi: New file.
7175         * doc/glibc-functions/sendmmsg.texi: New file.
7176         * doc/glibc-functions/setns.texi: New file.
7177         * doc/glibc-functions/timespec_get.texi: New file.
7178         * doc/gnulib.texi: Include them.
7179         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7180         sections.
7181         Reported by Eric Blake.
7182
7183 2012-02-28  Bruno Haible  <bruno@clisp.org>
7184
7185         Avoid compilation errors with MSVC option -fp:strict.
7186         * lib/floor.c: Use MSVC specific pragma fenv_access.
7187         * lib/ceil.c: Likewise.
7188         * lib/trunc.c: Likewise.
7189         * lib/round.c: Likewise.
7190         * lib/rint.c: Likewise.
7191         * lib/fma.c: Likewise.
7192         * lib/integer_length.c: Likewise.
7193         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7194         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7195         * tests/test-floor2.c: Likewise.
7196         * tests/test-floorf2.c: Likewise.
7197         * tests/test-ceil2.c: Likewise.
7198         * tests/test-ceilf2.c: Likewise.
7199         * tests/test-trunc2.c: Likewise.
7200         * tests/test-truncf2.c: Likewise.
7201         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7202
7203 2012-02-27  Bruno Haible  <bruno@clisp.org>
7204
7205         Tests for module 'sqrtl-ieee'.
7206         * modules/sqrtl-ieee-tests: New file.
7207         * tests/test-sqrtl-ieee.c: New file.
7208
7209         New module 'sqrtl-ieee'.
7210         * modules/sqrtl-ieee: New file.
7211
7212         Tests for module 'sqrt-ieee'.
7213         * modules/sqrt-ieee-tests: New file.
7214         * tests/test-sqrt-ieee.c: New file.
7215
7216         New module 'sqrt-ieee'.
7217         * modules/sqrt-ieee: New file.
7218
7219         Tests for module 'sqrtf-ieee'.
7220         * modules/sqrtf-ieee-tests: New file.
7221         * tests/test-sqrtf-ieee.c: New file.
7222         * tests/test-sqrt-ieee.h: New file.
7223
7224         New module 'sqrtf-ieee'.
7225         * modules/sqrtf-ieee: New file.
7226
7227 2012-02-27  Bruno Haible  <bruno@clisp.org>
7228
7229         remainderl-ieee: Work around test failure on OSF/1.
7230         * m4/remainderl-ieee.m4: New file.
7231         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7232         present, test whether remainderl works with a zero second argument.
7233         Replace it if not.
7234         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7236         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7237         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7238         (Depends-on): Update conditions.
7239         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7240         (Depends-on): Add remainder-ieee.
7241         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7242         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7243         module.
7244
7245         remainderf-ieee: Work around test failure on OSF/1.
7246         * m4/remainderf-ieee.m4: New file.
7247         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7248         present, test whether remainderf works with a zero second argument.
7249         Replace it if not.
7250         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7252         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7253         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7254         (Depends-on): Update conditions.
7255         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7256         (Depends-on): Add remainder-ieee.
7257         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7258         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7259         module.
7260
7261         remainder-ieee: Work around test failure on OSF/1.
7262         * m4/remainder-ieee.m4: New file.
7263         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7264         present, test whether remainder works with a zero second argument.
7265         Replace it if not.
7266         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7268         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7269         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7270         (Depends-on): Update dependencies.
7271         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7272         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7273         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7274
7275         Tests for module 'remainderl-ieee'.
7276         * modules/remainderl-ieee-tests: New file.
7277         * tests/test-remainderl-ieee.c: New file.
7278
7279         New module 'remainderl-ieee'.
7280         * modules/remainderl-ieee: New file.
7281
7282         Tests for module 'remainder-ieee'.
7283         * modules/remainder-ieee-tests: New file.
7284         * tests/test-remainder-ieee.c: New file.
7285
7286         New module 'remainder-ieee'.
7287         * modules/remainder-ieee: New file.
7288
7289         Tests for module 'remainderf-ieee'.
7290         * modules/remainderf-ieee-tests: New file.
7291         * tests/test-remainderf-ieee.c: New file.
7292         * tests/test-remainder-ieee.h: New file.
7293
7294         New module 'remainderf-ieee'.
7295         * modules/remainderf-ieee: New file.
7296
7297 2012-02-27  Bruno Haible  <bruno@clisp.org>
7298
7299         modff, modfl: Fix configure syntax error.
7300         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7301         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7302
7303 2012-02-27  Bruno Haible  <bruno@clisp.org>
7304
7305         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7306         * m4/fmodl-ieee.m4: New file.
7307         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7308         whether fmodl works with zero arguments. Replace it if not.
7309         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7310         (Depends-on): Add fmod-ieee.
7311         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7312         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7313
7314         fmodf-ieee: Work around test failure on OSF/1.
7315         * m4/fmodf-ieee.m4: New file.
7316         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7317         whether fmodf works with zero arguments. Replace it if not.
7318         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7320         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7321         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7322         (Depends-on): Update dependencies.
7323         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7324         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7325         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7326
7327         fmodf-ieee: Work around test failure on MSVC 9.
7328         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7329         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7330
7331         fmod-ieee: Work around test failures on OSF/1, mingw.
7332         * m4/fmod-ieee.m4: New file.
7333         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7334         whether fmod works with zero arguments. Replace it if not.
7335         * lib/math.in.h (fmod): New declaration.
7336         * lib/fmod.c: New file.
7337         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7338         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7339         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7340         * modules/fmod (Files): Add lib/fmod.c.
7341         (Depends-on): Add math, isinf, trunc, fma.
7342         (configure.ac): Arrange to compile lib/fmod.c if needed.
7343         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7344         m4/signbit.m4.
7345         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7346         * tests/test-math-c++.cc: Check the declaration of fmod.
7347         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7348
7349         fmodl-ieee: Fix test failures.
7350         * lib/fmodl.c (fmodl): Treat Inf specially.
7351         * modules/fmodl (Depends-on): Add isinf.
7352
7353         Tests for module 'fmodl-ieee'.
7354         * modules/fmodl-ieee-tests: New file.
7355         * tests/test-fmodl-ieee.c: New file.
7356
7357         New module 'fmodl-ieee'.
7358         * modules/fmodl-ieee: New file.
7359
7360         Tests for module 'fmod-ieee'.
7361         * modules/fmod-ieee-tests: New file.
7362         * tests/test-fmod-ieee.c: New file.
7363
7364         New module 'fmod-ieee'.
7365         * modules/fmod-ieee: New file.
7366
7367         Tests for module 'fmodf-ieee'.
7368         * modules/fmodf-ieee-tests: New file.
7369         * tests/test-fmodf-ieee.c: New file.
7370         * tests/test-fmod-ieee.h: New file.
7371
7372         New module 'fmodf-ieee'.
7373         * modules/fmodf-ieee: New file.
7374
7375 2012-02-27  Bruno Haible  <bruno@clisp.org>
7376
7377         Tests for module 'rintl-ieee'.
7378         * modules/rintl-ieee-tests: New file.
7379         * tests/test-rintl-ieee.c: New file.
7380
7381         New module 'rintl-ieee'.
7382         * modules/rintl-ieee: New file.
7383
7384         Tests for module 'rint-ieee'.
7385         * modules/rint-ieee-tests: New file.
7386         * tests/test-rint-ieee.c: New file.
7387
7388         New module 'rint-ieee'.
7389         * modules/rint-ieee: New file.
7390
7391         Tests for module 'rintf-ieee'.
7392         * modules/rintf-ieee-tests: New file.
7393         * tests/test-rintf-ieee.c: New file.
7394         * tests/test-rint-ieee.h: New file.
7395
7396         New module 'rintf-ieee'.
7397         * modules/rintf-ieee: New file.
7398
7399 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7400
7401         regex: re_search etc. should return -2 when memory exhausted
7402         This bug was uncovered when testing 'grep'.  Without the fix,
7403         re_search and friends return -1 when memory is exhausted, but -1
7404         means no match, and this causes grep to falsely report no-match
7405         instead of memory-exhaustion.  See
7406         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7407         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7408         trouble; this can occur if re_search_internal ran out of memory.
7409
7410 2012-02-26  Bruno Haible  <bruno@clisp.org>
7411
7412         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7413         * m4/modfl-ieee.m4: New file.
7414         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7415         whether modfl works with Inf. Replace it if not.
7416         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7418         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7419         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7420         (Depends-on): Update dependencies.
7421         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7422         m4/signbit.m4.
7423         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7424         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7425
7426         modfl-ieee: Fix dependencies.
7427         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7428
7429         modfl-ieee: Fix test failures.
7430         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7431         * modules/modfl (Depends-on): Add isfinite, isinf.
7432
7433         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7434         * m4/modff-ieee.m4: New file.
7435         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7436         whether modff works with NaN and Inf. Replace it if not.
7437         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7439         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7440         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7441         (Depends-on): Update dependencies.
7442         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7443         m4/signbit.m4.
7444         (Depends-on): Add modf-ieee.
7445         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7446         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7447
7448         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7449         * m4/modf-ieee.m4: New file.
7450         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7451         whether modf works with NaN and Inf. Replace it if not.
7452         * lib/math.in.h (modf): New declaration.
7453         * lib/modf.c: New file.
7454         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7456         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7457         * modules/modf (Files): Add lib/modf.c.
7458         (Depends-on): Add math, isfinite, trunc, isinf.
7459         (configure.ac): Addrange to compile lib/modf.c if needed.
7460         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7461         m4/signbit.m4.
7462         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7463         * tests/test-math-c++.cc: Check the declaration of modf.
7464         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7465
7466         Tests for module 'modfl-ieee'.
7467         * modules/modfl-ieee-tests: New file.
7468         * tests/test-modfl-ieee.c: New file.
7469
7470         New module 'modfl-ieee'.
7471         * modules/modfl-ieee: New file.
7472
7473         Tests for module 'modf-ieee'.
7474         * modules/modf-ieee-tests: New file.
7475         * tests/test-modf-ieee.c: New file.
7476
7477         New module 'modf-ieee'.
7478         * modules/modf-ieee: New file.
7479
7480         Tests for module 'modff-ieee'.
7481         * modules/modff-ieee-tests: New file.
7482         * tests/test-modff-ieee.c: New file.
7483         * tests/test-modf-ieee.h: New file.
7484
7485         New module 'modff-ieee'.
7486         * modules/modff-ieee: New file.
7487
7488 2012-02-26  Bruno Haible  <bruno@clisp.org>
7489
7490         Tests for module 'fabsl-ieee'.
7491         * modules/fabsl-ieee-tests: New file.
7492         * tests/test-fabsl-ieee.c: New file.
7493
7494         New module 'fabsl-ieee'.
7495         * modules/fabsl-ieee: New file.
7496
7497         Tests for module 'fabs-ieee'.
7498         * modules/fabs-ieee-tests: New file.
7499         * tests/test-fabs-ieee.c: New file.
7500
7501         New module 'fabs-ieee'.
7502         * modules/fabs-ieee: New file.
7503
7504         Tests for module 'fabsf-ieee'.
7505         * modules/fabsf-ieee-tests: New file.
7506         * tests/test-fabsf-ieee.c: New file.
7507         * tests/test-fabs-ieee.h: New file.
7508
7509         New module 'fabsf-ieee'.
7510         * modules/fabsf-ieee: New file.
7511
7512 2012-02-26  Bruno Haible  <bruno@clisp.org>
7513
7514         Tests for module 'fmal-ieee'.
7515         * modules/fmal-ieee-tests: New file.
7516         * tests/test-fmal-ieee.c: New file.
7517
7518         New module 'fmal-ieee'.
7519         * modules/fmal-ieee: New file.
7520
7521         Tests for module 'fma-ieee'.
7522         * modules/fma-ieee-tests: New file.
7523         * tests/test-fma-ieee.c: New file.
7524
7525         New module 'fma-ieee'.
7526         * modules/fma-ieee: New file.
7527
7528         Tests for module 'fmaf-ieee'.
7529         * modules/fmaf-ieee-tests: New file.
7530         * tests/test-fmaf-ieee.c: New file.
7531         * tests/test-fma-ieee.h: New file.
7532
7533         New module 'fmaf-ieee'.
7534         * modules/fmaf-ieee: New file.
7535
7536 2012-02-26  Bruno Haible  <bruno@clisp.org>
7537
7538         Tests for module 'ldexpl-ieee'.
7539         * modules/ldexpl-ieee-tests: New file.
7540         * tests/test-ldexpl-ieee.c: New file.
7541
7542         New module 'ldexpl-ieee'.
7543         * modules/ldexpl-ieee: New file.
7544
7545         Tests for module 'ldexp-ieee'.
7546         * modules/ldexp-ieee-tests: New file.
7547         * tests/test-ldexp-ieee.c: New file.
7548
7549         New module 'ldexp-ieee'.
7550         * modules/ldexp-ieee: New file.
7551
7552         Tests for module 'ldexpf-ieee'.
7553         * modules/ldexpf-ieee-tests: New file.
7554         * tests/test-ldexpf-ieee.c: New file.
7555         * tests/test-ldexp-ieee.h: New file.
7556
7557         New module 'ldexpf-ieee'.
7558         * modules/ldexpf-ieee: New file.
7559
7560 2012-02-26  Bruno Haible  <bruno@clisp.org>
7561
7562         Refactor frexp*-ieee tests.
7563         * tests/test-frexp-ieee.h: New file.
7564         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7565         (main): Just call test_function.
7566         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7567         (main): Just call test_function.
7568         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7569         (main): Just call test_function.
7570         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7571         * modules/frexp-ieee-tests (Files): Likewise.
7572         * modules/frexpl-ieee-tests (Files): Likewise.
7573
7574         Tests for module 'frexpl-ieee'.
7575         * modules/frexpl-ieee-tests: New file.
7576         * tests/test-frexpl-ieee.c: New file.
7577
7578         New module 'frexpl-ieee'.
7579         * modules/frexpl-ieee: New file.
7580
7581         Tests for module 'frexp-ieee'.
7582         * modules/frexp-ieee-tests: New file.
7583         * tests/test-frexp-ieee.c: New file.
7584
7585         New module 'frexp-ieee'.
7586         * modules/frexp-ieee: New file.
7587
7588         Tests for module 'frexpf-ieee'.
7589         * modules/frexpf-ieee-tests: New file.
7590         * tests/test-frexpf-ieee.c: New file.
7591
7592         New module 'frexpf-ieee'.
7593         * modules/frexpf-ieee: New file.
7594
7595 2012-02-26  Bruno Haible  <bruno@clisp.org>
7596
7597         roundl-ieee tests: More tests.
7598         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7599         (main): Add tests for [MX] shaded specification in POSIX.
7600         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7601         (Depends-on): Add isnanl-nolibm.
7602
7603         round-ieee tests: More tests.
7604         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7605         (main): Add tests for [MX] shaded specification in POSIX.
7606         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7607         (Depends-on): Add isnand-nolibm.
7608
7609         roundf-ieee tests: More tests.
7610         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7611         (main): Add tests for [MX] shaded specification in POSIX.
7612         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7613         (Depends-on): Add isnanf-nolibm.
7614
7615         truncl-ieee tests: More tests.
7616         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7617         (main): Add tests for [MX] shaded specification in POSIX.
7618         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7619         (Depends-on): Add isnanl-nolibm.
7620
7621         trunc-ieee tests: More tests.
7622         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7623         (main): Add tests for [MX] shaded specification in POSIX.
7624         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7625         (Depends-on): Add isnand-nolibm.
7626
7627         truncf-ieee tests: More tests.
7628         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7629         (main): Add tests for [MX] shaded specification in POSIX.
7630         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7631         (Depends-on): Add isnanf-nolibm.
7632
7633         ceill-ieee tests: More tests.
7634         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7635         (main): Add tests for [MX] shaded specification in POSIX.
7636         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7637         (Depends-on): Add isnanl-nolibm.
7638
7639         ceil-ieee tests: More tests.
7640         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7641         (main): Add tests for [MX] shaded specification in POSIX.
7642         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7643         (Depends-on): Add isnand-nolibm.
7644
7645         ceilf-ieee tests: More tests.
7646         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7647         (main): Add tests for [MX] shaded specification in POSIX.
7648         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7649         (Depends-on): Add isnanf-nolibm.
7650
7651         floorl-ieee tests: More tests.
7652         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7653         (main): Add tests for [MX] shaded specification in POSIX.
7654         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7655         (Depends-on): Add isnanl-nolibm.
7656
7657         floor-ieee tests: More tests.
7658         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7659         (main): Add tests for [MX] shaded specification in POSIX.
7660         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7661         (Depends-on): Add isnand-nolibm.
7662
7663         floorf-ieee tests: More tests.
7664         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7665         (main): Add tests for [MX] shaded specification in POSIX.
7666         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7667         (Depends-on): Add isnanf-nolibm.
7668
7669 2012-02-26  Bruno Haible  <bruno@clisp.org>
7670
7671         fpieee: More comments.
7672         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7673
7674 2012-02-25  Bruno Haible  <bruno@clisp.org>
7675
7676         Tests for module 'log10l'.
7677         * modules/log10l-tests: New file.
7678         * tests/test-log10l.c: New file.
7679         * tests/test-math-c++.cc: Check the declaration of log10l.
7680
7681         New module 'log10l'.
7682         * lib/math.in.h (log10l): New declaration.
7683         * lib/log10l.c: New file.
7684         * m4/log10l.m4: New file.
7685         * modules/log10l: New file.
7686         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7688         HAVE_DECL_LOG10L.
7689         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7690         HAVE_DECL_LOG10L.
7691         * doc/posix-functions/log10l.texi: Mention the new module.
7692
7693 2012-02-25  Bruno Haible  <bruno@clisp.org>
7694
7695         fmodl, remainder*: Avoid wrong results due to rounding errors.
7696         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7697         expected bounds.
7698         * lib/remainderf.c (remainderf): Likewise.
7699         * lib/remainder.c (remainder): Likewise.
7700         * lib/remainderl.c (remainderl): Likewise.
7701
7702 2012-02-25  Bruno Haible  <bruno@clisp.org>
7703
7704         Tests for module 'remainderl'.
7705         * modules/remainderl-tests: New file.
7706         * tests/test-remainderl.c: New file.
7707         * tests/test-math-c++.cc: Check the declaration of remainderl.
7708
7709         New module 'remainderl'.
7710         * lib/math.in.h (remainderl): New declaration.
7711         * lib/remainderl.c: New file.
7712         * m4/remainderl.m4: New file.
7713         * modules/remainderl: New file.
7714         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7716         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7717         HAVE_REMAINDERL.
7718         * doc/posix-functions/remainderl.texi: Mention the new module.
7719
7720 2012-02-25  Bruno Haible  <bruno@clisp.org>
7721
7722         Tests for module 'remainderf'.
7723         * modules/remainderf-tests: New file.
7724         * tests/test-remainderf.c: New file.
7725         * tests/test-math-c++.cc: Check the declaration of remainderf.
7726
7727         New module 'remainderf'.
7728         * lib/math.in.h (remainderf): New declaration.
7729         * lib/remainderf.c: New file.
7730         * m4/remainderf.m4: New file.
7731         * modules/remainderf: New file.
7732         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7734         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7735         HAVE_REMAINDERF.
7736         * doc/posix-functions/remainderf.texi: Mention the new module.
7737
7738 2012-02-25  Bruno Haible  <bruno@clisp.org>
7739
7740         remainder: Support for MSVC.
7741         * lib/math.in.h (remainder): New declaration.
7742         * lib/remainder.c: New file.
7743         * m4/remainder.m4: New file.
7744         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7745         (Depends-on): Add math, round, fma.
7746         (configure.ac): Use results of gl_FUNC_REMAINDER.
7747         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7749         HAVE_DECL_REMAINDER.
7750         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7751         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7752         * tests/test-math-c++.cc: Check the declaration of remainder.
7753         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7754         problems are fixed.
7755
7756 2012-02-25  Bruno Haible  <bruno@clisp.org>
7757
7758         Tests for module 'fmodl'.
7759         * modules/fmodl-tests: New file.
7760         * tests/test-fmodl.c: New file.
7761         * tests/test-math-c++.cc: Check the declaration of fmodl.
7762
7763         New module 'fmodl'.
7764         * lib/math.in.h (fmodl): New declaration.
7765         * lib/fmodl.c: New file.
7766         * m4/fmodl.m4: New file.
7767         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7769         REPLACE_FMODL.
7770         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7771         REPLACE_FMODL.
7772         * modules/fmodl: New file.
7773         * doc/posix-functions/fmodl.texi: Mention the new module.
7774
7775 2012-02-25  Bruno Haible  <bruno@clisp.org>
7776
7777         Tests for module 'modfl'.
7778         * modules/modfl-tests: New file.
7779         * tests/test-modfl.c: New file.
7780         * tests/test-math-c++.cc: Check the declaration of modfl.
7781
7782         New module 'modfl'.
7783         * lib/math.in.h (modfl): New declaration.
7784         * lib/modfl.c: New file.
7785         * m4/modfl.m4: New file.
7786         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7788         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7789         * modules/modfl: New file.
7790         * doc/posix-functions/modfl.texi: Mention the new module.
7791
7792 2012-02-25  Bruno Haible  <bruno@clisp.org>
7793
7794         Tests for module 'fabsl'.
7795         * modules/fabsl-tests: New file.
7796         * tests/test-fabsl.c: New file.
7797         * tests/test-math-c++.cc: Check the declaration of fabsl.
7798
7799         New module 'fabsl'.
7800         * lib/math.in.h (fabsl): New declaration.
7801         * lib/fabsl.c: New file.
7802         * m4/fabsl.m4: New file.
7803         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7805         REPLACE_FABSL.
7806         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7807         REPLACE_FABSL.
7808         * modules/fabsl: New file.
7809         * doc/posix-functions/fabsl.texi: Mention the new module.
7810
7811 2012-02-25  Bruno Haible  <bruno@clisp.org>
7812
7813         fabs tests: More tests.
7814         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7815         (zero): New variable.
7816         (main): Add tests for signed zero.
7817         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7818
7819         fabsf tests: More tests.
7820         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7821         (zero): New variable.
7822         (main): Add tests for signed zero.
7823         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7824
7825 2012-02-24  Bruno Haible  <bruno@clisp.org>
7826
7827         atanl: Provide function definition on MSVC.
7828         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7829         function pointer.
7830         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7831
7832 2012-02-24  Bruno Haible  <bruno@clisp.org>
7833
7834         acosl: Provide function definition on MSVC.
7835         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7836         function pointer.
7837         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7838
7839 2012-02-24  Bruno Haible  <bruno@clisp.org>
7840
7841         asinl: Provide function definition on MSVC.
7842         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7843         function pointer.
7844         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7845
7846 2012-02-24  Bruno Haible  <bruno@clisp.org>
7847
7848         tanl: Provide function definition on MSVC.
7849         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7850         function pointer.
7851         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7852
7853 2012-02-24  Bruno Haible  <bruno@clisp.org>
7854
7855         cosl: Provide function definition on MSVC.
7856         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7857         function pointer.
7858         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7859
7860 2012-02-24  Bruno Haible  <bruno@clisp.org>
7861
7862         sinl: Provide function definition on MSVC.
7863         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7864         function pointer.
7865         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7866
7867 2012-02-24  Bruno Haible  <bruno@clisp.org>
7868
7869         logl: Provide function definition on MSVC.
7870         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7871         function pointer.
7872         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7873
7874 2012-02-24  Bruno Haible  <bruno@clisp.org>
7875
7876         expl: Provide function definition on MSVC.
7877         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7878         function pointer.
7879         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7880
7881 2012-02-24  Bruno Haible  <bruno@clisp.org>
7882
7883         sqrtl: Provide function definition on MSVC.
7884         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7885         a function pointer.
7886         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7887
7888 2012-02-24  Bruno Haible  <bruno@clisp.org>
7889
7890         ceill: Provide function definition on MSVC.
7891         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7892         used as a function pointer.
7893         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7894
7895 2012-02-24  Bruno Haible  <bruno@clisp.org>
7896
7897         floorl: Provide function definition on MSVC.
7898         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7899         used as a function pointer.
7900         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7901
7902 2012-02-24  Bruno Haible  <bruno@clisp.org>
7903
7904         ceilf: Provide function definition on MSVC.
7905         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7906         used as a function pointer.
7907         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7908
7909 2012-02-24  Bruno Haible  <bruno@clisp.org>
7910
7911         floorf: Provide function definition on MSVC.
7912         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7913         used as a function pointer.
7914         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7915
7916 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7917
7918         stdnoreturn: new module
7919         This implements a replacement for C11's <stdnoreturn.h>.
7920         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7921         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7922         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7923         * tests/test-stdnoreturn.c: New files.
7924
7925 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7926
7927         regex: fix false multibyte matches in some regular expressions
7928         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7929         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7930         * lib/regex_internal.c (re_string_skip_chars):
7931         Fix miscomputation of remain_len that may cause incomplete
7932         multi-byte character and false match.
7933
7934 2012-02-24  Jim Meyering  <meyering@redhat.com>
7935
7936         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7937         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7938         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7939         Remove now-unnecessary str''cmp obfuscation.
7940         Suggested by Akim Demaille.
7941
7942 2012-02-24  Bruno Haible  <bruno@clisp.org>
7943
7944         streq: Rename macro.
7945         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7946         * NEWS: Mention the change.
7947         * lib/mbrtowc.c (mbrtowc): Update.
7948         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7949         * lib/wcwidth.c (wcwidth): Update.
7950         Suggested by Akim Demaille and Jim Meyering.
7951
7952 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7953
7954         regex: fix typo in definition of MIN
7955         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7956         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7957
7958 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7959             Bruno Haible  <bruno@clisp.org>
7960
7961         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7962         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7963         entries into a stack-allocated buffer directly.
7964         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7965
7966 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7967             Bruno Haible  <bruno@clisp.org>
7968
7969         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7970
7971          - There were several instances of this pattern:
7972
7973              for (;;) {
7974                n = acl (f, GETACLCNT, 0, NULL);
7975                [ allocate an array A of size N ]
7976                if (acl (f, GETACL, n, a) == n)
7977                  break;
7978              }
7979
7980            This loop might never terminate if some other process is constantly
7981            manipulating the file's ACL.  The loop should be rewritten to
7982            terminate.
7983
7984          - The acl (... GETACLNT ...) call is merely an optimization; its value
7985            is merely a hint as to how big to make the array.  A better
7986            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7987            and just guess a reasonably-big size, growing the size and trying
7988            again if it's not large enough.  This guarantees termination, and
7989            saves a system call.
7990
7991         * lib/acl-internal.h: Include <limits.h>.
7992         (MIN, SIZE_MAX): New macros.
7993         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7994         a stack-allocated buffer, and use malloc if it does not fit. Don't
7995         use GETACLCNT.
7996         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7997
7998 2012-02-19  Bruno Haible  <bruno@clisp.org>
7999
8000         acl: Fix endless loop on Solaris with vxfs.
8001         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8002         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8003         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8004         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8005         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8006         Reported by Bill Jones in
8007         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8008
8009 2012-02-19  Bruno Haible  <bruno@clisp.org>
8010
8011         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8012         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8013         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8014         that this function returns 0 in some more cases.
8015
8016 2012-02-19  Bruno Haible  <bruno@clisp.org>
8017
8018         acl: Update doc references.
8019         * doc/acl-resources.txt: Update links to Solaris documentation.
8020
8021 2012-02-19  Bruno Haible  <bruno@clisp.org>
8022
8023         Fix test failure in many locales on Solaris 11.
8024         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8025         'tr' arguments.
8026         * tests/test-pipe-filter-ii1.c (main): Likewise.
8027         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8028         expressions in the C locale.
8029         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8030         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8031
8032 2012-02-19  Bruno Haible  <bruno@clisp.org>
8033
8034         gnulib-tool: Improve usage message.
8035         * gnulib-tool (func_usage): Move doc of --help and --version to the
8036         section "Operation modes".
8037
8038 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8039
8040         README-release: make it easier to execute commands
8041         * top/README-release: break commands out on to separate lines.
8042
8043 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8044
8045         GNUmakefile: simplify detection of unconfigured trees
8046         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8047         whether the tree make is being run from is already configured or
8048         not.  Related simplifications.
8049
8050 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8051
8052         * gnulib-tool (func_usage): Document --help and --version.
8053
8054 2012-02-11  Jim Meyering  <meyering@redhat.com>
8055
8056         bootstrap: don't exit 0 upon gnulib-tool failure
8057         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8058         its exit status, not 0.
8059
8060 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8061
8062         README-release: various improvements
8063         * top/README-release: Give a command to push changes for the
8064         release.  Add "distcheck" to list of other pre-release checks.
8065         Fix instance of "make stable" which should be "make TYPE".
8066
8067 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8068
8069         maint: replace FSF snail-mail addresses with URLs
8070         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8071         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8072         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8073         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8074         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8075         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8076         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8077         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8078         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8079         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8080         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8081         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8082         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8083         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8084         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8085         * lib/glthread/thread.c, lib/glthread/thread.h:
8086         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8087         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8088         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8089         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8090         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8091         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8092         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8093         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8094         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8095         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8096         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8097         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8098         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8099         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8100         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8101         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8102         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8103         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8104         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8105         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8106         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8107         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8108         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8109         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8110         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8111         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8112         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8113         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8114         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8115         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8116         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8117         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8118         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8119         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8120         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8121         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8122         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8123         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8124         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8125         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8126         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8127         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8128         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8129         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8130         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8131         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8132         * tests/test-poll.c, tests/test-quotearg-simple.c:
8133         * tests/test-quotearg.c, tests/test-quotearg.h:
8134         * tests/test-round-ieee.c, tests/test-round1.c:
8135         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8136         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8137         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8138         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8139         * tests/test-strerror.c, tests/test-strerror_r.c:
8140         * tests/test-strsignal.c, tests/test-strverscmp.c:
8141         * tests/test-xmemdup0.c:
8142         Replace FSF snail mail addresses with URLs, as per GNU coding
8143         standards.  See glibc bug
8144         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8145
8146 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8147
8148         README-release: capitalize a word and split a line
8149         * top/README-release: Fix punctuation and spacing.
8150
8151 2012-02-08  Akim Demaille  <demaille@gostai.com>
8152
8153         fatal-signal: use C prototypes (with explicit void).
8154         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8155         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8156
8157 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8158
8159         regex: spelling fix
8160         * lib/regexec.c: spelling fix
8161
8162         regex: rely on stdint.h for SIZE_MAX
8163         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8164
8165 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8166
8167         regex: merge glibc changes
8168
8169         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8170         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8171         (init_word_char): Work even if bitset words are not exactly 32 or
8172         64 bits wide.  Don't assume there are no padding bits.
8173         * lib/regex.c [_LIBC]: Do not include <config.h>.
8174         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8175         and -Wtype-limits.
8176         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8177         needless disagreement with glibc.  All uses changed.  Define it to
8178         1 only if _GNU_SOURCE, to match glibc.
8179         (_REG_RM_NAME): Remove; no longer needed, since the names in
8180         question are now all protected by __USE_GNU.
8181         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8182         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8183         * lib/regex_internal.h (MIN): New macro.
8184
8185         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8186         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8187
8188         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8189         * lib/regex_internal.c (re_string_fetch_byte_case):
8190         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8191         is miscompiled, and it turns out it is because of an incorrect
8192         attribute on re_string_fetch_byte_case.  Unlike
8193         re_string_peek_byte_case, this one is really not pure, it modifies
8194         memory (increments pstr->cur_idx), and with the pure attribute GCC
8195         assumed it doesn't and it cached the presumed value of
8196         regexp->cur_idx in a variable across the
8197          for (;; ++i)
8198            {
8199              if (i >= BRACKET_NAME_BUF_SIZE)
8200                return REG_EBRACK;
8201              if (token->type == OP_OPEN_CHAR_CLASS)
8202                ch = re_string_fetch_byte_case (regexp);
8203              else
8204                ch = re_string_fetch_byte (regexp);
8205              if (re_string_eoi(regexp))
8206                return REG_EBRACK;
8207              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8208                break;
8209              elem->opr.name[i] = ch;
8210            }
8211
8212         2011-11-29 Andreas Schwab <schwab@redhat.com>
8213         * lib/regcomp.c (build_equiv_class):
8214         Fix access after end of search string in regex matcher.
8215
8216         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8217         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8218
8219         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8220         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8221
8222         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8223         * lib/regcomp.c (parse_branch, parse_sub_exp):
8224         More regex memory leak fixes and tests.
8225         (parse_sub_exp, parse_bracket_exp):
8226         Fix memory leak for some invalid regular expressions.
8227
8228         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8229         * lib/regex_internal.c, lib/regexec.c:
8230         Fix unnecessary overallocation due to incomplete character.  When
8231         incomplete characters are found at the end of a string the code
8232         ran amok and allocated lots of memory.  Stricter limits are now in
8233         place.
8234
8235         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8236         * lib/regex.h: Update documentation.
8237
8238         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8239         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8240
8241         2010-05-05 Andreas Schwab <schwab@redhat.com>
8242         * lib/regexec.c (find_collation_sequence_value):
8243         Fix lookup of collation sequence value during regexp matching.
8244
8245         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8246         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8247
8248         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8249         * lib/regex.h: Cleanup namespace.
8250
8251         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8252         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8253
8254         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8255         * lib/regex_internal.h: Prevent some declarations and definitions
8256         to be seen when used in tests.
8257
8258         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8259         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8260         __libc_lock_* macros if not _LIBC.
8261         (struct re_dfa_t): Add lock.
8262
8263 2012-02-07  Eric Blake  <eblake@redhat.com>
8264
8265         maint.mk: also prohibit lower-case @var@
8266         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8267         lower case, like @top_srcdir@.
8268
8269 2012-02-04  Eric Blake  <eblake@redhat.com>
8270
8271         canonicalize: avoid uninitialized memory use
8272         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8273         random '/' left in dest.
8274         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8275
8276 2012-02-04  Bruno Haible  <bruno@clisp.org>
8277
8278         isatty: Fix test failure of ptsname_r on native Windows.
8279         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8280         and don't set errno.
8281         (isatty): Test first whether fd is valid. Set errno when returning 0.
8282
8283 2012-02-04  Bruno Haible  <bruno@clisp.org>
8284
8285         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8286         * tests/test-spawn-pipe-main.c: Include progname.h.
8287         (main): Invoke set_program_name.
8288         * modules/spawn-pipe-tests (Depends-on): Add progname.
8289
8290         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8291         * tests/test-nonblocking-socket-main.c: Include progname.h.
8292         (main): Invoke set_program_name.
8293         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8294
8295         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8296         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8297         (main): Invoke set_program_name.
8298         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8299
8300 2012-02-04  Eric Blake  <eblake@redhat.com>
8301
8302         canonicalize-lgpl: fix // handling
8303         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8304
8305         canonicalize: fix // handling
8306         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8307         /// to //, since only // is special.
8308
8309 2012-02-04  Bruno Haible  <bruno@clisp.org>
8310
8311         ioctl: Fix test failure on native Windows.
8312         * lib/ioctl.c: Include msvc-nothrow.h.
8313         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8314
8315 2012-02-04  Bruno Haible  <bruno@clisp.org>
8316
8317         fsync: Avoid test failure on native Windows.
8318         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8319         read-only.
8320
8321 2012-02-04  Bruno Haible  <bruno@clisp.org>
8322
8323         sys_select: Avoid syntax error on OpenBSD 5.0.
8324         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8325         currently being included, just include the system's <sys/select.h>.
8326
8327 2012-02-04  Bruno Haible  <bruno@clisp.org>
8328
8329         sys_select: Avoid syntax error on OpenBSD 5.0.
8330         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8331         <sys/select.h>, not before.
8332         Reported by Jiri B <jirib@devio.us>.
8333
8334 2012-02-04  Bruno Haible  <bruno@clisp.org>
8335
8336         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8337         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8338         global variables.
8339         * tests/test-get-rusage-data.c (main): Likewise.
8340         Reported by Jim Meyering.
8341
8342 2012-02-04  Bruno Haible  <bruno@clisp.org>
8343
8344         stdioext: Fix last commit.
8345         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8346
8347 2012-02-03  Bruno Haible  <bruno@clisp.org>
8348
8349         stdioext: Add tentative support for Plan9.
8350         * lib/stdio-impl.h: Include <errno.h>.
8351         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8352         * lib/freadable.c (freadable): Likewise.
8353         * lib/fwritable.c (fwritable): Likewise.
8354         * lib/fbufmode.c (fbufmode): Likewise.
8355         * lib/freading.c (freading): Likewise.
8356         * lib/fwriting.c (fwriting): Likewise.
8357         * lib/freadptr.c (freadptr): Likewise.
8358         * lib/freadseek.c (freadptrinc): Likewise.
8359         * lib/freadahead.c (freadahead): Likewise.
8360         * lib/fpurge.c (fpurge): Likewise.
8361         * lib/fseeko.c (rpl_fseeko): Likewise.
8362         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8363         Reported by Jens Staal <staal1978@gmail.com>.
8364
8365 2012-02-02  Jim Meyering  <meyering@redhat.com>
8366
8367         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8368         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8369         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8370         not even to try to add the attribute.  Instead, add a pragma to suppress
8371         the suggestion/warning.
8372
8373 2012-01-31  Karl Berry  <karl@gnu.org>
8374
8375         setstate doc: typo.
8376         * doc/posix-functions/setstate.texi (setstate): { not (.
8377
8378 2012-01-31  Bruno Haible  <bruno@clisp.org>
8379
8380         popen: Make more robust on Windows.
8381         * lib/popen.c: On native Windows, use the _popen based code even if
8382         HAVE_POPEN is set.
8383         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8384         environment variable on native Windows.
8385
8386 2012-01-30  Bruno Haible  <bruno@clisp.org>
8387
8388         pclose: Fix typo.
8389         * lib/stdio.in.h (pclose): Fix typo in warning message.
8390
8391 2012-01-30  Bruno Haible  <bruno@clisp.org>
8392
8393         doc about getlogin_r, setstate.
8394         * doc/posix-functions/getlogin_r.texi: List the incompatible
8395         declaration problem under "not fixed by gnulib".
8396         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8397         problem on Solaris 11 and other platforms.
8398
8399 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8400             Bruno Haible  <bruno@clisp.org>
8401
8402         poll tests: Make test more robust.
8403         * tests/test-poll.c: Include macros.h.
8404         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8405         return value of various I/O operations.
8406         * modules/poll-tests (Files): Add tests/macros.h.
8407
8408 2012-01-30  Bruno Haible  <bruno@clisp.org>
8409
8410         sys_stat: Fix support for mingw64 and MSVC.
8411         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8412         header files already do it.
8413         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8414         stat itself.
8415         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8416
8417 2012-01-30  Bruno Haible  <bruno@clisp.org>
8418
8419         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8421         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8422
8423 2012-01-29  Bruno Haible  <bruno@clisp.org>
8424
8425         quotearg: Fix test failure on MacOS X 10.5.
8426         * tests/test-quotearg-simple.c: Include localcharset.h.
8427         (main): If the locale encoding is not ASCII, bypass the tests of
8428         locale_quoting_style and clocale_quoting_style.
8429         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8430
8431 2012-01-29  Jim Meyering  <meyering@redhat.com>
8432
8433         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8434         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8435         detect uses of canonicalize_file_name.
8436
8437 2012-01-28  Bruno Haible  <bruno@clisp.org>
8438
8439         test-framework-sh: Fix test failure with AIX 7.1 diff.
8440         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8441         in column 1, like 'diff -c' does.
8442         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8443         whether 'diff -u' is used. Instead, test whether the output contains
8444         some '@' character.
8445
8446 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8447
8448         strtoimax: eliminate need for stdint.h, inttypes.h checks
8449         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8450         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8451         the prerequisites for a recently-introduced strtoimax test.
8452         I guess this might cause strtoimax to be replaced when not
8453         strictly necessary on older hosts, but this shouldn't introduce
8454         any bugs and it should make Emacs 'configure' faster on typical
8455         modern hosts.  Problem discovered when importing the latest gnulib
8456         to an Emacs test version.
8457         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8458
8459 2012-01-28  Bruno Haible  <bruno@clisp.org>
8460
8461         sys_time: Override 'struct timeval' on some native Windows platforms.
8462         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8463         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8464         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8465         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8466         needs to be overridden.
8467         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8468         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8469         * tests/test-sys_select.c: Check that the tv_sec member has the same
8470         size as a 'time_t'.
8471         * tests/test-sys_time.c: Likewise.
8472         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8473         is set, set also REPLACE_GETTIMEOFDAY.
8474         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8475         convert the resulting 'struct timeval' before returning.
8476         * lib/select.c: Include <sys/time.h>.
8477         (select, timeval): Undefine at the right place.
8478         * modules/select (Depends-on): Add sys_time.
8479         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8480         some Windows platforms.
8481         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8482
8483 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8484
8485         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8486         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8487         an integer.
8488         * lib/fcntl.c (dupfd): Likewise.
8489         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8490
8491 2012-01-28  Bruno Haible  <bruno@clisp.org>
8492
8493         fcntl: Avoid compilation error on native Windows.
8494         * modules/fcntl (Depends-on): Add 'close'.
8495
8496 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8497
8498         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8499         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8500         pointer to an integer.
8501         * lib/poll.c (IsConsoleHandle): Likewise.
8502         * lib/isatty.c (IsConsoleHandle): Likewise.
8503
8504 2012-01-28  Jim Meyering  <meyering@redhat.com>
8505
8506         doc: clarify README-release
8507         * top/README-release: Clarify: you should make a point to have
8508         the latest stable versions of build tools in your PATH, and the
8509         reference to buildreq is solely for its list of tool names, not
8510         for its minimal-functional version numbers.
8511         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8512
8513         maint.mk: use more readable (yet functionally equivalent) quoting
8514         It is common to quote a single quote in a single quoted string like
8515         this:  '...'\''...'.  Unless you know the idiom, that looks like
8516         gibberish, so prefer to double-quote the string when possible.
8517         Then you can use a more readable, lone single quote: "...'..."
8518         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8519         "don't" is more readable than the equivalent 'don'\''t'.
8520         (sc_cast_of_x_alloc_return_value): Likewise.
8521         (sc_cast_of_alloca_return_value): Likewise.
8522         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8523         rather than '\'':'\''.
8524
8525 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8526
8527         stdalign: relax _Alignof and tighten _Alignas test
8528         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8529         as it was too strict: alignof must divide offsetof, but it need
8530         not equal offsetof.  Inspired by Joseph S. Myers's comment
8531         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8532         Conversely, tighten the _Alignas test a bit, as the resulting
8533         alignment must be exactly 8.
8534
8535 2012-01-27  Bruno Haible  <bruno@clisp.org>
8536
8537         stdalign: Document the last change.
8538         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8539
8540 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8541
8542         stdalign: check that alignof and offsetof are consistent
8543         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8544         Problem reported for gnulib by Richard W.M. Jones in
8545         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8546
8547 2012-01-27  Jim Meyering  <meyering@redhat.com>
8548
8549         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8550         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8551         convert a sequence with gaps to the minimal containing range.
8552         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8553         * tests/test-update-copyright.sh: Test for this.
8554         The FSF confirmed it is ok to do this, assuming there is at
8555         least one significant change per year in the affected range:
8556         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8557
8558 2012-01-26  Bruno Haible  <bruno@clisp.org>
8559
8560         pipe2: refine doc about thread-safety
8561         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8562         multithread-safety problem.
8563         * doc/glibc-functions/accept4.texi: Likewise.
8564
8565 2012-01-26  Bruno Haible  <bruno@clisp.org>
8566
8567         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8568         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8569         In the test program, include <fcntl.h>, for O_RDONLY.
8570
8571 2012-01-26  Eric Blake  <eblake@redhat.com>
8572
8573         pipe2: document lack of thread-safety in replacement
8574         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8575         issue in replacement.
8576         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8577         Based on a report by Eric Wong.
8578
8579 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8580             Bruno Haible  <bruno@clisp.org>
8581
8582         malloca: Avoid warnings on x86_64 mingw64.
8583         * lib/malloca.c: Include <stdint.h>.
8584         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8585         * modules/malloca (Depends-on): Add stdint.
8586         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8587
8588 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8589
8590         obstack: remove __STDC__ conditionals
8591         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8592         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8593         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8594         m4/include_next.m4 as the only gnulib-maintained places that still
8595         refer to __STDC__.
8596
8597 2012-01-24  Bruno Haible  <bruno@clisp.org>
8598
8599         havelib: Modern quoting.
8600         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8601         the recent change to the GNU coding standards.
8602
8603 2012-01-24  Bruno Haible  <bruno@clisp.org>
8604
8605         stdint: Improve support for Android.
8606         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8607         Reported by Simon Josefsson <simon@josefsson.org>.
8608
8609 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8610
8611         doc: omit trailing empty lines from INSTALL etc.
8612         * doc/Makefile (INSTALL): Omit trailing empty lines.
8613         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8614         omit trailing empty lines.  This simplifies the build procedure.
8615
8616 2012-01-23  Jim Meyering  <meyering@redhat.com>
8617
8618         tests: avoid spurious warnings about gl_sockets_startup
8619         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8620         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8621         reporting a "statement with no effect".
8622         * tests/test-accept.c (main): Mark as "(void)".
8623         * tests/test-accept4.c (main): Likewise.
8624         * tests/test-bind.c (main): Likewise.
8625         * tests/test-connect.c (main): Likewise.
8626         * tests/test-getpeername.c (main): Likewise.
8627         * tests/test-getsockname.c (main): Likewise.
8628         * tests/test-getsockopt.c (main): Likewise.
8629         * tests/test-listen.c (main): Likewise.
8630         * tests/test-recv.c (main): Likewise.
8631         * tests/test-recvfrom.c (main): Likewise.
8632         * tests/test-send.c (main): Likewise.
8633         * tests/test-sendto.c (main): Likewise.
8634         * tests/test-setsockopt.c (main): Likewise.
8635         * tests/test-shutdown.c (main): Likewise.
8636
8637 2012-01-21  Bruno Haible  <bruno@clisp.org>
8638
8639         locale-fr.m4: Fix for Android.
8640         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8641         failure of the test program on Bionic libc.
8642
8643 2012-01-21  Jim Meyering  <meyering@redhat.com>
8644
8645         bootstrap: fail when bootstrap_post_import_hook fails
8646         Otherwise, it's far too easy to miss diagnostics emitted
8647         between gnulib-tool's output and that of running configure.
8648         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8649
8650 2012-01-17  Jim Meyering  <meyering@redhat.com>
8651
8652         maint: enable sc_trailing_blank
8653         * build-aux/pmccabe.css: Remove trailing blanks.
8654         * doc/acl-cygwin.txt: Likewise.
8655         * doc/gnu-oids.texi: Likewise
8656         * cfg.mk: Enable sc_trailing_blank.
8657         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8658
8659 2012-01-17  Jim Meyering  <meyering@redhat.com>
8660
8661         maint: enable sc_prohibit_openat_without_use
8662         * cfg.mk: Enable sc_prohibit_openat_without_use.
8663         Exempt lib/selinux-at.c.
8664
8665 2012-01-17  Jim Meyering  <meyering@redhat.com>
8666
8667         maint: enable sc_prohibit_cloexec_without_use
8668         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8669         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8670
8671 2012-01-17  Jim Meyering  <meyering@redhat.com>
8672
8673         maint: enable sc_prohibit_intprops_without_use
8674         * cfg.mk: Enable sc_prohibit_intprops_without_use
8675         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8676
8677 2012-01-17  Jim Meyering  <meyering@redhat.com>
8678
8679         maint: enable sc_prohibit_hash_pjw_without_use
8680         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8681         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8682         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8683         following " (".
8684
8685 2012-01-17  Jim Meyering  <meyering@redhat.com>
8686
8687         maint: enable double-word-prohibiting rule
8688         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8689         Exempt three files.
8690
8691 2012-01-17  Jim Meyering  <meyering@redhat.com>
8692
8693         maint: remove empty lines at EOF, but excluding modules/*
8694         Apply syntax rules at home as well as abroad.  Most changes
8695         were induced by running this:
8696           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8697             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8698             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8699         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8700         Exempt modules/* and two binary files.
8701         Also exempt doc/INSTALL*, per request from Bruno Haible.
8702         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8703         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8704         * doc/Copyright/request-assign.future: Likewise.
8705         * doc/Copyright/request-disclaim.changes: Likewise.
8706         * doc/INSTALL: Likewise.
8707         * doc/INSTALL.ISO: Likewise.
8708         * doc/INSTALL.UTF-8: Likewise.
8709         * doc/acl-cygwin.txt: Likewise.
8710         * doc/acl-resources.txt: Likewise.
8711         * doc/fdl-1.2.texi: Likewise.
8712         * doc/fdl-1.3.texi: Likewise.
8713         * doc/fdl.texi: Likewise.
8714         * lib/argp-pin.c: Likewise.
8715         * lib/round.c: Likewise.
8716         * lib/unicase/u16-totitle.c: Likewise.
8717         * lib/unictype/block_test.c: Likewise.
8718         * lib/uninorm/canonical-decomposition.c: Likewise.
8719         * m4/README: Likewise.
8720         * m4/relocatable-lib.m4: Likewise.
8721         * tests/test-isnand-nolibm.c: Likewise.
8722         * tests/test-isnand.c: Likewise.
8723         * tests/uninorm/NormalizationTest.txt: Likewise.
8724
8725 2012-01-17  Jim Meyering  <meyering@redhat.com>
8726
8727         maint: add framework to run syntax-check rules against gnulib sources
8728         * cfg.mk: New file, to disable all currently-failing tests.
8729         We'll enable them one by one, as they are made to pass.
8730         * Makefile (sc_maint): New rule.
8731
8732 2012-01-21  Bruno Haible  <bruno@clisp.org>
8733
8734         stdint: Add support for Android.
8735         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8736         include the system's <stdint.h>.
8737         Reported by Simon Josefsson <simon@josefsson.org>.
8738
8739 2012-01-19  Jim Meyering  <meyering@redhat.com>
8740
8741         bootstrap: add bootstrap_post_import_hook
8742         Bison does still need something like the gnulib_mk_hook whose
8743         invocation I had to remove along with slurp in commit 767ccd40.
8744         Technically, we could get along without it, but doing so would
8745         have required living with a warning and a mandatory post-bootstrap
8746         automake rerun.
8747         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8748         (bootstrap_post_import_hook): New function.
8749         Invoke it after gnulib-tool --import and before autoreconf.
8750
8751 2012-01-18  Jim Meyering  <meyering@redhat.com>
8752
8753         gitlog-to-changelog: don't use "no_"-prefixed variable name
8754         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8755         to enable both --cluster and --no-cluster.  Change variable name,
8756         s/\$no_cluster/$cluster/, and reverse usage to match.
8757
8758         gitlog-to-changelog: use "||", not "or" in expressions
8759         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8760         expressions.
8761
8762 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8763
8764         gitlog-to-changelog: new option --no-cluster
8765         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8766         clustering of adjacent commit messages.
8767
8768 2012-01-17  Jim Meyering  <meyering@redhat.com>
8769
8770         maint: spell file systems with two words, not one
8771         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8772         two words, not one.
8773
8774 2012-01-16  Jim Meyering  <meyering@redhat.com>
8775
8776         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8777         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8778
8779 2012-01-16  Eric Blake  <eblake@redhat.com>
8780
8781         bootstrap: cater to autoconf 2.59
8782         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8783         is not available.
8784
8785         bootstrap: properly check for libtool
8786         * build-aux/bootstrap (libtoolize): Also run libtool when older
8787         usage is detected.
8788
8789 2012-01-15  Bruno Haible  <bruno@clisp.org>
8790
8791         Improve support for MSVC 9.
8792         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8793         clashes on MSVC.
8794         * lib/fcntl.in.h: Likewise.
8795         * lib/stdlib.in.h: Likewise.
8796         * lib/sys_stat.in.h: Likewise.
8797
8798 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8799
8800         gnupload: we hold the master copy of this script now
8801         For motivation and more information, see:
8802         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8803         * build-aux/gnupload: Make it clear in the heading comments that the
8804         master copy of this file is maintained by gnulib.  Since we are at
8805         it, bump its copyright year and ...
8806         ($scriptversion): ... the date in its version.
8807         ($usage): Patches and bug reports should be sent to the gnulib list,
8808         not the automake one.
8809         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8810         anymore.
8811
8812 2012-01-15  Bruno Haible  <bruno@clisp.org>
8813
8814         Fix module 'random'.
8815         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8816         initstate, setstate are declared.
8817
8818 2012-01-14  Bruno Haible  <bruno@clisp.org>
8819
8820         Tests for module 'random'.
8821         * modules/random-tests: New file.
8822         * tests/test-random.c: New file, based on tests/test-random_r.c.
8823
8824         New module 'random'.
8825         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8826         declarations.
8827         * lib/random.c: New file, based on glibc/stdlib/random.c.
8828         * m4/random.m4: New file.
8829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8830         HAVE_RANDOM.
8831         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8832         * modules/random: New file.
8833         * config/srclist.txt: Add an entry for random.c.
8834         * doc/posix-functions/random.texi: Mention the 'random' module.
8835         * doc/posix-functions/initstate.texi: Likewise.
8836         * doc/posix-functions/setstate.texi: Likewise.
8837         * doc/posix-functions/srandom.texi: Likewise.
8838
8839 2012-01-12  Bruno Haible  <bruno@clisp.org>
8840
8841         random_r: Use common idioms.
8842         * lib/random_r.c: Include <stdlib.h> first.
8843
8844         random_r: Override incompatible API on AIX, OSF/1.
8845         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8846         Override the system function if REPLACE_RANDOM_R is 1.
8847         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8848         and OSF/1, set REPLACE_RANDOM_R.
8849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8850         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8851         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8852         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8853         * doc/glibc-functions/random_r.texi: Likewise.
8854         * doc/glibc-functions/setstate_r.texi: Likewise.
8855
8856         random_r: Support for MSVC 9.
8857         * lib/random_r.c: Include stdint.h, not inttypes.h.
8858
8859 2012-01-12  Eric Blake  <eblake@redhat.com>
8860
8861         inet_ntop: guard extra work by IF_LINT
8862         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8863         better code generation when not checking for warnings.
8864         Suggested by Paul Eggert and Jim Meyering.
8865
8866         strptime: fix regression on mingw
8867         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8868         Fix regression.  Reported by Bruno Haible.
8869
8870 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8871             Bruno Haible  <bruno@clisp.org>
8872
8873         copy-file: add error-code-returning variant.
8874         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8875         (qcopy_file_preserving): New declaration.
8876         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8877         copy_file_preserving. Change return type to 'int'. Don't emit an error
8878         message here.
8879         (copy_file_preserving): New function.
8880         * tests/test-copy-file.c: Include <stdlib.h>.
8881         (main): Test qcopy_file_preserving if the environment variable
8882         NO_STDERR_OUTPUT is set.
8883         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8884         with NO_STDERR_OUTPUT
8885         * tests/test-copy-file-2.sh: Likewise.
8886
8887 2012-01-10  Bruno Haible  <bruno@clisp.org>
8888
8889         copy-file: Use 'quote' module consistently.
8890         * lib/copy-file.c (copy_file_preserving): Use quote().
8891
8892         copy-file: Refactor.
8893         * lib/copy-file.c: Include quote.h.
8894         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8895         message here.
8896         * modules/copy-file (Depends-on): Add quote.
8897
8898         acl: Export qcopy_acl.
8899         * lib/acl.h (qcopy_acl): New declaration.
8900         * lib/copy-acl.c (qcopy_acl): Make non-static.
8901
8902         acl: Rename a local variable.
8903         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8904
8905         acl: Align return values of copy_acl and qcopy_acl.
8906         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8907         maybe < -1.
8908
8909 2012-01-11  Eric Blake  <eblake@redhat.com>
8910
8911         strptime: silence gcc warnings
8912         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8913         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8914         Reported by Daniel P. Berrange.
8915
8916         inet_ntop: silence gcc warning
8917         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8918         Reported by Daniel P. Berrange.
8919
8920 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8921
8922         getloadavg test: skip the test on GNU/Linux without /proc mounted
8923         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8924         file.  When /proc is not mounted, it always fails with ENOENT.
8925         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8926         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8927
8928 2012-01-10  Bruno Haible  <bruno@clisp.org>
8929
8930         regex: Avoid link error on MSVC 9.
8931         * modules/regex (Depends-on): Add wctype.
8932
8933 2012-01-10  Bruno Haible  <bruno@clisp.org>
8934
8935         doc: Mention --with-tests option.
8936         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8937         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8938         --with-tests.
8939         Reported by Reuben Thomas.
8940
8941 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8942
8943         users.txt: order package names lexicographically.
8944         * users.txt: Order package names lexicographically.
8945
8946 2012-01-10  Jim Meyering  <meyering@redhat.com>
8947
8948         maint.mk: fix description in comment
8949         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8950
8951         ignore-value: remove deprecated ignore_ptr function
8952         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8953         * NEWS: Note this.
8954
8955 2012-01-09  Jim Meyering  <meyering@redhat.com>
8956
8957         test-init.sh: avoid a subshell
8958         * tests/test-init.sh: Remove protective subshell.
8959         Suggested by Bernhard Voelker.  While a subshell is normally
8960         required to protect against older shells (Solaris, FreeBSD) that
8961         warn about a missing program before performing redirection, the
8962         shell-selection tests performed by init.sh probably exclude any
8963         offending shell.
8964
8965 2012-01-08  Bruno Haible  <bruno@clisp.org>
8966
8967         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8968         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8969         variable.
8970
8971 2012-01-08  Bruno Haible  <bruno@clisp.org>
8972
8973         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8974         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8975         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8976         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8977         macro.
8978         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8979         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8980         * lib/spawn_faction_addopen.c: Add workaround implementation if
8981         HAVE_WORKING_POSIX_SPAWN.
8982         * modules/spawn (Makefile): Substitute
8983         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8984         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8985         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8986         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8987         (Depends-on): Update conditions.
8988         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8989         the Solaris 11 bug.
8990
8991 2012-01-08  Bruno Haible  <bruno@clisp.org>
8992
8993         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8994         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8995         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8996         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8997         macro.
8998         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8999         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9000         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9001         HAVE_WORKING_POSIX_SPAWN.
9002         * modules/spawn (Makefile): Substitute
9003         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9004         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9005         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9006         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9007         (Depends-on): Update conditions.
9008         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9009         the Solaris 11 bug.
9010
9011 2012-01-08  Bruno Haible  <bruno@clisp.org>
9012
9013         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9014         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9015         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9016         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9017         HAVE_WORKING_POSIX_SPAWN.
9018         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9019         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9020         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9021         * lib/spawn_faction_addclose.c: Add workaround implementation if
9022         HAVE_WORKING_POSIX_SPAWN.
9023         * modules/spawn (Makefile): Substitute
9024         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9025         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9026         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9027         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9028         (Depends-on): Update conditions.
9029         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9030         the Solaris 11 bug.
9031
9032 2012-01-08  Bruno Haible  <bruno@clisp.org>
9033
9034         doc: Update for Solaris 11 2011-11.
9035         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9036         * m4/printf.m4: Update comments.
9037
9038 2012-01-08  Bruno Haible  <bruno@clisp.org>
9039
9040         mktime: Avoid compilation error on Solaris 11.
9041         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9042
9043 2012-01-08  Bruno Haible  <bruno@clisp.org>
9044
9045         doc: Small fix.
9046         * doc/posix-headers/nl_types.texi: Correct platforms list.
9047
9048 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9049
9050         Add lgpl-3.0 module.
9051         * MODULES.html.sh (Support for building documentation): Add
9052         lgpl-3.0.
9053         * modules/lgpl-3.0: New file.
9054
9055 2012-01-08  Jim Meyering  <meyering@redhat.com>
9056
9057         select.c: indent with spaces, not TABs
9058         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9059
9060 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9061
9062         quotearg: do not use grave accent for left quote
9063         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9064         locale_quoting_style.
9065         (quotearg_buffer_restyled): Fix example.
9066         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9067
9068 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9069
9070         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9071         Most programs do not have translation catalogs for English and much
9072         less separate catalogs for British and American English.  Drop the
9073         suggestion to translators about these two, and provide it
9074         automatically for Unicode locales.  Like most programs, even those
9075         using American English, we use single quotation marks.  This conflicts
9076         with the American typographic convention, but works better when you
9077         cite the entire error message within double quotes.  It also tries not
9078         to clash with established practice and with what non-gnulib programs
9079         will usually do.
9080         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9081         using an UTF-8 or GB-18030 locale.  The list of other locales with
9082         quotes was provided by Bruno Haible.
9083         (quotearg_buffer_restyled): Adjust instructions to translators.
9084         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9085         text, since this would be wrong when using Unicode.
9086         * modules/quotearg: Depend on c-strcaseeq.
9087
9088 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9089
9090         quotearg: fix Wikipedia link
9091         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9092
9093 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9094
9095         Fix for mingw with MSVC9.
9096         * m4/ld-version-script.m4: Check that compiler rejects version
9097         scripts with syntax errors.  Reported by Bruno Haible
9098         <bruno@clisp.org>.
9099
9100 2012-01-06  Bruno Haible  <bruno@clisp.org>
9101
9102         Talk about "native Windows API", not "Woe32".
9103         * lib/accept4.c: Update comments to mention native Windows.
9104         * lib/execute.c: Likewise.
9105         * lib/fatal-signal.c: Likewise.
9106         * lib/localcharset.c: Likewise.
9107         * lib/nanosleep.c: Likewise.
9108         * lib/nl_langinfo.c: Likewise.
9109         * lib/pclose.c: Likewise.
9110         * lib/pipe-filter-gi.c: Likewise.
9111         * lib/pipe-filter-ii.c: Likewise.
9112         * lib/pipe.c: Likewise.
9113         * lib/pipe2.c: Likewise.
9114         * lib/popen.c: Likewise.
9115         * lib/progreloc.c: Likewise.
9116         * lib/relocatable.c: Likewise.
9117         * lib/sigaction.c: Likewise.
9118         * lib/sigprocmask.c: Likewise.
9119         * lib/spawn-pipe.h: Likewise.
9120         * lib/spawn-pipe.c: Likewise.
9121         * lib/spawni.c: Likewise.
9122         * lib/stat-time.h: Likewise.
9123         * lib/w32spawn.h: Likewise.
9124         * tests/test-isatty.c: Likewise.
9125         * lib/config.charset: More comments.
9126         * doc/gnulib-intro.texi: Mention native Windows.
9127         * doc/posix-functions/_Exit_C99.texi: Likewise.
9128         * doc/posix-headers/fcntl.texi: Likewise.
9129
9130 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9131
9132         argp: Avoid crash if translator uses % characters in a translation.
9133         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9134         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9135
9136 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9137
9138         doc: C11 and C++11 are now official
9139         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9140         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9141         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9142         * modules/stdalign:
9143         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9144
9145 2012-01-06  Bruno Haible  <bruno@clisp.org>
9146
9147         uc-is-grapheme-break tests: Tweak.
9148         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9149         message.
9150
9151 2012-01-06  Bruno Haible  <bruno@clisp.org>
9152
9153         test-init.sh: correct the test for diff -u
9154         * tests/test-init.sh: Also redirect stdout to /dev/null.
9155
9156 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9157
9158         Use ', not `, for quoting output.
9159         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9160         (print_changelog_deltas, get_tool_versions, main program):
9161         * build-aux/git-version-gen:
9162         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9163         * build-aux/move-if-change (help):
9164         * build-aux/useless-if-before-free (usage, main program):
9165         * check-module (parse_module_file, usage)
9166         (find_included_lib_files, check_module):
9167         * lib/argmatch.c (main) [TEST]:
9168         * lib/argp-help.c (_help):
9169         * lib/getopt1.c (main) [TEST]:
9170         * lib/git-merge-changelog.c (usage):
9171         * lib/xstrtol-error.c (xstrtol_error):
9172         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9173         * m4/argz.m4 (gl_FUNC_ARGZ):
9174         * m4/bison.m4 (gl_BISON):
9175         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9176         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9177         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9178         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9179         * m4/gc-random.m4 (gl_GC_RANDOM):
9180         * m4/intl.m4 (gt_CHECK_DECL):
9181         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9182         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9183         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9184         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9185         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9186         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9187         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9188         * tests/test-dirname.c (main):
9189         * tests/test-getpass.c (main):
9190         * tests/test-iconvme.c (main):
9191         * tests/test-parse-datetime.c (LOG):
9192         * tests/test-xstrtoimax.sh:
9193         * tests/test-xstrtol.sh:
9194         * tests/test-xstrtoll.sh:
9195         * tests/test-xstrtoumax.sh:
9196         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9197         * top/GNUmakefile (abort-due-to-no-makefile):
9198         Quote 'like this', not `like this', as per the recent change to
9199         the GNU coding standards.
9200
9201 2012-01-05  Bruno Haible  <bruno@clisp.org>
9202
9203         strtoimax: Don't force a replacement on systems where intmax_t is int.
9204         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9205         'intmax_t' is not larger than 'int'.
9206         Reported by Pádraig Brady <P@draigBrady.com>.
9207
9208 2012-01-05  Bruno Haible  <bruno@clisp.org>
9209
9210         doc: Mention NetBSD bugs.
9211         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9212         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9213
9214 2012-01-05  Bruno Haible  <bruno@clisp.org>
9215
9216         strtoumax tests: Enhance tests.
9217         * tests/test-strtoumax.c (main): Add tests for large values.
9218
9219 2012-01-05  Bruno Haible  <bruno@clisp.org>
9220
9221         strtoimax: Work around AIX 5.1 bug.
9222         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9223         definition.
9224         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9225         Set HAVE_STRTOIMAX.
9226         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9227         REPLACE_STRTOIMAX.
9228         * modules/inttypes-incomplete (Makefile.am): Substitute
9229         REPLACE_STRTOIMAX.
9230         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9231         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9232         (Depends-on): Update conditions.
9233         * tests/test-strtoimax.c (main): Add tests for large values.
9234         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9235
9236 2012-01-05  Bruno Haible  <bruno@clisp.org>
9237
9238         inttypes: Modernize.
9239         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9240         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9241         (Makefile.am): Update inttypes.h rule.
9242
9243 2012-01-05  Jim Meyering  <meyering@redhat.com>
9244
9245         init.sh: don't waste a subshell just to redirect stderr
9246         * tests/init.sh: In testing for diff -u and diff -c, use a
9247         stderr-redirecting exec inside `...` rather than a subshell.
9248
9249         test-init.sh: avoid failure on HP-UX 11.00
9250         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9251         resolves to diff -c or cmp.  Reported by Bruno Haible.
9252
9253 2012-01-05  Bruno Haible  <bruno@clisp.org>
9254
9255         Tests for module 'strtoull'.
9256         * modules/strtoull-tests: New file.
9257         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9258
9259 2012-01-05  Bruno Haible  <bruno@clisp.org>
9260
9261         Tests for module 'strtoll'.
9262         * modules/strtoll-tests: New file.
9263         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9264
9265 2012-01-05  Bruno Haible  <bruno@clisp.org>
9266
9267         Tests for module 'strtoul'.
9268         * modules/strtoul-tests: New file.
9269         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9270
9271 2012-01-05  Bruno Haible  <bruno@clisp.org>
9272
9273         Tests for module 'strtol'.
9274         * modules/strtol-tests: New file.
9275         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9276
9277 2012-01-04  Jim Meyering  <meyering@redhat.com>
9278
9279         test-init.sh: accommodate Solaris 5.10's different diff -u output
9280         * tests/test-init.sh: Also exempt @@ lines from the comparison
9281         of diff output, since Solaris 5.10 and GNU diff formats differ.
9282         Reported by Stefano Lattarini.
9283
9284 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9285
9286         test-posixtm: don't assume signed integer wraparound
9287         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9288         after signed integer overflow.  Inspired by (though it may not
9289         fix) Bruno Haible's bug report in
9290         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9291
9292         Spell out "Windows 9x" and "Windows XP".
9293         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9294         "Windows 9x" and "WinXP" with "Windows XP".
9295
9296 2012-01-04  Jim Meyering  <meyering@redhat.com>
9297
9298         test-vc-list-files-cvs.sh: remove obsolete comment
9299         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9300         double exit.  Now that's all encapsulated via skip_ and Exit.
9301
9302 2012-01-04  Bruno Haible  <bruno@clisp.org>
9303
9304         Talk about "native Windows API", not "Win32".
9305         * lib/classpath.c: Update comments to mention native Windows.
9306         * lib/csharpexec.c: Likewise.
9307         * lib/dup2.c: Likewise.
9308         * lib/error.c: Likewise.
9309         * lib/fcntl.c: Likewise.
9310         * lib/filename.h: Likewise.
9311         * lib/findprog.c: Likewise.
9312         * lib/get-rusage-as.c: Likewise.
9313         * lib/get-rusage-data.c: Likewise.
9314         * lib/getpagesize.c: Likewise.
9315         * lib/javaexec.c: Likewise.
9316         * lib/msvc-inval.c: Likewise.
9317         * lib/msvc-nothrow.c: Likewise.
9318         * lib/nanosleep.c: Likewise.
9319         * lib/nonblocking.c: Likewise.
9320         * lib/printf-parse.c: Likewise.
9321         * lib/setlocale.c: Likewise.
9322         * lib/sigaction.c: Likewise.
9323         * lib/strerror_r.c: Likewise.
9324         * lib/tmpdir.c: Likewise.
9325         * lib/vasnprintf.c: Likewise.
9326         * lib/w32spawn.h: Likewise.
9327         * lib/waitpid.c: Likewise.
9328         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9329         * m4/locale-ar.m4: Likewise.
9330         * m4/locale-fr.m4: Likewise.
9331         * m4/locale-ja.m4: Likewise.
9332         * m4/locale-tr.m4: Likewise.
9333         * m4/locale-zh.m4: Likewise.
9334         * m4/printf.m4: Likewise.
9335         * tests/test-cloexec.c: Likewise.
9336         * tests/test-copy-acl.sh: Likewise.
9337         * tests/test-copy-file.sh: Likewise.
9338         * tests/test-file-has-acl.sh: Likewise.
9339         * tests/test-set-mode-acl.sh: Likewise.
9340         * tests/test-dup-safer.c: Likewise.
9341         * tests/test-dup2.c: Likewise.
9342         * tests/test-dup3.c: Likewise.
9343         * tests/test-fcntl.c: Likewise.
9344         * tests/test-nonblocking-pipe.h: Likewise.
9345         * tests/test-nonblocking-socket.h: Likewise.
9346         * tests/test-pipe.c: Likewise.
9347         * tests/test-pipe2.c: Likewise.
9348         * tests/test-spawn-pipe-child.c: Likewise.
9349         * doc/acl-resources.txt: Likewise.
9350         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9351         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9352         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9353         * lib/localcharset.c: Update comments to mention native Windows.
9354         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9355         * lib/localename.c: Likewise.
9356         * lib/progreloc.c: Likewise.
9357         * lib/relocatable.c: Likewise.
9358         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9359         (windows_compute_revents): Renamed from win32_compute_revents.
9360         (windows_compute_revents_socket): Renamed from
9361         win32_compute_revents_socket.
9362         * lib/select.c: Update comments to mention native Windows.
9363         (windows_poll_handle): Renamed from win32_poll_handle.
9364         * m4/threadlib.m4: Update comments to mention native Windows.
9365         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9366         --enable-threads=windows instead of --enable-threads=win32. Set
9367         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9368         * lib/glthread/lock.h: Update comments to mention native Windows.
9369         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9370         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9371         USE_WIN32_THREADS.
9372         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9373         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9374         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9375         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9376         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9377         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9378         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9379         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9380         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9381         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9382         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9383         * tests/test-tls.c: Likewise.
9384         Rationale:
9385         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9386         on both 32-bit and 64-bit Windows systems.
9387         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9388         line of distinction is between "native Windows" on one side and Unix/
9389         POSIX systems on the other side. More details in
9390         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9391         Suggested by Paul Eggert.
9392
9393 2012-01-03  Bruno Haible  <bruno@clisp.org>
9394
9395         isatty: Support for MSVC 9.
9396         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9397         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9398         (_isatty_nothrow): New function.
9399         (isatty): Use it instead of _isatty.
9400         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9401         * lib/poll.c (IsConsoleHandle): Likewise.
9402         * lib/select.c (IsConsoleHandle): Likewise.
9403         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9404         (gl_PREREQ_ISATTY): New macro.
9405         * modules/isatty (Depends-on): Add msvc-inval.
9406         (configure.ac): Invoke gl_PREREQ_ISATTY.
9407
9408 2012-01-03  Jim Meyering  <meyering@redhat.com>
9409
9410         maint.mk: remove temporary transition aid from over 1.5 years ago
9411         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9412         purpose was to aid in the transition (avoiding silent malfunction)
9413         from that old name to the new _sc_search_regexp.  This shim was
9414         added by commit 219c504b.
9415
9416         init.sh: do not try to accommodate compare arguments starting with "-"
9417         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9418         compare arguments that start with "-".  Besides, we do not worry
9419         about this when invoking diff or cmp; why start now with sed?
9420         Using "--" to separate options from argument would trigger sed
9421         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9422         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9423
9424 2012-01-02  Bruno Haible  <bruno@clisp.org>
9425
9426         Enhance tests for module 'isatty'.
9427         * modules/isatty-tests (Depends-on): Add pipe-posix.
9428         * tests/test-isatty.c: Include <fcntl.h>.
9429         (DEV_NULL): New macro.
9430         (main): Test the resut of isatty() also on regular files, pipes, and
9431         /dev/null.
9432
9433         New module 'isatty'.
9434         * lib/unistd.in.h (isatty): New declaration.
9435         * lib/isatty.c: New file, based on an idea of
9436         Bastien Roucariès <roucaries.bastien@gmail.com>.
9437         * m4/isatty.m4: New file.
9438         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9439         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9440         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9441         REPLACE_ISATTY.
9442         * modules/isatty: New file.
9443         * doc/posix-functions/isatty.texi: Mention the new module.
9444         Suggested by Paolo Bonzini.
9445
9446 2012-01-02  Bruno Haible  <bruno@clisp.org>
9447
9448         canonicalize: Tweak 2011-12-29 commit.
9449         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9450         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9451
9452 2012-01-02  Jim Meyering  <meyering@redhat.com>
9453
9454         gitlog-to-changelog: describe input syntax in --help output
9455         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9456
9457         gitlog-to-changelog: fix typo in --help: show backslash before email @
9458         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9459         in sources, but not in actual output.
9460
9461 2011-12-30  Jim Meyering  <meyering@redhat.com>
9462
9463         gitlog-to-changelog: don't malfunction when name contains %-directive
9464         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9465         in a name string cause trouble.  E.g., with a user name of "%s",
9466         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9467
9468 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9469
9470         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9471         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9472         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9473         the "  (tiny change)" notation that is appended to the standard
9474         ChangeLog "date  name  email" header line.
9475
9476 2012-01-01  Jim Meyering  <meyering@redhat.com>
9477
9478         test-framework-sh: init.sh: fix "make dist" failure
9479         When using gnulib-tool's --with-tests option and any module that
9480         depends on test-framework-sh, "make dist" would fail due to the
9481         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9482         in the gltests directory, and not in the gllib/ directory.
9483         One way to work around that is to move the EXTRA_DIST += init.sh
9484         from the primary module to the -tests one:
9485         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9486         * modules/test-framework-sh (Makefile.am): ...not here.
9487         Reported by Tom G. Christensen in
9488         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9489
9490         version-etc: update copyright year reported by --version
9491         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9492
9493 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9494
9495         canonicalize: only stat() if required
9496         * lib/canonicalize.c (canonicalize_filename_mode):
9497         Avoid calling l?stat() when both CAN_MISSING,
9498         and CAN_NOLINKS are set, as we neither need
9499         to resolve symlinks or test component existence.
9500
9501 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9502
9503         doc: cover st_ino issues once; add OpenVMS etc.
9504         * doc/posix-functions/stat.texi (stat):
9505         * doc/posix-functions/lstat.texi (lstat):
9506         * doc/posix-functions/fstatat.texi (fstatat):
9507         * doc/posix-functions/fstat.texi (fstat):
9508         Move general 'struct stat' stuff to sys_stat.texi,
9509         leaving behind a pointer.
9510         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9511         Merge duplicate info about 'struct stat' problems into here.
9512         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9513         and suggest partial workarounds.
9514
9515         same-inode: port to OpenVMS
9516         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9517         three st_ino values.
9518
9519 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9520
9521         canonicalize: fix references to stat() and lstat()
9522         * lib/canonicalize.c (canonicalize_filename_mode):
9523         Ensure references always resolve to a replacement
9524         function if required (even via a macro).
9525
9526 2011-12-30  Jim Meyering  <meyering@redhat.com>
9527
9528         gitlog-to-changelog: remove a little duplication
9529         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9530         rather than twice.
9531
9532 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9533
9534         canonicalize: add support for not resolving symlinks
9535         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9536         indicate we don't want to follow symlinks.  Also
9537         provide CAN_MODE_MASK to aid setting these existing
9538         mutually exclusive values.
9539         * lib/canonicalize.c (canonicalize_filename_mode):
9540         Extract the flags from can_mode parameter, which
9541         are currently just used to select between stat()
9542         and lstat().  Also ensure that mutually exclusive
9543         values are flagged immediately as invalid.
9544         * tests/test-canonicalize.c: Verify symlinks are
9545         not followed, and that invalid flag combinations
9546         are diagnosed.
9547
9548 2011-12-25  Jim Meyering  <meyering@redhat.com>
9549
9550         gitlog-to-changelog: do not clump multi-paragraph entries
9551         Identical header lines (date,name,email+coauthors) are suppressed,
9552         thus putting all entries with those same characteristics under
9553         a single header.  However, when a log entry consists of two or
9554         more paragraphs, it may not be clear where it starts and ends.
9555         This change makes it so that such an entry is always separated
9556         from others by a header line, even when that header would
9557         otherwise be suppressed.
9558         * build-aux/gitlog-to-changelog: Implement the above.
9559         Inspired by a related request from Stefano Lattarini in
9560         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9561
9562 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9563
9564         announce-gen: fix `cmd' typo in diagnostic
9565         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9566         diagnostic: a missing '$' meant that the command was not output.
9567
9568 2011-12-23  Jim Meyering  <meyering@redhat.com>
9569
9570         test-framework-sh: distribute init.sh
9571         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9572         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9573         fail due to the lack of init.sh.
9574
9575         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9576         * modules/atexit-tests: Rather than listing tests/init.sh,
9577         now that there's a module for it, simply depend on that new module.
9578         * modules/closein-tests: Likewise.
9579         * modules/exclude-tests: Likewise.
9580         * modules/getcwd-tests: Likewise.
9581         * modules/perror-tests: Likewise.
9582         * modules/pread-tests: Likewise.
9583         * modules/pwrite-tests: Likewise.
9584         * modules/vc-list-files-tests: Likewise.
9585         * modules/verify-tests: Likewise.
9586         * modules/xalloc-die-tests: Likewise.
9587         * modules/xstrtoimax-tests: Likewise.
9588         * modules/xstrtol-tests: Likewise.
9589         * modules/xstrtoll-tests: Likewise.
9590         * modules/xstrtoumax-tests: Likewise.
9591         * modules/yesno-tests: Likewise.
9592
9593 2011-12-22  Jim Meyering  <meyering@redhat.com>
9594
9595         test-framework-sh: add minimal tests of init.sh's compare function
9596         * modules/test-framework-sh-tests: New file.
9597         * tests/test-init.sh: New file.
9598
9599         test-framework-sh: new module
9600         * modules/test-framework-sh: New file.
9601         * MODULES.html.sh (Support for maintaining and releasing projects):
9602         List it.
9603
9604         init.sh: do not emit simulated diff output to stderr
9605         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9606
9607 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9608
9609         .gitignore: ignore gnulib.dvi and regex.info
9610         * doc/.gitignore:add gnulib.dvi and regex.info
9611
9612 2011-12-22  Jim Meyering  <meyering@redhat.com>
9613
9614         init.sh: correct previous change
9615         * tests/init.sh (compare): My previous change was wrong.
9616         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9617
9618         init.sh: avoid unwarranted test failure when using "set -e"
9619         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9620         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9621         a use like "compare exp out" would get evoke an unconditional failure.
9622
9623 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9624
9625         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9626         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9627         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9628         autoreconf that did not.
9629         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9630         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9631
9632 2011-12-17  Jim Meyering  <meyering@redhat.com>
9633
9634         bootstrap: remove some now-unneeded code
9635         This script arose back when gnulib-tool was young.
9636         Since then, it has seen improvements that render much of this
9637         script unnecessary.  In particular, it can now make symlinks
9638         to the files it uses.  Also, I no longer see as much value in
9639         marking files as read-only via comments.
9640         If you relied on the symlink-creation feature of the preceding
9641         version of this script, you can get most of that functionality
9642         by adding the --symlink option to the definition of
9643         gnulib_tool_option_extras in your bootstrap.conf file.
9644         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9645         Run autopoint and libtoolize *before* gnulib-tool.
9646         After it, run an abbreviated autoreconf, rather than a loop around
9647         all tools.
9648         (slirp, bt_mark_as_generated): Remove functions.
9649
9650 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9651
9652         ftoastr: fix typo
9653         * lib/ftoastr.h: Fix misspelling in comment.
9654
9655 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9656
9657         * top/README-release: fix punctuation.
9658
9659 2011-12-17  Jim Meyering  <meyering@redhat.com>
9660
9661         bootstrap: correct the recent buildreq change
9662         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9663         had no effect.
9664         * build-aux/bootstrap (buildreq): Bracket each search term with
9665         "*...*", so that the shell "case" statement works as intended.
9666         Add comments.
9667
9668 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9669
9670         build: let bootstrap resort to wget when downloading .po files
9671         * build-aux/bootstrap (download_po_files): Fallback to wget when
9672         downloading the .po files via rsync fails.  This is necessary to
9673         bootstrap from behind a strict firewall.
9674
9675 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9676
9677         stdint: don't assume C++11 when compiling with g++
9678         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9680         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9681         work also in C++ before C++11, as that improperly inhibits
9682         generating a substitute stdint.h for that case.
9683
9684 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9685
9686         alloca: protect comment from gnulib-tool
9687         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9688         that gnulib-tool doesn't think it's a license, and munge it to
9689         say "GCC version 3".
9690
9691 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9692
9693         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9694         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9695         $(abs_top_builddir) instead of $(top_builddir).
9696
9697 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9698
9699         strftime-tests: also test nanoseconds
9700         * tests/test-strftime.c (T): Add a test of %N.
9701
9702 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9703
9704         inttypes, stdint: add C++11 support
9705         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9706         when including inttypes.h and stdint.h.  Support this change to
9707         the standard.
9708         * doc/posix-headers/inttypes.texi (inttypes.h):
9709         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9710         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9711         Define if not defined already, for the benefit of pre-C++11 hosts.
9712         Define the standard format macros (e.g., PRId8) always.
9713         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9714         Likewise, if __cpluspus.  Define the standard constant and limit
9715         macros (e.g., INT8_C, INT8_MAX) always.
9716         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9717         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9718         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9719         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9720         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9721         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9722         Likewise.
9723
9724 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9725
9726         nonblocking tests: Fix test failure on Linux/PPC.
9727         Suggested by Prerna Saxena in
9728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9729         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9730         Set to 1100000.
9731
9732 2011-12-12  Jim Meyering  <meyering@redhat.com>
9733
9734         argmatch: don't hard-code `' when listing valid option arguments
9735         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9736         use the quote function to add quotes.  Use fputs rather than
9737         fprintf for the format string with no format directive.
9738
9739 2011-12-07  Eric Blake  <eblake@redhat.com>
9740
9741         bootstrap: detect tools required by gnulib-tool
9742         * build-aux/bootstrap (buildreq): Provide minimum implicit
9743         dependencies.
9744         * DEPENDENCIES: Mention patch as a prereq.
9745
9746 2011-12-04  Bruno Haible  <bruno@clisp.org>
9747
9748         sethostname: Port to Windows platforms.
9749         * lib/sethostname.c: Provide an alternate implementation for Windows
9750         platforms.
9751         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9752         (main): Skip the test if sethostname() fails with EPERM. On Windows
9753         platforms, don't check the result of gethostname().
9754
9755 2011-12-04  Bruno Haible  <bruno@clisp.org>
9756             Jim Meyering  <meyering@redhat.com>
9757
9758         tests: Avoid spurious error message on platforms without mktemp program.
9759         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9760
9761 2011-12-04  Bruno Haible  <bruno@clisp.org>
9762
9763         sethostname: Fix documentation.
9764         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9765         "not fixed" section.
9766
9767 2011-12-03  Bruno Haible  <bruno@clisp.org>
9768
9769         gnulib-tool: Verify that the License field is present and non-empty.
9770         * gnulib-tool (func_get_license_raw): New function, extracted from
9771         func_get_license.
9772         (func_get_license): Use it. Warn if the module is not a test module and
9773         has no license.
9774         Suggested by Jim Meyering.
9775
9776 2011-12-03  Bruno Haible  <bruno@clisp.org>
9777
9778         sethostname tests: Fix link error on mingw.
9779         * tests/test-sethostname1.c: New file, extracted from
9780         tests/test-sethostname.c.
9781         * tests/test-sethostname2.c: New file, extracted from
9782         tests/test-sethostname.c.
9783         * tests/test-sethostname.c: Remove file.
9784         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9785         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9786         (Depends-on): Add gethostname.
9787         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9788         Link the latter with $(GETHOSTNAME_LIB).
9789
9790         sethostname tests: Fix compilation error on mingw.
9791         * tests/test-sethostname.c: Don't include <sys/types.h>.
9792         (geteuid): Use a dummy value without uid_t.
9793         * modules/sethostname-tests (Depends-on): Remove sys_types.
9794
9795         sethostname tests: Avoid a gcc warning.
9796         * tests/test-sethostname.c (main): Remove an unused variable.
9797
9798         Tweak last commit.
9799         * modules/sethostname-tests (Files): Sort by decreasing importance.
9800         (configure.ac): Check for geteuid.
9801         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9802         the test when there's nothing to test. Drop an unnecessary cast.
9803         Improve an error message. Verify that the final sethostname() call
9804         succeeds.
9805
9806 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9807
9808         Add a test suite for the sethostname module.
9809         * modules/sethostname-tests: New file.  A test program
9810         for the sethostname module.
9811         * tests/test-sethostname.c: Likewise.
9812
9813 2011-12-03  Bruno Haible  <bruno@clisp.org>
9814
9815         Tweak last commit.
9816         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9817         Fix preprocessor directives indentation. Fix typos.
9818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9819         * modules/unistd (Makefile): Likewise.
9820
9821 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9822
9823         Integrate the sethostname module into unistd.
9824         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9825         into the unistd.h header.
9826         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9827         preprocessor directives.
9828         * modules/unistd: Setup the Makefile substitutions of the
9829         SETHOSTNAME preprocessor directives.
9830
9831 2011-12-03  Bruno Haible  <bruno@clisp.org>
9832
9833         Tweak last commit.
9834         * lib/sethostname.c: Don't include <string.h>.
9835         (sethostname): No need to copy the argument string to the stack. Don't
9836         call clearerr. Preserve errno when fprintf failed.
9837         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9838         Don't invoke AC_REPLACE_FUNCS.
9839         * modules/sethostname (Link): Remove empty section.
9840         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9841         failure problem.
9842
9843 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9844
9845         New module 'sethostname'.
9846         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9847         for systems that lack it.
9848         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9849         sethostname declaration and function.
9850         * modules/sethostname: New file.  Define the sethostname module.
9851
9852 2011-12-03  Bruno Haible  <bruno@clisp.org>
9853
9854         Tweak last commit.
9855         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9856
9857 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9858
9859         Split the HOST_NAME_MAX detection into a separate m4 macro.
9860         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9861         macro so it can be used by the pending sethostname module.
9862
9863 2011-12-03  Bruno Haible  <bruno@clisp.org>
9864
9865         Fix module descriptions syntax.
9866         * modules/argv-iter (License): Fix syntax.
9867         * modules/di-set (License): Likewise.
9868         * modules/ino-map (License): Likewise.
9869         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9870
9871 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9872
9873         stdalign: port to Clang 3.0
9874         Problem reported by Simon Josefsson in
9875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9876         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9877         which has <stdalign.h> but which does not define alignof.
9878         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9879
9880 2011-12-01  Eric Blake  <eblake@redhat.com>
9881
9882         mktempd: silence dd usage
9883         * build-aux/mktempd (rand_bytes): Silence dd.
9884
9885 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9886
9887         manywarnings: Don't mention gcc version in docstring.
9888         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9889         Jim Meyering <meyering@redhat.com>.
9890
9891 2011-11-30  Jim Meyering  <meyering@redhat.com>
9892
9893         hash: mark a few floating point constants with "f" suffix
9894         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9895         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9896         floating point constants with "f", since they're destined to be
9897         saved/used as "float"s.
9898
9899 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9900
9901         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9902         * tests/test-float.c (test_long_double): Correct and re-enable the
9903         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9904
9905 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9906
9907         Avoid subtracting two pointers that don't point into the same block.
9908         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9909         only pointers into the same memory block are subtracted. We cannot
9910         assume that sizeof (ptrdiff_t) == sizeof (void *).
9911
9912 2011-11-29  Eric Blake  <eblake@redhat.com>
9913
9914         maint.mk: add syntax check for use of compare from init.sh
9915         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9916         moved here from coreutils.
9917
9918         manywarnings: drop -Wunsuffixed-float-constants
9919         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9920         '1.0D', which is the only way to silence this warning for 'double'.
9921
9922 2011-11-29  Jim Meyering  <meyering@redhat.com>
9923
9924         hash: mark compute_bucket_size with the pure attribute
9925         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9926
9927         quotearg, propername: correct pragma guard expression
9928         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9929         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9930
9931 2011-11-28  Jim Meyering  <meyering@redhat.com>
9932
9933         propername: do not mark proper_name with the const attribute
9934         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9935         since it examines data pointed to by its parameter.
9936         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9937         the suggestion from -Wsuggest-attribute=const.
9938
9939         propername: mark one more function as const
9940         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9941
9942 2011-11-27  Jim Meyering  <meyering@redhat.com>
9943
9944         mark functions with const and pure attributes
9945
9946         Mark functions per suggestions from gcc-4.6 when using these options:
9947         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9948         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9949         Follow these guidelines: when possible, apply the attribute to
9950         an extern declaration, not to its definition.  Apply it to the
9951         definition only when the definition is static.
9952         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9953         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9954         * lib/base64.h (isbase64): Likewise.
9955         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9956         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9957         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9958         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9959         (c_tolower, c_toupper): Likewise.
9960         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9961         * lib/chdir-long.c (find_non_slash): Likewise.
9962         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9963         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9964         * lib/file-type.h (file_type): Likewise.
9965         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9966         * lib/filevercmp.c (verrevcmp): Likewise.
9967         * lib/freadahead.h (freadahead): Likewise.
9968         * lib/fts.c (fts_maxarglen): Likewise.
9969         * lib/hash-pjw.h (hash_pjw): Likewise.
9970         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9971         * lib/hash.c (is_prime, next_prime): Likewise.
9972         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9973         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9974         (hash_table_ok, hash_get_first, hash_string): Likewise.
9975         (compute_bucket_size): Likewise.
9976         * lib/i-ring.h (i_ring_empty): Likewise.
9977         * lib/isnan.c (isnanl): Likewise.
9978         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9979         * lib/memcasecmp.h (memcasecmp): Likewise.
9980         * lib/memchr2.h (memchr2): Likewise.
9981         * lib/memcmp2.h (memcmp2): Likewise.
9982         * lib/parse-datetime.y (lookup_zone): Likewise.
9983         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9984         [!WINDOWS_SOCKETS]: Likewise.
9985         * lib/strnlen1.h (strnlen1): Likewise.
9986         * lib/uniwidth.in.h (uc_width): Likewise.
9987         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9988         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9989         (quoting_options_from_style): Add a comment.
9990         * lib/propername.h (proper_name): Add a comment.
9991
9992 2011-11-27  Bruno Haible  <bruno@clisp.org>
9993
9994         Remove unused macros from !_LIBC code in glibc-borrowed files.
9995         * lib/fnmatch.c (STRCOLL): Remove macro.
9996         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9997         * lib/glob.c (__stat, __readdir64): Remove macros.
9998         * lib/tempname.c (__open64, __xstat64): Remove macros.
9999         Suggested by Paul Eggert.
10000
10001 2011-11-27  Bruno Haible  <bruno@clisp.org>
10002
10003         getcwd: Fix link error on MSVC 9.
10004         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10005
10006 2011-11-27  Bruno Haible  <bruno@clisp.org>
10007
10008         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10009         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10010         HAVE_OPENDIR is 0.
10011         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10012         HAVE_CLOSEDIR is 0.
10013         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10014         is 0.
10015         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10016
10017 2011-11-27  Bruno Haible  <bruno@clisp.org>
10018
10019         getcwd: Fix bug from 2011-08-17.
10020         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10021         platforms that need it.
10022         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10023         code of 4 to be a failure, not a success. This ensures that
10024         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10025
10026 2011-11-27  Bruno Haible  <bruno@clisp.org>
10027
10028         binary-io tests: Avoid test failure on mingw when libtool is used.
10029         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10030         Don't verify the size of t-bin-out1.tmp here.
10031         * tests/test-binary-io.sh: Verify it here.
10032         Reported by Simon Josefsson.
10033
10034 2011-11-26  Bruno Haible  <bruno@clisp.org>
10035
10036         Fix conflict between two instantiations of module 'unistd'.
10037         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10038         ${include_guard_prefix} also in the autoconf snippet.
10039         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10041         GNULIB_UNISTD_H_GETOPT.
10042         * modules/getopt-posix (configure.ac): Set the
10043         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10044         * modules/getopt-gnu (configure.ac): Likewise.
10045         * modules/unistd (Makefile.am): Change the substitution value of
10046         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10047         Reported by Simon Josefsson.
10048
10049 2011-11-25  Bruno Haible  <bruno@clisp.org>
10050
10051         pagealign_alloc: Doc and comments.
10052         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10053         module.
10054         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10055
10056 2011-11-25  Jim Meyering  <meyering@redhat.com>
10057
10058         test-update-copyright.sh: avoid false-positive failure
10059         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10060         around false positive failure on Cygwin/Windows.  The latter was
10061         matching erroneously-created files with names like
10062         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10063
10064 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10065
10066         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10067         * m4/valgrind-tests.m4: Check that the parameters that will be
10068         used works, not just a subset of them.  Reported by Bruno Haible
10069         <bruno@clisp.org>.
10070
10071 2011-11-24  Jim Meyering  <meyering@redhat.com>
10072
10073         test-stdalign.c: comment out long double tests
10074         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10075         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10076         error: '_Alignas' specifiers cannot reduce alignment of \
10077         'static_longdouble_alignas'.
10078
10079 2011-11-22  Jim Meyering  <meyering@redhat.com>
10080
10081         init.sh: make "compare /dev/null FILE" output more readable
10082         * tests/init.sh (compare_): Document the preferred order of arguments.
10083         (emit_diff_u_header_): New function.
10084         (compare_dev_null_): Emit a simulated diff, rather than just the
10085         contents of the unexpected file.  Suggestion from Bruno Haible.
10086
10087 2011-11-21  Jim Meyering  <meyering@redhat.com>
10088             Eric Blake  <eblake@redhat.com>
10089
10090         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10091         * tests/init.sh: Make our compare function slightly more portable.
10092         Reported by Bruno Haible in
10093         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10094
10095 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10096
10097         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10098         before using it, in code that ends up in config.h.
10099
10100 2011-11-20  Bruno Haible  <bruno@clisp.org>
10101
10102         getcwd: Work around getcwd bug on AIX 5..7.
10103         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10104         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10105         Use a different value for gl_cv_func_getcwd_path_max. Move the
10106         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10107         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10108         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10109         Define HAVE_MINIMALLY_WORKING_GETCWD.
10110         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10111         where it is not even minimally working, that is, on AIX.
10112         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10113         m4/getcwd-path-max.m4.
10114         (main): Update exit code computation.
10115         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10116         getcwd does not handle long file names.
10117
10118 2011-11-20  Bruno Haible  <bruno@clisp.org>
10119
10120         getcwd: Fix bug from 2009-09-10.
10121         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10122         like "no".
10123
10124 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10125
10126         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10127
10128 2011-11-20  Bruno Haible  <bruno@clisp.org>
10129
10130         fma tests: Avoid shadowing local variables.
10131         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10132         expected.
10133
10134 2011-11-20  Bruno Haible  <bruno@clisp.org>
10135
10136         copysignf tests: Fix.
10137         * tests/test-copysignf.c: Fix signature check.
10138
10139 2011-11-20  Bruno Haible  <bruno@clisp.org>
10140
10141         fma: Remove unused code.
10142         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10143         unused macros.
10144
10145 2011-11-20  Bruno Haible  <bruno@clisp.org>
10146
10147         sethostname: Fix doc about AIX.
10148         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10149         sethostname; it has it.
10150
10151         sethostname: Mention more portability problems.
10152         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10153         problem.
10154         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10155
10156 2011-11-19  Bruno Haible  <bruno@clisp.org>
10157
10158         Depend on module fcntl-h when AT_FDCWD is used.
10159         * modules/utimens (Depends-on): Add fcntl-h.
10160         * modules/areadlinkat (Depends-on): Likewise.
10161         * modules/areadlinkat-with-size (Depends-on): Likewise.
10162         * modules/faccessat (Depends-on): Likewise.
10163         * modules/fchmodat (Depends-on): Likewise.
10164         * modules/fchownat (Depends-on): Likewise.
10165         * modules/getcwd (Depends-on): Likewise.
10166         * modules/mkdirat (Depends-on): Likewise.
10167         * modules/mkfifoat (Depends-on): Likewise.
10168         * modules/readlinkat (Depends-on): Likewise.
10169         * modules/symlinkat (Depends-on): Likewise.
10170         * modules/dup2-tests (Depends-on): Likewise.
10171         * modules/fdutimensat-tests (Depends-on): Likewise.
10172         * modules/futimens-tests (Depends-on): Likewise.
10173
10174 2011-11-19  Bruno Haible  <bruno@clisp.org>
10175
10176         euidaccess: Update a comment.
10177         * lib/euidaccess.c: Update comment about platforms with faccessat.
10178
10179 2011-11-19  Bruno Haible  <bruno@clisp.org>
10180
10181         openat: Fix file list.
10182         * modules/openat (Files): Remove lib/at-func.c.
10183
10184 2011-11-19  Bruno Haible  <bruno@clisp.org>
10185
10186         fstatat: Simplify.
10187         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10188         gnulib should define rpl_fstatat, there is a
10189         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10190
10191 2011-11-19  Bruno Haible  <bruno@clisp.org>
10192
10193         Ensure 'inline' can be used in tests/test-utimens-common.h.
10194         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10195         * modules/futimens-tests (configure.ac): Likewise.
10196         * modules/utimens-tests (configure.ac): Likewise.
10197         * modules/utimensat-tests (configure.ac): Likewise.
10198
10199 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10200
10201         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10202         not hash_insert0.
10203         (hash_insert_if_absent): Doc fix.
10204
10205 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10206
10207         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10208
10209 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10210
10211         test-getcwd: disambiguate exit status
10212         * tests/test-getcwd.c (test_long_name): Return 0..7.
10213         (main): Exit with an unambiguous exit status.  The old
10214         code yielded a mysterious mixture of two failure codes.
10215
10216         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10217         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10218         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10219         rpl_fstatat or fstatat.  This should fix the other problem
10220         reported by Kai Habel in
10221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10222         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10224         and I reproduced it on a Solaris 8 host we still have in production.
10225
10226 2011-11-18  Jim Meyering  <meyering@redhat.com>
10227
10228         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10229         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10230         Add a sentence to the comment.
10231         (hash_insert0): New function that simply calls hash_insert_if_absent.
10232         * lib/hash.h (hash_insert_if_absent): Declare it.
10233         (hash_insert0): Add deprecation attribute.
10234         (_GL_ATTRIBUTE_DEPRECATED): Define.
10235         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10236         not hash_insert0.
10237         * NEWS: Mention it, even though it's not really an incompatible change.
10238
10239 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10240
10241         openat: avoid compilation failure due to lack of <errno.h> inclusion
10242         * lib/openat.c: Include <errno.h>.
10243
10244 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10245
10246         * modules/getcwd (Depends-on): Add fdopendir.
10247         This fixes one of the two problems reported by Kai Habel in
10248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10249
10250         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10251         stdalign problem reported by Ian Beckwith in
10252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10253         * modules/crypto/gc-arcfour (Depends-on):
10254         Depend conditionally on crypto/arcfour.
10255         * modules/crypto/gc-arctwo (Depends-on):
10256         Depend conditionally on crypto/arctwo.
10257         * modules/crypto/gc-des (Depends-on):
10258         Depend conditionally on crypto/des.
10259         * modules/crypto/gc-hmac-md5 (Depends-on):
10260         Depend conditionally on crypto/hmac-md5.
10261         * modules/crypto/gc-hmac-sha1 (Depends-on):
10262         Depend conditionally on crypto/hmac-sha1.
10263         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10264         * modules/crypto/gc-md4 (Depends-on):
10265         Depend conditionally on crypto/md4.
10266         * modules/crypto/gc-md5 (Depends-on):
10267         Depend conditionally on crypto/md5.
10268         * modules/crypto/gc-rijndael (Depends-on):
10269         Depend conditionally on crypto/rijndael.
10270         * modules/crypto/gc-sha1 (Depends-on):
10271         Depend conditionally on crypto/sha1.
10272         * modules/crypto/gc-arcfour:
10273         * modules/crypto/gc-arctwo:
10274         * modules/crypto/gc-des:
10275         * modules/crypto/gc-hmac-md5:
10276         * modules/crypto/gc-hmac-sha1:
10277         * modules/crypto/gc-md2:
10278         * modules/crypto/gc-md4:
10279         * modules/crypto/gc-md5:
10280         * modules/crypto/gc-rijndael:
10281         * modules/crypto/gc-sha1:
10282         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10283         now that the conditional dependencies do the work for us.
10284
10285 2011-11-17  Jim Meyering  <meyering@redhat.com>
10286
10287         tests: factor st_ctime-comparison out of two headers
10288         * tests/test-utimens-common.h (ctime_compare): Define.
10289         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10290         * tests/test-lutimens.h (test_lutimens): Likewise.
10291         * tests/test-utimens.h (test_utimens): Likewise.
10292
10293         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10294         Invoke the test program via an init.sh-using wrapper.
10295         * tests/test-getcwd.sh: New file.
10296         * modules/getcwd-tests (Files): Add it.
10297         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10298
10299 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10300
10301         gitlog-to-changelog: support multi-author commits.
10302         The FSF cares about keeping track of all authors of patches to its
10303         projects, but Git doesn't provide obvious support for multi-author
10304         changesets. Consensus seems to be forming around the use of extra
10305         Signed-off-by inspired lines in the log message formatted as
10306         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10307         multi-author commits between version control systems.
10308         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10309         log message and output in standard ChangeLog multi-author format.
10310         Reported by Peter Rosin <peda@lysator.liu.se>
10311
10312 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10313             Bruno Haible  <bruno@clisp.org>
10314
10315         Fix some modules' file list.
10316         * modules/fstatat (Files): Add m4/lstat.m4.
10317         * modules/openat (Files): Likewise.
10318         * modules/unlinkat (Files): Likewise.
10319
10320 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10321
10322         maint.mk: fix tight-scope.mk generation in VPATH builds.
10323         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10324         reference with $(srcdir) so that the file is found correctly even
10325         when running `make syntax-check' in a VPATH build.
10326
10327 2011-11-13  Bruno Haible  <bruno@clisp.org>
10328             Jim Meyering  <meyering@redhat.com>
10329
10330         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10331         * tests/init.sh (compare): Remove "No differences encountered" or
10332         synonymous output from the 'diff' program.
10333
10334 2011-11-13  Bruno Haible  <bruno@clisp.org>
10335
10336         Makefile: Tweak indentation.
10337         * Makefile: Use tab as first character in every line that contains rule
10338         commands.
10339
10340 2011-11-13  Bruno Haible  <bruno@clisp.org>
10341
10342         Syntax check for copyright statements.
10343         * check-copyright: New file.
10344         * Makefile (sc_check_copyright): New rule.
10345
10346 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10347
10348         * build-aux/git-version-gen: Add --prefix to configure the tag
10349         match string.
10350
10351 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10352
10353         * build-aux/git-version-gen: Add --help and --version.
10354
10355 2011-11-12  Jim Meyering  <meyering@redhat.com>
10356
10357         revamp the other test-exclude?.sh scripts to use init.sh, too
10358         * tests/test-exclude1.sh: Use init.sh.
10359         * tests/test-exclude2.sh: Likewise.
10360         * tests/test-exclude3.sh: Likewise.
10361         * tests/test-exclude4.sh: Likewise.
10362         * tests/test-exclude5.sh: Likewise.
10363         * tests/test-exclude6.sh: Likewise.
10364         * tests/test-exclude7.sh: Likewise.
10365         * tests/test-exclude8.sh: Likewise.
10366         * modules/exclude-tests (Files): List init.sh.
10367
10368         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10369         These shell scripts ignored failure of the binary test-exclude,
10370         so making the latter return 77 didn't cause them to be skipped.
10371         * tests/test-exclude5.sh: Exit with test-exclude's error status
10372         when that program fails.  Revamp to use init.sh.
10373         * tests/test-exclude2.sh: Likewise.
10374
10375         test-exclude: fix a typo
10376         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10377
10378 2011-11-11  Bruno Haible  <bruno@clisp.org>
10379
10380         obstack: Fix compilation error on MSVC 9.
10381         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10382
10383 2011-11-11  Jim Meyering  <meyering@redhat.com>
10384
10385         test-exclude: skip tests rather than failing on deficient systems
10386         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10387         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10388         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10389         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10390
10391 2011-11-10  Bruno Haible  <bruno@clisp.org>
10392
10393         ptsname_r test: Avoid gcc warning on glibc systems.
10394         * tests/test-ptsname_r.c (null_ptr): New function.
10395         (test_errors): Use it.
10396
10397 2011-11-10  Bruno Haible  <bruno@clisp.org>
10398
10399         ptsname_r: Avoid compilation error on OSF/1 5.1.
10400         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10402         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10403         function is not declared or incompatibly declared.
10404         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10405         * modules/ptsname_r (Depends-on, configure.ac): Update.
10406         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10407
10408 2011-11-10  Bruno Haible  <bruno@clisp.org>
10409
10410         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10411         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10412         When cross-compiling, guess yes on all platforms except AIX.
10413         Reported by Ludovic Courtès <ludo@gnu.org>.
10414
10415 2011-11-09  Bruno Haible  <bruno@clisp.org>
10416
10417         ptsname_r tests: Fix bugs.
10418         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10419         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10420
10421 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10422
10423         fstatat: work with cross-compilation
10424         Problem reported by Ludovic Courtès in
10425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10426         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10427         "cross-compiling" and assume the bug is present.  Replace
10428         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10429         an inverted sense, to be more conservative about our assumptions.
10430         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10431
10432 2011-11-09  Bruno Haible  <bruno@clisp.org>
10433
10434         Improve MODULES.html output.
10435         * modules/mkfifoat (Description): Use the word "function".
10436         * modules/readlinkat (Description): Likewise.
10437         * modules/symlinkat (Description): Likewise.
10438
10439 2011-11-09  Eric Blake  <eblake@redhat.com>
10440
10441         ptsname_r-tests: new test module
10442         * modules/ptsname_r-tests: New module.
10443         * tests/test-ptsname_r.c: New file.
10444
10445         ptsname_r: new module
10446         * modules/ptsname_r: New module.
10447         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10448         * lib/ptsname.c (__ptsname_r): Split...
10449         * lib/ptsname_r.c: ...into new file.
10450         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10451         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10452         * modules/stdlib (Makefile.am): Substitute witnesses.
10453         * lib/stdlib.in.h (ptsname_r): Declare it.
10454         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10455         * MODULES.html.sh (Misc): Likewise.
10456         * modules/ptsname (Depends-on): Alter dependency.
10457         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10458
10459 2011-11-09  Jim Meyering  <meyering@redhat.com>
10460
10461         announce-gen: be more concise when there's only one URL+tarball
10462         * build-aux/announce-gen (get_tool_versions): When you distribute
10463         only one type of tarball, combine the first two "Here are..."
10464         sections and make the key-checking grammar independent of
10465         how many tarballs there are.
10466
10467 2011-11-09  Eric Blake  <eblake@redhat.com>
10468
10469         openpty: provide a stub on mingw
10470         * lib/pty.in.h (includes): Provide forward declarations.
10471         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10472
10473         raise: fix mingw handling of SIGPIPE
10474         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10475
10476 2011-11-08  Bruno Haible  <bruno@clisp.org>
10477
10478         More conditional dependencies.
10479         * modules/faccessat (Depends-on): Add conditions.
10480         * modules/fchmodat (Depends-on): Likewise.
10481         * modules/fchownat (Depends-on): Likewise.
10482         * modules/fstatat (Depends-on): Likewise.
10483         * modules/mkfifoat (Depends-on): Likewise.
10484         * modules/readlinkat (Depends-on): Likewise.
10485         * modules/symlinkat (Depends-on): Likewise.
10486         * modules/unlinkat (Depends-on): Likewise.
10487         * modules/utimensat (Depends-on): Likewise.
10488         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10489         * modules/linkat (Depends-on): Refine the conditions.
10490         * modules/renameat (Depends-on): Likewise.
10491
10492 2011-11-08  Bruno Haible  <bruno@clisp.org>
10493
10494         faccessat: Move AC_LIBOBJ invocation to module description.
10495         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10496         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10497         invocation from here...
10498         * modules/faccessat (configure.ac): ... to here. Invoke
10499         gl_PREREQ_FACCESSAT.
10500
10501 2011-11-08  Bruno Haible  <bruno@clisp.org>
10502
10503         faccessat: Simplify autoconf macro.
10504         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10505         gl_FUNC_EUIDACCESS.
10506
10507 2011-11-08  Bruno Haible  <bruno@clisp.org>
10508
10509         renameat: Fix dependencies.
10510         * modules/renameat (Depends-on): Add stdbool.
10511
10512 2011-11-08  Bruno Haible  <bruno@clisp.org>
10513
10514         mkfifoat: Fix module description.
10515         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10516         not gl_UNISTD_MODULE_INDICATOR.
10517
10518 2011-11-08  Bruno Haible  <bruno@clisp.org>
10519
10520         fstatat: Remove unused dependency.
10521         * modules/fstatat (Depends-on): Remove fstat.
10522
10523 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10524
10525         GNUmakefile: behave when Makefile is missing.
10526         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10527
10528 2011-11-08  Bruno Haible  <bruno@clisp.org>
10529
10530         openat: Conditionalize dependencies.
10531         * lib/openat.c: Reduce the scope of some #includes.
10532         * modules/openat (Depends-on): Add conditions.
10533
10534 2011-11-07  Jim Meyering  <meyering@redhat.com>
10535
10536         maint.mk: extract GPG key ID without using a temporary file
10537         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10538         without using a temporary file.  Based on a suggestion from Werner Koch
10539         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10540
10541 2011-11-07  Eric Blake  <eblake@redhat.com>
10542
10543         grantpt: fix typo
10544         * lib/stdlib.in.h (grantpt): Check correct function.
10545
10546         maint.mk: silence new syntax check
10547         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10548
10549 2011-11-06  Bruno Haible  <bruno@clisp.org>
10550
10551         Doc about floating-point and math API.
10552         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10553         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10554
10555 2011-11-06  Bruno Haible  <bruno@clisp.org>
10556
10557         stdalign tests: Skip the test when compiled by Sun C.
10558         * tests/test-stdalign.c (main): Skip the test on Sun C.
10559
10560 2011-11-06  Bruno Haible  <bruno@clisp.org>
10561
10562         ansi-c++-opt: Complete the 2011-06-05 change.
10563         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10564         does not support namespaces, set the variable to "no", not to ":".
10565
10566 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10567
10568         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10569
10570 2011-11-06  Bruno Haible  <bruno@clisp.org>
10571
10572         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10573         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10574         (minus_zerol) [HP-UX]: New macro.
10575         (unary_minus) [HP-UX]: New function.
10576         (copysignl) [HP-UX]: Use unary_minus function.
10577
10578 2011-11-06  Bruno Haible  <bruno@clisp.org>
10579
10580         ldexp, ldexpf, ldexpl: Enhance tests.
10581         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10582         and tests/test-ldexpl.c.
10583         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10584         LDEXP, MIN_EXP, MAX_EXP): New macros.
10585         Include test-ldexp.h.
10586         (main): Just call test_function.
10587         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10588         infinity.h, nan.h.
10589         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10590         MAX_EXP): New macros.
10591         Include test-ldexp.h.
10592         (x, y): Remove variables.
10593         (main): Just call test_function.
10594         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10595         infinity.h, nan.h.
10596         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10597         MAX_EXP): New macros.
10598         Include test-ldexp.h.
10599         (x, y): Remove variables.
10600         (main): Just call test_function.
10601         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10602         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10603         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10604         (Depends-on): Add isnand-nolibm, signbit, float.
10605         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10606         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10607         (Depends-on): Add isnanf-nolibm, signbit, float.
10608
10609 2011-11-06  Bruno Haible  <bruno@clisp.org>
10610
10611         math tests: Cosmetics.
10612         * tests/test-math-c++.cc: Reorder declarations.
10613
10614 2011-11-05  Bruno Haible  <bruno@clisp.org>
10615
10616         fma*: Simplify test.
10617         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10618         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10619
10620         Tests for module 'fmal'.
10621         * modules/fmal-tests: New file.
10622         * tests/test-fmal1.c: New file.
10623         * tests/test-fmal2.c: New file.
10624
10625         New module 'fmal'.
10626         * lib/math.in.h (fmal): New declaration.
10627         * lib/fmal.c: New file.
10628         * m4/fmal.m4: New file.
10629         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10631         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10632         REPLACE_FMAL.
10633         * modules/fmal: New file.
10634         * doc/posix-functions/fmal.texi: Mention the new module and the various
10635         bugs.
10636
10637         Tests for module 'fmaf'.
10638         * modules/fmaf-tests: New file.
10639         * tests/test-fmaf1.c: New file.
10640         * tests/test-fmaf2.c: New file.
10641
10642         New module 'fmaf'.
10643         * lib/math.in.h (fmaf): New declaration.
10644         * lib/fmaf.c: New file.
10645         * m4/fmaf.m4: New file.
10646         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10648         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10649         REPLACE_FMAF.
10650         * modules/fmaf: New file.
10651         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10652         bugs.
10653
10654         Tests for module 'fma'.
10655         * modules/fma-tests: New file.
10656         * tests/test-fma1.c: New file.
10657         * tests/test-fma1.h: New file.
10658         * tests/test-fma2.c: New file.
10659         * tests/test-fma2.h: New file.
10660
10661         New module 'fma'.
10662         * lib/math.in.h (fma): New declaration.
10663         * lib/fma.c: New file.
10664         * m4/fma.m4: New file.
10665         * m4/fegetround.m4: New file.
10666         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10668         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10669         REPLACE_FMA.
10670         * modules/fma: New file.
10671         * doc/posix-functions/fma.texi: Mention the new module and the various
10672         bugs.
10673
10674         Extend gl_MATHFUNC.
10675         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10676         Support 'void' as argument type.
10677         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10678
10679 2011-11-05  Jim Meyering  <meyering@redhat.com>
10680
10681         maint.mk: also prohibit inclusion of dirent.h without use
10682         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10683
10684 2011-11-05  Bruno Haible  <bruno@clisp.org>
10685
10686         ldexpl tests: Avoid test failure on MSVC 9.
10687         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10688         value. Needed in order to enforce the conversion from a value greater
10689         than LDBL_MAX to Infinity.
10690
10691 2011-11-05  Bruno Haible  <bruno@clisp.org>
10692
10693         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10694         * modules/at-internal: New file, extracted from modules/openat.
10695         * modules/openat-h: New file.
10696         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10697         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10698         * modules/openat (Description): Add reference to POSIX function.
10699         (Files): Remove lib/openat.h, lib/openat-proc.c.
10700         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10701         intprops, unistd.
10702         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10703         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10704         gl_FCNTL_MODULE_INDICATOR.
10705         (Include): Remove unistd.h, openat.h.
10706         * modules/areadlinkat (Files): Add lib/at-func.c.
10707         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10708         openat-die, openat-h, save-cwd.
10709         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10710         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10711         openat-die, openat-h, save-cwd, unistd.
10712         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10713         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10714         openat-h, save-cwd. Remove fcntl-h, openat.
10715         * modules/fchmodat (Files): Remove lib/openat.h.
10716         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10717         openat, stdbool, unistd.
10718         * modules/fchownat (Files): Remove lib/openat.h.
10719         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10720         openat, stdbool, sys_stat.
10721         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10722         lib/openat-proc.c.
10723         (Depends-on): Add at-internal.
10724         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10725         * modules/fstatat (Files): Remove lib/openat.h.
10726         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10727         stdbool, unistd.
10728         * modules/fts (Depends-on): Add openat-h.
10729         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10730         openat.
10731         * modules/mkdirat (Files): Remove lib/openat.h.
10732         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10733         openat, stdbool, sys_stat.
10734         * modules/mkfifoat (Files): Add lib/at-func.c.
10735         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10736         openat-h, save-cwd. Remove fcntl-h, openat.
10737         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10738         * modules/readlinkat (Files): Add lib/at-func.c.
10739         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10740         openat-h, save-cwd. Remove fcntl-h, openat.
10741         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10742         openat.
10743         * modules/selinux-at (Files): Add lib/at-func.c.
10744         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10745         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10746         * modules/symlinkat (Files): Add lib/at-func.c.
10747         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10748         openat-h, save-cwd. Remove fcntl-h, openat.
10749         * modules/unlinkat (Files): Remove lib/openat.h.
10750         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10751         stdbool.
10752         * modules/utimensat (Files): Add lib/at-func.c.
10753         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10754         openat-die, openat-h, save-cwd.
10755         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10756         * modules/fdutimensat-tests (Depends-on): Add openat.
10757         * modules/fstatat-tests (Depends-on): Add openat-h.
10758         * modules/readlinkat-tests (Depends-on): Add openat.
10759         * modules/symlinkat-tests (Depends-on): Add openat.
10760
10761 2011-11-05  Bruno Haible  <bruno@clisp.org>
10762
10763         openat: Include <stdbool.h>.
10764         * lib/openat.c: Include <stdbool.h>.
10765
10766 2011-11-04  Bruno Haible  <bruno@clisp.org>
10767
10768         fchownat, renameat, unlinkat: Fix dependencies.
10769         * modules/fchownat (Depends-on): Add fstatat.
10770         * modules/renameat (Depends-on): Likewise.
10771         * modules/unlinkat (Depends-on): Likewise.
10772
10773 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10774
10775         openat: remove direct dependency on dirent
10776         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10777         and hasn't been needed ever since fdopendir was split into its own
10778         module on 2009-08-31.
10779         * modules/openat (Depends-on): Remove dirent.
10780
10781 2011-11-04  Bruno Haible  <bruno@clisp.org>
10782
10783         renameat: Optimize code size.
10784         * modules/renameat (configure.ac): Don't compile at-func2.c if
10785         REPLACE_RENAMEAT is 1.
10786
10787 2011-11-04  Bruno Haible  <bruno@clisp.org>
10788
10789         openat tests: Fix file list.
10790         * modules/openat-tests (Files): Add tests/test-open.h.
10791
10792 2011-11-04  Bruno Haible  <bruno@clisp.org>
10793
10794         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10795         * modules/fchmodat (Depends-on): Add openat-die.
10796         * modules/fchownat (Depends-on): Likewise.
10797         * modules/linkat (Depends-on): Likewise.
10798         * modules/renameat (Depends-on): Likewise.
10799         * modules/openat (Depends-on): Add dirent.
10800
10801 2011-11-04  Jim Meyering  <meyering@redhat.com>
10802
10803         at-func*.c: fix comments
10804         * lib/at-func2.c: Correct/improve first-line comment.
10805         * lib/at-func.c: Correct grammar in first-line comment.
10806
10807 2011-11-04  Bruno Haible  <bruno@clisp.org>
10808
10809         New module 'mkdirat', split off from module 'openat'.
10810         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10811         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10812         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10813         * modules/mkdirat: New file, extracted from modules/openat.
10814         * modules/openat (Files): Remove lib/mkdirat.c.
10815         (Depends-on): Remove mkdir.
10816         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10817         (Include): Remove <sys/stat.h>.
10818         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10819         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10820         tests/test-mkdir.h.
10821         (Depends-on): Remove ignore-value.
10822         (Makefile.am): Remove rules for test-mkdirat.
10823         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10824         of module 'openat'.
10825         * NEWS: Mention the change.
10826
10827 2011-11-04  Bruno Haible  <bruno@clisp.org>
10828
10829         closedir: Avoid warning on mingw.
10830         * lib/closedir.c: Include <unistd.h>.
10831
10832 2011-11-04  Bruno Haible  <bruno@clisp.org>
10833
10834         New module 'fstatat', split off from module 'openat'.
10835         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10836         defined.
10837         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10838         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10839         gl_FUNC_FSTATAT.
10840         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10841         * modules/fstatat: New file, extracted from modules/openat.
10842         * modules/openat (Files): Remove lib/fstatat.c.
10843         (Depends-on): Remove lstat.
10844         (configure.ac): Remove AC_LIBOBJ of fstatat.
10845         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10846         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10847         tests/test-lstat.h, tests/test-stat.h.
10848         (Depends-on): Remove getcwd-lgpl.
10849         (Makefile.am): Remove rules for test-fstatat.
10850         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10851         of module 'openat'.
10852         * NEWS: Mention the change.
10853         * modules/getcwd (Depends-on): Add fstatat.
10854         * modules/linkat (Depends-on): Likewise.
10855         * modules/mkfifoat-tests (Depends-on): Likewise.
10856         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10857
10858 2011-11-03  Bruno Haible  <bruno@clisp.org>
10859
10860         New module 'unlinkat', split off from module 'openat'.
10861         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10862         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10863         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10864         * modules/unlinkat: New file, extracted from modules/openat. Correct
10865         the dependency conditions.
10866         * modules/openat (Files): Remove lib/unlinkat.c.
10867         (Depends-on): Remove rmdir, unlink.
10868         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10869         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10870         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10871         tests/test-rmdir.h, tests/test-unlink.h.
10872         (Depends-on): Remove unlinkdir.
10873         (Makefile.am): Remove rules for test-unlinkat.
10874         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10875         of module 'openat'.
10876         * NEWS: Mention the change.
10877         * modules/linkat-tests (Depends-on): Add unlinkat.
10878         * modules/mkfifoat-tests (Depends-on): Likewise.
10879         * modules/readlinkat-tests (Depends-on): Likewise.
10880
10881 2011-11-02  Bruno Haible  <bruno@clisp.org>
10882
10883         New module 'fchmodat', split off from module 'openat'.
10884         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10885         defined.
10886         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10887         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10888         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10889         * modules/fchmodat: New file, extracted from modules/openat.
10890         * modules/openat (Files): Remove lib/fchmodat.c.
10891         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10892         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10893         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10894         (Makefile.am): Remove rules for test-fchmodat.
10895         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10896         of module 'openat'.
10897         * NEWS: Mention the change.
10898
10899 2011-11-02  Jim Meyering  <meyering@redhat.com>
10900
10901         putenv: indent #definition of "environ" to placate cppi
10902         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10903
10904         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10905         Git logs are often treated as immutable, because editing them
10906         changes the SHA1 checksums of all descendants.  Thus, errors in
10907         git logs tend to stay there forever.  However, when we generate
10908         a ChangeLog file -- typically for distribution -- from that git log,
10909         we can actually make corrections in the generated file.  The key
10910         lies in recording in machine-readable/applicable form the desired
10911         corrections.  See --help for description and an example.
10912         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10913         (usage): Describe it; alphabetize option descriptions.
10914         (main): Honor the new option, carefully.
10915
10916 2011-11-01  Jim Meyering  <meyering@redhat.com>
10917
10918         gitlog-to-changelog: avoid an infloop
10919         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10920         that ends up being empty.
10921
10922 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10923
10924         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10925         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10926         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10927         contains (possibly-quoted) backslashes.  This should avoid
10928         all-too-common shell bugs if COMPLICATED contains backslashes in
10929         the "wrong" places.  Reported by David Evans in
10930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10931         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10932         because we want ASCII ranges.  Is there some reason we don't use
10933         the C locale everywhere in this script?
10934         (func_module, top level): Avoid unwanted pathname expansion when
10935         $repo_url_prefix or $repo_url_suffix_repl contain shell
10936         metacharacters like '?' and '*'.
10937
10938 2011-11-01  Bruno Haible  <bruno@clisp.org>
10939
10940         fchownat: Improve description.
10941         * modules/fchownat (Description): Add link to function.
10942
10943 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10944
10945         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10946         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10947         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10948         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10949
10950 2011-11-01  Bruno Haible  <bruno@clisp.org>
10951
10952         alignof: Avoid collision with stdalign module.
10953         * lib/alignof.h (alignof): Remove macro.
10954         * NEWS: Mention the change.
10955         Reported by Paul Eggert.
10956
10957 2011-11-01  Bruno Haible  <bruno@clisp.org>
10958
10959         New module 'fchownat', split off from module 'openat'.
10960         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10961         defined.
10962         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10963         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10964         invoke gl_FUNC_FCHOWNAT.
10965         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10966         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10967         * modules/fchownat: New file, extracted from modules/openat.
10968         * modules/openat (Files): Remove lib/fchownat.c.
10969         (Depends-on): Remove lchown.
10970         (configure.ac): Remove AC_LIBOBJ of fchownat.
10971         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10972         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10973         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10974         (Depends-on): Remove mgetgroups, usleep, stat-time.
10975         (configure.ac): Remove test for getegid.
10976         (Makefile.am): Remove rules for test-fchownat.
10977         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10978         of module 'openat'.
10979         * NEWS: Mention the change.
10980
10981 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10982
10983         stdalign: port better to MSVC and to Sun C 5.11
10984         This fixes some of the problems reported by Bruno Haible in
10985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10986         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10987         shortcomings of MSVC and of Sun C 5.11.
10988         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10989         around __declspec arg.
10990         * modules/stdalign-tests (Files): Add tests/macros.h.
10991         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10992         Include macros.h, for ASSERT.
10993         (DECLARE_ALIGNED): Remove.
10994         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10995         to catch bug), and to 1 if not (simplifies the rest of the code).
10996         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10997         (CHECK_AUTO): Remove.
10998         (CHECK_ALIGNED): Check only the alignment of the static vars,
10999         since auto var alignment isn't supported by Sun C 5.11.
11000         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11001         ASSERT failures are easier to diagnose.
11002
11003 2011-10-31  Bruno Haible  <bruno@clisp.org>
11004
11005         doc about some IRIX 5.3 problems.
11006         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11007         on IRIX 5.3.
11008         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11009         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11010         5.3.
11011         * doc/posix-functions/grantpt.texi: Likewise.
11012         * doc/posix-functions/unlockpt.texi: Likewise.
11013         * doc/posix-functions/lgamma.texi: Likewise.
11014         * doc/posix-functions/nextafter.texi: Likewise.
11015         * doc/posix-functions/remainder.texi: Likewise.
11016         * doc/posix-functions/select.texi: Mention misplaced declaration on
11017         IRIX 5.3.
11018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11019
11020 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11021
11022         gitlog-to-changelog: fix git-log invocation.
11023         git-log mishandles date strings before 1970-01-01 UTC, and there is
11024         no use to specify --since=1970-01-01 by default anyway.
11025         * build-aux/gitlog-to-changelog: By default, when no --since option
11026         was given, do not specify explicit --since option to git-log.
11027
11028 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11029
11030         gitlog-to-changelog: new option --append-dot.
11031         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11032         first non-blank line of each commit message terminated with a dot.
11033
11034 2011-10-30  Bruno Haible  <bruno@clisp.org>
11035
11036         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11037         * lib/ffsl.h: Include <config.h>.
11038         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11039
11040 2011-10-30  Jim Meyering  <meyering@redhat.com>
11041
11042         GNUmakefile: reenable "make syntax-check" for most projects
11043         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11044         build-aux variable", "syntax-check" would do nothing but succeed with
11045         the "No version control files detected..." diagnostic (unless you
11046         happened to override _build-aux via cfg.mk).
11047         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11048         to precede inclusion of maint.mk.  Otherwise, these variables would
11049         be used undefined in any project that does not override the default.
11050
11051 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11052
11053         gitlog-to-changelog: treat a message with only blank lines as empty.
11054         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11055         trailing blank lines before the code that issues a warning about an
11056         empty commit message.
11057
11058 2011-10-30  Jim Meyering  <meyering@redhat.com>
11059
11060         test-parse-datetime.c: avoid new DST-related false positive test failure
11061         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11062         based on the time/date we'll convert, not the current time.
11063         Otherwise, the moment we cross a DST boundary like today's in
11064         Europe, (CEST to CET), that offset ends up being one hour off.
11065
11066 2011-10-27  Bruno Haible  <bruno@clisp.org>
11067
11068         fstat: Tweak documentation.
11069         * modules/fstat (Description): More precise description.
11070
11071 2011-10-27  Bruno Haible  <bruno@clisp.org>
11072
11073         Update documentation regarding 'largefile' module.
11074         * doc/posix-functions/fstat.texi: Tweak wording.
11075         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11076         problems with huge directories and/or small ino_t types.
11077         * doc/posix-functions/readdir.texi: Likewise.
11078         * doc/posix-functions/rewinddir.texi: Likewise.
11079
11080 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11081
11082         maint.mk: don't maintain a second build-aux variable.
11083         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11084         depends on GNUmakefile, which already maintains a cfg.mk
11085         overridable $(_build-aux) for projects with a non-standard
11086         build-aux directory location, although without the $(srcdir)
11087         prefix.  Use that variable consistently instead of introducing a
11088         second one.  Adjust all call sites.
11089
11090 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11091
11092         Add stdalign module and use it in other modules.
11093         This is based on a previous proposal by Bruno Haible
11094         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11095
11096         stdalign: new module
11097         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11098         * modules/stdalign: New files.
11099         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11100         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11101
11102         stdalign-tests: new module
11103         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11104
11105         argp: use stdalign
11106         * lib/argp-parse.c: Include <stdalign.h>.
11107         (alignof): Remove.
11108         * modules/argp (Depends-on): Add stdalign.
11109
11110         crypto libraries: use stdalign
11111         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11112         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11113         Do not include <stdlib.h> twice, in md4.c.
11114         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11115         because we are accessing a pointer's bit-pattern, not a size.
11116         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11117         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11118         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11119         * modules/crypto/sha512: Likewise.
11120
11121         sys_socket: use stdalign, not alignof
11122         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11123         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11124
11125 2011-10-27  Bruno Haible  <bruno@clisp.org>
11126
11127         raise test: Avoid a test failure on Linux/MIPS.
11128         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11129         because 99 is a valid signal on Linux/MIPS.
11130
11131 2011-10-27  Bruno Haible  <bruno@clisp.org>
11132
11133         nonblocking tests: Fix test failure on Linux/MIPS.
11134         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11135         Set to 270000.
11136
11137 2011-10-27  Bruno Haible  <bruno@clisp.org>
11138
11139         utimensat: Work around problem on Linux/hppa.
11140         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11141         values.
11142         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11143
11144 2011-10-25  Jim Meyering  <meyering@redhat.com>
11145
11146         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11147         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11148         after symbols like NULL, size_t, etc.
11149         Reported by Alfred M. Szmidt.
11150
11151         maint.mk: exempt ENODATA from a syntax-check rule
11152         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11153         from the sc_prohibit_always-defined_macros syntax-check rule.
11154         Add a comment.  See this for more details:
11155         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11156
11157 2011-10-23  Jim Meyering  <meyering@redhat.com>
11158
11159         fts: close parent dir FD before returning from post-traversal fts_read
11160         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11161         unlink A, even though an FD open on A remained.  This is suboptimal
11162         (holding a file descriptor open longer than needed), but otherwise not
11163         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11164         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11165         that represents a real problem: it causes the removal of A to fail
11166         with e.g., "rm: cannot remove `A': Device or resource busy"
11167
11168         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11169         directory file descriptors.  After completing the final, FTS_DP,
11170         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11171         cache, but then proceeded to add a new FD to it via the subsequent
11172         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11173         final file descriptor would be closed only via fts_close's call to
11174         fd_ring_clear.  Now, it is usually closed earlier, via the final
11175         FTS_DP-returning fts_read call.
11176         * lib/fts.c (restore_initial_cwd): New function, converted from
11177         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11178         Update callers.
11179         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11180         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11181
11182 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11183             Bruno Haible  <bruno@clisp.org>
11184             Jim Meyering  <jim@meyering.net>
11185
11186         readme-release: improve safety of release prep instructions.
11187         * README-release: Don't git pull all branches when only master
11188         is needed for the release process.
11189         Run make maintainer-clean before changing trees and merging.
11190         Don't try to run ./configure right after git pull in case files
11191         that influence the bootstrap process have changed, move the
11192         ./configure step to after running ./bootstrap.
11193         Don't bootstrap "one last time"... it's the first time!
11194
11195 2011-10-22  Bruno Haible  <bruno@clisp.org>
11196
11197         errno, strerror-override: Support for MSVC 10.
11198         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11199         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11200         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11201         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11202         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11203         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11204         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11205         Assign values compatible with MSVC 10.
11206         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11207         New macros.
11208         (GNULIB_defined_EWINSOCK): New macro.
11209         * lib/strerror-override.c (strerror_override): Update accordingly.
11210         * lib/strerror-override.h: Likewise.
11211         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11212         longer equal to the corresponding errno value.
11213         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11214
11215 2011-10-22  Bruno Haible  <bruno@clisp.org>
11216
11217         perror: Recognize when test program crashes.
11218         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11219         strerror, set gl_cv_func_perror_works to no.
11220         Reported by Daniel Richard G. <skunk@iskunk.org>.
11221
11222         perror: Fix indentation.
11223         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11224
11225 2011-10-22  Bruno Haible  <bruno@clisp.org>
11226
11227         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11228         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11229         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11230         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11231         functions, not as a macro.
11232         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11233         macros.
11234         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11235         absence of macro.
11236         Suggested by Eric Blake.
11237         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11238
11239 2011-10-21  Bruno Haible  <bruno@clisp.org>
11240
11241         relocatable-prog-wrapper: Don't leave object files behind.
11242         * build-aux/install-reloc: Re-synchronize list of .o files to be
11243         removed with list of compilation units.
11244
11245 2011-10-20  Bruno Haible  <bruno@clisp.org>
11246
11247         openpty, posix_openpt: Remove code duplication.
11248         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11249         * lib/openpty.c: Include <stdlib.h>.
11250         (openpty): Use posix_openpt on all platforms except IRIX.
11251         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11252
11253 2011-10-20  Bruno Haible  <bruno@clisp.org>
11254
11255         unlockpt: Detect invalid argument.
11256         * lib/unlockpt.c: Include <fcntl.h>.
11257         (unlockpt): Check whether fd is valid, using fcntl().
11258         * modules/unlockpt (Depends-on): Add fcntl-h.
11259
11260 2011-10-20  Bruno Haible  <bruno@clisp.org>
11261
11262         openpty: Avoid compilation error on AIX 6.1.
11263         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11264
11265 2011-10-20  Bruno Haible  <bruno@clisp.org>
11266
11267         posix_openpt: Support for OpenBSD.
11268         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11269         (posix_openpt) [OpenBSD]: New code.
11270         * lib/grantpt.c: Include <fcntl.h>.
11271         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11272         * modules/grantpt (Depends-on): Add fcntl-h.
11273
11274 2011-10-20  Bruno Haible  <bruno@clisp.org>
11275
11276         posix_openpt test: Coding style.
11277         * tests/test-posix_openpt.c: Use GNU coding style.
11278
11279 2011-10-20  Bruno Haible  <bruno@clisp.org>
11280
11281         grantpt: Support --avoid=pt_chown.
11282         * modules/grantpt (Files): Add lib/pty-private.h.
11283
11284 2011-10-20  Bruno Haible  <bruno@clisp.org>
11285
11286         posix_openpt: Fix autoconf macro.
11287         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11288         unneeded check for _getpty.
11289
11290 2011-10-20  Bruno Haible  <bruno@clisp.org>
11291
11292         openpty: Update comments.
11293         * lib/openpty.c: Add comments about Minix.
11294
11295 2011-10-19  Eric Blake  <eblake@redhat.com>
11296
11297         openpty: relax license
11298         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11299
11300         pt_chown: use configmake to simplify build
11301         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11302
11303         ptsname and others: relax license
11304         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11305         * modules/unlockpt (License): Likewise.
11306         * modules/pt_chown (License): Likewise.
11307         * modules/ptsname (License): Likewise.
11308         * modules/ttyname_r (License): Likewise.
11309
11310 2011-10-19  Jim Meyering  <meyering@redhat.com>
11311
11312         posix_openpt: remove spurious #endif
11313         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11314
11315 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11316
11317         maint.mk: Respect $(build_aux) in web-manual rule.
11318         * top/maint.mk (web-manual): Find gen-announce script in user's
11319         $(build_aux) directory instead of hard-coding 'build-aux'.
11320
11321 2011-10-19  Bruno Haible  <bruno@clisp.org>
11322
11323         posix_openpt: Fix compilation error.
11324         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11325         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11326         Mention the openpty module as an alternative.
11327
11328 2011-10-19  Bruno Haible  <bruno@clisp.org>
11329
11330         Support for old NeXTstep 3.3 frexp().
11331         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11332         execution time of the test to 5 seconds.
11333         Reported by Daniel Richard G. <skunk@iskunk.org>.
11334
11335 2011-10-19  Bruno Haible  <bruno@clisp.org>
11336
11337         Support for old NeXTstep 3.3 sed.
11338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11339         part, use /.../, not \|...|. Escape periods in the header file name.
11340         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11341         Reported by Daniel Richard G. <skunk@iskunk.org>.
11342
11343 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11344
11345         Support for old NeXTstep 3.3 gcc.
11346         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11347         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11348         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11349         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11350         * lib/regex.h (_Restrict_arr_): Likewise.
11351         * lib/regex_internal.h (re_token_t): Likewise.
11352         * lib/regexec.c (check_node_accept_bytes): Likewise.
11353         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11354
11355 2011-10-18  Eric Blake  <eblake@redhat.com>
11356
11357         posix_openpt: new module
11358         * modules/posix_openpt: New module.
11359         * m4/posix_openpt.m4: New file.
11360         * lib/posix_openpt.c: Likewise.
11361         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11362         (gl_STDLIB_H_DEFAULTS): Set defaults.
11363         * modules/stdlib (Makefile.am): Substitute macros.
11364         * lib/stdlib.in.h (posix_openpt): Declare.
11365         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11366         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11367         * modules/posix_openpt-tests: New test module.
11368         * tests/test-posix_openpt.c: New test.
11369
11370 2011-10-15  Bruno Haible  <bruno@clisp.org>
11371
11372         xstrtoll: Fix compilation failure.
11373         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11374         from lib/strtol.c.
11375         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11376         some platforms.
11377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11378
11379 2011-10-15  Bruno Haible  <bruno@clisp.org>
11380
11381         vasnprintf: Optimize bit search operation.
11382         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11384         gl_DOUBLE_EXPONENT_LOCATION.
11385         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11386         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11387         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11388         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11389         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11390         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11391         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11392         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11393         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11394
11395 2011-10-15  Bruno Haible  <bruno@clisp.org>
11396
11397         vasnprintf: Fix comments.
11398         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11399
11400 2011-10-14  Bruno Haible  <bruno@clisp.org>
11401
11402         Tests for module 'integer_length_ll'.
11403         * modules/integer_length_ll-tests: New file.
11404         * tests/test-integer_length_ll.c: New file.
11405
11406         New module 'integer_length_ll'.
11407         * lib/integer_length_ll.c: New file.
11408         * modules/integer_length_ll: New file.
11409
11410 2011-10-14  Bruno Haible  <bruno@clisp.org>
11411
11412         Tests for module 'integer_length_l'.
11413         * modules/integer_length_l-tests: New file.
11414         * tests/test-integer_length_l.c: New file.
11415
11416         New module 'integer_length_l'.
11417         * lib/integer_length_l.c: New file.
11418         * modules/integer_length_l: New file.
11419
11420 2011-10-14  Bruno Haible  <bruno@clisp.org>
11421
11422         Tests for module 'integer_length'.
11423         * modules/integer_length-tests: New file.
11424         * tests/test-integer_length.c: New file.
11425
11426         New module 'integer_length'.
11427         * lib/integer_length.h: New file.
11428         * lib/integer_length.c: New file.
11429         * modules/integer_length: New file.
11430
11431 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11432
11433         popen: Fix dependency conditions.
11434         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11435
11436 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11437
11438         perror: Fix autoconf test.
11439         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11440         <stdlib.h> and <string.h>.
11441
11442 2011-10-14  Bruno Haible  <bruno@clisp.org>
11443
11444         ffsl: Optimize on 64-bit platforms.
11445         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11446         unrolling.
11447
11448 2011-10-13  Bruno Haible  <bruno@clisp.org>
11449
11450         ffsl: Optimize on 32-bit platforms.
11451         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11452         use ffs() without a loop.
11453
11454         ffsl, ffsll: Optimize for GCC.
11455         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11456         * lib/ffsl.c (GCC_BUILTIN): New macro.
11457         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11458
11459 2011-10-13  Bruno Haible  <bruno@clisp.org>
11460
11461         ffs, bcopy, memset: Support symbol renaming via config.h.
11462         * lib/ffs.c: Include <config.h>.
11463         * lib/bcopy.c: Likewise.
11464         * lib/memset.c: Likewise.
11465
11466 2011-10-10  Bruno Haible  <bruno@clisp.org>
11467
11468         atanl: Simplify for platforms where 'long double' == 'double'.
11469         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11470         alternative implementation.
11471         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11472         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11473         * modules/atanl (Depends-on): Add atan. Update conditions.
11474
11475 2011-10-10  Bruno Haible  <bruno@clisp.org>
11476
11477         acosl: Simplify for platforms where 'long double' == 'double'.
11478         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11479         alternative implementation.
11480         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11481         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11482         * modules/acosl (Depends-on): Add acos. Update conditions.
11483
11484 2011-10-10  Bruno Haible  <bruno@clisp.org>
11485
11486         asinl: Simplify for platforms where 'long double' == 'double'.
11487         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11488         alternative implementation.
11489         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11490         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11491         * modules/asinl (Depends-on): Add asin. Update conditions.
11492
11493 2011-10-10  Bruno Haible  <bruno@clisp.org>
11494
11495         tanl: Simplify for platforms where 'long double' == 'double'.
11496         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11497         implementation.
11498         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11499         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11500         * modules/tanl (Depends-on): Add tan. Update conditions.
11501         (configure.ac): Don't compile trigl.c if
11502         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11503
11504 2011-10-10  Bruno Haible  <bruno@clisp.org>
11505
11506         cosl: Simplify for platforms where 'long double' == 'double'.
11507         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11508         implementation.
11509         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11510         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11511         * modules/cosl (Depends-on): Add cos. Update conditions.
11512         (configure.ac): Don't compile sincosl.c and trigl.c if
11513         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11514
11515 2011-10-10  Bruno Haible  <bruno@clisp.org>
11516
11517         sinl: Simplify for platforms where 'long double' == 'double'.
11518         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11519         implementation.
11520         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11521         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11522         * modules/sinl (Depends-on): Add sin. Update conditions.
11523         (configure.ac): Don't compile sincosl.c and trigl.c if
11524         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11525
11526 2011-10-10  Bruno Haible  <bruno@clisp.org>
11527
11528         logl: Simplify for platforms where 'long double' == 'double'.
11529         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11530         implementation.
11531         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11532         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11533         * modules/logl (Depends-on): Add log. Update conditions.
11534
11535 2011-10-10  Bruno Haible  <bruno@clisp.org>
11536
11537         expl: Simplify for platforms where 'long double' == 'double'.
11538         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11539         implementation.
11540         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11541         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11542         * modules/expl (Depends-on): Add exp. Update conditions.
11543
11544 2011-10-10  Bruno Haible  <bruno@clisp.org>
11545
11546         sqrtl: Simplify for platforms where 'long double' == 'double'.
11547         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11548         alternative implementation.
11549         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11550         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11551         * modules/sqrtl (Depends-on): Update conditions.
11552
11553 2011-10-10  Bruno Haible  <bruno@clisp.org>
11554
11555         ldexpl: Simplify for platforms where 'long double' == 'double'.
11556         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11557         alternative implementation.
11558         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11559         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11560         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11561
11562 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11563
11564         ffsll: set correct witness
11565         * modules/ffsll (configure.ac): Fix typo.
11566
11567 2011-10-10  Bruno Haible  <bruno@clisp.org>
11568
11569         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11570         * lib/printf-frexpl.c: Include <config.h>.
11571         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11572         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11573         second time.
11574         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11575         gl_LONG_DOUBLE_VS_DOUBLE.
11576         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11577         conditions.
11578
11579 2011-10-10  Bruno Haible  <bruno@clisp.org>
11580
11581         frexpl: Simplify for platforms where 'long double' == 'double'.
11582         * lib/frexpl.c: Include <config.h>.
11583         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11584         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11585         time.
11586         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11587         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11588         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11589         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11590         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11591         conditions.
11592
11593 2011-10-10  Jim Meyering  <meyering@redhat.com>
11594
11595         test-renameat: don't leave behind a temporary file
11596         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11597           ERROR: files left in build directory after distclean:
11598           ./gltests/test-renameat.too
11599           make[1]: *** [distcleancheck] Error 1
11600         Reported by Tom G. Christensen.
11601
11602 2011-10-09  Bruno Haible  <bruno@clisp.org>
11603
11604         rint: Determine RINT_LIBM correctly on AIX 7.
11605         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11606         directly, not only through a function pointer. Also accept an optional
11607         4th argument with extra code.
11608         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11609         rintf() call by gcc when optimizing.
11610
11611         mathfunc.m4: Refactor.
11612         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11613         m4 variable.
11614
11615 2011-10-09  Bruno Haible  <bruno@clisp.org>
11616
11617         rintl: Simplify for platforms where 'long double' == 'double'.
11618         * lib/rintl.c: Include <config.h>.
11619         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11620         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11621         time.
11622         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11623         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11624         * modules/rintl (Depends-on): Add rint. Update conditions.
11625
11626 2011-10-09  Bruno Haible  <bruno@clisp.org>
11627
11628         roundl: Simplify for platforms where 'long double' == 'double'.
11629         * lib/roundl.c: Include <config.h>.
11630         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11631         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11632         time.
11633         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11634         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11635         * modules/roundl (Depends-on): Add round. Update conditions.
11636
11637 2011-10-09  Bruno Haible  <bruno@clisp.org>
11638
11639         truncl: Simplify for platforms where 'long double' == 'double'.
11640         * lib/truncl.c: Include <config.h>.
11641         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11642         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11643         time.
11644         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11645         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11646         * modules/truncl (Depends-on): Add trunc. Update conditions.
11647
11648 2011-10-09  Bruno Haible  <bruno@clisp.org>
11649
11650         ceill: Simplify for platforms where 'long double' == 'double'.
11651         * lib/ceill.c: Include <config.h>.
11652         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11653         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11654         time.
11655         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11656         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11657         * modules/ceill (Depends-on): Add ceil. Update conditions.
11658
11659 2011-10-09  Bruno Haible  <bruno@clisp.org>
11660
11661         floorl: Simplify for platforms where 'long double' == 'double'.
11662         * lib/floorl.c: Include <config.h>.
11663         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11664         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11665         time.
11666         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11667         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11668         * modules/floorl (Depends-on): Add floor. Update conditions.
11669
11670 2011-10-09  Bruno Haible  <bruno@clisp.org>
11671
11672         rint: Fix ordering constraints.
11673         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11674         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11675         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11676
11677 2011-10-09  Bruno Haible  <bruno@clisp.org>
11678
11679         copysignl: Simplify for platforms where 'long double' == 'double'.
11680         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11681         alternative.
11682         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11683         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11684         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11685
11686 2011-10-09  Bruno Haible  <bruno@clisp.org>
11687
11688         Tests for module 'rintl'.
11689         * modules/rintl-tests: New file.
11690         * tests/test-rintl.c: New file.
11691
11692         New module 'rintl'.
11693         * lib/math.in.h (rintl): New declaration.
11694         * lib/rintl.c: New file.
11695         * m4/rintl.m4: New file.
11696         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11698         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11699         * modules/rintl: New file.
11700         * tests/test-math-c++.cc: Check the declaration of rintl.
11701         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11702         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11703         * doc/posix-functions/rintl.texi: Mention the new module.
11704
11705 2011-10-09  Bruno Haible  <bruno@clisp.org>
11706
11707         Tests for module 'rintf'.
11708         * modules/rintf-tests: New file.
11709         * tests/test-rintf.c: New file.
11710
11711         New module 'rintf'.
11712         * lib/math.in.h (rintf): New declaration.
11713         * lib/rintf.c: New file.
11714         * m4/rintf.m4: New file.
11715         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11717         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11718         * modules/rintf: New file.
11719         * tests/test-math-c++.cc: Check the declaration of rintf.
11720         * doc/posix-functions/rintf.texi: Mention the new module.
11721
11722 2011-10-09  Bruno Haible  <bruno@clisp.org>
11723
11724         rint: Support for MSVC.
11725         * lib/math.in.h (rint): New declaration.
11726         * lib/rint.c: New file.
11727         * m4/rint.m4: New file.
11728         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11730         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11731         * modules/rint (Description): Fix.
11732         (Files): Add lib/rint.c, m4/rint.m4.
11733         (Depends-on): Add math.
11734         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11735         gl_MATH_MODULE_INDICATOR.
11736         * tests/test-math-c++.cc: Check the declaration of rint.
11737         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11738         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11739         * doc/posix-functions/rint.texi: Mention the replacement provided by
11740         the module.
11741
11742         rint tests: More tests.
11743         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11744         minus-zero.h, infinity.h, nan.h.
11745         (main): Skip the test if the current rounding mode is not standard. Add
11746         tests for negative numbers, minus zero, infinity, NaN.
11747         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11748         tests/nan.h.
11749         (Depends-on): Add isnand-nolibm.
11750
11751 2011-10-09  Bruno Haible  <bruno@clisp.org>
11752
11753         Tests for module 'copysignl'.
11754         * modules/copysignl-tests: New file.
11755         * tests/test-copysignl.c: New file.
11756
11757         New module 'copysignl'.
11758         * lib/math.in.h (copysignl): New declaration.
11759         * lib/copysignl.c: New file.
11760         * m4/copysignl.m4: New file.
11761         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11763         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11764         HAVE_COPYSIGNL.
11765         * modules/copysignl: New file.
11766         * tests/test-math-c++.cc: Check the declaration of copysignl.
11767         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11768         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11769         * doc/posix-functions/copysignl.texi: Mention the new module.
11770
11771 2011-10-09  Bruno Haible  <bruno@clisp.org>
11772
11773         Tests for module 'copysignf'.
11774         * modules/copysignf-tests: New file.
11775         * tests/test-copysignf.c: New file.
11776
11777         New module 'copysignf'.
11778         * lib/math.in.h (copysignf): New declaration.
11779         * lib/copysignf.c: New file.
11780         * m4/copysignf.m4: New file.
11781         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11783         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11784         HAVE_COPYSIGNF.
11785         * modules/copysignf: New file.
11786         * tests/test-math-c++.cc: Check the declaration of copysignf.
11787         * doc/posix-functions/copysignf.texi: Mention the new module.
11788
11789 2011-10-09  Bruno Haible  <bruno@clisp.org>
11790
11791         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11792         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11793         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11794         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11795         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11796         gl_SIGNAL_H_DEFAULTS.
11797
11798 2011-10-09  Bruno Haible  <bruno@clisp.org>
11799
11800         poll: Make macro safer.
11801         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11802         ac_cv_header_poll_h is not set.
11803
11804 2011-10-09  Bruno Haible  <bruno@clisp.org>
11805
11806         copysign: Provide replacement.
11807         * lib/math.in.h (copysign): New declaration.
11808         * lib/copysign.c: New file.
11809         * m4/copysign.m4: New file.
11810         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11812         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11813         HAVE_COPYSIGN.
11814         * modules/copysign (Description): Clarify.
11815         (Files): Add lib/copysign.c, m4/copysign.m4.
11816         (Depends-on): Add math, signbit.
11817         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11818         gl_MATH_MODULE_INDICATOR.
11819         * tests/test-math-c++.cc: Check the declaration of copysign.
11820         * doc/posix-functions/copysign.texi: Mention the effects of the module
11821         on Minix and MSVC.
11822
11823 2011-10-09  Bruno Haible  <bruno@clisp.org>
11824
11825         isinf: Ensure macro on AIX 5.1.
11826         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11827         macro.
11828         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11829
11830 2011-10-09  Bruno Haible  <bruno@clisp.org>
11831
11832         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11833         * modules/snprintf-posix-tests (configure.ac): Require
11834         gl_LONG_DOUBLE_VS_DOUBLE.
11835         * modules/sprintf-posix-tests (configure.ac): Likewise.
11836         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11837         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11838         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11839         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11840         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11841         tests on platforms where 'long double' is the same as 'double'.
11842         * tests/test-sprintf-posix.h (test_function): Likewise.
11843         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11844         * tests/test-vasprintf-posix.c (test_function): Likewise.
11845
11846         *printf: Fix for platforms where 'long double' == 'double'.
11847         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11848         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11849         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11850         * modules/fprintf-posix (Files): Likewise.
11851         * modules/obstack-printf-posix (Files): Likewise.
11852         * modules/snprintf-posix (Files): Likewise.
11853         * modules/sprintf-posix (Files): Likewise.
11854         * modules/vasnprintf (Files): Likewise.
11855         * modules/vasnprintf-posix (Files): Likewise.
11856         * modules/vasprintf-posix (Files): Likewise.
11857         * modules/vdprintf-posix (Files): Likewise.
11858         * modules/vfprintf-posix (Files): Likewise.
11859         * modules/vsnprintf-posix (Files): Likewise.
11860         * modules/vsprintf-posix (Files): Likewise.
11861         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11862         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11863         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11864         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11865         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11866         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11867         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11868
11869         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11870         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11871         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11872         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11873         'long double'.
11874         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11875
11876         isinf: Fix for platforms where 'long double' == 'double'.
11877         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11878         Don't blindly assume 80-bit 'long double'.
11879
11880         isfinite: Fix for platforms where 'long double' == 'double'.
11881         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11882         Don't blindly assume 80-bit 'long double'.
11883
11884         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11885         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11886         * modules/isfinite-tests (configure.ac): Require
11887         gl_LONG_DOUBLE_VS_DOUBLE.
11888         * modules/isinf-tests (configure.ac): Likewise.
11889         * modules/isnan-tests (configure.ac): Likewise.
11890         * modules/isnanl-tests (configure.ac): Likewise.
11891         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11892         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11893         tests on platforms where 'long double' is the same as 'double'.
11894         * tests/test-isinf.c (test_isinfl): Likewise.
11895         * tests/test-isnan.c (test_long_double): Likewise.
11896         * tests/test-isnanl.h (main): Likewise.
11897
11898 2011-10-08  Bruno Haible  <bruno@clisp.org>
11899
11900         Tests for module 'tanhf'.
11901         * modules/tanhf-tests: New file.
11902         * tests/test-tanhf.c: New file.
11903
11904         New module 'tanhf'.
11905         * lib/math.in.h (tanhf): New declaration.
11906         * lib/tanhf.c: New file.
11907         * m4/tanhf.m4: New file.
11908         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11910         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11911         * modules/tanhf: New file.
11912         * tests/test-math-c++.cc: Check the declaration of tanhf.
11913         * doc/posix-functions/tanhf.texi: Mention the new module.
11914
11915         tanh: Use a .m4 file.
11916         * m4/tanh.m4: New file.
11917         * modules/tanh (Files): Add it.
11918         (configure.ac): Just invoke gl_FUNC_TANH.
11919
11920 2011-10-08  Bruno Haible  <bruno@clisp.org>
11921
11922         Tests for module 'coshf'.
11923         * modules/coshf-tests: New file.
11924         * tests/test-coshf.c: New file.
11925
11926         New module 'coshf'.
11927         * lib/math.in.h (coshf): New declaration.
11928         * lib/coshf.c: New file.
11929         * m4/coshf.m4: New file.
11930         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11932         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11933         * modules/coshf: New file.
11934         * tests/test-math-c++.cc: Check the declaration of coshf.
11935         * doc/posix-functions/coshf.texi: Mention the new module.
11936
11937         cosh: Use a .m4 file.
11938         * m4/cosh.m4: New file.
11939         * modules/cosh (Files): Add it.
11940         (configure.ac): Just invoke gl_FUNC_COSH.
11941
11942 2011-10-08  Bruno Haible  <bruno@clisp.org>
11943
11944         Tests for module 'sinhf'.
11945         * modules/sinhf-tests: New file.
11946         * tests/test-sinhf.c: New file.
11947
11948         New module 'sinhf'.
11949         * lib/math.in.h (sinhf): New declaration.
11950         * lib/sinhf.c: New file.
11951         * m4/sinhf.m4: New file.
11952         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11954         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11955         * modules/sinhf: New file.
11956         * tests/test-math-c++.cc: Check the declaration of sinhf.
11957         * doc/posix-functions/sinhf.texi: Mention the new module.
11958
11959         sinh: Use a .m4 file.
11960         * m4/sinh.m4: New file.
11961         * modules/sinh (Files): Add it.
11962         (configure.ac): Just invoke gl_FUNC_SINH.
11963
11964 2011-10-08  Bruno Haible  <bruno@clisp.org>
11965
11966         Tests for module 'atan2f'.
11967         * modules/atan2f-tests: New file.
11968         * tests/test-atan2f.c: New file.
11969
11970         New module 'atan2f'.
11971         * lib/math.in.h (atan2f): New declaration.
11972         * lib/atan2f.c: New file.
11973         * m4/atan2f.m4: New file.
11974         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11976         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11977         * modules/atan2f: New file.
11978         * tests/test-math-c++.cc: Check the declaration of atan2f.
11979         * doc/posix-functions/atan2f.texi: Mention the new module.
11980
11981         atan2: Use a .m4 file.
11982         * m4/atan2.m4: New file.
11983         * modules/atan2 (Files): Add it.
11984         (configure.ac): Just invoke gl_FUNC_ATAN2.
11985
11986 2011-10-08  Bruno Haible  <bruno@clisp.org>
11987
11988         Tests for module 'atanf'.
11989         * modules/atanf-tests: New file.
11990         * tests/test-atanf.c: New file.
11991
11992         New module 'atanf'.
11993         * lib/math.in.h (atanf): New declaration.
11994         * lib/atanf.c: New file.
11995         * m4/atanf.m4: New file.
11996         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11998         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11999         * modules/atanf: New file.
12000         * tests/test-math-c++.cc: Check the declaration of atanf.
12001         * doc/posix-functions/atanf.texi: Mention the new module.
12002
12003         atan: Use a .m4 file.
12004         * m4/atan.m4: New file.
12005         * modules/atan (Files): Add it.
12006         (configure.ac): Just invoke gl_FUNC_ATAN.
12007
12008 2011-10-08  Bruno Haible  <bruno@clisp.org>
12009
12010         Tests for module 'acosf'.
12011         * modules/acosf-tests: New file.
12012         * tests/test-acosf.c: New file.
12013
12014         New module 'acosf'.
12015         * lib/math.in.h (acosf): New declaration.
12016         * lib/acosf.c: New file.
12017         * m4/acosf.m4: New file.
12018         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12020         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12021         * modules/acosf: New file.
12022         * tests/test-math-c++.cc: Check the declaration of acosf.
12023         * doc/posix-functions/acosf.texi: Mention the new module.
12024
12025         acos: Use a .m4 file.
12026         * m4/acos.m4: New file.
12027         * modules/acos (Files): Add it.
12028         (configure.ac): Just invoke gl_FUNC_ACOS.
12029
12030 2011-10-08  Bruno Haible  <bruno@clisp.org>
12031
12032         Tests for module 'asinf'.
12033         * modules/asinf-tests: New file.
12034         * tests/test-asinf.c: New file.
12035
12036         New module 'asinf'.
12037         * lib/math.in.h (asinf): New declaration.
12038         * lib/asinf.c: New file.
12039         * m4/asinf.m4: New file.
12040         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12042         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12043         * modules/asinf: New file.
12044         * tests/test-math-c++.cc: Check the declaration of asinf.
12045         * doc/posix-functions/asinf.texi: Mention the new module.
12046
12047         asin: Use a .m4 file.
12048         * m4/asin.m4: New file.
12049         * modules/asin (Files): Add it.
12050         (configure.ac): Just invoke gl_FUNC_ASIN.
12051
12052 2011-10-08  Bruno Haible  <bruno@clisp.org>
12053
12054         Tests for module 'tanf'.
12055         * modules/tanf-tests: New file.
12056         * tests/test-tanf.c: New file.
12057
12058         New module 'tanf'.
12059         * lib/math.in.h (tanf): New declaration.
12060         * lib/tanf.c: New file.
12061         * m4/tanf.m4: New file.
12062         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12064         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12065         * modules/tanf: New file.
12066         * tests/test-math-c++.cc: Check the declaration of tanf.
12067         * doc/posix-functions/tanf.texi: Mention the new module.
12068
12069         tan: Use a .m4 file.
12070         * m4/tan.m4: New file.
12071         * modules/tan (Files): Add it.
12072         (configure.ac): Just invoke gl_FUNC_TAN.
12073
12074 2011-10-08  Bruno Haible  <bruno@clisp.org>
12075
12076         Tests for module 'cosf'.
12077         * modules/cosf-tests: New file.
12078         * tests/test-cosf.c: New file.
12079
12080         New module 'cosf'.
12081         * lib/math.in.h (cosf): New declaration.
12082         * lib/cosf.c: New file.
12083         * m4/cosf.m4: New file.
12084         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12086         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12087         * modules/cosf: New file.
12088         * tests/test-math-c++.cc: Check the declaration of cosf.
12089         * doc/posix-functions/cosf.texi: Mention the new module.
12090
12091         cos: Use a .m4 file.
12092         * m4/cos.m4: New file.
12093         * modules/cos (Files): Add it.
12094         (configure.ac): Just invoke gl_FUNC_COS.
12095
12096 2011-10-08  Bruno Haible  <bruno@clisp.org>
12097
12098         Tests for module 'sinf'.
12099         * modules/sinf-tests: New file.
12100         * tests/test-sinf.c: New file.
12101
12102         New module 'sinf'.
12103         * lib/math.in.h (sinf): New declaration.
12104         * lib/sinf.c: New file.
12105         * m4/sinf.m4: New file.
12106         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12108         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12109         * modules/sinf: New file.
12110         * tests/test-math-c++.cc: Check the declaration of sinf.
12111         * doc/posix-functions/sinf.texi: Mention the new module.
12112
12113         sin: Use a .m4 file.
12114         * m4/sin.m4: New file.
12115         * modules/sin (Files): Add it.
12116         (configure.ac): Just invoke gl_FUNC_SIN.
12117
12118 2011-10-08  Bruno Haible  <bruno@clisp.org>
12119
12120         Tests for module 'powf'.
12121         * modules/powf-tests: New file.
12122         * tests/test-powf.c: New file.
12123
12124         New module 'powf'.
12125         * lib/math.in.h (powf): New declaration.
12126         * lib/powf.c: New file.
12127         * m4/powf.m4: New file.
12128         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12130         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12131         * modules/powf: New file.
12132         * tests/test-math-c++.cc: Check the declaration of powf.
12133         * doc/posix-functions/powf.texi: Mention the new module.
12134
12135         pow: Use a .m4 file.
12136         * m4/pow.m4: New file.
12137         * modules/pow (Files): Add it.
12138         (configure.ac): Just invoke gl_FUNC_POW.
12139
12140 2011-10-08  Bruno Haible  <bruno@clisp.org>
12141
12142         Tests for module 'log10f'.
12143         * modules/log10f-tests: New file.
12144         * tests/test-log10f.c: New file.
12145
12146         New module 'log10f'.
12147         * lib/math.in.h (log10f): New declaration.
12148         * lib/log10f.c: New file.
12149         * m4/log10f.m4: New file.
12150         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12152         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12153         * modules/log10f: New file.
12154         * tests/test-math-c++.cc: Check the declaration of log10f.
12155         * doc/posix-functions/log10f.texi: Mention the new module.
12156
12157         log10: Use a .m4 file.
12158         * m4/log10.m4: New file.
12159         * modules/log10 (Files): Add it.
12160         (configure.ac): Just invoke gl_FUNC_LOG10.
12161
12162 2011-10-08  Bruno Haible  <bruno@clisp.org>
12163
12164         Tests for module 'logf'.
12165         * modules/logf-tests: New file.
12166         * tests/test-logf.c: New file.
12167
12168         New module 'logf'.
12169         * lib/math.in.h (logf): New declaration.
12170         * lib/logf.c: New file.
12171         * m4/logf.m4: New file.
12172         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12174         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12175         * modules/logf: New file.
12176         * tests/test-math-c++.cc: Check the declaration of logf.
12177         * doc/posix-functions/logf.texi: Mention the new module.
12178
12179         log: Use a .m4 file.
12180         * m4/log.m4: New file.
12181         * modules/log (Files): Add it.
12182         (configure.ac): Just invoke gl_FUNC_LOG.
12183
12184 2011-10-08  Bruno Haible  <bruno@clisp.org>
12185
12186         Tests for module 'expf'.
12187         * modules/expf-tests: New file.
12188         * tests/test-expf.c: New file.
12189
12190         New module 'expf'.
12191         * lib/math.in.h (expf): New declaration.
12192         * lib/expf.c: New file.
12193         * m4/expf.m4: New file.
12194         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12196         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12197         * modules/expf: New file.
12198         * tests/test-math-c++.cc: Check the declaration of expf.
12199         * doc/posix-functions/expf.texi: Mention the new module.
12200
12201         exp: Use a .m4 file.
12202         * m4/exp.m4: New file.
12203         * modules/exp (Files): Add it.
12204         (configure.ac): Just invoke gl_FUNC_EXP.
12205
12206 2011-10-08  Bruno Haible  <bruno@clisp.org>
12207
12208         Tests for module 'sqrtf'.
12209         * modules/sqrtf-tests: New file.
12210         * tests/test-sqrtf.c: New file.
12211
12212         New module 'sqrtf'.
12213         * lib/math.in.h (sqrtf): New declaration.
12214         * lib/sqrtf.c: New file.
12215         * m4/sqrtf.m4: New file.
12216         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12218         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12219         * modules/sqrtf: New file.
12220         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12221         * doc/posix-functions/sqrtf.texi: Mention the new module.
12222
12223 2011-10-08  Bruno Haible  <bruno@clisp.org>
12224
12225         Tests: Avoid link failures w.r.t. libintl.
12226         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12227         $(LIBINTL).
12228         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12229         $(LIBINTL).
12230         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12231         against $(LIBINTL).
12232         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12233         $(LIBINTL).
12234         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12235         $(LIBINTL).
12236         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12237
12238 2011-10-08  Bruno Haible  <bruno@clisp.org>
12239
12240         pow tests: Defeat compiler optimizations.
12241         * tests/test-pow.c (main): Assign arguments to x and y before use.
12242
12243 2011-10-08  Bruno Haible  <bruno@clisp.org>
12244
12245         gnulib-tool: Improve last commit.
12246         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12247         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12248         ignore dependencies that are not among the modules list.
12249
12250 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12251
12252         gnulib-tool: don't follow dependencies to avoided modules
12253         This fixes a bug that is related to the previous one.
12254         * gnulib-tool (func_modules_transitive_closure)
12255         (func_emit_autoconf_snippets):
12256         Check whether a dependency is acceptable before using it.
12257         (--extract-dependencies): Report an error if --avoid is also used,
12258         since this combination of options is not yet supported.
12259
12260         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12261         Problem reported by Peter Dyballa in
12262         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12263         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12264         when echoing "$condition".
12265
12266 2011-10-07  Bruno Haible  <bruno@clisp.org>
12267
12268         Fix documentation about math functions on MacOS X.
12269         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12270         MacOS X 10.5.
12271         * doc/posix-functions/fdim.texi: Likewise.
12272         * doc/posix-functions/feclearexcept.texi: Likewise.
12273         * doc/posix-functions/fegetenv.texi: Likewise.
12274         * doc/posix-functions/fegetround.texi: Likewise.
12275         * doc/posix-functions/feholdexcept.texi: Likewise.
12276         * doc/posix-functions/feraiseexcept.texi: Likewise.
12277         * doc/posix-functions/fesetenv.texi: Likewise.
12278         * doc/posix-functions/fesetround.texi: Likewise.
12279         * doc/posix-functions/fetestexcept.texi: Likewise.
12280         * doc/posix-functions/feupdateenv.texi: Likewise.
12281         * doc/posix-functions/fmax.texi: Likewise.
12282         * doc/posix-functions/fmin.texi: Likewise.
12283         * doc/posix-functions/log2.texi: Likewise.
12284         * doc/posix-functions/modff.texi: Likewise.
12285         * doc/posix-functions/nan.texi: Likewise.
12286         * doc/posix-functions/nanf.texi: Likewise.
12287         * doc/posix-functions/nextafterf.texi: Likewise.
12288         * doc/posix-functions/remquo.texi: Likewise.
12289
12290 2011-10-07  Bruno Haible  <bruno@clisp.org>
12291
12292         modff: Drop assumption about library that defines modff.
12293         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12294         AC_CHECK_FUNCS.
12295         * modules/modff (Files): Add m4/mathfunc.m4.
12296
12297 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12298
12299         raise tests: Avoid a GCC warning.
12300         * tests/test-raise.c (handler): Use _Noreturn.
12301
12302 2011-10-07  Bruno Haible  <bruno@clisp.org>
12303
12304         Tests for module 'ldexpf'.
12305         * modules/ldexpf-tests: New file.
12306         * tests/test-ldexpf.c: New file.
12307
12308         New module 'ldexpf'.
12309         * lib/math.in.h (ldexpf): New declaration.
12310         * lib/ldexpf.c: New file.
12311         * m4/ldexpf.m4: New file.
12312         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12314         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12315         * modules/ldexpf: New file.
12316         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12317         * doc/posix-functions/ldexpf.texi: Mention the new module.
12318
12319 2011-10-06  Bruno Haible  <bruno@clisp.org>
12320
12321         frexpf: Work around problems on IRIX and mingw.
12322         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12324         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12325         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12326         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12327         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12328         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12329
12330 2011-10-06  Bruno Haible  <bruno@clisp.org>
12331
12332         fabsf: Drop assumption about library that defines fabsf.
12333         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12334         AC_CHECK_FUNCS.
12335         * modules/fabsf (Files): Add m4/mathfunc.m4.
12336
12337 2011-10-06  Bruno Haible  <bruno@clisp.org>
12338
12339         frexpf: Drop assumption about library that defines frexpf.
12340         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12341         'int *', 'float *', 'long double *', 'float', 'long double'.
12342         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12343         AC_CHECK_FUNCS.
12344         * modules/frexpf (Files): Add m4/mathfunc.m4.
12345
12346         Tests for module 'frexpf'.
12347         * modules/frexpf-tests: New file.
12348         * tests/test-frexpf.c: New file.
12349
12350         New module 'frexpf'.
12351         * lib/math.in.h (frexpf): New declaration.
12352         * lib/frexpf.c: New file.
12353         * m4/frexpf.m4: New file.
12354         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12356         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12357         * modules/frexpf: New file.
12358         * tests/test-math-c++.cc: Check the declaration of frexpf.
12359         * doc/posix-functions/frexpf.texi: Mention the new module.
12360
12361 2011-10-06  Bruno Haible  <bruno@clisp.org>
12362
12363         math: Sort function declarations of math.in.h.
12364         * lib/math.in.h (frexp, logb): Move declarations.
12365
12366 2011-10-05  Bruno Haible  <bruno@clisp.org>
12367
12368         Tests for module 'modff'.
12369         * modules/modff-tests: New file.
12370         * tests/test-modff.c: New file.
12371
12372         New module 'modff'.
12373         * lib/math.in.h (modff): New declaration.
12374         * lib/modff.c: New file.
12375         * m4/modff.m4: New file.
12376         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12378         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12379         * modules/modff: New file.
12380         * tests/test-math-c++.cc: Check the declaration of modff.
12381         * doc/posix-functions/modff.texi: Mention the new module.
12382
12383         modf tests: Make test sharper.
12384         * tests/test-modf.c (main): Strengthen upper bound.
12385
12386         modf: Use a .m4 file.
12387         * m4/modf.m4: New file.
12388         * modules/modf (Files): Add it.
12389         (configure.ac): Just invoke gl_FUNC_MODF.
12390
12391 2011-10-05  Bruno Haible  <bruno@clisp.org>
12392
12393         Tests for module 'fmodf'.
12394         * modules/fmodf-tests: New file.
12395         * tests/test-fmodf.c: New file.
12396
12397         New module 'fmodf'.
12398         * lib/math.in.h (fmodf): New declaration.
12399         * lib/fmodf.c: New file.
12400         * m4/fmodf.m4: New file.
12401         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12403         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12404         * modules/fmodf: New file.
12405         * tests/test-math-c++.cc: Check the declaration of fmodf.
12406         * doc/posix-functions/fmodf.texi: Mention the new module.
12407
12408         fmod: Use a .m4 file.
12409         * m4/fmod.m4: New file.
12410         * modules/fmod (Files): Add it.
12411         (configure.ac): Just invoke gl_FUNC_FMOD.
12412
12413 2011-10-05  Bruno Haible  <bruno@clisp.org>
12414
12415         Tests for module 'fabsf'.
12416         * modules/fabsf-tests: New file.
12417         * tests/test-fabsf.c: New file.
12418
12419         New module 'fabsf'.
12420         * lib/math.in.h (fabsf): New declaration.
12421         * lib/fabsf.c: New file.
12422         * m4/fabsf.m4: New file.
12423         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12425         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12426         * modules/fabsf: New file.
12427         * tests/test-math-c++.cc: Check the declaration of fabsf.
12428         * doc/posix-functions/fabsf.texi: Mention the new module.
12429
12430         fabs: Use a .m4 file.
12431         * m4/fabs.m4: New file.
12432         * modules/fabs (Files): Add it.
12433         (configure.ac): Just invoke gl_FUNC_FABS.
12434
12435 2011-10-05  Jim Meyering  <meyering@redhat.com>
12436
12437         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12438         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12439         ls -lL regression introduced in coreutils-8.12, it does so at the
12440         cost of an additional stat call in the common case.  Besides, now
12441         that the kernel change that prompted commit 95f7c57f has been reverted
12442         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12443         we have no use for commit 95f7c57f, "file-has-acl: use
12444         acl_extended_file_nofollow if available".
12445
12446 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12447
12448         file-has-acl: revert unintended change in behavior of ls -L
12449         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12450         derived from...
12451         (file_has_acl): ...code here.  Call it.
12452         This problem was introduced with 2011-07-22 commit 95f7c57f,
12453         "file-has-acl: use acl_extended_file_nofollow if available".
12454         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12455
12456 2011-10-03  Bruno Haible  <bruno@clisp.org>
12457
12458         poll: Avoid link errors on MSVC.
12459         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12460         * modules/poll (Depends-on): Add sockets.
12461         (Link): New section.
12462         * NEWS: Mention the change.
12463         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12464         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12465         $(LIB_POLL) instead of $(LIBSOCKET).
12466
12467 2011-10-03  Bruno Haible  <bruno@clisp.org>
12468
12469         sys_select tests: Fix link error on MSVC 9.
12470         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12471         with $(LIB_SELECT) instead of $(LIBSOCKET).
12472
12473 2011-10-03  Bruno Haible  <bruno@clisp.org>
12474
12475         sys_select: Fix compilation error on mingw.
12476         * lib/sys_select.in.h: On native Windows, include <io.h>.
12477
12478 2011-10-03  Bruno Haible  <bruno@clisp.org>
12479
12480         wmemset: Support for MSVC.
12481         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12482         whether wmemset() exists.
12483
12484 2011-10-03  Bruno Haible  <bruno@clisp.org>
12485
12486         wmemmove: Support for MSVC.
12487         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12488         whether wmemmove() exists.
12489
12490 2011-10-03  Bruno Haible  <bruno@clisp.org>
12491
12492         wmemcpy: Support for MSVC.
12493         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12494         whether wmemcpy() exists.
12495
12496 2011-10-03  Bruno Haible  <bruno@clisp.org>
12497
12498         wmemcmp: Support for MSVC.
12499         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12500         whether wmemcmp() exists.
12501
12502 2011-10-03  Bruno Haible  <bruno@clisp.org>
12503
12504         wmemchr: Support for MSVC.
12505         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12506         whether wmemchr() exists.
12507
12508 2011-10-03  Bruno Haible  <bruno@clisp.org>
12509
12510         glthread/*, strsignal: Support for MSVC.
12511         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12512         including <winsock.h> on MSVC 9.
12513         * lib/glthread/lock.h: Likewise.
12514         * lib/glthread/thread.h: Likewise.
12515         * lib/glthread/tls.h: Likewise.
12516         * lib/glthread/yield.h: Likewise.
12517         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12518         if HAVE_UNISTD_H is false.
12519         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12520
12521 2011-10-03  Bruno Haible  <bruno@clisp.org>
12522
12523         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12524         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12525         Set to 100000.
12526
12527 2011-10-03  Bruno Haible  <bruno@clisp.org>
12528
12529         acl: Fix specification.
12530         * lib/file-has-acl.c (file_has_acl): Fix specification.
12531
12532 2011-10-03  Bruno Haible  <bruno@clisp.org>
12533
12534         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12535         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12536         (compute_curr_prefix, shared_library_fullname,
12537         find_shared_library_fullname, get_shared_library_fullname, relocate):
12538         Use it together with PIC && INSTALLDIR.
12539         Reported by <jojelino@gmail.com>
12540         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12541
12542 2011-10-01  Jim Meyering  <meyering@redhat.com>
12543
12544         maint.mk: adjust a release-related rule not to require use of gzip
12545         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12546         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12547         projects that build only .tar.xz files.  Also fix an erroneous test.
12548
12549         test-linkat: don't leave behind a temporary file
12550         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12551         Otherwise, coreutils' "make distcheck" would fail with this:
12552           Only in /c/cu/tests/torture/coreutils/test/\
12553             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12554           make[2]: *** [my-distcheck] Error 1
12555
12556         float, math: add omitted file
12557         * lib/itold.c: Add file, required for yesterday's float change.
12558
12559 2011-10-01  Bruno Haible  <bruno@clisp.org>
12560
12561         isinf: Fix for OpenBSD/x86.
12562         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12563         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12564         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12565
12566 2011-10-01  Bruno Haible  <bruno@clisp.org>
12567
12568         isfinite: Fix syntax error in configure test.
12569         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12570
12571         isfinite: Fix typo.
12572         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12573         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12574
12575 2011-10-01  Bruno Haible  <bruno@clisp.org>
12576
12577         nonblocking tests: Fix test failure on Linux/IA-64.
12578         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12579         Set to 270000.
12580
12581 2011-10-01  Bruno Haible  <bruno@clisp.org>
12582
12583         mkfifoat tests: Fix a test failure on mingw.
12584         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12585         with error ENOSYS.
12586
12587 2011-09-30  Bruno Haible  <bruno@clisp.org>
12588
12589         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12590         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12591         'long double'. Set REPLACE_ITOLD.
12592         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12593         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12594         * lib/itold.c: New file.
12595         * modules/float (Files): Add lib/itold.c.
12596         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12597         (Makefile.am): Substitute REPLACE_ITOLD.
12598         * modules/math (Depends-on): Add float.
12599         (Makefile.am): Substitute REPLACE_ITOLD.
12600         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12601         * doc/posix-headers/math.texi: Likewise.
12602         * doc/posix-functions/logl.texi: Likewise.
12603
12604 2011-09-30  Bruno Haible  <bruno@clisp.org>
12605
12606         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12607         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12608         Set to 140000.
12609
12610 2011-09-30  Bruno Haible  <bruno@clisp.org>
12611
12612         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12613         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12614         invocation, say "right after AC_PROG_CC_STDC", not "right after
12615         AC_PROG_CC".
12616         Reported by Gary V. Vaughan <gary@gnu.org>.
12617
12618 2011-09-30  Bruno Haible  <bruno@clisp.org>
12619
12620         Centralize C99 requirement.
12621         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12622         * modules/stdarg (configure.ac-early): Invoke it instead of
12623         AC_PROG_CC_STDC.
12624         Reported by Gary V. Vaughan and Paul Eggert.
12625
12626 2011-09-29  Bruno Haible  <bruno@clisp.org>
12627
12628         float: Fix LDBL_MAX value on Linux/PowerPC.
12629         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12630         on Linux/PowerPC.
12631         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12632         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12633         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12634         platform.
12635         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12636
12637 2011-09-29  Bruno Haible  <bruno@clisp.org>
12638
12639         doc: Improve doc about gl_EARLY.
12640         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12641         AC_PROG_CC_STDC invocation.
12642         Reported by Gary V. Vaughan <gary@gnu.org>.
12643
12644 2011-09-28  Bruno Haible  <bruno@clisp.org>
12645
12646         fgetc, fputc, fread, fwrite tests: Fix link error.
12647         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12648         on non-MSVC platforms.
12649         * tests/test-fputc.c (main): Likewise.
12650         * tests/test-fread.c (main): Likewise.
12651         * tests/test-fwrite.c (main): Likewise.
12652         Reported by Jim Meyering.
12653
12654 2011-09-27  Bruno Haible  <bruno@clisp.org>
12655
12656         fputc, fwrite tests: Avoid test failure on MSVC.
12657         * tests/test-fgetc.c: Include msvc-inval.h.
12658         (main): Invoke gl_msvc_inval_ensure_handler.
12659         * tests/test-fputc.c: Include msvc-inval.h.
12660         (main): Invoke gl_msvc_inval_ensure_handler.
12661         * tests/test-fread.c: Include msvc-inval.h.
12662         (main): Invoke gl_msvc_inval_ensure_handler.
12663         * tests/test-fwrite.c: Include msvc-inval.h.
12664         (main): Invoke gl_msvc_inval_ensure_handler.
12665         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12666         * modules/fputc-tests (Depends-on): Likewise.
12667         * modules/fread-tests (Depends-on): Likewise.
12668         * modules/fwrite-tests (Depends-on): Likewise.
12669
12670 2011-09-27  Bruno Haible  <bruno@clisp.org>
12671
12672         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12673         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12674         (raise): Remove older, duplicated declaration.
12675         (_gl_raise_SIGPIPE): New declaration.
12676         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12677         (rpl_raise): Remove function.
12678         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12679         a gnulib-defined SIGPIPE here.
12680         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12681         'sigprocmask' has detected missing signal-blocking and the module
12682         'sigpipe' is enabled.
12683         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12684
12685 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12686
12687         base64-tests: avoid memory leak
12688         * tests/test-base64.c (main): Plug memory leak.
12689
12690         base32: new module
12691         * modules/base32: New module.
12692         * lib/base32.c: New file.
12693         * lib/base32.h: Likewise.
12694         * m4/base32.m4: Likewise.
12695         * modules/base32-tests: New test.
12696         * tests/test-base32.c: Likewise.
12697         * MODULES.html.sh (Misc): Mention it.
12698
12699 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12700
12701         gnulib: use more-standard license notice wording
12702         * gnulib-tool (func_emit_copyright_notice): When emitting a
12703         license notice into a file, use the standard wording as suggested
12704         by the current information for GNU maintainers, except say "file"
12705         rather than "program".  The new wording gives a license version
12706         number, which addresses an issue raised by Glenn Morris in
12707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12708         * m4/onceonly.m4: Use that same wording here, too.
12709
12710         dup2: minor simplification
12711         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12712         as lib/dup2.c no longer uses 'inline'.
12713
12714 2011-09-25  Bruno Haible  <bruno@clisp.org>
12715
12716         strings: Fix compilation error on MSVC.
12717         * lib/strings.in.h: Include <stddef.h> for size_t.
12718
12719 2011-09-25  Bruno Haible  <bruno@clisp.org>
12720
12721         fflush et al.: Document limitation on MSVC.
12722         * doc/posix-functions/fflush.texi: Document possible crash in handling
12723         mode other than DEFAULT_HANDLING.
12724         * doc/posix-functions/fgetc.texi: Likewise.
12725         * doc/posix-functions/fputc.texi: Likewise.
12726         * doc/posix-functions/fread.texi: Likewise.
12727         * doc/posix-functions/fwrite.texi: Likewise.
12728
12729 2011-09-25  Bruno Haible  <bruno@clisp.org>
12730
12731         msvc-inval: Allow three invalid parameter handling modes.
12732         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12733         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12734         macros.
12735         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12736         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12737         SANE_LIBRARY_HANDLING as a no-op.
12738         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12739         <stdlib.h>.
12740         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12741
12742 2011-09-25  Bruno Haible  <bruno@clisp.org>
12743
12744         msvc-inval: Make handler multithread-safe.
12745         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12746         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12747         declarations.
12748         (gl_msvc_inval_current): New declaration.
12749         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12750         Operate on the structure returned by gl_msvc_inval_current().
12751         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12752         Remove varaiables.
12753         (tls_index, tls_initialized): New variables.
12754         (not_per_thread): New variable.
12755         (gl_msvc_inval_current): New function.
12756         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12757         returned by gl_msvc_inval_current().
12758
12759 2011-09-25  Bruno Haible  <bruno@clisp.org>
12760
12761         msvc-inval: Install handler globally.
12762         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12763         !_MSC_VER.
12764         (gl_msvc_invalid_parameter_handler): Remove declaration.
12765         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12766         declarations.
12767         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12768         Install the handler globally, don't uninstall it.
12769         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12770         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12771         currently valid, call RaiseException instead.
12772         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12773         for !_MSC_VER.
12774
12775 2011-09-25  Bruno Haible  <bruno@clisp.org>
12776
12777         strerror_r-posix: Fix for MSVC 9.
12778         * lib/strerror_r.c (local_snprintf): New function.
12779         (snprintf): Define to local_snprintf, not to _snprintf.
12780
12781 2011-09-25  Bruno Haible  <bruno@clisp.org>
12782
12783         ftruncate: Support for MSVC 9.
12784         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12785         (chsize_nothrow): New function.
12786         (chsize): Redefine as a macro.
12787         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12788         * modules/ftruncate (Depends-on): Add msvc-inval.
12789
12790 2011-09-25  Bruno Haible  <bruno@clisp.org>
12791
12792         New module 'fstat'.
12793         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12794         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12795         * lib/fchdir.c (rpl_fstat): Remove function.
12796         * m4/fstat.m4: New file.
12797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12798         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12799         declared.
12800         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12801         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12802         * modules/fstat: New file.
12803         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12804         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12805         is set.
12806         * doc/posix-functions/fstat.texi: Mention the new module and the
12807         problem on MSVC.
12808         * NEWS: Mention the change.
12809         * modules/acl (Depends-on): Add fstat.
12810         * modules/chdir-safer (Depends-on): Likewise.
12811         * modules/chown (Depends-on): Likewise.
12812         * modules/copy-file (Depends-on): Likewise.
12813         * modules/fchdir (Depends-on): Likewise.
12814         * modules/fdopendir (Depends-on): Likewise.
12815         * modules/fopen (Depends-on): Likewise.
12816         * modules/fts (Depends-on): Likewise.
12817         * modules/getcwd (Depends-on): Likewise.
12818         * modules/isapipe (Depends-on): Likewise.
12819         * modules/linkat (Depends-on): Likewise.
12820         * modules/lseek (Depends-on): Likewise.
12821         * modules/mkdir-p (Depends-on): Likewise.
12822         * modules/open (Depends-on): Likewise.
12823         * modules/openat (Depends-on): Likewise.
12824         * modules/read-file (Depends-on): Likewise.
12825         * modules/renameat (Depends-on): Likewise.
12826         * modules/utimens (Depends-on): Likewise.
12827
12828 2011-09-25  Bruno Haible  <bruno@clisp.org>
12829
12830         linkat: Fix compilation on MSVC 9.
12831         * lib/linkat.c: Don't include <stdint.h>.
12832
12833 2011-09-25  Bruno Haible  <bruno@clisp.org>
12834
12835         fclose: Support for MSVC 9.
12836         * lib/fclose.c: Include msvc-inval.h.
12837         (fclose_nothrow): New function.
12838         (rpl_fclose): Use it.
12839         * modules/fclose (Depends-on): Add msvc-inval.
12840         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12841
12842 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12843
12844         dup2: minor simplifications
12845         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12846         that it's a performance win.
12847         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12848         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12849
12850 2011-09-24  Jim Meyering  <meyering@redhat.com>
12851
12852         test-futimens: avoid a warning from gcc -Wshadow
12853         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12854         to avoid a shadowing warning.
12855
12856 2011-09-24  Bruno Haible  <bruno@clisp.org>
12857
12858         fdopen: Support for MSVC 9.
12859         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12860         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12861         * lib/fdopen.c: Include msvc-inval.h.
12862         (fdopen_nothrow): New function.
12863         (rpl_fdopen): Use it.
12864         * modules/fdopen (Depends-on): Add msvc-inval.
12865         * modules/fclose-tests (Depends-on): Add fdopen.
12866         * modules/fflush-tests (Depends-on): Likewise.
12867         * modules/fgetc-tests (Depends-on): Likewise.
12868         * modules/fputc-tests (Depends-on): Likewise.
12869         * modules/fread-tests (Depends-on): Likewise.
12870         * modules/freopen-tests (Depends-on): Likewise.
12871         * modules/fseeko-tests (Depends-on): Likewise.
12872         * modules/ftello-tests (Depends-on): Likewise.
12873         * modules/fwrite-tests  (Depends-on): Likewise.
12874         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12875
12876 2011-09-24  Bruno Haible  <bruno@clisp.org>
12877
12878         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12879         * modules/fgetc-tests (Depends-on): Add unistd.
12880         * modules/fputc-tests (Depends-on): Likewise.
12881         * modules/fread-tests (Depends-on): Likewise.
12882         * modules/fwrite-tests (Depends-on): Likewise.
12883
12884 2011-09-24  Bruno Haible  <bruno@clisp.org>
12885
12886         dup: Simplify autoconf test.
12887         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12888         on gl_MSVC_INVAL's result.
12889
12890 2011-09-24  Bruno Haible  <bruno@clisp.org>
12891
12892         Tests for function fwrite().
12893         * modules/fwrite-tests: New file.
12894         * tests/test-fwrite.c: New file.
12895         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12896
12897         Tests for function fread().
12898         * modules/fread-tests: New file.
12899         * tests/test-fread.c: New file.
12900         * modules/stdio-tests (Depends-on): Add fread-tests.
12901
12902         Activate fputc tests.
12903         * modules/stdio-tests (Depends-on): Add fputc-tests.
12904
12905         Enhance fgetc, fputc tests.
12906         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12907         * tests/test-fputc.c (main): Likewise.
12908
12909 2011-09-24  Bruno Haible  <bruno@clisp.org>
12910
12911         write: Support for MSVC 9.
12912         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12913         is not 1.
12914         * lib/write.c (write_nothrow): New function.
12915         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12916         not 1. Use write_nothrow.
12917         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12918         invalid parameter handler.
12919         (gl_PREREQ_WRITE): New macro.
12920         * modules/write (Depends-on): Add msvc-inval.
12921         (configure.ac): Invoke gl_PREREQ_WRITE.
12922         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12923
12924 2011-09-24  Bruno Haible  <bruno@clisp.org>
12925
12926         read: Fix last commit.
12927         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12928
12929 2011-09-24  Bruno Haible  <bruno@clisp.org>
12930
12931         dup2: Fix last commit.
12932         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12933         (rpl_dup2): Disable fcntl workaround on native Windows.
12934
12935         sigprocmask: Make code safer.
12936         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12937         section that changes macro definitions for this compilation unit.
12938
12939 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12940
12941         dup2: clarify by coalescing Windows-specific material
12942         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12943         "msvc-nothrow.h"' to the Windows-specific section, so that the
12944         Emacs source need not contain these include files.
12945         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12946         Windows-specific fixes into this function rather than just the
12947         nothrow fix, as this shortens and clarifies the code.  Always
12948         define as a function, as that's a bit cleaner than having it be
12949         sometimes a function and sometimes a macro.
12950         (rpl_dup2): Move the Windows-specific stuff out of here and into
12951         ms_windows_dup2.  Don't protect the Haiku-related fix with
12952         "#if !defined __linux__", as the same code also works around
12953         a Linux kernel bug, and it doesn't add any system calls on any
12954         platform.  Add comment about FreeBSD 6.1.
12955
12956         sigprocmask: move #include directive
12957         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12958         Windows-specific section, so that the Emacs source need not
12959         contain msvc-inval.h.
12960
12961 2011-09-23  Bruno Haible  <bruno@clisp.org>
12962
12963         read: Support for MSVC 9.
12964         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12965         is not 1.
12966         * lib/read.c (read_nothrow): New function.
12967         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12968         read_nothrow.
12969         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12970         invalid parameter handler.
12971         (gl_PREREQ_READ): New macro.
12972         * modules/read (Depends-on): Add msvc-inval.
12973         (configure.ac): Invoke gl_PREREQ_READ.
12974         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12975
12976 2011-09-23  Bruno Haible  <bruno@clisp.org>
12977
12978         close: Support for MSVC 9.
12979         * lib/close.c: Include <errno.h>, msvc-inval.h.
12980         (close_nothrow): New function.
12981         (rpl_close): Use it.
12982         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12983         invalid parameter handler.
12984         * modules/close (Depends-on): Add msvc-inval.
12985         * modules/dup2-tests (Depends-on): Add close.
12986         * modules/dup3-tests (Depends-on): Likewise.
12987         * modules/fcntl-tests (Depends-on): Likewise.
12988         * modules/spawn-pipe-tests (Depends-on): Likewise.
12989         * modules/unistd-safer-tests (Depends-on): Likewise.
12990         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12991
12992 2011-09-23  Bruno Haible  <bruno@clisp.org>
12993
12994         New module 'dup'.
12995         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12996         Allow replacement.
12997         * lib/dup.c: New file.
12998         * lib/fchdir.c (rpl_dup): Remove function.
12999         * m4/dup.m4: New file.
13000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13001         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13002         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13003         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13004         * modules/dup: New file.
13005         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13006         'dup' module is in use.
13007         * modules/fdopendir (Depends-on): Add dup.
13008         * modules/fdutimensat-tests (Depends-on): Likewise.
13009         * modules/fts (Depends-on): Likewise.
13010         * modules/futimens-tests (Depends-on): Likewise.
13011         * modules/posix_spawnp-tests (Depends-on): Likewise.
13012         * modules/unistd-safer-tests (Depends-on): Likewise.
13013         * modules/utimens-tests (Depends-on): Likewise.
13014         * doc/posix-functions/dup.texi: Mention the new module and the problem
13015         on MSVC.
13016
13017 2011-09-23  Bruno Haible  <bruno@clisp.org>
13018
13019         getdtablesize: Support for MSVC 9.
13020         * lib/getdtablesize.c: Include msvc-inval.h.
13021         (_setmaxstdio_nothrow): New function.
13022         (_setmaxstdio): Redefine it.
13023         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13024         * modules/getdtablesize (Depends-on): Add msvc-inval.
13025         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13026
13027 2011-09-23  Bruno Haible  <bruno@clisp.org>
13028
13029         signal-h: Rename from signal.
13030         * modules/signal-h: Renamed from modules/signal.
13031         * modules/pthread_sigmask (Depends-on): Update.
13032         * modules/raise (Depends-on): Likewise.
13033         * modules/sigaction (Depends-on): Likewise.
13034         * modules/sigpipe (Depends-on): Likewise.
13035         * modules/sigprocmask (Depends-on): Likewise.
13036         * modules/sys_select (Depends-on): Likewise.
13037         * modules/signal-h-tests: Renamed from modules/signal-tests.
13038         (Files, Depends-on, Makefile.am): Update.
13039         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13040         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13041         (Files, Makefile.am): Update.
13042         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13043         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13044         * modules/signal: New placeholder file.
13045         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13046         * doc/posix-headers/signal.texi: Update.
13047         * NEWS: Mention the change.
13048
13049 2011-09-23  Bruno Haible  <bruno@clisp.org>
13050
13051         sigprocmask: Avoid crashes through signal() on MSVC 9.
13052         * lib/sigprocmask.c: Include msvc-inval.h.
13053         (signal_nothrow): New function.
13054         (signal): Redefine it.
13055         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13056         * modules/sigprocmask (Depends-on): Add msvc-inval.
13057         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13058
13059 2011-09-23  Bruno Haible  <bruno@clisp.org>
13060
13061         Tests for module 'raise'.
13062         * modules/raise-tests: New file.
13063         * tests/test-raise.c: New file.
13064
13065         raise: Support for MSVC.
13066         * lib/signal.in.h (raise): New declaration.
13067         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13068         for native Windows platforms.
13069         * m4/raise.m4: New file.
13070         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13071         HAVE_RAISE, REPLACE_RAISE.
13072         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13073         REPLACE_RAISE.
13074         * modules/raise (Status, Notice): Remove fields.
13075         (Files): Add m4/raise.m4.
13076         (Depends-on): Add signal, msvc-inval.
13077         (configure.ac): Use the common idioms.
13078         (Maintainer): Add me.
13079         * tests/test-signal-c++.cc: Check the signature of raise.
13080         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13081
13082 2011-09-23  Bruno Haible  <bruno@clisp.org>
13083
13084         pipe2: Fix compilation on pre-C99 compilers.
13085         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13086
13087 2011-09-23  Bruno Haible  <bruno@clisp.org>
13088
13089         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13090         * lib/msvc-nothrow.h: New file.
13091         * lib/msvc-nothrow.c: New file.
13092         * m4/msvc-nothrow.m4: New file.
13093         * modules/msvc-nothrow: New file.
13094         * lib/dup2.c: Include msvc-nothrow.h.
13095         (rpl_dup2): No need to protect _get_osfhandle call here.
13096         * lib/accept4.c: Include msvc-nothrow.h.
13097         * lib/error.c: Likewise.
13098         * lib/fcntl.c: Likewise.
13099         * lib/lseek.c: Likewise.
13100         * lib/nonblocking.c: Likewise.
13101         * lib/poll.c: Likewise.
13102         * lib/read.c: Likewise.
13103         * lib/select.c: Likewise.
13104         * lib/sockets.h: Likewise.
13105         * lib/sockets.c: Likewise.
13106         * lib/stdio-read.c: Likewise.
13107         * lib/stdio-write.c: Likewise.
13108         * lib/write.c: Likewise.
13109         * lib/w32sock.h: Likewise.
13110         * lib/w32spawn.h: Likewise.
13111         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13112         * lib/fsync.c: Likewise.
13113         * lib/isapipe.c: Likewise.
13114         * modules/dup2 (Depends-on): Add msvc-nothrow.
13115         * modules/accept4 (Depends-on): Likewise.
13116         * modules/error (Depends-on): Likewise.
13117         * modules/fcntl (Depends-on): Likewise.
13118         * modules/lseek (Depends-on): Likewise.
13119         * modules/nonblocking (Depends-on): Likewise.
13120         * modules/poll (Depends-on): Likewise.
13121         * modules/read (Depends-on): Likewise.
13122         * modules/select (Depends-on): Likewise.
13123         * modules/sockets (Depends-on): Likewise.
13124         * modules/sigpipe (Depends-on): Likewise.
13125         * modules/write (Depends-on): Likewise.
13126         * modules/accept (Depends-on): Likewise.
13127         * modules/bind (Depends-on): Likewise.
13128         * modules/connect (Depends-on): Likewise.
13129         * modules/gethostname (Depends-on): Likewise.
13130         * modules/getpeername (Depends-on): Likewise.
13131         * modules/getsockname (Depends-on): Likewise.
13132         * modules/getsockopt (Depends-on): Likewise.
13133         * modules/ioctl (Depends-on): Likewise.
13134         * modules/listen (Depends-on): Likewise.
13135         * modules/recv (Depends-on): Likewise.
13136         * modules/recvfrom (Depends-on): Likewise.
13137         * modules/send (Depends-on): Likewise.
13138         * modules/sendto (Depends-on): Likewise.
13139         * modules/setsockopt (Depends-on): Likewise.
13140         * modules/shutdown (Depends-on): Likewise.
13141         * modules/socket (Depends-on): Likewise.
13142         * modules/execute (Depends-on): Likewise.
13143         * modules/spawn-pipe (Depends-on): Likewise.
13144         * modules/flock (Depends-on): Likewise.
13145         * modules/fsync (Depends-on): Likewise.
13146         * modules/isapipe (Depends-on): Likewise.
13147         * tests/test-cloexec.c: Include msvc-nothrow.h.
13148         * tests/test-dup-safer.c: Likewise.
13149         * tests/test-dup2.c: Likewise.
13150         * tests/test-dup3.c: Likewise.
13151         * tests/test-fcntl.c: Likewise.
13152         * tests/test-pipe.c: Likewise.
13153         * tests/test-pipe2.c: Likewise.
13154         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13155         * modules/unistd-safer-tests (Depends-on): Likewise.
13156         * modules/dup2-tests (Depends-on): Likewise.
13157         * modules/dup3-tests (Depends-on): Likewise.
13158         * modules/fcntl-tests (Depends-on): Likewise.
13159         * modules/pipe-posix-tests (Depends-on): Likewise.
13160         * modules/pipe2-tests (Depends-on): Likewise.
13161
13162 2011-09-23  Bruno Haible  <bruno@clisp.org>
13163
13164         dup2: Make code more maintainable.
13165         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13166         (rpl_dup2): Use it.
13167         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13168         * modules/dup2 (configure.ac): Invoke it.
13169         Reported by Paul Eggert.
13170
13171 2011-09-23  Bruno Haible  <bruno@clisp.org>
13172
13173         msvc-inval: Fix compilation error.
13174         * lib/msvc-inval.h: Include <excpt.h>.
13175
13176 2011-09-23  Bruno Haible  <bruno@clisp.org>
13177
13178         mkdir: Tweak for MSVC 9.
13179         * lib/sys_stat.in.h: Update comments.
13180         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13181
13182         Tests for module 'chdir'.
13183         * modules/chdir-tests: New file.
13184         * tests/test-chdir.c: New file.
13185
13186         New module 'chdir'.
13187         * modules/chdir: New file.
13188         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13189         (chdir): New declaration.
13190         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13191         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13192         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13193         * tests/test-unistd-c++.cc: Check signature of chdir.
13194         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13195         * modules/chdir-long (Depends-on): Add chdir.
13196         * modules/fchdir (Depends-on): Likewise.
13197         * modules/rename (Depends-on): Likewise.
13198         * modules/savewd (Depends-on): Likewise.
13199
13200         rmdir: Support for mingw, MSVC 9.
13201         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13202         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13203
13204         getcwd: Tweak for MSVC 9.
13205         * lib/unistd.in.h: Update comments.
13206         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13207
13208 2011-09-22  Bruno Haible  <bruno@clisp.org>
13209
13210         strerror_r-posix: Avoid a link error on MSVC.
13211         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13212         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13213
13214 2011-09-22  Bruno Haible  <bruno@clisp.org>
13215
13216         select: Avoid link errors on MSVC.
13217         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13218         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13219         * modules/pselect (Link): Likewise.
13220         * NEWS: Mention the change.
13221         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13222         test-select-stdin against $(LIB_SELECT).
13223         * modules/pselect-tests (Makefile.am): Link test-pselect against
13224         $(LIB_SELECT).
13225
13226 2011-09-22  Bruno Haible  <bruno@clisp.org>
13227
13228         select: Avoid compilation error on MSVC.
13229         * lib/select.c: Don't include <stdbool.h>.
13230
13231 2011-09-21  Bruno Haible  <bruno@clisp.org>
13232
13233         Consolidate all uses of PATH_MAX in *.m4 files.
13234         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13235         macros.
13236         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13237         and gl_PATHMAX_SNIPPET.
13238         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13239         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13240         * modules/chdir-long (Files): Add m4/pathmax.m4.
13241         * modules/getcwd (Files): Likewise.
13242
13243 2011-09-21  Bruno Haible  <bruno@clisp.org>
13244
13245         ftruncate: Un-deprecate, concentrate on Win32 support.
13246         * modules/ftruncate (Status, Notice): Remove sections.
13247         (Depends-on): Add largefile.
13248         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13249         non-mingw platforms.
13250         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13251         include <io.h>.
13252         * modules/perror-tests (Depends-on): Add ftruncate.
13253         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13254         'ftruncate' module.
13255
13256 2011-09-21  Bruno Haible  <bruno@clisp.org>
13257
13258         Add dependencies to new dirent related modules.
13259         * modules/opendir (Depends-on): Add closedir.
13260         * modules/getcwd (Depends-on): Add opendir, closedir.
13261         * modules/dirent-safer-tests (Depends-on): Likewise.
13262         * modules/fdopendir-tests (Depends-on): Likewise.
13263         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13264         * modules/renameat-tests (Depends-on): Likewise.
13265
13266 2011-09-21  Bruno Haible  <bruno@clisp.org>
13267
13268         opendir: Avoid compilation error on mingw.
13269         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13270         * modules/opendir (Depends-on): Add unistd.
13271
13272 2011-09-21  Bruno Haible  <bruno@clisp.org>
13273
13274         ftruncate tests: Avoid a test failure on mingw.
13275         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13276
13277 2011-09-21  Bruno Haible  <bruno@clisp.org>
13278
13279         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13280         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13281         native Windows.
13282
13283 2011-09-21  Bruno Haible  <bruno@clisp.org>
13284
13285         New module 'fdopen'.
13286         * lib/stdio.in.h (fdopen): New declaration.
13287         * lib/fdopen.c: New file.
13288         * m4/fdopen.m4: New file.
13289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13290         REPLACE_FDOPEN.
13291         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13292         REPLACE_FDOPEN.
13293         * modules/fdopen: New file.
13294         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13295         * tests/test-stdio-c++.cc: Check signature of fdopen.
13296         * doc/posix-functions/fdopen.texi: Mention the new module.
13297
13298 2011-09-21  Bruno Haible  <bruno@clisp.org>
13299
13300         unlockpt tests: Avoid test failure on NetBSD 5.1.
13301         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13302         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13303
13304 2011-09-21  Bruno Haible  <bruno@clisp.org>
13305
13306         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13307         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13308         * tests/test-getlogin_r.c (main): Likewise.
13309
13310 2011-09-20  Bruno Haible  <bruno@clisp.org>
13311
13312         time tests: Don't require pid_t.
13313         * doc/posix-headers/time.texi: Revert last change.
13314         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13315         * tests/test-time.c: Comment out the check for pid_t.
13316
13317 2011-09-20  Bruno Haible  <bruno@clisp.org>
13318
13319         fsync tests: Avoid a test failure on mingw.
13320         * tests/test-fsync.c (main): Allow a failure with EIO.
13321
13322 2011-09-20  Bruno Haible  <bruno@clisp.org>
13323
13324         euidaccess: Update comments.
13325         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13326
13327 2011-09-20  Bruno Haible  <bruno@clisp.org>
13328
13329         Ensure EBADF returns for socket functions on mingw.
13330         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13331         descriptor is invalid.
13332         * lib/bind.c (rpl_bind): Likewise.
13333         * lib/connect.c (rpl_connect): Likewise.
13334         * lib/getpeername.c (rpl_getpeername): Likewise.
13335         * lib/getsockname.c (rpl_getsockname): Likewise.
13336         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13337         * lib/listen.c (rpl_listen): Likewise.
13338         * lib/recv.c (rpl_recv): Likewise.
13339         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13340         * lib/send.c (rpl_send): Likewise.
13341         * lib/sendto.c (rpl_sendto): Likewise.
13342         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13343         * lib/shutdown.c (rpl_shutdown): Likewise.
13344
13345 2011-09-20  Bruno Haible  <bruno@clisp.org>
13346
13347         select tests: EBADF tests.
13348         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13349         test_bad_fd): New functions.
13350         (test_function): Invoke also test_bad_fd.
13351
13352 2011-09-20  Bruno Haible  <bruno@clisp.org>
13353
13354         Tests for module 'posix_spawn_file_actions_addopen.
13355         * modules/posix_spawn_file_actions_addopen-tests: New file.
13356         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13357
13358         Tests for module 'posix_spawn_file_actions_adddup2'.
13359         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13360         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13361
13362         Tests for module 'posix_spawn_file_actions_addclose'.
13363         * modules/posix_spawn_file_actions_addclose-tests: New file.
13364         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13365
13366 2011-09-20  Bruno Haible  <bruno@clisp.org>
13367
13368         Tests for module 'unlockpt'.
13369         * modules/unlockpt-tests: New file.
13370         * tests/test-unlockpt.c: New file.
13371         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13372
13373         Tests for module 'grantpt'.
13374         * modules/grantpt-tests: New file.
13375         * tests/test-grantpt.c: New file.
13376         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13377
13378 2011-09-20  Bruno Haible  <bruno@clisp.org>
13379
13380         freopen tests: EBADF tests.
13381         * tests/test-freopen.c: Include errno.h, unistd.h.
13382         (main): Add tests for EBADF, commented out for the moment.
13383
13384         fclose tests: EBADF tests.
13385         * tests/test-fclose.c (main): Add tests for EBADF.
13386
13387         fflush tests: EBADF tests.
13388         * tests/test-fflush.c: Include errno.h, macros.h.
13389         (main): Add tests for EBADF.
13390
13391         ftello tests: EBADF tests.
13392         * tests/test-ftello4.sh: New file.
13393         * tests/test-ftello4.c: New file.
13394         * modules/ftello-tests (Files): Add them.
13395         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13396
13397         fseeko tests: EBADF tests.
13398         * tests/test-fseeko4.sh: New file.
13399         * tests/test-fseeko4.c: New file.
13400         * modules/fseeko-tests (Files): Add them.
13401         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13402
13403         Tests for function fputc().
13404         * modules/fputc-tests: New file.
13405         * tests/test-fputc.c: New file.
13406         * modules/stdio-tests (Depends-on): Add fputc-tests.
13407
13408         Tests for function fgetc().
13409         * modules/fgetc-tests: New file.
13410         * tests/test-fgetc.c: New file.
13411         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13412
13413         Tests for function fdopen().
13414         * modules/fdopen-tests: New file.
13415         * tests/test-fdopen.c: New file.
13416         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13417
13418         Tests for module 'vdprintf'.
13419         * modules/vdprintf-tests: New file.
13420         * tests/test-vdprintf.c: New file.
13421
13422         Tests for module 'dprintf'.
13423         * modules/dprintf-tests: New file.
13424         * tests/test-dprintf.c: New file.
13425
13426 2011-09-20  Bruno Haible  <bruno@clisp.org>
13427
13428         Tests for module 'ioctl'.
13429         * modules/ioctl-tests: New file.
13430         * tests/test-ioctl.c: New file.
13431
13432 2011-09-20  Bruno Haible  <bruno@clisp.org>
13433
13434         fcntl tests: EBADF tests.
13435         * tests/test-fcntl.c (main): Add more tests for EBADF.
13436
13437 2011-09-20  Bruno Haible  <bruno@clisp.org>
13438
13439         utimensat tests: EBADF tests.
13440         * tests/test-utimensat.c (main): Add tests for EBADF.
13441
13442         renameat tests: EBADF tests.
13443         * tests/test-renameat.c (main): Add tests for EBADF.
13444
13445         mkfifoat tests: EBADF tests.
13446         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13447
13448         readlinkat tests: EBADF tests.
13449         * tests/test-readlinkat.c (main): Add tests for EBADF.
13450
13451         symlinkat tests: EBADF tests.
13452         * tests/test-symlinkat.c (main): Add tests for EBADF.
13453
13454         linkat tests: EBADF tests.
13455         * tests/test-linkat.c (main): Add tests for EBADF.
13456
13457         Tests for module 'faccessat'.
13458         * modules/faccessat-tests: New file.
13459         * tests/test-faccessat.c: New file.
13460
13461         fdopendir tests: EBADF tests.
13462         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13463
13464         openat tests: EBADF tests.
13465         * tests/test-fchownat.c (main): Add tests for EBADF.
13466         * tests/test-fstatat.c (main): Likewise.
13467         * tests/test-mkdirat.c (main): Likewise.
13468         * tests/test-openat.c (main): Likewise.
13469         * tests/test-unlinkat.c (main): Likewise.
13470         * tests/test-fchmodat.c: New file.
13471         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13472         (Makefile.am): Also run 'test-fchmodat'.
13473
13474 2011-09-20  Bruno Haible  <bruno@clisp.org>
13475
13476         utimens, futimens, fdutimensat tests: EBADF tests.
13477         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13478
13479         Tests for function fstat().
13480         * modules/fstat-tests: New file.
13481         * tests/test-fstat.c: New file.
13482         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13483
13484 2011-09-20  Bruno Haible  <bruno@clisp.org>
13485
13486         test-ttyname_r tests: EBADF tests.
13487         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13488
13489         Tests for module 'isatty'.
13490         * modules/isatty-tests: New file.
13491         * tests/test-isatty.c: New file.
13492
13493         Tests for module 'write'.
13494         * modules/write-tests: New file.
13495         * tests/test-write.c: New file.
13496
13497         Tests for module 'read'.
13498         * modules/read-tests: New file.
13499         * tests/test-read.c: New file.
13500
13501         pwrite tests: EBADF tests.
13502         * tests/test-pwrite.c (main): Add tests for EBADF.
13503
13504         pread tests: EBADF tests.
13505         * tests/test-pread.c (main): Add tests for EBADF.
13506
13507         lseek tests: EBADF tests.
13508         * tests/test-lseek.c (main): Add more tests for EBADF.
13509
13510         Tests for module 'ftruncate'.
13511         * modules/ftruncate-tests: New file.
13512         * tests/test-ftruncate.sh: New file.
13513         * tests/test-ftruncate.c: New file.
13514
13515         fsync tests: EBADF tests.
13516         * tests/test-fsync.c (main): Add more tests for EBADF.
13517
13518         fdatasync tests: EBADF tests.
13519         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13520
13521         Tests for module 'fchown'.
13522         * modules/fchown-tests: New file.
13523         * tests/test-fchown.c: New file.
13524
13525         Tests for module 'fchmod'.
13526         * modules/fchmod-tests: New file.
13527         * tests/test-fchmod.c: New file.
13528
13529         fchdir tests: EBADF tests.
13530         * tests/test-fchdir.c (main): Add more tests for EBADF.
13531
13532         dup2 tests: EBADF tests.
13533         * tests/test-dup2.c (main): Add more tests for EBADF.
13534
13535         Tests for module 'dup'.
13536         * modules/dup-tests: New file.
13537         * tests/test-dup.c: New file.
13538
13539         Tests for module 'close'.
13540         * modules/close-tests: New file.
13541         * tests/test-close.c: New file.
13542
13543 2011-09-20  Bruno Haible  <bruno@clisp.org>
13544
13545         Tests for module 'shutdown'.
13546         * modules/shutdown-tests: New file.
13547         * tests/test-shutdown.c: New file.
13548
13549         Tests for module 'setsockopt'.
13550         * modules/setsockopt-tests: New file.
13551         * tests/test-setsockopt.c: New file.
13552
13553         Tests for module 'sendto'.
13554         * modules/sendto-tests: New file.
13555         * tests/test-sendto.c: New file.
13556
13557         Tests for module 'send'.
13558         * modules/send-tests: New file.
13559         * tests/test-send.c: New file.
13560
13561         Tests for module 'recvfrom'.
13562         * modules/recvfrom-tests: New file.
13563         * tests/test-recvfrom.c: New file.
13564
13565         Tests for module 'recv'.
13566         * modules/recv-tests: New file.
13567         * tests/test-recv.c: New file.
13568
13569         Tests for module 'listen'.
13570         * modules/listen-tests: New file.
13571         * tests/test-listen.c: New file.
13572
13573         Tests for module 'getsockopt'.
13574         * modules/getsockopt-tests: New file.
13575         * tests/test-getsockopt.c: New file.
13576
13577         Tests for module 'getsockname'.
13578         * modules/getsockname-tests: New file.
13579         * tests/test-getsockname.c: New file.
13580
13581         Tests for module 'getpeername'.
13582         * modules/getpeername-tests: New file.
13583         * tests/test-getpeername.c: New file.
13584
13585         Tests for module 'connect'.
13586         * modules/connect-tests: New file.
13587         * tests/test-connect.c: New file.
13588
13589         Tests for module 'bind'.
13590         * modules/bind-tests: New file.
13591         * tests/test-bind.c: New file.
13592
13593         accept4 tests: Fix for native Windows.
13594         * tests/test-accept4.c: Include sockets.h.
13595         (main): Invoke gl_sockets_startup.
13596         * modules/accept4-tests (Depends-on): Add sockets.
13597
13598         accept tests: Fix for native Windows.
13599         * tests/test-accept.c: Include sockets.h.
13600         (main): Invoke gl_sockets_startup.
13601         * modules/accept-tests (Depends-on): Add sockets.
13602
13603 2011-09-19  Bruno Haible  <bruno@clisp.org>
13604
13605         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13606         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13607         do...while(0).
13608         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13609         Suggested by Paul Eggert.
13610
13611 2011-09-19  Bruno Haible  <bruno@clisp.org>
13612
13613         sched: Ensure pid_t is defined.
13614         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13615         not define pid_t.
13616         * lib/sched.in.h: Include <sys/types.h>.
13617         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13619
13620 2011-09-19  Bruno Haible  <bruno@clisp.org>
13621
13622         msvc-inval: Ensure the entire expansion is a single statement.
13623         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13624         of braces.
13625
13626 2011-09-19  Jim Meyering  <meyering@redhat.com>
13627
13628         tests: use printf, not echo in init.sh's warn_ function
13629         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13630         misbehave when given strings containing a backslash or starting
13631         with e.g., -n.  James Youngman suggested setting IFS.
13632
13633 2011-09-19  Eric Blake  <eblake@redhat.com>
13634
13635         futimens: enhance test
13636         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13637         closed non-negative fd.
13638
13639         date: accept 'hence' as opposite of 'ago'
13640         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13641         * tests/test-parse-datetime.c (main): Enhance test.
13642         Suggested by Jesse Wilson.
13643
13644 2011-09-19  Jim Meyering  <meyering@redhat.com>
13645
13646         getcwd: don't fail in a deep directory on a system without openat
13647         Before this change, getcwd would fail when called from a directory
13648         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13649         the non-openat implementation used "..", "../..", "../../..", etc.
13650         to access ancestor directories.  With too many, that string would
13651         be longer than PATH_MAX.
13652         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13653         using gnulib's openat replacement.
13654         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13655         we're using the replacement function.
13656
13657 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13658
13659         maint.mk: avoid warnings from perl about missing files
13660         * top/maint.mk (def_sym_regex): Ignore files listed in
13661         $(gl_other_headers_) that do not exist, say because a project
13662         does not use a corresponding module.
13663
13664 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13665
13666         stat: use pathmax.h only if needed
13667         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13668         This is better for Emacs, which does not have a mingw port and
13669         therefore can avoid the pathmax module.
13670
13671         utimens: remove dependency on dup2
13672         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13673         to work around the Linux kernel bug.
13674         * modules/utimens (Depends-on): Remove dup2.
13675
13676 2011-09-18  Bruno Haible  <bruno@clisp.org>
13677
13678         inet_ntop, inet_pton: Look for it also in libresolv.
13679         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13680         libnsl, search for it in libresolv.
13681         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13682         Needed on Solaris 7.
13683
13684 2011-09-18  Bruno Haible  <bruno@clisp.org>
13685
13686         accept, accept4 tests: Avoid link error on Solaris.
13687         * modules/accept-tests (Makefile.am): Link test-accept against
13688         $(LIBSOCKET).
13689         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13690         $(LIBSOCKET).
13691
13692         accept4: Avoid link error on Solaris.
13693         * modules/accept4 (Link): New section.
13694
13695         socket functions: Avoid link errors on Solaris.
13696         * modules/accept (Depends-on): Add socketlib.
13697         (Link): New section.
13698         * modules/bind (Depends-on): Add socketlib.
13699         (Link): New section.
13700         * modules/connect (Depends-on): Add socketlib.
13701         (Link): New section.
13702         * modules/getpeername (Depends-on): Add socketlib.
13703         (Link): New section.
13704         * modules/getsockname (Depends-on): Add socketlib.
13705         (Link): New section.
13706         * modules/getsockopt (Depends-on): Add socketlib.
13707         (Link): New section.
13708         * modules/listen (Depends-on): Add socketlib.
13709         (Link): New section.
13710         * modules/recv (Depends-on): Add socketlib.
13711         (Link): New section.
13712         * modules/recvfrom (Depends-on): Add socketlib.
13713         (Link): New section.
13714         * modules/send (Depends-on): Add socketlib.
13715         (Link): New section.
13716         * modules/sendto (Depends-on): Add socketlib.
13717         (Link): New section.
13718         * modules/setsockopt (Depends-on): Add socketlib.
13719         (Link): New section.
13720         * modules/shutdown (Depends-on): Add socketlib.
13721         (Link): New section.
13722         * modules/socket (Depends-on): Add socketlib.
13723         (Link): New section.
13724
13725 2011-09-18  Bruno Haible  <bruno@clisp.org>
13726
13727         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13728         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13729         than 5 seconds.
13730         * modules/ptsname-tests (configure.ac): Test for alarm.
13731
13732 2011-09-18  Bruno Haible  <bruno@clisp.org>
13733
13734         posix_spawn_file_actions_add*: Fix module dependencies.
13735         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13736         posix_spawn_file_actions_init.
13737         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13738         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13739
13740 2011-09-18  Bruno Haible  <bruno@clisp.org>
13741
13742         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13743         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13744         * tests/test-renameat.c (main): Likewise.
13745
13746 2011-09-18  Bruno Haible  <bruno@clisp.org>
13747
13748         Tests for module 'accept4'.
13749         * modules/accept4-tests: New file.
13750         * tests/test-accept4.c: New file.
13751
13752 2011-09-18  Bruno Haible  <bruno@clisp.org>
13753
13754         Tests for module 'accept'.
13755         * modules/accept-tests: New file.
13756         * tests/test-accept.c: New file.
13757
13758 2011-09-18  Bruno Haible  <bruno@clisp.org>
13759
13760         dup2: Support for MSVC.
13761         * lib/dup2.c: Include msvc-inval.h.
13762         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13763         _get_osfhandle calls.
13764         * modules/dup2 (Depends-on): Add msvc-inval.
13765         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13766
13767         New module 'msvc-inval'.
13768         * lib/msvc-inval.h: New file.
13769         * lib/msvc-inval.c: New file.
13770         * m4/msvc-inval.m4: New file.
13771         * modules/msvc-inval: New file.
13772
13773 2011-09-17  Bruno Haible  <bruno@clisp.org>
13774
13775         Tests for module 'pclose'.
13776         * modules/pclose-tests: New file.
13777
13778         New module 'pclose'.
13779         * lib/stdio.in.h (pclose): New declaration.
13780         * lib/pclose.c: New file.
13781         * m4/pclose.m4: New file.
13782         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13783         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13784         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13785         * modules/pclose: New file.
13786         * modules/popen-tests (Depends-on): Add pclose.
13787         * modules/popen-safer-tests (Depends-on): Likewise.
13788         * doc/posix-functions/pclose.texi: Mention the new module.
13789
13790 2011-09-17  Bruno Haible  <bruno@clisp.org>
13791
13792         popen: Support for MSVC.
13793         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13794         * lib/popen.c (popen): Provide alternate definition for native Windows.
13795         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13797         * modules/popen (Depends-on, configure.ac): Update condition.
13798         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13799         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13800         fixed.
13801
13802 2011-09-17  Bruno Haible  <bruno@clisp.org>
13803
13804         isnanl, isnand, isnanf: Work around MSVC bug.
13805         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13806
13807 2011-09-17  Bruno Haible  <bruno@clisp.org>
13808
13809         sys_socket tests: Fix recent mistake.
13810         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13811
13812 2011-09-17  Bruno Haible  <bruno@clisp.org>
13813
13814         putenv: Support for MSVC.
13815         * modules/putenv (Depends-on): Add environ.
13816         * lib/putenv.c (environ): Disable declaration.
13817         * lib/unistd.in.h: Update comment.
13818
13819 2011-09-17  Bruno Haible  <bruno@clisp.org>
13820
13821         math: Avoid macro redefinition warnings on MSVC.
13822         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13823         Undefine before redefining.
13824
13825 2011-09-17  Bruno Haible  <bruno@clisp.org>
13826
13827         doc: Mention functions which are declared as macros.
13828         * doc/posix-functions/*[fl].texi: Mention that some functions are
13829         defined as macros with arguments only.
13830
13831 2011-09-17  Bruno Haible  <bruno@clisp.org>
13832
13833         Add dependencies to new dirent related modules.
13834         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13835         * modules/fts (Depends-on): Likewise.
13836         * modules/glob (Depends-on): Likewise.
13837         * modules/savedir (Depends-on): Likewise.
13838         * modules/scandir (Depends-on): Likewise.
13839         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13840         * modules/fdopendir (Depends-on): Add opendir.
13841
13842 2011-09-17  Bruno Haible  <bruno@clisp.org>
13843
13844         inet_pton: Support for MSVC on Windows Vista or newer.
13845         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13846         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13847         HAVE_DECL_INET_PTON is defined.
13848         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13849         On platforms with <winsock2.h>, test whether inet_pton is declared in
13850         <ws2tcpip.h>. If so, arrange to replace it.
13851         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13852         REPLACE_INET_PTON.
13853         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13854         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13855         (Depends-on, configure.ac): Update condition.
13856         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13857
13858 2011-09-17  Bruno Haible  <bruno@clisp.org>
13859
13860         inet_ntop: Support for MSVC on Windows Vista or newer.
13861         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13862         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13863         HAVE_DECL_INET_NTOP is defined.
13864         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13865         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13866         <ws2tcpip.h>. If so, arrange to replace it.
13867         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13868         REPLACE_INET_NTOP.
13869         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13870         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13871         (Depends-on, configure.ac): Update condition.
13872         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13873
13874 2011-09-16  Eric Blake  <eblake@redhat.com>
13875
13876         test-fsync: yet another enhancement
13877         * tests/test-fsync.c (main): Also test behavior on read-only text
13878         file.
13879
13880 2011-09-16  Bruno Haible  <bruno@clisp.org>
13881
13882         Enhance fsync, fdatasync tests.
13883         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13884         * tests/test-fdatasync.c (main): Likewise.
13885
13886 2011-09-16  Bruno Haible  <bruno@clisp.org>
13887
13888         Support for MSVC compiler: Ensure mode_t gets defined.
13889         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13890         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13891         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13892         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13893         * tests/test-fcntl-h.c: Check that mode_t is defined.
13894         * tests/test-sys_stat.c: Likewise.
13895         * tests/test-sys_types.c: Likewise.
13896         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13897         * doc/posix-headers/sys_stat.texi: Likewise.
13898         * doc/posix-headers/sys_types.texi: Likewise.
13899
13900 2011-09-16  Bruno Haible  <bruno@clisp.org>
13901
13902         sys_stat: Support for MSVC.
13903         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13904         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13905         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13906         MSVC.
13907
13908 2011-09-16  Bruno Haible  <bruno@clisp.org>
13909
13910         Support for MSVC compiler: Ensure off_t gets defined.
13911         * lib/unistd.in.h: Include <sys/types.h>.
13912         * tests/test-fcntl-h.c: Check that off_t is defined.
13913         * tests/test-sys_stat.c: Likewise.
13914         * tests/test-sys_types.c: Likewise.
13915
13916 2011-09-16  Eric Blake  <eblake@redhat.com>
13917
13918         fdatasync: port to Solaris
13919         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13920         * modules/fdatasync (Link): Document it.
13921         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13922
13923         fdatasync: port to MacOS X 10.7
13924         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13925         declared.
13926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13927         * modules/unistd (Makefile.am): Substitute it.
13928         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13929         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13930
13931         fdatasync: minor improvements
13932         * modules/fdatasync (Depends-on): Add condition for fsync.
13933         * lib/fdatasync.c (fdatasync): Add comment.
13934         * tests/test-unistd-c++.cc: Test fdatasync.
13935
13936         unistd: update refs to newer POSIX
13937         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13938         Suggested by Bruno Haible.
13939
13940         fdatasync: new module
13941         * modules/fsync (Description): Document difference to fdatasync.
13942         * modules/fdatasync: New module.
13943         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13944         * lib/fdatasync.c (fdatasync): Likewise.
13945         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13946         defaults.
13947         * modules/unistd (Makefile.am): Set witnesses.
13948         * lib/unistd.in.h (fdatasync): Declare.
13949         * MODULES.html.sh: Document it.
13950         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13951         * modules/fdatasync-tests: New test.
13952         * tests/test-fdatasync.c: Likewise.
13953
13954 2011-09-16  Eric Blake  <eblake@redhat.com>
13955
13956         test-fsync: enhance tests
13957         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13958         * tests/test-fsync.c (main): Enhance test.
13959
13960 2011-09-15  Bruno Haible  <bruno@clisp.org>
13961
13962         Support for MSVC compiler: Ensure ssize_t gets defined.
13963         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13964         * doc/posix-headers/stdio.texi: Likewise.
13965         * modules/stdio (Depends-on): Add ssize_t.
13966         * modules/sys_socket (Depends-on): Likewise.
13967         * modules/sys_types (Depends-on): Likewise.
13968         * modules/sys_uio (Depends-on): Likewise.
13969         * modules/unistd (Depends-on): Likewise.
13970         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13971         * tests/test-sys_types.c: Check that ssize_t is defined.
13972
13973 2011-09-14  Bruno Haible  <bruno@clisp.org>
13974
13975         Avoid using #, the m4 comment starter character, near brackets.
13976         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13977         delimiter character in sed expressions.
13978         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13979         Suggested by Eric Blake.
13980
13981         Properly quote AC_CHECK_DECLS' 4th argument.
13982         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13983         argument.
13984         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13985         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13986         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13987         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13988         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13989         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13990         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13991         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13992         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13993         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13994         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13995         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13996         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13997         * m4/isinf.m4 (gl_ISINF): Likewise.
13998         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13999         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14000         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14001         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14002         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14003         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14004         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14005         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14006         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14007         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14008         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14009         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14010         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14011         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14012         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14013         Reported by Eric Blake.
14014
14015         Properly quote AC_CHECK_DECL's 4th argument.
14016         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14017         argument.
14018         * m4/argp.m4 (gl_ARGP): Likewise.
14019         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14020         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14021         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14022         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14023         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14024         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14025         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14026         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14027         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14028         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14029         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14030         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14031         Reported by Eric Blake.
14032
14033 2011-09-14  Eric Blake  <eblake@redhat.com>
14034
14035         opendir: avoid compile warning
14036         * lib/opendir.c (includes): Always include errno.h.
14037         Reported by Tatsuro MATSUOKA.
14038
14039 2011-09-14  Jim Meyering  <meyering@redhat.com>
14040
14041         maint.mk: sc_tight_scope: propagate failure from sub-make
14042         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14043         Reported by Martin von Gagern.
14044
14045 2011-09-13  Bruno Haible  <bruno@clisp.org>
14046
14047         tempname: Support for MSVC.
14048         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14049         MSVC.
14050         * modules/tempname (Depends-on): Add fcntl-h.
14051
14052 2011-09-13  Bruno Haible  <bruno@clisp.org>
14053
14054         sys_time: Support for MSVC.
14055         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14056         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14057         include <winsock2.h>.
14058         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14059         function declarations that collide with POSIX.
14060         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14061         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14062
14063 2011-09-13  Bruno Haible  <bruno@clisp.org>
14064
14065         stat: Support for MSVC.
14066         * lib/stat.c: Include pathmax.h.
14067         * modules/stat (Depends-on): Add pathmax.
14068
14069         pathmax: Support for native Windows.
14070         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14071
14072 2011-09-12  Bruno Haible  <bruno@clisp.org>
14073
14074         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14075         * lib/dirent.in.h (struct dirent): New type.
14076         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14077         DT_WHT): New macros.
14078         (DIR): New type.
14079         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14080         (readdir, rewinddir): New declarations.
14081         * lib/dirent-private.h: New file.
14082         * lib/opendir.c: New file.
14083         * lib/readdir.c: New file.
14084         * lib/rewinddir.c: New file.
14085         * lib/closedir.c: New file.
14086         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14087         * m4/opendir.m4: New file.
14088         * m4/readdir.m4: New file.
14089         * m4/rewinddir.m4: New file.
14090         * m4/closedir.m4: New file.
14091         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14092         REPLACE_CLOSEDIR here.
14093         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14094         readdir, rewinddir are declared.
14095         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14096         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14097         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14098         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14099         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14100         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14101         * modules/opendir: New file.
14102         * modules/readdir: New file.
14103         * modules/rewinddir: New file.
14104         * modules/closedir: New file.
14105         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14106         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14107         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14108         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14109         * NEWS: Mention the 'fchdir' change.
14110
14111 2011-09-11  Bruno Haible  <bruno@clisp.org>
14112
14113         asm-underscore.m4: Support for MSVC.
14114         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14115         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14116
14117 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14118
14119         Doc about crypt functions.
14120         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14121         needing for _GNU_SOURCE to get crypt.
14122         * doc/posix-functions/encrypt.texi: Likewise.
14123         * doc/posix-functions/setkey.texi: Likewise.
14124
14125 2011-09-11  Bruno Haible  <bruno@clisp.org>
14126
14127         doc: Update regarding MSVC 9.
14128         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14129         tested".
14130         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14131         * doc/posix-headers/*.texi: Likewise.
14132         * doc/pastposix-functions/*.texi: Likewise.
14133         * doc/glibc-functions/*.texi: Likewise.
14134         * doc/glibc-headers/*.texi: Likewise.
14135
14136 2011-09-11  Bruno Haible  <bruno@clisp.org>
14137
14138         unistd et al.: Don't assume <unistd.h> exists.
14139         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14140         does not exist.
14141         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14142         exist. But include <stdlib.h>.
14143         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14144         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14145         symlink() does not exist.
14146         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14147         include <io.h> instead.
14148         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14149         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14150         include <direct.h> instead.
14151         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14152         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14153         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14154         <io.h> instead.
14155         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14156         correctly if the system does not have hard links.
14157         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14158         <direct.h> instead.
14159         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14160         it when looking for function declarations.
14161         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14162         <direct.h> and <io.h> instead.
14163         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14164
14165 2011-09-11  Bruno Haible  <bruno@clisp.org>
14166
14167         strcase: Support for MSVC.
14168         * modules/strcase (Status, Notice): Remove obsoletion mark.
14169         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14170         * doc/posix-functions/strncasecmp.texi: Likewise.
14171
14172         strings: Don't assume <strings.h> exists.
14173         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14174         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14175         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14176         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14177
14178 2011-09-11  Bruno Haible  <bruno@clisp.org>
14179
14180         dirent: Don't assume <dirent.h> exists.
14181         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14182         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14183         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14184         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14185
14186 2011-09-11  Bruno Haible  <bruno@clisp.org>
14187
14188         Fix wint_t on MSVC.
14189         * lib/wchar.in.h (wint_t): On MSVC, override it.
14190         * lib/wctype.in.h (wint_t): Likewise.
14191         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14192         MSVC.
14193         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14194         * doc/posix-headers/wctype.texi: Likewise.
14195
14196 2011-09-11  Bruno Haible  <bruno@clisp.org>
14197
14198         sys_types: Fix typo.
14199         * lib/sys_types.in.h: Fix typo in comment.
14200         Reported by Paul Eggert.
14201
14202         Support for MSVC compiler: Ensure size_t gets defined.
14203         * modules/strings (Depends-on): Add 'sys_types'.
14204         * modules/sys_uio (Depends-on): Likewise.
14205         * lib/sys_uio.in.h: Update comment.
14206
14207         C++ tests for module 'sys_types'.
14208         * modules/sys_types-c++-tests: New file.
14209         * tests/test-sys_types-c++.cc: New file.
14210
14211         Tests for module 'sys_types'.
14212         * modules/sys_types-tests: New file.
14213         * tests/test-sys_types.c: New file.
14214
14215         New module 'sys_types'.
14216         * lib/sys_types.in.h: New file.
14217         * m4/sys_types_h.m4: New file.
14218         * modules/sys_types: New file.
14219         * doc/posix-headers/sys_types.texi: Mention the new module and the
14220         size_t problem on MSVC 9.
14221
14222 2011-09-11  Bruno Haible  <bruno@clisp.org>
14223
14224         Support for MSVC compiler: Avoid division by a literal 0.
14225         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14226         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14227         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14228         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14229         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14230         * tests/infinity.h: New file.
14231         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14232         on MSVC.
14233         * tests/test-ceilf1.c: Include infinity.h.
14234         (main): Use Infinityf.
14235         * tests/test-ceil1.c: Include infinity.h.
14236         (main): Use Infinityd.
14237         * tests/test-ceill.c: Include infinity.h.
14238         (main): Use Infinityl.
14239         * tests/test-dprintf-posix.c: Include infinity.h.
14240         (test_function): Use Infinityd.
14241         * tests/test-floorf1.c: Include infinity.h.
14242         (main): Use Infinityf.
14243         * tests/test-floor1.c: Include infinity.h.
14244         (main): Use Infinityd.
14245         * tests/test-floorl.c: Include infinity.h.
14246         (main): Use Infinityl.
14247         * tests/test-fprintf-posix.c: Include infinity.h.
14248         (test_function): Use Infinityd.
14249         * tests/test-frexp.c: Include infinity.h.
14250         (main): Use Infinityd.
14251         * tests/test-frexpl.c: Include infinity.h.
14252         (main): Use Infinityl.
14253         * tests/test-isfinite.c: Include infinity.h.
14254         (test_isfinitef): Use Infinityf.
14255         (test_isfinited): Use Infinityd.
14256         (test_isfinitel): Use Infinityl.
14257         * tests/test-isinf.c: Include infinity.h.
14258         (test_isinff): Use Infinityf.
14259         (test_isinfd): Use Infinityd.
14260         (test_isinfl): Use Infinityl.
14261         * tests/test-isnan.c: Include infinity.h.
14262         (test_float): Use Infinityf.
14263         (test_double): Use Infinityd.
14264         (test_long_double): Use Infinityl.
14265         * tests/test-isnanf.h: Include infinity.h.
14266         (main): Use Infinityf.
14267         * tests/test-isnand.h: Include infinity.h.
14268         (main): Use Infinityd.
14269         * tests/test-isnanl.h: Include infinity.h.
14270         (main): Use Infinityl.
14271         * tests/test-ldexpl.c: Include infinity.h.
14272         (main): Use Infinityl.
14273         * tests/test-printf-posix.h: Include infinity.h.
14274         (test_function): Use Infinityd.
14275         * tests/test-roundf1.c: Include infinity.h.
14276         (main): Use Infinityf.
14277         * tests/test-round1.c: Include infinity.h.
14278         (main): Use Infinityd.
14279         * tests/test-roundl.c: Include infinity.h.
14280         (main): Use Infinityl.
14281         * tests/test-signbit.c: Include infinity.h.
14282         (test_signbitf): Use Infinityf.
14283         (test_signbitd): Use Infinityd.
14284         (test_signbitl): Use Infinityl.
14285         * tests/test-snprintf-posix.h: Include infinity.h.
14286         (test_function): Use Infinityd, Infinityl.
14287         * tests/test-sprintf-posix.h: Include infinity.h.
14288         (test_function): Use Infinityd, Infinityl.
14289         * tests/test-truncf1.c: Include infinity.h.
14290         (main): Use Infinityf.
14291         * tests/test-trunc1.c: Include infinity.h.
14292         (main): Use Infinityd.
14293         * tests/test-truncl.c: Include infinity.h.
14294         (main): Use Infinityl.
14295         * tests/test-vasnprintf-posix.c: Include infinity.h.
14296         (test_function): Use Infinityd, Infinityl.
14297         * tests/test-vasprintf-posix.c: Include infinity.h.
14298         (test_function): Use Infinityd, Infinityl.
14299         * modules/ceilf-tests (Files): Add tests/infinity.h.
14300         * modules/ceil-tests (Files): Likewise.
14301         * modules/ceill-tests (Files): Likewise.
14302         * modules/dprintf-posix-tests (Files): Likewise.
14303         * modules/floorf-tests (Files): Likewise.
14304         * modules/floor-tests (Files): Likewise.
14305         * modules/floorl-tests (Files): Likewise.
14306         * modules/fprintf-posix-tests (Files): Likewise.
14307         * modules/frexp-tests (Files): Likewise.
14308         * modules/frexp-nolibm-tests (Files): Likewise.
14309         * modules/frexpl-tests (Files): Likewise.
14310         * modules/frexpl-nolibm-tests (Files): Likewise.
14311         * modules/isfinite-tests (Files): Likewise.
14312         * modules/isinf-tests (Files): Likewise.
14313         * modules/isnan-tests (Files): Likewise.
14314         * modules/isnanf-tests (Files): Likewise.
14315         * modules/isnanf-nolibm-tests (Files): Likewise.
14316         * modules/isnand-tests (Files): Likewise.
14317         * modules/isnand-nolibm-tests (Files): Likewise.
14318         * modules/isnanl-tests (Files): Likewise.
14319         * modules/isnanl-nolibm-tests (Files): Likewise.
14320         * modules/ldexpl-tests (Files): Likewise.
14321         * modules/printf-posix-tests (Files): Likewise.
14322         * modules/roundf-tests (Files): Likewise.
14323         * modules/round-tests (Files): Likewise.
14324         * modules/roundl-tests (Files): Likewise.
14325         * modules/signbit-tests (Files): Likewise.
14326         * modules/snprintf-posix-tests (Files): Likewise.
14327         * modules/sprintf-posix-tests (Files): Likewise.
14328         * modules/truncf-tests (Files): Likewise.
14329         * modules/trunc-tests (Files): Likewise.
14330         * modules/truncl-tests (Files): Likewise.
14331         * modules/vasnprintf-posix-tests (Files): Likewise.
14332         * modules/vasprintf-posix-tests (Files): Likewise.
14333         * modules/vdprintf-posix-tests (Files): Likewise.
14334         * modules/vfprintf-posix-tests (Files): Likewise.
14335         * modules/vprintf-posix-tests (Files): Likewise.
14336         * modules/vsnprintf-posix-tests (Files): Likewise.
14337         * modules/vsprintf-posix-tests (Files): Likewise.
14338         * modules/xprintf-posix-tests (Files): Likewise.
14339
14340 2011-09-11  Bruno Haible  <bruno@clisp.org>
14341
14342         Ensure pid_t gets defined.
14343         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14344         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14345         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14346         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14347         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14348         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14349         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14350         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14351         * tests/test-fcntl-h.c: Check that pid_t is defined.
14352         * tests/test-sched.c: Likewise.
14353         * tests/test-termios.c: Likewise.
14354         * tests/test-time.c: Likewise.
14355         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14356         * doc/posix-headers/signal.texi: Likewise.
14357         * doc/posix-headers/sys_types.texi: Likewise.
14358         * doc/posix-headers/time.texi: Likewise.
14359
14360 2011-09-11  Bruno Haible  <bruno@clisp.org>
14361
14362         acl: Fix compilation on Solaris 10 (older version).
14363         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14364         of ACE_EVERYONE.
14365         * lib/set-mode-acl.c (qset_acl): Likewise.
14366         Reported by Christian Jullien <eligis@orange.fr>.
14367
14368 2011-09-10  Bruno Haible  <bruno@clisp.org>
14369
14370         iconv, unsetenv: Add support for MSVC compiler.
14371         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14372         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14373
14374 2011-09-10  Bruno Haible  <bruno@clisp.org>
14375
14376         *printf: Add support for MSVC compiler.
14377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14378         handles the exception caused by the %n directive. When cross-compiling,
14379         guess no on native Windows.
14380         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14381         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14382         emulate it through vsnprintf.
14383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14384         * doc/posix-functions/dprintf.texi: Update documentation regarding
14385         MSVC 9.
14386         * doc/posix-functions/fprintf.texi: Likewise.
14387         * doc/posix-functions/printf.texi: Likewise.
14388         * doc/posix-functions/snprintf.texi: Likewise.
14389         * doc/posix-functions/sprintf.texi: Likewise.
14390         * doc/posix-functions/swprintf.texi: Likewise.
14391         * doc/posix-functions/vdprintf.texi: Likewise.
14392         * doc/posix-functions/vfprintf.texi: Likewise.
14393         * doc/posix-functions/vprintf.texi: Likewise.
14394         * doc/posix-functions/vsnprintf.texi: Likewise.
14395         * doc/posix-functions/vsprintf.texi: Likewise.
14396         * doc/glibc-functions/asprintf.texi: Likewise.
14397         * doc/glibc-functions/obstack_printf.texi: Likewise.
14398         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14399         * doc/glibc-functions/vasprintf.texi: Likewise.
14400
14401 2011-09-10  Bruno Haible  <bruno@clisp.org>
14402
14403         nocrash: Add support for native Windows.
14404         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14405
14406 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14407             Bruno Haible  <bruno@clisp.org>
14408
14409         absolute-header, include-next: Add support for MSVC compiler.
14410         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14411         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14412         directory separator in #line directives.
14413         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14414         recognize also backslash as directory separator in #line directives.
14415
14416 2011-09-08  Jim Meyering  <meyering@redhat.com>
14417
14418         maint.mk: mark the post-release commit log with "maint: " prefix
14419         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14420         one-line commit-log summary.
14421
14422 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14423             Bruno Haible  <bruno@clisp.org>
14424
14425         Doc about crypt functions.
14426         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14427         systems.
14428         * doc/posix-functions/encrypt.texi: Likewise.
14429         * doc/posix-functions/setkey.texi: Likewise.
14430
14431 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14432
14433         * lib/gc.h: Fix copyright header.
14434
14435 2011-09-07  Bruno Haible  <bruno@clisp.org>
14436
14437         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14438         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14439         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14440
14441 2011-09-07  Bruno Haible  <bruno@clisp.org>
14442
14443         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14444         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14445         * lib/freopen.c: Likewise.
14446         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14447         * lib/lstat.c: Likewise.
14448         * lib/stat.c: Likewise.
14449         * lib/open.c: Use different syntax for include of <fcntl.h>.
14450         * lib/openat.c: Include fcntl.h again, explicitly.
14451
14452 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14453
14454         parse-datetime: document the newly accepted format
14455         * doc/parse-datetime.texi (Combined date and time of day items):
14456         New section.
14457
14458 2011-09-06  Bruno Haible  <bruno@clisp.org>
14459
14460         acl: Fix a test failure on newer Solaris 10 with ZFS.
14461         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14462         ENOSYS as no ACL.
14463         Reported by Jim Meyering.
14464
14465 2011-09-06  Bruno Haible  <bruno@clisp.org>
14466
14467         acl: Update for AIX >= 5.3 with NFS.
14468         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14469         ENOSYS as no ACL.
14470
14471         acl: Fix a test failure on AIX >= 5.3 with NFS.
14472         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14473         as no ACL.
14474
14475 2011-09-06  Bruno Haible  <bruno@clisp.org>
14476
14477         acl: Fix a test failure on IRIX 6.5 with NFS.
14478         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14479         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14480         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14481         * lib/copy-acl.c (qcopy_acl): Likewise.
14482
14483 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14484
14485         openat: port to AIX 7.1 with large files
14486         AIX 7.1 does a "#define openat open64at" if large files are in use,
14487         so we can't simply #undef openat.  Use the orig_openat trick (similar
14488         to orig_open in lib/open.c) to work around the problem.  Problem
14489         reported by Kevin Brott for GNU tar, in the thread containing
14490         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14491         * lib/openat.c (__need_system_fcntl_h): Define first.
14492         Include <fcntl.h> and <sys/types.h> before undefining.
14493         (orig_openat) [HAVE_OPENAT]: New inline function.
14494         (openat) [HAVE_OPENAT]: Do not undef.
14495         (rpl_openat): Use orig_openat, not openat.
14496
14497 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14498             Bruno Haible  <bruno@clisp.org>
14499
14500         acl: Avoid errors on NonStop Kernel.
14501         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14502         ENOTSUP errors.
14503
14504 2011-09-05  Bruno Haible  <bruno@clisp.org>
14505
14506         acl: Clean up Solaris code.
14507         * lib/acl-internal.h: Remove no-op #if.
14508         * lib/file-has-acl.c: Likewise.
14509         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14510         * lib/copy-acl.c (qcopy_acl): Likewise.
14511
14512 2011-09-05  Bruno Haible  <bruno@clisp.org>
14513
14514         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14515         binaries built on the original Solaris 10.
14516         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14517         trivial.
14518
14519 2011-09-05  Bruno Haible  <bruno@clisp.org>
14520
14521         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14522         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14523         10.
14524         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14525         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14526         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14527         instead of acl_get, facl_get, acl_set, facl_set.
14528
14529 2011-09-05  Bruno Haible  <bruno@clisp.org>
14530
14531         copy-file: Try unit tests on more file systems.
14532         * tests/test-copy-file-1.sh: New file.
14533         * tests/test-copy-file-2.sh: New file.
14534         * modules/copy-file-tests (Files): Add them.
14535         (Makefile.am): Add them to TESTS.
14536
14537         acl: Try unit tests on more file systems.
14538         * tests/test-file-has-acl-1.sh: New file.
14539         * tests/test-file-has-acl-2.sh: New file.
14540         * tests/test-set-mode-acl-1.sh: New file.
14541         * tests/test-set-mode-acl-2.sh: New file.
14542         * tests/test-copy-acl-1.sh: New file.
14543         * tests/test-copy-acl-2.sh: New file.
14544         * modules/acl-tests (Files): Add them.
14545         (Makefile.am): Add them to TESTS.
14546
14547 2011-09-04  Bruno Haible  <bruno@clisp.org>
14548
14549         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14550         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14551         10.
14552         (OLD_ALLOW, OLD_DENY): New macros.
14553         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14554         ACE_ACCESS_ALLOWED_ACE_TYPE.
14555         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14556         ACE_ACCESS_DENIED_ACE_TYPE.
14557         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14558         (NEW_ACE_EXECUTE): Fix value.
14559         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14560         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14561         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14562         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14563         NEW_ACE_SYNCHRONIZE): New macros.
14564         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14565         instead of acl_fromtext, acl_set, facl_set.
14566         Fixes a coreutils/tests/cp/perm failure.
14567
14568 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14569
14570         openat: test for fstatat (..., 0) bug
14571         Further testing with tar suggests that fstatat (..., 0)
14572         does not work in general, on AIX 7.1; see
14573         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14574         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14575         replacement fstatat (which is what older AIX releases were using
14576         anyway).
14577         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14578         use is now changed to orig_fstatat.  This was probably the right
14579         thing to do anyway.
14580         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14581         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14582         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14583         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14584         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14585         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14586         if the bug is found.
14587
14588         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14589         This tests for another fstatat bug on AIX 7.1:
14590         fstatat (AT_FDCWD, ..., 0) does not work.  See
14591         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14592         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14593         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14594         (rpl_fstatat): Adjust so that it works around either (or both)
14595         bugs if present.
14596         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14597
14598 2011-09-03  Karl Berry  <karl@gnu.org>
14599
14600         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14601         in index entries.
14602
14603 2011-09-02  Bruno Haible  <bruno@clisp.org>
14604
14605         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14606         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14607         values of AR, ARFLAGS, RANLIB.
14608         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14609
14610 2011-09-02  Bruno Haible  <bruno@clisp.org>
14611
14612         Find 'ar' program that fits with --host argument.
14613         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14614
14615 2011-09-02  Bruno Haible  <bruno@clisp.org>
14616
14617         tests: init.sh: Support any non-GNU diff.
14618         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14619         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14620         Solaris 8.
14621
14622 2011-09-02  Bruno Haible  <bruno@clisp.org>
14623
14624         tests: init.sh: work also with any non-GNU diff that supports -u
14625         * tests/init.sh: Relax check for diff -u support.
14626         Rather than checking for GNU diff via --version, simply check
14627         for support for -u itself.  Useful at least on OpenBSD 4.9,
14628         AIX 7.1, IRIX 6.5, and Solaris 10.
14629
14630 2011-09-01  Bruno Haible  <bruno@clisp.org>
14631
14632         strtoimax, strtoumax: Document problem on HP-UX 11.
14633         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14634         * doc/posix-functions/strtoumax.texi: Likewise.
14635
14636 2011-09-01  Bruno Haible  <bruno@clisp.org>
14637
14638         strtoumax: Avoid link error on OSF/1 with DTK cc.
14639         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14640         defined as a function.
14641         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14642         strtoumax is defined, not whether it is declared.
14643
14644 2011-09-01  Bruno Haible  <bruno@clisp.org>
14645
14646         strtoimax: Avoid link error on OSF/1 with DTK cc.
14647         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14648         defined as a function.
14649         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14650         strtoimax is defined, not whether it is declared.
14651
14652 2011-09-01  Bruno Haible  <bruno@clisp.org>
14653
14654         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14655         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14656         as a function.
14657         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14658         whether it is declared.
14659
14660 2011-09-01  Bruno Haible  <bruno@clisp.org>
14661
14662         imaxabs: Avoid link error on OSF/1 with DTK cc.
14663         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14664         as a function.
14665         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14666         whether it is declared.
14667
14668 2011-09-01  Bruno Haible  <bruno@clisp.org>
14669
14670         Tests for module 'strtoumax'.
14671         * modules/strtoumax-tests: New file.
14672         * tests/test-strtoumax.c: New file.
14673
14674         Tests for module 'strtoimax'.
14675         * modules/strtoimax-tests: New file.
14676         * tests/test-strtoimax.c: New file.
14677
14678         Tests for module 'imaxdiv'.
14679         * modules/imaxdiv-tests: New file.
14680         * tests/test-imaxdiv.c: New file.
14681
14682         Tests for module 'imaxabs'.
14683         * modules/imaxabs-tests: New file.
14684         * tests/test-imaxabs.c: New file.
14685
14686 2011-09-01  Bruno Haible  <bruno@clisp.org>
14687
14688         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14689         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14690         pthread_create.
14691
14692 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14693
14694         openat: work around AIX 7.1 fstatat issue
14695         This should fix the problem that was not properly fixed
14696         in the previous change, dated 2011-08-30.
14697         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14698         __need_system_stat_h defined.
14699         (orig_fstatat) [HAVE_FSTATAT]: New function.
14700         (rpl_fstatat): Go back to the old way of doing things,
14701         except call orig_fstatat instead of fstatat.
14702         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14703         Remove unnecessary check whether fstatat fills in st_size etc.
14704
14705 2011-09-01  Bruno Haible  <bruno@clisp.org>
14706
14707         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14708         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14709         just include the system's header.
14710
14711 2011-08-31  Jim Meyering  <meyering@redhat.com>
14712
14713         tests: avoid spurious assertion failure in test-float.c on ppc64
14714         * tests/test-float.c (test_long_double): Comment out an assertion,
14715         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14716         with gcc-4.4.4.
14717
14718         maint: indent with spaces, not TABs
14719         I need to get in the habit of running gnulib's "make check".
14720         Both of these would have been caught.
14721         * m4/largefile.m4: Indent with spaces, not TABs.
14722         * lib/parse-datetime.y (iso_8601_time): Likewise.
14723         Spotted by Pádraig Brady.
14724
14725         test-parse-datetime.c: accommodate a relatively strict gcc warning
14726         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14727         to avoid a warning from gcc's -Werror=missing-declarations.
14728         Insert a few spaces-before-funcall-parenthesis.
14729
14730 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14731
14732         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14733         The parser now accepts ISO 8601 date-time strings with "T" as the
14734         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14735         with a space between the date and time strings.  Now it also parses
14736         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14737         variants like "2004-02-29T16:21:42.333-07:00"
14738         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14739         of day representation using the 'T' separator character.
14740         * doc/parse-datetime.texi (General date syntax): replace use of
14741         deprecated --iso-8601 option with --rfc-3339 in example of date
14742         command output formats that can be parsed.
14743         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14744         lib/parse-datetime.y.
14745         (gmt_offset): New function.
14746         (main): Add additional test cases to validate ISO8601 extended
14747         date and time of day parsing.
14748
14749 2011-08-31  Bruno Haible  <bruno@clisp.org>
14750
14751         freopen: Documentation.
14752         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14753         name.
14754         Reported by Claudio Bley <claudio.bley@gmail.com>.
14755
14756 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14757
14758         freopen: Don't crash if the filename argument is NULL.
14759         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14760         NULL.
14761
14762 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14763
14764         openat: work around AIX 7.1 fstatat bug
14765         Problem reported by Kevin Brott for GNU tar, in the thread containing
14766         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14767         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14768         FSTATAT_ST_SIZE_ETC_BROKEN.
14769         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14770         rpl_fstatat.
14771         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14772         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14773         AC_CHECK_FUNCS_ONCE for fstatat.
14774         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14775         fchmodat, mkdirat, openat and unlinkat.
14776
14777 2011-08-30  Bruno Haible  <bruno@clisp.org>
14778
14779         Avoid endless recursions if config.h includes some header files.
14780         * lib/fopen.c (__need_FILE): Define already before including config.h.
14781         * lib/freopen.c (__need_FILE): Likewise.
14782         * lib/open.c (__need_system_fcntl_h): Likewise.
14783         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14784         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14785         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14786
14787 2011-08-25  Karl Berry  <karl@gnu.org>
14788
14789         * config/srclist.txt (ylwrap): new try.
14790         * build-aux/ylwrap: new file.
14791
14792 2011-08-23  Bruno Haible  <bruno@clisp.org>
14793
14794         tmpdir: Use a good default directory on native Windows.
14795         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14796         (P_tmpdir): Default to _P_tmpdir on native Windows.
14797         (path_search): On native Windows, try the value returned by GetTempPath
14798         before trying P_tmpdir.
14799         * modules/tmpdir (Depends-on): Add pathmax.
14800         Suggested by John Darrington <john@darrington.wattle.id.au>.
14801
14802 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14803
14804         doc: fix typo in README-release
14805         * top/README-release: Capitalize first word of a sentence.
14806
14807 2011-08-19  Jim Meyering  <meyering@redhat.com>
14808
14809         fts: do not exhaust memory when processing million-entry directories
14810         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14811         directory would require about 256*N bytes of memory.  Thus, it was
14812         easy to construct a directory too large to be processed by any of
14813         those tools.  With this change, fts' maximum memory utilization is
14814         now limited to around 30MB.
14815         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14816         (fts_read): When we've processed the final entry (i.e., when
14817         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14818         using the parent entry to read any remaining entries.  Dispatch
14819         depending on what fts_build returns:
14820         - NULL+stop, aka failure: stop
14821         - NULL otherwise: move up in the dir hierarchy
14822         - non-NULL: handle this new entry
14823         (fts_build): Declare and use new local, continue_readdir.
14824         Prepare to be called from fts_read, when the entries
14825         from a partially-read directory have just been exhausted.
14826         In that case, we'll skip the opendir and instead use the parent's
14827         fts_dirp and derive dir_fd from that.
14828         Finally, in the readdir loop, if we read max_entries entries,
14829         exit the loop ensuring *not* to call closedir.  This is required
14830         so that fts_dirp can be reused on a subsequent call.
14831         Prompted by Ben England's report of memory exhaustion in find
14832         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14833
14834         maint: fts: move decl of `dp' down into while loop; split a long line
14835         * lib/fts.c (fts_build): No semantic change.
14836
14837         fts: add/use new struct member, fts_dirp
14838         We are about to use this to manage any directory with
14839         too many entries to read all of them into memory at once.
14840         To do that, we'll need to save the DIR* pointer in each
14841         affected FTSENT struct.
14842         * lib/fts_.h: Include <dirent.h>.
14843         (struct FTSENT) [fts_dirp]: New member.
14844         * lib/fts.c (closedir_and_clear): Define.
14845         Use it in place of closedir so that we are sure to
14846         clear the new fts_dirp member when done with it.
14847         (fts_alloc): Initialize the new member.
14848         (fts_lfree): Free, if needed.
14849
14850         maint: fts: give __opendir2 a new parameter and rename
14851         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14852         than surreptitiously using sole caller's "dir_fd".
14853         (fts_opendir): Rename from __opendir2.
14854
14855         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14856         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14857
14858         maint: fts.c: correct off-by-one indentation
14859         * lib/fts.c (fts_build): Correct indentation, change style
14860         of a couple of block comments, and bracing style.
14861
14862         maint: fts.c: move __opendir2 #define "up" out of function body
14863         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14864
14865         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14866         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14867         out for a long time and besides was useful only on BSD systems.
14868
14869 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14870
14871         regex: port to Stratus OpenVOS
14872         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14873         define to empty, rather than attempting nonportable optimizations.
14874         Problem reported by Paul Green in:
14875         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14876         and fix suggested by Eric Blake in:
14877         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14878
14879 2011-08-17  Eric Blake  <eblake@redhat.com>
14880
14881         getcwd: fix test failures on mingw
14882         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14883         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14884         test if long directory cannot be created, and allow mingw errno.
14885
14886         getcwd-lgpl: fix m4 to match relaxed test for BSD
14887         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14888         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14889         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14890         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14891         signature problem.
14892
14893         getcwd: fix compilation on mingw64
14894         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14895         getcwd.
14896         Reported by Marc-André Lureau.
14897
14898         pipe2: silence compiler warning
14899         * lib/pipe2.c (pipe2): Hide label if it is not used.
14900
14901 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14902
14903         relocatable-prog: fix link error
14904         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14905         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14906         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14907         into modules/relocatable-lib without noticing that
14908         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14909         also needs to build relocatable.c.
14910
14911 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14912
14913         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14914         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14915         shell code: it contained a 'break' that was not in a loop.
14916         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14917         via a shell-language loop; this may have been true in old Autoconf
14918         versions, but it's not true in Autoconf 2.68.  I found this bug
14919         when testing coreutils git on Solaris 8, whose shell complains
14920         about the syntax error.
14921
14922 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14923
14924         * lib/base64.c: Fix comment to reference RFC 4648.
14925         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14926         <gvtulder@gmail.com>.
14927
14928 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14929
14930         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14931
14932         po/Makefile.in.in: fix make -q problem
14933         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14934         rule, since there's no file named 'check-macro-version' and its
14935         use as a file breaks make -q.
14936         (all): Don't depend on check-macro-version.
14937         (CHECK_MACRO_VERSION): New macro.
14938         (stamp-po): Use it.
14939
14940         configmake: fix make -q problem
14941         * modules/configmake (configmake.h): Update configmake.h's time stamp
14942         even if the file does not change.  Otherwise, 'make -q' fails.
14943         Problem reported by Simon Josefsson in
14944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14945
14946 2011-08-11  Jim Meyering  <meyering@redhat.com>
14947
14948         git-version-gen: correct the advice in a comment
14949         * build-aux/git-version-gen: Correct comment.
14950         Don't recommend to list .tarball-version in .gitignore.
14951
14952 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14953
14954         base64: fix off-by-one buffer size bug
14955         Problem and (trivial) fix reported by Gijs van Tulder in
14956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14957         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14958         * tests/test-base64.c (main): Catch the bug.
14959
14960 2011-08-10  Eric Blake  <eblake@redhat.com>
14961
14962         closein: correct comments
14963         * lib/closein.c (close_stdin): Improve comments.
14964
14965 2011-08-09  Bruno Haible  <bruno@clisp.org>
14966
14967         More tests for 'fseeko'.
14968         * tests/test-fseeko3.c: New file, from Eric Blake.
14969         * tests/test-fseeko3.sh: New file.
14970         * modules/fseeko-tests (Files): Add them.
14971         (TESTS): Add test-fseeko3.sh.
14972         (check_PROGRAMS): Add test-fseeko3.
14973
14974 2011-08-09  Eric Blake  <eblake@redhat.com>
14975
14976         fseeko: remove unneeded hack
14977         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14978
14979         fseeko: fix bug on glibc
14980         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14981         Reported by John W. Eaton.
14982
14983 2011-08-08  Bruno Haible  <bruno@clisp.org>
14984
14985         unictype/base: Fix interoperability with preinstalled libunistring.
14986         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14987         Reported by Simon Josefsson.
14988
14989 2011-08-08  Bruno Haible  <bruno@clisp.org>
14990
14991         iswblank: Detect declaration correctly.
14992         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14993         AC_CHECK_DECLS invocation.
14994
14995 2011-08-08  Bruno Haible  <bruno@clisp.org>
14996
14997         tcgetsid: Detect declaration correctly.
14998         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14999         AC_CHECK_DECLS invocation.
15000         Reported by Simon Josefsson.
15001
15002 2011-08-08  Eric Blake  <eblake@redhat.com>
15003
15004         largefile: fix typo that regressed large file support
15005         * modules/largefile (configure.ac-early): Fix section name.
15006
15007 2011-08-06  Karl Berry  <karl@gnu.org>
15008
15009         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15010         a separate module.
15011
15012 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15013
15014         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15015         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15016         get prototype for free.
15017
15018 2011-08-04  Bruno Haible  <bruno@clisp.org>
15019
15020         Tests for module 'pathmax'.
15021         * modules/pathmax-tests: New file.
15022         * tests/test-pathmax.c: New file.
15023
15024         canonicalize-lgpl: Support larger filenames on the Hurd.
15025         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15026         Reported by Paul Eggert.
15027
15028         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15029         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15030         * lib/chdir-long.h: Include pathmax.h.
15031         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15032         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15033         (PATH_MAX): Remove code that is done by pathmax.h.
15034         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15035         * lib/tmpfile.c: Add a comment.
15036         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15037         * modules/chdir-long (Depends-on): Add pathmax.
15038         * modules/getcwd (Depends-on): Add pathmax.
15039         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15040         is not defined.
15041         * doc/posix-headers/limits.texi: Mention the pathmax module.
15042         * NEWS: Mention the change.
15043
15044 2011-08-02  Bruno Haible  <bruno@clisp.org>
15045
15046         pthread_sigmask: Actually use results of gl_THREADLIB.
15047         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15048         gl_THREADLIB, not gl_[]THREADLIB.
15049         Reported by Eric Blake.
15050
15051 2011-08-02  Jim Meyering  <meyering@redhat.com>
15052
15053         maint.mk: relax the default _gl_TS_function_match regexp
15054         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15055         space between function name and "(" in an "extern" declaration.
15056         That would fail to match a decl with no space there: extern void foo();
15057
15058 2011-07-31  Iain Nicol  <iain@thenicols.net>
15059
15060         git-version-gen: document that EXTRA_DIST must include .version
15061         * build-aux/git-version-gen: In the how-to-use comment, document
15062         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15063         will fail when run from an unpacked distribution tarball.
15064
15065 2011-08-01  Bruno Haible  <bruno@clisp.org>
15066
15067         wctype-h: Fix last change.
15068         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15069         REPLACE_TOWLOWER to 0.
15070         Reported by Sam Steingold <sds@gnu.org>.
15071
15072 2011-07-31  Bruno Haible  <bruno@clisp.org>
15073
15074         frexpl: Update autoconf test.
15075         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15076         according to changes of 2011-06-20.
15077
15078 2011-07-31  Bruno Haible  <bruno@clisp.org>
15079
15080         sys_utsname: Add support for Minix.
15081         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15082         <sys/utsname.h>.
15083         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15084         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15085
15086 2011-07-31  Bruno Haible  <bruno@clisp.org>
15087
15088         strings: Add support for Minix.
15089         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15090         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15091         * doc/posix-headers/strings.texi: Document the Minix problem.
15092
15093 2011-07-31  Bruno Haible  <bruno@clisp.org>
15094
15095         wctype-h: Add support for Minix.
15096         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15097         REPLACE_TOWLOWER.
15098         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15099         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15100         REPLACE_ISWCNTRL.
15101
15102 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15103
15104         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15105         This is a performance improvement for 64-bit hosts: it causes the
15106         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15107
15108 2011-07-31  Bruno Haible  <bruno@clisp.org>
15109
15110         stdioext: Add support for Minix.
15111         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15112         * lib/fpurge.c (fpurge): Likewise.
15113         * lib/freadahead.c (freadahead): Likewise.
15114         * lib/freadable.c (freadable): Likewise.
15115         * lib/freading.c (freading): Likewise.
15116         * lib/freadptr.c (freadptr): Likewise.
15117         * lib/freadseek.c (freadptrinc): Likewise.
15118         * lib/fseeko.c (rpl_fseeko): Likewise.
15119         * lib/fseterr.c (fseterr): Likewise.
15120         * lib/fwritable.c (fwritable): Likewise.
15121         * lib/fwriting.c (fwriting): Likewise.
15122         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15123         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15124
15125 2011-07-31  Bruno Haible  <bruno@clisp.org>
15126
15127         errno: Port to Minix.
15128         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15129         ECONNABORTED are defined.
15130         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15131         GNULIB_defined_ECONNABORTED): New macros.
15132         * lib/strerror-override.h (strerror_override): Test also
15133         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15134         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15135         ECONNABORTED.
15136         * doc/posix-headers/errno.texi: Mention the Minix problem.
15137
15138 2011-07-31  Bruno Haible  <bruno@clisp.org>
15139
15140         Work around declaration collisions on Minix.
15141         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15142         defined, set REPLACE_MBSINIT.
15143         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15144         defined, set REPLACE_MBRTOWC.
15145         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15146         set REPLACE_MBRLEN.
15147         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15148         defined, set REPLACE_MBSRTOWCS.
15149         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15150         defined, set REPLACE_WCRTOMB.
15151         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15152         defined, set REPLACE_WCSRTOMBS.
15153
15154 2011-07-31  Bruno Haible  <bruno@clisp.org>
15155
15156         Add support for Minix with ACK compiler.
15157         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15158         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15159         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15160
15161 2011-07-31  Bruno Haible  <bruno@clisp.org>
15162
15163         Documentation about Minix.
15164         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15165         * doc/glibc-headers/*.texi: Likewise.
15166         * doc/posix-functions/*.texi: Likewise.
15167         * doc/glibc-functions/*.texi: Likewise.
15168
15169 2011-07-31  Bruno Haible  <bruno@clisp.org>
15170
15171         snippet/warn-on-use: Fix indentation.
15172         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15173
15174 2011-07-25  Jim Meyering  <meyering@redhat.com>
15175
15176         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15177         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15178         commands.
15179
15180 2011-07-27  Jim Meyering  <meyering@redhat.com>
15181
15182         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15183         * top/maint.mk (gl_extract_significant_defines_): Now that
15184         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15185         gnulib/lib/signal.in.h, and now that we recommend to
15186         define-if-undefined those two symbols in application code,
15187         we must filter them out of the "significant" list.
15188         This avoids a "make syntax-check" failure in coreutils.
15189
15190 2011-07-26  Eric Blake  <eblake@redhat.com>
15191
15192         warnings: add comments about previous patch
15193         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15194         * m4/include_next.m4: Likewise.
15195         * m4/warn-on-use.m4: Likewise.
15196         * m4/warnings.m4: Likewise, and simplify use.
15197         Suggested by Stefano Lattarini.
15198
15199         include-next, warnings: support older autoconf
15200         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15201         AS_VAR_PUSHDEF in a way that works with older autoconf.
15202         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15203         Reported by Daniel P. Berrange.
15204
15205 2011-07-25  Bruno Haible  <bruno@clisp.org>
15206
15207         fseek, ftell: Fix doc.
15208         * doc/posix-functions/fseek.texi: Reword statement about
15209         AC_SYS_LARGEFILE.
15210         * doc/posix-functions/ftell.texi: Likewise.
15211
15212 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15213             Bruno Haible  <bruno@clisp.org>
15214
15215         Add dependencies to the 'largefile' module.
15216         * modules/fopen (Depends-on): Add 'largefile'.
15217         * modules/freopen (Depends-on): Likewise.
15218         * modules/fseeko (Depends-on): Likewise.
15219         * modules/ftello (Depends-on): Likewise.
15220         * modules/glob (Depends-on): Likewise.
15221         * modules/lseek (Depends-on): Likewise.
15222         * modules/lstat (Depends-on): Likewise.
15223         * modules/mkostemp (Depends-on): Likewise.
15224         * modules/mkostemps (Depends-on): Likewise.
15225         * modules/mkstemp (Depends-on): Likewise.
15226         * modules/mkstemps (Depends-on): Likewise.
15227         * modules/open (Depends-on): Likewise.
15228         * modules/openat (Depends-on): Likewise.
15229         * modules/pread (Depends-on): Likewise.
15230         * modules/pwrite (Depends-on): Likewise.
15231         * modules/scandir (Depends-on): Likewise.
15232         * modules/stat (Depends-on): Likewise.
15233         * modules/tmpfile (Depends-on): Likewise.
15234         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15235         since the containing module now depends on the largefile module.
15236         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15237         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15238         off_t is fixed by gnulib.
15239         * doc/posix-functions/freopen.texi: Likewise.
15240         * doc/posix-functions/fseeko.texi: Likewise.
15241         * doc/posix-functions/fstatat.texi: Likewise.
15242         * doc/posix-functions/ftello.texi: Likewise.
15243         * doc/posix-functions/glob.texi: Likewise.
15244         * doc/posix-functions/lseek.texi: Likewise.
15245         * doc/posix-functions/lstat.texi: Likewise.
15246         * doc/posix-functions/mkstemp.texi: Likewise.
15247         * doc/posix-functions/open.texi: Likewise.
15248         * doc/posix-functions/openat.texi: Likewise.
15249         * doc/posix-functions/pread.texi: Likewise.
15250         * doc/posix-functions/pwrite.texi: Likewise.
15251         * doc/posix-functions/scandir.texi: Likewise.
15252         * doc/posix-functions/stat.texi: Likewise.
15253         * doc/posix-functions/tmpfile.texi: Likewise.
15254         * doc/glibc-functions/mkostemp.texi: Likewise.
15255         * doc/glibc-functions/mkostemps.texi: Likewise.
15256         * doc/glibc-functions/mkstemps.texi: Likewise.
15257
15258 2011-07-25  Bruno Haible  <bruno@clisp.org>
15259
15260         fcntl: Move AC_LIBOBJ invocation to module description.
15261         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15262         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15263
15264         fcntl: Remove call-in from fchdir.m4.
15265         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15267
15268         dup3: Remove potential call-in from fchdir.m4.
15269         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15271
15272         dup2: Move AC_LIBOBJ invocation to module description.
15273         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15274         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15275         Don't invoke AC_LIBOBJ.
15276         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15277
15278         dup2: Remove call-in from fchdir.m4.
15279         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15281
15282         fclose: Move AC_LIBOBJ invocation to module description.
15283         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15284         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15285         to 1.
15286         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15287
15288         fclose: Remove call-in from close.m4.
15289         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15290         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15291
15292         close: Move AC_LIBOBJ invocation to module description.
15293         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15294         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15295         1.
15296         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15297
15298         close: Remove call-in from fchdir.m4.
15299         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15301
15302         open: Move AC_LIBOBJ invocation to module description.
15303         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15304         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15305         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15306
15307         open: Remove call-in from fchdir.m4.
15308         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15309         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15310
15311         fchdir: Start to remove gl_REPLACE_* idiom.
15312         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15313         (gl_FUNC_FCHDIR): Invoke it.
15314
15315 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15316
15317         * lib/ftell.c (ftell): Comment out cast.
15318
15319         close: use gl_REPLACE_FCLOSE only if defined
15320         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15321         is defined.  The close module doesn't depend on the fclose module
15322         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15324         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15325
15326 2011-07-24  Jim Meyering  <meyering@redhat.com>
15327
15328         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15329         * tests/test-select.h (test_function): Declare as "static".
15330
15331 2011-07-24  Bruno Haible  <bruno@clisp.org>
15332
15333         doc: Mention the effects of AC_SYS_LARGEFILE.
15334         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15335         on this function.
15336         * doc/posix-functions/aio_error.texi: Likewise.
15337         * doc/posix-functions/aio_fsync.texi: Likewise.
15338         * doc/posix-functions/aio_read.texi: Likewise.
15339         * doc/posix-functions/aio_return.texi: Likewise.
15340         * doc/posix-functions/aio_suspend.texi: Likewise.
15341         * doc/posix-functions/aio_write.texi: Likewise.
15342         * doc/posix-functions/fgetpos.texi: Likewise.
15343         * doc/posix-functions/fopen.texi: Likewise.
15344         * doc/posix-functions/freopen.texi: Likewise.
15345         * doc/posix-functions/fsetpos.texi: Likewise.
15346         * doc/posix-functions/fstatvfs.texi: Likewise.
15347         * doc/posix-functions/ftruncate.texi: Likewise.
15348         * doc/posix-functions/ftw.texi: Likewise.
15349         * doc/posix-functions/getrlimit.texi: Likewise.
15350         * doc/posix-functions/glob.texi: Likewise.
15351         * doc/posix-functions/lio_listio.texi: Likewise.
15352         * doc/posix-functions/lockf.texi: Likewise.
15353         * doc/posix-functions/mkstemp.texi: Likewise.
15354         * doc/posix-functions/mmap.texi: Likewise.
15355         * doc/posix-functions/nftw.texi: Likewise.
15356         * doc/posix-functions/openat.texi: Likewise.
15357         * doc/posix-functions/opendir.texi: Likewise.
15358         * doc/posix-functions/posix_fadvise.texi: Likewise.
15359         * doc/posix-functions/posix_fallocate.texi: Likewise.
15360         * doc/posix-functions/pread.texi: Likewise.
15361         * doc/posix-functions/pwrite.texi: Likewise.
15362         * doc/posix-functions/readdir.texi: Likewise.
15363         * doc/posix-functions/readdir_r.texi: Likewise.
15364         * doc/posix-functions/rewinddir.texi: Likewise.
15365         * doc/posix-functions/scandir.texi: Likewise.
15366         * doc/posix-functions/seekdir.texi: Likewise.
15367         * doc/posix-functions/setrlimit.texi: Likewise.
15368         * doc/posix-functions/statvfs.texi: Likewise.
15369         * doc/posix-functions/telldir.texi: Likewise.
15370         * doc/posix-functions/tmpfile.texi: Likewise.
15371         * doc/posix-functions/truncate.texi: Likewise.
15372         * doc/glibc-functions/fallocate.texi: Likewise.
15373         * doc/glibc-functions/fstatfs.texi: Likewise.
15374         * doc/glibc-functions/fts_children.texi: Likewise.
15375         * doc/glibc-functions/fts_read.texi: Likewise.
15376         * doc/glibc-functions/getdirentries.texi: Likewise.
15377         * doc/glibc-functions/mkostemp.texi: Likewise.
15378         * doc/glibc-functions/mkostemps.texi: Likewise.
15379         * doc/glibc-functions/mkstemps.texi: Likewise.
15380         * doc/glibc-functions/preadv.texi: Likewise.
15381         * doc/glibc-functions/pwritev.texi: Likewise.
15382         * doc/glibc-functions/sendfile.texi: Likewise.
15383         * doc/glibc-functions/statfs.texi: Likewise.
15384
15385 2011-07-24  Bruno Haible  <bruno@clisp.org>
15386
15387         doc: Fix typo.
15388         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15389
15390 2011-07-24  Bruno Haible  <bruno@clisp.org>
15391
15392         doc: Mention fsusage.
15393         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15394
15395 2011-07-24  Bruno Haible  <bruno@clisp.org>
15396
15397         doc: Mention new glibc headers and functions.
15398         * doc/glibc-headers/gshadow.texi: New file.
15399         * doc/glibc-functions/endsgent.texi: New file.
15400         * doc/glibc-functions/fgetsgent.texi: New file.
15401         * doc/glibc-functions/fgetsgent_r.texi: New file.
15402         * doc/glibc-functions/getsgent.texi: New file.
15403         * doc/glibc-functions/getsgent_r.texi: New file.
15404         * doc/glibc-functions/getsgnam.texi: New file.
15405         * doc/glibc-functions/getsgnam_r.texi: New file.
15406         * doc/glibc-functions/putsgent.texi: New file.
15407         * doc/glibc-functions/setsgent.texi: New file.
15408         * doc/glibc-functions/sgetsgent.texi: New file.
15409         * doc/glibc-functions/sgetsgent_r.texi: New file.
15410         * doc/glibc-functions/malloc_info.texi: New file.
15411         * doc/glibc-functions/preadv.texi: New file.
15412         * doc/glibc-functions/pwritev.texi: New file.
15413         * doc/glibc-functions/register_printf_modifier.texi: New file.
15414         * doc/glibc-functions/register_printf_specifier.texi: New file.
15415         * doc/glibc-functions/register_printf_type.texi: New file.
15416         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15417         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15418         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15419         * doc/glibc-functions/pthread_getname_np.texi: New file.
15420         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15421         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15422         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15423         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15424         * doc/glibc-functions/pthread_setname_np.texi: New file.
15425         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15426         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15427         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15428         * doc/glibc-functions/qsort_r.texi: New file.
15429         * doc/glibc-functions/quick_exit.texi: New file.
15430         * doc/glibc-functions/syncfs.texi: New file.
15431         * doc/gnulib.texi: Include them.
15432         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15433         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15434         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15435         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15436         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15437         * doc/glibc-functions/execvpe.texi: Likewise.
15438
15439 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15440
15441         ftell: don't include <unistd.h>
15442         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15443         guaranteed to define off_t, and the ftell module depends on the
15444         stdio module.
15445
15446         ftell: do not assume wraparound signed arithmetic
15447         * lib/ftell.c: Include <limits.h>.
15448         (ftell): Don't assume wraparound signed arithmetic.
15449
15450 2011-07-24  Bruno Haible  <bruno@clisp.org>
15451
15452         close: No longer depend on module 'fclose'.
15453         * modules/close (Depends-on): Remove fclose.
15454         * NEWS: Mention the change.
15455         Suggested by Sam Steingold <sds@gnu.org>.
15456
15457 2011-07-24  Bruno Haible  <bruno@clisp.org>
15458
15459         fsusage: Enable large volume support on AIX >= 5.2.
15460         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15461         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15462         instead of STAT_STATVFS.
15463         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15464
15465         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15466         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15467         f_blocks field only on MacOS X.
15468
15469         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15470         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15471         * modules/fsusage (Depends-on): Add largefile.
15472
15473 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15474
15475         * README: Modernize discussion of signed integers.
15476         Assuming overflow wraparound is no longer safe.
15477         Mention ones' complement and signed magnitude.
15478
15479 2011-07-22  Bruno Haible  <bruno@clisp.org>
15480
15481         select tests, pselect tests: Refactor.
15482         * tests/test-select.h: New file, extracted from tests/test-select.c.
15483         (select_fn): New type.
15484         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15485         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15486         test_pipe): Add my_select argument.
15487         (test_function): Renamed from main. Add my_select argument.
15488         * tests/test-select.c: Move most code to tests/test-select.h. Include
15489         test-select.h.
15490         * modules/select-tests (Files): Add tests/test-select.h.
15491         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15492         (my_select, main): New functions.
15493         * modules/pselect-tests (Files): Add tests/test-select.h,
15494         tests/macros.h, tests/signature.h.
15495         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15496         (configure.ac): Check for <sys/wait.h>.
15497
15498 2011-07-22  Bruno Haible  <bruno@clisp.org>
15499
15500         sys_select tests: Check the signature of FD_*.
15501         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15502         signature tests from here...
15503         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15504         here.
15505         * modules/sys_select-tests (Files): Add tests/signature.h.
15506
15507 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15508
15509         largefile: new module, replacing large-inode
15510         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15511         * MODULES.html.sh: Add largefile, remove large-inode.
15512         * modules/largefile, m4/largefile.m4: New files.
15513         * modules/large-inode, m4/large-inode.m4: Remove.
15514
15515         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15516         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15517         implementations that use only 32 bits to count blocks.
15518         On typical hosts with 1024-byte blocks, this fails with file
15519         systems as small as 4 TiB.  Problem reported by Herb Wartens
15520         <http://debbugs.gnu.org/9140> and this should also fix a similar
15521         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15522
15523         large-inode: New module
15524         * MODULES.html.sh: Add it.
15525         * modules/large-inode, m4/large-inode.m4: New files.
15526
15527         extensions: Enable extensions on MacOS X 10.5 and later.
15528         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15529
15530 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15531
15532         file-has-acl: use acl_extended_file_nofollow if available
15533         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15534         (acl_extended_file): New macro.
15535         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15536         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15537
15538 2011-07-21  Bruno Haible  <bruno@clisp.org>
15539
15540         Declare system functions in a way that works with C++.
15541         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15542         declare fdopendir as extern "C".
15543         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15544         declare frexpl as extern "C".
15545         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15546         declare gai_strerror as extern "C".
15547         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15548         programs, declare gai_strerror as extern "C".
15549         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15550         declare getlogin_r as extern "C".
15551         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15552         as extern "C".
15553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15554         declare ldexpl as extern "C".
15555         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15556         as extern "C".
15557         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15558         program, declare getmntinfo as extern "C".
15559         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15560         stpncpy as extern "C".
15561         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15562         program, declare __xpg_strerror_r as extern "C".
15563         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15564         strndup as extern "C".
15565         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15566         declare memset and bzero as extern "C".
15567         Reported by Sam Steingold <sds@gnu.org>.
15568
15569 2011-07-12  Jim Meyering  <meyering@redhat.com>
15570
15571         maint.mk: prohibit inclusion of "verify.h" without use
15572         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15573
15574 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15575
15576         timer-time: A new module to check for timer_settime()
15577         * m4/timer_time.m4: Check for the posix function.
15578         * modules/timer-time: Add the new module.
15579         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15580         Mention it.
15581
15582 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15583             Bruno Haible  <bruno@clisp.org>
15584
15585         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15586         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15587         not defined, assume POSIX threads and look for pthread_sigmask in
15588         $LIBS, without changing $CPPFLAGS.
15589
15590 2011-07-19  Bruno Haible  <bruno@clisp.org>
15591
15592         strstr: Update cross-compilation guess.
15593         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15594         CPUs, guess no, in view of glibc
15595         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15596         Suggested by Eric Blake. Reported by Reuben Thomas.
15597
15598 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15599
15600         getopt-gnu: suppress core dumps from detection code
15601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15602         to suppress core dumps that may well occur on glibc systems.
15603         * modules/getopt-gnu: Depend on nocrash.
15604
15605 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15606
15607         pthread_sigmask: ensure usleep is declared
15608         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15609         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15610
15611 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15612
15613         doc: Document NonStop portability issues.
15614         * doc/posix-functions/sigaction.texi (sigaction):
15615         * doc/posix-headers/signal.texi (signal.h):
15616         Document NonStop.  See Joachim Schmitz in
15617         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15618
15619 2011-07-15  Bruno Haible  <bruno@clisp.org>
15620
15621         ffsl, ffsll: Avoid unportable behaviour.
15622         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15623
15624 2011-07-15  Bruno Haible  <bruno@clisp.org>
15625
15626         ffs: More tests.
15627         * tests/test-ffs.c (NBITS): New macro.
15628         (main): Add more tests.
15629         * tests/test-ffsl.c (NBITS): New macro.
15630         (main): Add more tests.
15631         * tests/test-ffsll.c (NBITS): New macro.
15632         (main): Add more tests.
15633
15634 2011-07-15  Eric Blake  <eblake@redhat.com>
15635
15636         ffsl, ffsll: new modules
15637         * modules/ffsl: New file.
15638         * modules/ffsll: Likewise.
15639         * m4/ffsl.m4: Likewise.
15640         * m4/ffsll.m4: Likewise.
15641         * lib/ffsl.c: Likewise.
15642         * lib/ffsl.h: Likewise.
15643         * lib/ffsll.c: Likewise.
15644         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15645         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15646         * modules/string (Makefile.am): Substitute witnesses.
15647         * lib/strings.in.h (ffsl, ffsll): Declare.
15648         * modules/ffsl-tests: New test file.
15649         * modules/ffsll-tests: Likewise.
15650         * tests/test-ffsl.c: Likewise.
15651         * tests/test-ffsll.c: Likewise.
15652         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15653         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15654         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15655
15656         ffs: fix m4 prerequisite
15657         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15658
15659         ffs: avoid undefined behavior
15660         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15661         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15662         Reported by Bruno Haible.
15663
15664 2011-07-12  Bruno Haible  <bruno@clisp.org>
15665
15666         pthread_sigmask: Rely on module 'threadlib'.
15667         * modules/pthread_sigmask (Depends-on): Add threadlib.
15668         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15669         is defined.
15670
15671 2011-07-12  Bruno Haible  <bruno@clisp.org>
15672
15673         regex: Depend on module 'strcase'.
15674         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15675
15676 2011-07-12  Jim Meyering  <meyering@redhat.com>
15677
15678         warn-on-use: fix typo in file name
15679         * modules/snippet/warn-on-use (Files): Correct file name:
15680         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15681
15682 2011-07-12  Bruno Haible  <bruno@clisp.org>
15683
15684         strings: Document module.
15685         * doc/posix-headers/strings.texi: Mention module 'strings'.
15686
15687 2011-07-12  Bruno Haible  <bruno@clisp.org>
15688
15689         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15690         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15691         (Files, Makefile.am): Update.
15692         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15693         * modules/stdlib (Depends-on): Update.
15694
15695 2011-07-12  Bruno Haible  <bruno@clisp.org>
15696
15697         * NEWS: Mention the changes.
15698
15699         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15700         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15701         (Files, Makefile.am): Update.
15702         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15703         * modules/arpa_inet (Depends-on): Update.
15704         * modules/ctype (Depends-on): Update.
15705         * modules/dirent (Depends-on): Update.
15706         * modules/fcntl-h (Depends-on): Update.
15707         * modules/glob (Depends-on): Update.
15708         * modules/iconv-h (Depends-on): Update.
15709         * modules/inttypes-incomplete (Depends-on): Update.
15710         * modules/langinfo (Depends-on): Update.
15711         * modules/locale (Depends-on): Update.
15712         * modules/math (Depends-on): Update.
15713         * modules/netdb (Depends-on): Update.
15714         * modules/poll-h (Depends-on): Update.
15715         * modules/pty (Depends-on): Update.
15716         * modules/search (Depends-on): Update.
15717         * modules/signal (Depends-on): Update.
15718         * modules/spawn (Depends-on): Update.
15719         * modules/stdio (Depends-on): Update.
15720         * modules/stdlib (Depends-on): Update.
15721         * modules/string (Depends-on): Update.
15722         * modules/strings (Depends-on): Update.
15723         * modules/sys_file (Depends-on): Update.
15724         * modules/sys_ioctl (Depends-on): Update.
15725         * modules/sys_select (Depends-on): Update.
15726         * modules/sys_socket (Depends-on): Update.
15727         * modules/sys_stat (Depends-on): Update.
15728         * modules/sys_time (Depends-on): Update.
15729         * modules/sys_times (Depends-on): Update.
15730         * modules/sys_utsname (Depends-on): Update.
15731         * modules/sys_wait (Depends-on): Update.
15732         * modules/termios (Depends-on): Update.
15733         * modules/time (Depends-on): Update.
15734         * modules/unistd (Depends-on): Update.
15735         * modules/wchar (Depends-on): Update.
15736         * modules/wctype-h (Depends-on): Update.
15737         * MODULES.html.sh (Support for building libraries and executables):
15738         Update.
15739
15740         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15741         * modules/snippet/unused-parameter: Renamed from
15742         modules/unused-parameter.
15743         (Files, Makefile.am): Update.
15744         * build-aux/snippet/unused-parameter.h: Renamed from
15745         build-aux/unused-parameter.h.
15746         * modules/selinux-h (Depends-on): Update.
15747         * modules/unistr/base (Depends-on): Update.
15748         * MODULES.html.sh (Core language properties): Update.
15749
15750         Rename module 'link-warning' to 'snippet/link-warning'.
15751         * modules/snippet/link-warning: Renamed from modules/link-warning.
15752         (Files, Makefile.am): Update.
15753         * build-aux/snippet/link-warning.h: Renamed from
15754         build-aux/link-warning.h.
15755         * MODULES.html.sh (Support for building libraries and executables):
15756         Update.
15757
15758         Rename module 'c++defs' to 'snippet/c++defs'.
15759         * modules/snippet/c++defs: Renamed from modules/c++defs.
15760         (Files, Makefile.am): Update.
15761         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15762         * modules/arpa_inet (Depends-on): Update.
15763         * modules/ctype (Depends-on): Update.
15764         * modules/dirent (Depends-on): Update.
15765         * modules/fcntl-h (Depends-on): Update.
15766         * modules/glob (Depends-on): Update.
15767         * modules/iconv-h (Depends-on): Update.
15768         * modules/langinfo (Depends-on): Update.
15769         * modules/locale (Depends-on): Update.
15770         * modules/math (Depends-on): Update.
15771         * modules/netdb (Depends-on): Update.
15772         * modules/poll-h (Depends-on): Update.
15773         * modules/pty (Depends-on): Update.
15774         * modules/search (Depends-on): Update.
15775         * modules/signal (Depends-on): Update.
15776         * modules/spawn (Depends-on): Update.
15777         * modules/stdio (Depends-on): Update.
15778         * modules/stdlib (Depends-on): Update.
15779         * modules/string (Depends-on): Update.
15780         * modules/strings (Depends-on): Update.
15781         * modules/sys_ioctl (Depends-on): Update.
15782         * modules/sys_select (Depends-on): Update.
15783         * modules/sys_socket (Depends-on): Update.
15784         * modules/sys_stat (Depends-on): Update.
15785         * modules/sys_time (Depends-on): Update.
15786         * modules/sys_wait (Depends-on): Update.
15787         * modules/termios (Depends-on): Update.
15788         * modules/time (Depends-on): Update.
15789         * modules/unistd (Depends-on): Update.
15790         * modules/wchar (Depends-on): Update.
15791         * modules/wctype-h (Depends-on): Update.
15792
15793         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15794         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15795         (Files, Makefile.am): Update.
15796         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15797         * modules/argv-iter (Depends-on): Update.
15798         * modules/arpa_inet (Depends-on): Update.
15799         * modules/dirent (Depends-on): Update.
15800         * modules/fcntl-h (Depends-on): Update.
15801         * modules/fnmatch (Depends-on): Update.
15802         * modules/getopt-posix (Depends-on): Update.
15803         * modules/glob (Depends-on): Update.
15804         * modules/iconv-h (Depends-on): Update.
15805         * modules/inttypes-incomplete (Depends-on): Update.
15806         * modules/locale (Depends-on): Update.
15807         * modules/math (Depends-on): Update.
15808         * modules/netdb (Depends-on): Update.
15809         * modules/search (Depends-on): Update.
15810         * modules/signal (Depends-on): Update.
15811         * modules/spawn (Depends-on): Update.
15812         * modules/stdio (Depends-on): Update.
15813         * modules/stdlib (Depends-on): Update.
15814         * modules/string (Depends-on): Update.
15815         * modules/strings (Depends-on): Update.
15816         * modules/sys_socket (Depends-on): Update.
15817         * modules/sys_stat (Depends-on): Update.
15818         * modules/sys_time (Depends-on): Update.
15819         * modules/sys_times (Depends-on): Update.
15820         * modules/sys_utsname (Depends-on): Update.
15821         * modules/time (Depends-on): Update.
15822         * modules/unistd (Depends-on): Update.
15823         * modules/wchar (Depends-on): Update.
15824         * MODULES.html.sh (Support for building libraries and executables):
15825         Update.
15826
15827 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15828
15829         Improvements on _Noreturn and related modules.
15830
15831         modules/_Exit-tests: test _Noreturn too
15832         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15833         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15834         (main): Use them.
15835
15836         stdnoreturn, stdnoreturn-tests: remove modules
15837         They're not needed here and a bit premature for use elsewhere.  See
15838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15839         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15840         * tests/test-stdnoreturn.c: Remove files.
15841         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15842         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15843         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15844         and using noreturn.
15845         * modules/openat, modules/sigpipe-die, modules/xalloc:
15846         * modules/xmemdup0, modules/xstrtol:
15847         Remove dependency on stdnoreturn.
15848
15849         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15850         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15851         Reparenthesize to avoid GCC warning.
15852         Support Microsoft's syntax.
15853         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15854
15855         _Noreturn-tests: remove module
15856         * modules/_Noreturn-tests: Remove.
15857         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15858         * tests/test-_Noreturn.c: Remove.
15859         * tests/test-stdnoreturn.c: Merge from the old
15860         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15861
15862 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15863
15864         _Noreturn, stdnoreturn, and related modules.
15865
15866         * top/maint.mk: Adjust to new noreturn support.
15867         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15868         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15869
15870         xalloc: use stdnoreturn.h
15871         * lib/xalloc.h: Include <stdnoreturn.h>.
15872         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15873         * modules/xalloc (Depends-on): Add stdnoreturn.
15874
15875         xstrtol: use stdnoreturn.h
15876         * lib/xstrtol.h: Include <stdnoreturn.h>.
15877         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15878         * modules/xstrtol (Depends-on): Add stdnoreturn.
15879
15880         xmemdup0: use stdnoreturn.h
15881         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15882         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15883         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15884
15885         sigpipe-die: use stdnoreturn.h
15886         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15887         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15888         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15889
15890         openat: use stdnoreturn.h
15891         * lib/openat.h: Include <stdnoreturn.h>.
15892         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15893         * modules/openat (Depends-on): Add stdnoreturn.
15894
15895         * lib/openat-die.c (openat_save_fail): Modernize comment.
15896
15897         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15898
15899         * lib/glthread/thread.h: Modernize comment.
15900
15901         obstack: use _Noreturn
15902         * lib/obstack.c (__attribute__): Remove macro.
15903         (print_and_abort): Use _Noreturn.
15904
15905         c-stack: use _Noreturn
15906         * lib/c-stack.c (die, overflow_handler, segv_handler):
15907         Use _Noreturn rather than __attribute__((noreturn)).
15908
15909         argmatch-tests, exclude_tests: use _Noreturn
15910         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15911         Remove.
15912         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15913
15914         stdlib: use _Noreturn
15915         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15916         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15917         * modules/stdlib (Depends-on): Add _Noreturn.
15918         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15919
15920         stdnoreturn-tests: new module
15921         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15922
15923         stdnoreturn: new module
15924         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15925         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15926
15927         _Noreturn-tests: new module
15928         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15929
15930         _Noreturn: new module
15931         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15932         New section, mentioning it.
15933         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15934
15935         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15936
15937 2011-07-11  Eric Blake  <eblake@redhat.com>
15938
15939         ffs: new module
15940         * modules/ffs: New file.
15941         * m4/ffs.m4: Likewise.
15942         * lib/ffs.c: Likewise.
15943         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15944         * modules/strings (Makefile.am): Substitute witness.
15945         (Depends-on): Add c++defs.
15946         * lib/strings.in.h (ffs): Declare.
15947         * modules/ffs-tests: New test file.
15948         * tests/test-ffs.c: Test new module.
15949         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15950         * doc/posix-functions/ffs.texi (ffs): Likewise.
15951
15952         regex: avoid compiler warning
15953         * lib/regex.c (includes): Include <strings.h>, for use of
15954         strcasecmp in regcomp.c.
15955         Reported by Joachim Schmitz.
15956
15957 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15958
15959         stdint: respect system's intmax_t if INTMAX_MAX
15960         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15961         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15962         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15963         long but int64_t is long long, and where we will clash with the
15964         system intmax_t if we override it.  See
15965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15966         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15967         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15968         similarly for UINTMAX_C.
15969
15970 2011-07-08  Bruno Haible  <bruno@clisp.org>
15971
15972         pthread_sigmask tests: Avoid a compiler warning.
15973         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15974         non-zero.
15975
15976         sigprocmask tests: A better way to avoid a compiler warning.
15977         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15978         (main): Complain if system() returns non-zero.
15979         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15980
15981 2011-07-08  Bruno Haible  <bruno@clisp.org>
15982
15983         pthread_sigmask: Work around IRIX bug.
15984         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15985         bug.
15986         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15987         there may be unblocked pending signals.
15988         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15989
15990 2011-07-08  Bruno Haible  <bruno@clisp.org>
15991
15992         pthread_sigmask: Work around Cygwin bug.
15993         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15994         bug.
15995         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15996         the system's pthread_sigmask function.
15997         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15998
15999 2011-07-08  Bruno Haible  <bruno@clisp.org>
16000
16001         pthread_sigmask: Work around bug in single-threaded implementation.
16002         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16003         FreeBSD, HP-UX, Solaris bug.
16004         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16005         * lib/pthread_sigmask.c: Include <stddef.h>.
16006         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16007         the system's pthread_sigmask function.
16008         * modules/pthread_sigmask (configure.ac): Invoke
16009         gl_PREREQ_PTHREAD_SIGMASK.
16010         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16011         HP-UX, Solaris.
16012
16013 2011-07-08  Eric Blake  <eblake@redhat.com>
16014
16015         test-sigprocmask: avoid compiler warning
16016         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16017         * tests/test-sigprocmask.c (main): Use it to silence warning.
16018         Reported by Jim Meyering.
16019
16020         test-snprintf: avoid compiler warning
16021         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16022         * tests/test-vsnprintf.c (main): Likewise.
16023         Reported by Jim Meyering.
16024
16025 2011-07-08  Bruno Haible  <bruno@clisp.org>
16026
16027         Tests for module 'pthread_sigmask'.
16028         * modules/pthread_sigmask-tests: New file.
16029         * tests/test-pthread_sigmask1.c: New file, based on
16030         tests/test-sigprocmask.c.
16031         * tests/test-pthread_sigmask2.c: New file.
16032
16033 2011-07-08  Jim Meyering  <meyering@redhat.com>
16034
16035         test-getopt.h: avoid warning about an unused variable
16036         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16037
16038 2011-07-07  Jim Meyering  <meyering@redhat.com>
16039
16040         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16041         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16042         now that it no longer contains leading TABs.
16043         Remove unused "url=FIXME" statement.
16044
16045 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16046
16047         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16048         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16049         When gl_THREADLIB is not in use, assume that the POSIX sematics
16050         are desired.  This is better for Emacs, which uses POSIX semantics
16051         on GNUish and/or POSIXish platforms, and does not use threads at
16052         all otherwise.
16053
16054         pthread_sigmask: fix typo when testing for libraries
16055         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16056         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16057
16058 2011-07-08  Eric Blake  <eblake@redhat.com>
16059
16060         fts: introduce FTS_NOATIME
16061         * lib/fts_.h (FTS_NOATIME): New bit flag.
16062         (FTS_OPTIONMASK): Adjust.
16063         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16064         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16065
16066 2011-07-08  Bruno Haible  <bruno@clisp.org>
16067
16068         Tests for module 'thread'.
16069         * modules/thread-tests: New file.
16070         * tests/test-thread_self.c: New file.
16071         * tests/test-thread_create.cc: New file.
16072
16073 2011-07-08  Bruno Haible  <bruno@clisp.org>
16074
16075         thread: Avoid gcc warnings when using gl_thread_self().
16076         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16077         'void *'.
16078         (gl_thread_self_pointer): Update.
16079
16080 2011-07-07  Bruno Haible  <bruno@clisp.org>
16081
16082         signal-c++-tests: Check declaration of pthread_sigmask.
16083         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16084         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16085         $(LIB_PTHREAD_SIGMASK).
16086
16087 2011-07-07  Bruno Haible  <bruno@clisp.org>
16088
16089         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16090         * lib/signal.in.h (pthread_sigmask): Override if
16091         REPLACE_PTHREAD_SIGMASK is 1.
16092         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16093         REPLACE_PTHREAD_SIGMASK.
16094         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16095         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16096         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16097         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16098         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16099
16100 2011-07-07  Bruno Haible  <bruno@clisp.org>
16101
16102         pthread_sigmask: Ensure declaration in <signal.h>.
16103         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16104         include <pthread.h>.
16105         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16106         problem.
16107
16108 2011-07-07  Bruno Haible  <bruno@clisp.org>
16109
16110         pthread_sigmask: Document the module.
16111         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16112
16113 2011-07-07  Bruno Haible  <bruno@clisp.org>
16114
16115         pthread_sigmask: Follow gnulib conventions.
16116         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16117         gl_PTHREAD_SIGMASK.
16118         * modules/pthread_sigmask (configure.ac): Update.
16119
16120 2011-07-07  Bruno Haible  <bruno@clisp.org>
16121
16122         pthread_sigmask: Make declaration C++ safe.
16123         * lib/signal.in.h: In two special conditions, just do an #include_next.
16124         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16125         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16126         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16127         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16128         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16129         not REPLACE_PTHREAD_MASK.
16130         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16131         not REPLACE_PTHREAD_MASK.
16132         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16133
16134 2011-07-07  Bruno Haible  <bruno@clisp.org>
16135
16136         pthread_sigmask: Fix return value.
16137         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16138         * lib/pthread_sigmask.c: New file.
16139         * modules/pthread_sigmask (Files): Add it.
16140         (configure.ac): Invoke AC_LIBOBJ.
16141
16142 2011-07-07  Eric Blake  <eblake@redhat.com>
16143
16144         getopt: more portable argv creation
16145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16146         const, use char arrays rather than strings.
16147         Suggested by Paul Eggert.
16148
16149 2011-07-07  Bruno Haible  <bruno@clisp.org>
16150
16151         Tests for module 'sigprocmask'.
16152         * modules/sigprocmask-tests: New file.
16153         * tests/test-sigprocmask.c: New file.
16154
16155 2011-07-07  Bruno Haible  <bruno@clisp.org>
16156
16157         float tests: Tweak.
16158         * tests/test-float.c (main): Tweak skip message.
16159
16160 2011-07-07  Eric Blake  <eblake@redhat.com>
16161
16162         getopt: avoid compiler warning during configure
16163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16164         assigning string literals to non-const pointer.
16165
16166         getopt-gnu: avoid crash in glibc getopt
16167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16168         * tests/test-getopt.h (test_getopt): Enhance test.
16169         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16170         * doc/posix-functions/getopt.texi (getopt): Document it.
16171         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16172         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16173         Likewise.
16174
16175 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16176
16177         getopt: handle W; without long options in getopt [BZ #12922]
16178         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16179         but no long options are defined, just return 'W'.
16180
16181 2011-07-07  Bruno Haible  <bruno@clisp.org>
16182
16183         Avoid literal tabs.
16184         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16185         variable containing a tab instead of a literal tab.
16186         Reported by Jim Meyering.
16187
16188 2011-07-07  Bruno Haible  <bruno@clisp.org>
16189
16190         Comments.
16191         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16192
16193 2011-07-06  Bruno Haible  <bruno@clisp.org>
16194
16195         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16196         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16197         <winsock2.h>.
16198         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16199         lib/sys_socket.in.h.
16200         (close, gethostname): Hide declarations from <winsock2.h>.
16201         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16202         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16203         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16204         (select): Don't override if gnulib's <sys/select.h> was already
16205         included.
16206         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16207         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16208         setsockopt, shutdown, select): Tweak indentation.
16209
16210 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16211
16212         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16213         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16214         in an application that does not use the sys_select module.
16215
16216 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16217
16218         poll: do not return 0 on timeout=-1
16219         * lib/poll.c: Loop with yield if no events occurred.
16220
16221 2011-07-06  Eric Blake  <eblake@redhat.com>
16222
16223         pthread_sigmask: always replace when not using pthread
16224         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16225         replacement when using some threading other than pthread.  Fix
16226         logic bug.
16227
16228 2011-07-06  Bruno Haible  <bruno@clisp.org>
16229
16230         Comments.
16231         * m4/printf.m4: Update comments about mingw.
16232
16233 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16234
16235         sys_select: define sigset_t more portably
16236         * lib/sys_select.in.h: Always include <sys/types.h>, since
16237         we now need sigset_t and mingw defines it there.
16238         Include <signal.h> before split inclusion guard, to avoid
16239         mishaps on Solaris, whose <signal.h> eventually includes us.
16240         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16241         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16242         which come from ...
16243         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16244         gl_CHECK_TYPE_SIGSET_T.
16245         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16246         does the real work.
16247         * modules/sys_select (Depends-on): Add 'signal'.
16248
16249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16250         Suggested by Bruno Haible.
16251
16252         pselect: Use pthread_sigmask, not sigprocmask.
16253         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16254         multithreaded apps better than sigprocmask does.
16255         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16256         sigprocmask directly.
16257
16258 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16259
16260         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16261         Don't #undef,  since we don't need any underlying pselect.
16262         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16263         (Depends-on): Add select.
16264         (Link): Add $(LIBSOCKET).
16265         These changes suggested by Bruno Haible.
16266
16267         pselect: document better
16268         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16269         * doc/posix-functions/pselect.texi (pselect): Document new module.
16270
16271         pthread_sigmask: new module
16272         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16273         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16274         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16275         This is done only as a macro; I don't know how well that'll
16276         work for C++.  Move <sys/types.h> include before the include_next,
16277         to avoid mishap on Solaris.
16278         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16279         * modules/signal (Makefile.am): Substitute the check's results.
16280         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16281
16282         test-pselect: new module
16283         * modules/pselect-tests, tests/test-pselect.c: New files.
16284         * tests/test-select.c, tests/test-sys_select-c++.cc:
16285         If TEST_PSELECT is defined, test pselect instead of testing select.
16286
16287         * tests/test-sys_select.c (sigset_t): Test for it, too.
16288         Suggested by Bruno Haible.
16289
16290 2011-07-05  Eric Blake  <eblake@redhat.com>
16291
16292         snprintf: guarantee %1$d, for libintl
16293         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16294         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16295         * doc/posix-functions/snprintf.texi (snprintf): Update.
16296         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16297         * tests/test-snprintf.c (main): Enhance test.
16298         * tests/test-vsnprintf.c (main): Likewise.
16299
16300 2011-07-05  Jim Meyering  <meyering@redhat.com>
16301
16302         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16303         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16304         per Bruno's request, to accommodate this idiom (no space after "#")
16305         even when the function is inside an #if block:
16306         char *
16307         gets (char *s)
16308         #undef gets
16309         {
16310           ...
16311         }
16312
16313 2011-07-04  Jim Meyering  <meyering@redhat.com>
16314
16315         maint: indent with spaces, not TABs, and add a rule to check this
16316         * tests/test-userspec.c: Indent with spaces, not TABs.
16317         * tests/test-argp.c: Likewise.
16318         * tests/test-c-stack2.sh: Likewise.
16319         * tests/test-parse-duration.sh: Likewise
16320         * m4/strtod.m4: Likewise.
16321         * m4/alloca.m4: Likewise.
16322         * m4/pselect.m4: Likewise.
16323         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16324
16325 2011-07-03  Jim Meyering  <meyering@redhat.com>
16326
16327         maint.mk: correct omissions in prohibit_argmatch_without_use check
16328         This rule would mistakenly report that argmatch.h is included without
16329         use even when both the argmatch and invalid_arg macro were used.
16330         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16331         of argmatch and invalid_arg.
16332
16333 2011-07-03  Bruno Haible  <bruno@clisp.org>
16334
16335         Comments about EINTR.
16336         * lib/safe-read.h: Explain the purpose of this module.
16337         * lib/safe-write.h: Likewise.
16338         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16339         module.
16340         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16341         module.
16342         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16343
16344 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16345
16346         xnanosleep: Rewrite to use new dtotimespec module.
16347         It has the conversion code that used to be in xnanosleep.
16348         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16349         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16350         (TIME_T_MAX): Remove.
16351         (xnanosleep): Rewrite in terms of dtotimespec.
16352         * modules/xnanosleep (Depends-on): Add dtotimespec.
16353         Remove intprops, stdbool.
16354
16355         timespec-add, timespec-sub: new modules
16356         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16357         * lib/timespec-add.c, lib/timespec-sub.c:
16358         * modules/timespec-add, modules/timespec-sub: New files.
16359
16360         dtotimespec: new module
16361         * lib/timespec.h (dtotimespec): New decl.
16362         * lib/dtotimespec.c, modules/dtotimespec: New files.
16363
16364         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16365
16366         pselect: new module
16367         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16368         (pselect): New decls.
16369         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16370         since the standard pselect decl uses 'restrict'.
16371         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16372         HAVE_PSELECT, REPLACE_PSELECT.
16373         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16374         HAVE_PSELECT, REPLACE_PSELECT.
16375         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16376
16377         sys_select: don't depend on sys_socket
16378         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16380         This fix works on GNU and GNU-like platforms, but has not been tested
16381         on native Windows.
16382         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16383         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16384         gl_HEADER_SYS_SOCKET.
16385         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16386         gl_PREREQ_SYS_H_WINSOCK2.
16387
16388 2011-06-29  Eric Blake  <eblake@redhat.com>
16389
16390         pipe2: fix C89 compile problem
16391         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16392         Reported by Bruno Haible.
16393
16394         pipe, pipe2: don't corrupt fd on error
16395         * lib/pipe.c (pipe): Leave fd unchanged on error.
16396         * lib/pipe2.c (pipe2): Likewise.
16397         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16398         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16399
16400 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16401
16402         mmap-anon: do not use regular expressions inadvertently
16403         * m4/mmap-anon.m4: Remove trailing period from strings sought
16404         in the output.
16405
16406 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16407
16408         nanosleep: fix integer overflow problem
16409         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16410         arithmetic wraps around on overflow.
16411
16412         nanosleep: simplify carrying
16413         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16414         first call to the underyling nanosleep, not for the last one.
16415         This doesn't fix any bugs, but it simplifies the computation of
16416         the remaining delay.  Found while auditing integer overflow issues.
16417
16418         dup2: remove test for existence of fcntl
16419         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16420         "#if HAVE_FCNTL", in the configure-time test program.
16421         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16422         and therefore speeds up "configure" a bit.  Found while
16423         adding the dup2 module to Emacs.
16424
16425 2011-06-24  Eric Blake  <eblake@redhat.com>
16426
16427         maint.mk: enhance useless header checks
16428         * top/maint.mk (_sc_header_without_use): Check both include
16429         styles.
16430         (sc_prohibit_assert_without_use)
16431         (sc_prohibit_close_stream_without_use)
16432         (sc_prohibit_getopt_without_use)
16433         (sc_prohibit_quotearg_without_use)
16434         (sc_prohibit_quote_without_use)
16435         (sc_prohibit_long_options_without_use)
16436         (sc_prohibit_inttostr_without_use)
16437         (sc_prohibit_ignore_value_without_use)
16438         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16439         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16440         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16441         (sc_prohibit_hash_pjw_without_use)
16442         (sc_prohibit_safe_read_without_use)
16443         (sc_prohibit_argmatch_without_use)
16444         (sc_prohibit_canonicalize_without_use)
16445         (sc_prohibit_root_dev_ino_without_use)
16446         (sc_prohibit_openat_without_use)
16447         (sc_prohibit_c_ctype_without_use)
16448         (sc_prohibit_signal_without_use)
16449         (sc_prohibit_stdio--_without_use)
16450         (sc_prohibit_stdio-safer_without_use)
16451         (sc_prohibit_strings_without_use)
16452         (sc_prohibit_intprops_without_use)
16453         (sc_prohibit_stddef_without_use)
16454         (sc_prohibit_xfreopen_without_use): Update clients.
16455
16456 2011-06-24  Jim Meyering  <meyering@redhat.com>
16457
16458         syntax-check: keep one maint.mk rule in sync with its header
16459         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16460         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16461         I prefer to avoid temporary files here, so use <(...), but that
16462         is not supported by /bin/sh, so...
16463         (SHELL): Define to /bin/bash.
16464
16465 2011-06-24  Eric Blake  <eblake@redhat.com>
16466
16467         maint.mk: update sc_prohibit_intprops_without_use
16468         * top/maint.mk (_intprops_names): Match recent changes.
16469
16470 2011-06-24  Bruno Haible  <bruno@clisp.org>
16471
16472         strerror-override: No-op tweak.
16473         * lib/strerror-override.h (strerror_override): Reorder conditions,
16474         for consistency with lib/strerror-override.c.
16475
16476 2011-06-23  Eric Blake  <eblake@redhat.com>
16477
16478         maint.mk: test further PATH_MAX issues
16479         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16480         (sc_prohibit_path_max_allocation): ...and also test alloca.
16481         Suggested by Jim Meyering.
16482
16483 2011-06-22  Eric Blake  <eblake@redhat.com>
16484
16485         maint.mk: add syntax-check to avoid char[PATH_MAX]
16486         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16487
16488         stat: be robust to PATH_MAX definition
16489         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16490         * modules/stat (Depends-on): Add verify.
16491
16492         link: work around IRIX bug
16493         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16494         * lib/link.c (rpl_link): Work around it.
16495         * tests/test-link.h (test_link): Enhance test.
16496         * doc/posix-functions/link.texi (link): Document the bug.
16497
16498         getopt: silence clang warning
16499         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16500         dereference.
16501         Reported by Gustavo Martin Domato.
16502
16503 2011-06-22  Jim Meyering  <meyering@redhat.com>
16504
16505         bootstrap: do not insert a blank line into each .gitignore file
16506         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16507
16508 2011-06-21  Eric Blake  <eblake@redhat.com>
16509
16510         perror: test for output mismatch
16511         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16512         perror on IRIX.
16513
16514         strerror_r: fix OpenBSD behavior on out-of-range
16515         * lib/strerror_r.c (strerror_r): Always use maximal string.
16516         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16517
16518         strerror_r: fix OpenBSD behavior on 0
16519         * lib/strerror-override.c (strerror_override): Also override 0
16520         when needed.
16521         * lib/strerror-override.h (strerror_override): Likewise.
16522         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16523         earlier.
16524         * lib/strerror_r.c (strerror_r): Likewise.
16525         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16526         behavior...
16527         (gl_FUNC_STRERROR_0): ...into new macro.
16528         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16529         is overridden.
16530         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16531         * modules/strerror-override (Files): Add strerror.m4.
16532         (configure.ac): Also provide override for 0 when needed.
16533         * doc/posix-functions/strerror.texi (strerror): Document this.
16534         * doc/posix-functions/perror.texi (perror): Likewise.
16535
16536         perror: adjust array size
16537         * modules/perror (Depends-on): Add strerror-override.
16538         * lib/perror.c (perror): Use it to avoid magic number.
16539
16540         strerror-override: reduce size
16541         * lib/strerror-override.c (strerror_override): Use fewer lines.
16542
16543 2011-06-20  Bruno Haible  <bruno@clisp.org>
16544
16545         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16546         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16547
16548 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16549
16550         alloca: port to compilers that can optimize like GCC 4.6.0
16551         * lib/alloca.c (find_stack_direction): New signature, taken from
16552         Autoconf git.  This works with GCC 4.6.0.  This code should never
16553         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16554         be used with other compilers that optimize as well as GCC 4.6.0 does.
16555         (alloca): Adjust to new signature.
16556         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16557         New macro, which patches Autoconf in a similar way.
16558
16559         c-stack: stop worrying about stack direction
16560         * lib/c-stack.c (find_stack_direction): Remove.
16561         (segv_handler): Don't worry about stack direction growth, as it's
16562         too much of a pain to configure this correctly, given how compilers
16563         are optimizing-away our stack-growth detection code.  Instead, assume
16564         that any access to just before or just after the stack is OK.
16565         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16566         Don't require AC_FUNC_ALLOCA; no longer needed.
16567
16568 2011-06-20  Eric Blake  <eblake@redhat.com>
16569
16570         test-stat: don't allocate PATH_MAX bytes
16571         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16572         PATH_MAX-sized buffer.
16573         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16574         * modules/stat-tests (Depends-on): Likewise.
16575         * tests/test-fstatat.c (includes): Drop pathmax.h.
16576         * tests/test-stat.c (includes): Likewise.
16577         Reported by Bruno Haible.
16578
16579 2011-06-20  Bruno Haible  <bruno@clisp.org>
16580
16581         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16582         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16583         * lib/float.c: New file.
16584         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16585         REPLACE_FLOAT_LDBL.
16586         * modules/float (Files): Add lib/float.c.
16587         (configure.ac): Invoke AC_LIBOBJ.
16588         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16589
16590 2011-06-20  Bruno Haible  <bruno@clisp.org>
16591
16592         Tests for module 'float'.
16593         * modules/float-tests: New file.
16594         * tests/test-float.c: New file.
16595
16596 2011-06-19  Bruno Haible  <bruno@clisp.org>
16597
16598         isinf: Coding style.
16599         * lib/isinf.c: Use GNU coding style.
16600
16601 2011-06-19  Bruno Haible  <bruno@clisp.org>
16602
16603         linkat test: Avoid test failure on AIX 7.1.
16604         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16605         * tests/test-link.h (test_link): Likewise.
16606
16607 2011-06-19  Bruno Haible  <bruno@clisp.org>
16608
16609         pread test: Avoid test failure on OpenBSD 4.9.
16610         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16611
16612 2011-06-19  Bruno Haible  <bruno@clisp.org>
16613
16614         sprintf-posix: Fix test failure on AIX 7.1.
16615         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16616         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16617         on AIX.
16618         * doc/posix-functions/fprintf.texi: Likewise.
16619         * doc/posix-functions/printf.texi: Likewise.
16620         * doc/posix-functions/snprintf.texi: Likewise.
16621         * doc/posix-functions/sprintf.texi: Likewise.
16622         * doc/posix-functions/vdprintf.texi: Likewise.
16623         * doc/posix-functions/vfprintf.texi: Likewise.
16624         * doc/posix-functions/vprintf.texi: Likewise.
16625         * doc/posix-functions/vsnprintf.texi: Likewise.
16626         * doc/posix-functions/vsprintf.texi: Likewise.
16627
16628 2011-06-19  Bruno Haible  <bruno@clisp.org>
16629
16630         roundl-ieee: Fix test failure on AIX 7.1.
16631         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16632         * doc/posix-functions/roundl.texi: Mention problem with negative
16633         arguments.
16634
16635 2011-06-19  Bruno Haible  <bruno@clisp.org>
16636
16637         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16638         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16639         * doc/posix-functions/round.texi: Mention problem with negative
16640         arguments.
16641         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16642
16643 2011-06-19  Bruno Haible  <bruno@clisp.org>
16644
16645         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16646         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16647         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16648         * doc/posix-functions/roundf.texi: Mention problem with negative
16649         arguments.
16650         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16651
16652 2011-06-19  Bruno Haible  <bruno@clisp.org>
16653
16654         ceilf-ieee: Work around bug on MacOS X 10.5.
16655         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16656
16657         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16658         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16659         IEEE compliant, avoid compiler optimizations.
16660         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16661         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16662         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16663         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16664         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16665         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16666         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16667         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16668         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16669         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16670
16671 2011-06-19  Bruno Haible  <bruno@clisp.org>
16672
16673         ceilf-ieee: Work around bug on AIX 7.1.
16674         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16675         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16676
16677 2011-06-19  Bruno Haible  <bruno@clisp.org>
16678
16679         ceil-ieee: Work around bug on AIX 7.1.
16680         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16681         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16682
16683 2011-06-18  Bruno Haible  <bruno@clisp.org>
16684
16685         fsync test: Avoid test failure on MacOS X and AIX.
16686         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16687         EINVAL.
16688
16689 2011-06-18  Bruno Haible  <bruno@clisp.org>
16690
16691         openat, fdopendir tests: Fix link errors.
16692         * modules/openat-tests (Depends-on): Add progname.
16693         * modules/fdopendir-tests (Depends-on): Likewise.
16694         * tests/test-fchownat.c: Include progname.h.
16695         (main): Call set_program_name.
16696         * tests/test-fstatat.c: Include progname.h.
16697         (main): Call set_program_name.
16698         * tests/test-mkdirat.c: Include progname.h.
16699         (main): Call set_program_name.
16700         * tests/test-openat.c: Include progname.h.
16701         (main): Call set_program_name.
16702         * tests/test-unlinkat.c: Include progname.h.
16703         (main): Call set_program_name.
16704         * tests/test-fdopendir.c: Include progname.h.
16705         (main): Call set_program_name.
16706
16707 2011-06-18  Bruno Haible  <bruno@clisp.org>
16708
16709         Doc update.
16710         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16711         HP-UX.
16712         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16713
16714 2011-06-18  Bruno Haible  <bruno@clisp.org>
16715
16716         getcwd tests: Avoid compilation error on HP-UX 11.31.
16717         * modules/getcwd-tests (Depends-on): Add pathmax.
16718         * tests/test-getcwd.c: Include pathmax.h.
16719
16720 2011-06-18  Bruno Haible  <bruno@clisp.org>
16721
16722         isfinite, isinf: Fix link error on AIX 6 and 7.
16723         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16724         needed, also test the macro with a 'float' argument.
16725         * m4/isinf.m4 (gl_ISINF): Likewise.
16726
16727 2011-06-18  Bruno Haible  <bruno@clisp.org>
16728
16729         getloadavg: Don't clobber LIBS. Regression from previous commit.
16730         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16731         AC_CHECK_LIB from here...
16732         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16733         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16734         gl_func_getloadavg_done.
16735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16736
16737 2011-06-18  Bruno Haible  <bruno@clisp.org>
16738
16739         clean-temp: Improve documentation.
16740         * lib/clean-temp.h: Explain better how to use this module.
16741         Reported by John Darrington <john@darrington.wattle.id.au>.
16742
16743 2011-06-17  Bruno Haible  <bruno@clisp.org>
16744
16745         pread, pwrite: Avoid cc warning on AIX.
16746         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16747         (pwrite): Likewise.
16748
16749 2011-06-17  Bruno Haible  <bruno@clisp.org>
16750
16751         spawn-pipe tests: Fix link error.
16752         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16754
16755 2011-06-17  Bruno Haible  <bruno@clisp.org>
16756
16757         Tests: Remove unnecessary dependency.
16758         * modules/canonicalize-tests (Depends-on): Remove progname.
16759         * modules/chown-tests (Depends-on): Likewise.
16760         * modules/dirname-tests (Depends-on): Likewise.
16761         * modules/fdopendir-tests (Depends-on): Likewise.
16762         * modules/fdutimensat-tests (Depends-on): Likewise.
16763         * modules/hash-tests (Depends-on): Likewise.
16764         * modules/lchown-tests (Depends-on): Likewise.
16765         * modules/linkat-tests (Depends-on): Likewise.
16766         * modules/renameat-tests (Depends-on): Likewise.
16767         * modules/spawn-pipe-tests (Depends-on): Likewise.
16768         * modules/utimensat-tests (Depends-on): Likewise.
16769
16770 2011-06-17  Bruno Haible  <bruno@clisp.org>
16771
16772         spawn-pipe tests: Fix link error.
16773         * tests/test-spawn-pipe-child.c: Undefine fflush.
16774
16775 2011-06-17  Bruno Haible  <bruno@clisp.org>
16776
16777         Fix tests link errors.
16778         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16779         * modules/chown-tests (Makefile.am): Don't link test-chown with
16780         LIBINTL.
16781         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16782         LIBINTL.
16783         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16784         LIBINTL.
16785         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16786         LIBINTL.
16787
16788 2011-06-16  Bruno Haible  <bruno@clisp.org>
16789
16790         crypto/gc-sha1: Fix recent regression.
16791         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16792         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16793
16794         crypto/gc-md5: Fix recent regression.
16795         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16796
16797         crypto/gc-md4: Fix recent regression.
16798         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16799         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16800
16801         crypto/gc-arctwo: Fix recent regression.
16802         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16803         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16804
16805         crypto/gc-rijndael: Fix recent regression.
16806         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16807         (configure.ac): Invoke AC_LIBOBJ here.
16808         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16810
16811         crypto/gc-hmac-sha1: Fix recent regression.
16812         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16813         (configure.ac): Invoke AC_LIBOBJ here.
16814         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16816
16817         crypto/gc-hmac-md5: Fix recent regression.
16818         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16819         (configure.ac): Invoke AC_LIBOBJ here.
16820         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16821         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16822
16823         crypto/gc-des: Fix recent regression.
16824         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16825         (configure.ac): Invoke AC_LIBOBJ here.
16826         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16827         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16828
16829         crypto/gc-arcfour: Fix recent regression.
16830         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16831         (configure.ac): Invoke AC_LIBOBJ here.
16832         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16833         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16834
16835 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16836
16837         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16838         After the 2011-05-21 change, this macro requires
16839         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16840         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16841
16842 2011-06-16  Bruno Haible  <bruno@clisp.org>
16843
16844         fprintftime: Move AC_LIBOBJ invocations to module description.
16845         * m4/fprintftime.m4: Remove file.
16846         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16847         (configure.ac): Remove gl_FPRINTFTIME call.
16848         (Makefile.am): Augment lib_SOURCES.
16849         Reported by Jim Meyering.
16850
16851 2011-06-16  Bruno Haible  <bruno@clisp.org>
16852
16853         tmpfile-safer: Finish 2011-05-23 commit.
16854         * m4/stdio-safer.m4: Really remove file.
16855         Reported by Jim Meyering.
16856
16857 2011-06-16  Bruno Haible  <bruno@clisp.org>
16858
16859         syntax-check: Fix typo.
16860         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16861         printf-posix.m4.
16862         Reported by Jim Meyering.
16863
16864 2011-06-13  Jim Meyering  <meyering@redhat.com>
16865
16866         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16867         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16868
16869 2011-05-23  Bruno Haible  <bruno@clisp.org>
16870
16871         yesno: Move AC_LIBOBJ invocations to module description.
16872         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16873         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16874
16875 2011-05-23  Bruno Haible  <bruno@clisp.org>
16876
16877         xstrtol: Move AC_LIBOBJ invocations to module description.
16878         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16879         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16880
16881 2011-05-23  Bruno Haible  <bruno@clisp.org>
16882
16883         xstrtold: Move AC_LIBOBJ invocations to module description.
16884         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16885         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16886
16887 2011-05-23  Bruno Haible  <bruno@clisp.org>
16888
16889         xstrtod: Move AC_LIBOBJ invocations to module description.
16890         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16891         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16892
16893 2011-05-23  Bruno Haible  <bruno@clisp.org>
16894
16895         xnanosleep: Move AC_LIBOBJ invocations to module description.
16896         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16897         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16898
16899 2011-05-23  Bruno Haible  <bruno@clisp.org>
16900
16901         xgetcwd: Move AC_LIBOBJ invocations to module description.
16902         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16903         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16904
16905 2011-05-23  Bruno Haible  <bruno@clisp.org>
16906
16907         xalloc: Move AC_LIBOBJ invocations to module description.
16908         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16909         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16910
16911 2011-05-23  Bruno Haible  <bruno@clisp.org>
16912
16913         write-any-file: Move AC_LIBOBJ invocations to module description.
16914         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16915         invocation.
16916         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16917
16918 2011-05-23  Bruno Haible  <bruno@clisp.org>
16919
16920         utimens: Move AC_LIBOBJ invocations to module description.
16921         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16922         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16923
16924 2011-05-23  Bruno Haible  <bruno@clisp.org>
16925
16926         utimecmp: Move AC_LIBOBJ invocations to module description.
16927         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16928         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16929
16930 2011-05-23  Bruno Haible  <bruno@clisp.org>
16931
16932         userspec: Move AC_LIBOBJ invocations to module description.
16933         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16934         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16935
16936 2011-05-23  Bruno Haible  <bruno@clisp.org>
16937
16938         unlinkdir: Move AC_LIBOBJ invocations to module description.
16939         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16940         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16941
16942 2011-05-23  Bruno Haible  <bruno@clisp.org>
16943
16944         unistd-safer: Move AC_LIBOBJ invocations to module description.
16945         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16946         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16947
16948 2011-05-23  Bruno Haible  <bruno@clisp.org>
16949
16950         tempname: Move AC_LIBOBJ invocations to module description.
16951         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16952         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16953
16954 2011-05-23  Bruno Haible  <bruno@clisp.org>
16955
16956         strftime: Move AC_LIBOBJ invocations to module description.
16957         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16958         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16959
16960 2011-05-23  Bruno Haible  <bruno@clisp.org>
16961
16962         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16963         * m4/stdlib-safer.m4: Remove file.
16964         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16965         (configure.ac): Remove gl_STDLIB_SAFER call.
16966         (Makefile.am): Augment lib_SOURCES.
16967
16968 2011-05-23  Bruno Haible  <bruno@clisp.org>
16969
16970         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16971         * m4/stdio-safer.m4: Remove file.
16972         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16973         (configure.ac): Remove gl_TMPFILE_SAFER call.
16974         (Makefile.am): Augment lib_SOURCES.
16975
16976 2011-05-23  Bruno Haible  <bruno@clisp.org>
16977
16978         popen-safer: Move AC_LIBOBJ invocations to module description.
16979         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16980         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16981         (configure.ac): Remove gl_POPEN_SAFER call.
16982         (Makefile.am): Augment lib_SOURCES.
16983
16984 2011-05-23  Bruno Haible  <bruno@clisp.org>
16985
16986         freopen-safer: Move AC_LIBOBJ invocations to module description.
16987         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16988         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16989         (configure.ac): Remove gl_FREOPEN_SAFER call.
16990         (Makefile.am): Augment lib_SOURCES.
16991
16992 2011-05-23  Bruno Haible  <bruno@clisp.org>
16993
16994         fopen-safer: Move AC_LIBOBJ invocations to module description.
16995         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16996         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16997         (configure.ac): Remove gl_FOPEN_SAFER call.
16998         (Makefile.am): Augment lib_SOURCES.
16999
17000 2011-05-23  Bruno Haible  <bruno@clisp.org>
17001
17002         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17003         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17004         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17005
17006 2011-05-23  Bruno Haible  <bruno@clisp.org>
17007
17008         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17009         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17010         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17011
17012 2011-05-23  Bruno Haible  <bruno@clisp.org>
17013
17014         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17015         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17016         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17017
17018 2011-05-23  Bruno Haible  <bruno@clisp.org>
17019
17020         settime: Move AC_LIBOBJ invocations to module description.
17021         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17022         * modules/settime (Makefile.am): Augment lib_SOURCES.
17023
17024 2011-05-23  Bruno Haible  <bruno@clisp.org>
17025
17026         savedir: Move AC_LIBOBJ invocations to module description.
17027         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17028         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17029
17030 2011-05-23  Bruno Haible  <bruno@clisp.org>
17031
17032         save-cwd: Move AC_LIBOBJ invocations to module description.
17033         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17034         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17035
17036 2011-05-23  Bruno Haible  <bruno@clisp.org>
17037
17038         same: Move AC_LIBOBJ invocations to module description.
17039         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17040         * modules/same (Makefile.am): Augment lib_SOURCES.
17041
17042 2011-05-23  Bruno Haible  <bruno@clisp.org>
17043
17044         safe-write: Move AC_LIBOBJ invocations to module description.
17045         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17046         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17047         instead of gl_SAFE_WRITE.
17048         (Makefile.am): Augment lib_SOURCES.
17049
17050 2011-05-23  Bruno Haible  <bruno@clisp.org>
17051
17052         safe-read: Move AC_LIBOBJ invocations to module description.
17053         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17054         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17055         of gl_SAFE_READ.
17056         (Makefile.am): Augment lib_SOURCES.
17057
17058 2011-05-23  Bruno Haible  <bruno@clisp.org>
17059
17060         safe-alloc: Move AC_LIBOBJ invocations to module description.
17061         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17062         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17063
17064 2011-05-23  Bruno Haible  <bruno@clisp.org>
17065
17066         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17067         * m4/rijndael.m4: Remove file.
17068         * modules/crypto/rijndael (Files): Remove it.
17069         (configure.ac): Remove gl_RIJNDAEL call.
17070         (Makefile.am): Augment lib_SOURCES.
17071
17072 2011-05-23  Bruno Haible  <bruno@clisp.org>
17073
17074         readtokens: Move AC_LIBOBJ invocations to module description.
17075         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17076         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17077
17078 2011-05-23  Bruno Haible  <bruno@clisp.org>
17079
17080         read-file: Move AC_LIBOBJ invocations to module description.
17081         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17082         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17083         of gl_FUNC_READ_FILE.
17084         (Makefile.am): Augment lib_SOURCES.
17085
17086 2011-05-23  Bruno Haible  <bruno@clisp.org>
17087
17088         quotearg: Move AC_LIBOBJ invocations to module description.
17089         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17090         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17091
17092 2011-05-23  Bruno Haible  <bruno@clisp.org>
17093
17094         quote: Move AC_LIBOBJ invocations to module description.
17095         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17096         * modules/quote (Makefile.am): Augment lib_SOURCES.
17097
17098 2011-05-23  Bruno Haible  <bruno@clisp.org>
17099
17100         posixver: Move AC_LIBOBJ invocations to module description.
17101         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17102         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17103
17104 2011-05-23  Bruno Haible  <bruno@clisp.org>
17105
17106         posixtm: Move AC_LIBOBJ invocations to module description.
17107         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17108         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17109
17110 2011-05-23  Bruno Haible  <bruno@clisp.org>
17111
17112         physmem: Move AC_LIBOBJ invocations to module description.
17113         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17114         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17115
17116 2011-05-23  Bruno Haible  <bruno@clisp.org>
17117
17118         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17119         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17120         invocation.
17121         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17122
17123 2011-05-23  Bruno Haible  <bruno@clisp.org>
17124
17125         mpsort: Move AC_LIBOBJ invocations to module description.
17126         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17127         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17128
17129 2011-05-23  Bruno Haible  <bruno@clisp.org>
17130
17131         modechange: Move AC_LIBOBJ invocations to module description.
17132         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17133         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17134
17135 2011-05-23  Bruno Haible  <bruno@clisp.org>
17136
17137         mkdir-p: Move AC_LIBOBJ invocations to module description.
17138         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17139         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17140
17141 2011-05-23  Bruno Haible  <bruno@clisp.org>
17142
17143         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17144         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17145         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17146
17147 2011-05-23  Bruno Haible  <bruno@clisp.org>
17148
17149         mgetgroups: Move AC_LIBOBJ invocations to module description.
17150         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17151         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17152
17153 2011-05-23  Bruno Haible  <bruno@clisp.org>
17154
17155         memxor: Move AC_LIBOBJ invocations to module description.
17156         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17157         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17158
17159 2011-05-23  Bruno Haible  <bruno@clisp.org>
17160
17161         memcoll: Move AC_LIBOBJ invocations to module description.
17162         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17163         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17164
17165 2011-05-23  Bruno Haible  <bruno@clisp.org>
17166
17167         memcasecmp: Move AC_LIBOBJ invocations to module description.
17168         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17169         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17170
17171 2011-05-23  Bruno Haible  <bruno@clisp.org>
17172
17173         crypto/md5: Move AC_LIBOBJ invocations to module description.
17174         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17175         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17176
17177 2011-05-23  Bruno Haible  <bruno@clisp.org>
17178
17179         crypto/md4: Move AC_LIBOBJ invocations to module description.
17180         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17181         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17182
17183 2011-05-23  Bruno Haible  <bruno@clisp.org>
17184
17185         crypto/md2: Move AC_LIBOBJ invocations to module description.
17186         * m4/md2.m4: Remove file.
17187         * modules/crypto/md2 (Files): Remove it.
17188         (configure.ac): Remove gl_MD2 call.
17189         (Makefile.am): Augment lib_SOURCES.
17190
17191 2011-05-23  Bruno Haible  <bruno@clisp.org>
17192
17193         long-options: Move AC_LIBOBJ invocations to module description.
17194         * m4/long-options.m4: Remove file.
17195         * modules/long-options (Files): Remove it.
17196         (configure.ac): Remove gl_LONG_OPTIONS call.
17197         (Makefile.am): Augment lib_SOURCES.
17198
17199 2011-05-23  Bruno Haible  <bruno@clisp.org>
17200
17201         i-ring: Move AC_LIBOBJ invocations to module description.
17202         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17203         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17204
17205 2011-05-23  Bruno Haible  <bruno@clisp.org>
17206
17207         idcache: Move AC_LIBOBJ invocations to module description.
17208         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17209         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17210
17211 2011-05-23  Bruno Haible  <bruno@clisp.org>
17212
17213         human: Move AC_LIBOBJ invocations to module description.
17214         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17215         * modules/human (Makefile.am): Augment lib_SOURCES.
17216
17217 2011-05-23  Bruno Haible  <bruno@clisp.org>
17218
17219         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17220         * m4/hmac-sha1.m4: Remove file.
17221         * modules/crypto/hmac-sha1 (Files): Remove it.
17222         (configure.ac): Remove gl_HMAC_SHA1 call.
17223         (Makefile.am): Augment lib_SOURCES.
17224
17225 2011-05-23  Bruno Haible  <bruno@clisp.org>
17226
17227         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17228         * m4/hmac-md5.m4: Remove file.
17229         * modules/crypto/hmac-md5 (Files): Remove it.
17230         (configure.ac): Remove gl_HMAC_MD5 call.
17231         (Makefile.am): Augment lib_SOURCES.
17232
17233 2011-05-23  Bruno Haible  <bruno@clisp.org>
17234
17235         hash: Move AC_LIBOBJ invocations to module description.
17236         * m4/hash.m4: Remove file.
17237         * modules/hash (Files): Remove it.
17238         (configure.ac): Remove gl_HASH call.
17239         (Makefile.am): Augment lib_SOURCES.
17240
17241 2011-05-23  Bruno Haible  <bruno@clisp.org>
17242
17243         hard-locale: Move AC_LIBOBJ invocations to module description.
17244         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17245         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17246
17247 2011-05-23  Bruno Haible  <bruno@clisp.org>
17248
17249         getugroups: Move AC_LIBOBJ invocations to module description.
17250         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17251         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17252
17253 2011-05-23  Bruno Haible  <bruno@clisp.org>
17254
17255         gettime: Move AC_LIBOBJ invocations to module description.
17256         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17257         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17258
17259 2011-05-23  Bruno Haible  <bruno@clisp.org>
17260
17261         getndelim2: Move AC_LIBOBJ invocations to module description.
17262         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17263         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17264
17265 2011-05-23  Bruno Haible  <bruno@clisp.org>
17266
17267         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17268         * m4/gc-pbkdf2-sha1.m4: Remove file.
17269         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17270         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17271         (Makefile.am): Augment lib_SOURCES.
17272
17273 2011-05-23  Bruno Haible  <bruno@clisp.org>
17274
17275         fts: Move AC_LIBOBJ invocations to module description.
17276         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17277         * modules/fts (configure.ac): ... to here.
17278
17279 2011-05-23  Bruno Haible  <bruno@clisp.org>
17280
17281         file-type: Move AC_LIBOBJ invocations to module description.
17282         * m4/file-type.m4: Remove file.
17283         * modules/file-type (Files): Remove it.
17284         (configure.ac): Remove gl_FILE_TYPE call.
17285         (Makefile.am): Augment lib_SOURCES.
17286
17287 2011-05-23  Bruno Haible  <bruno@clisp.org>
17288
17289         filenamecat*: Respect rules for use of AC_LIBOBJ.
17290         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17291         Remove AC_LIBOBJ invocation.
17292         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17293         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17294
17295 2011-05-23  Bruno Haible  <bruno@clisp.org>
17296
17297         filemode: Move AC_LIBOBJ invocations to module description.
17298         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17299         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17300
17301 2011-05-23  Bruno Haible  <bruno@clisp.org>
17302
17303         openat-safer: Move AC_LIBOBJ invocations to module description.
17304         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17305         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17306
17307 2011-05-23  Bruno Haible  <bruno@clisp.org>
17308
17309         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17310         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17311         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17312
17313 2011-05-23  Bruno Haible  <bruno@clisp.org>
17314
17315         exclude: Move AC_LIBOBJ invocations to module description.
17316         * m4/exclude.m4: Remove file.
17317         * modules/exclude (Files): Remove it.
17318         (configure.ac): Remove gl_EXCLUDE call.
17319         (Makefile.am): Augment lib_SOURCES.
17320
17321 2011-05-23  Bruno Haible  <bruno@clisp.org>
17322
17323         dirname*: Respect rules for use of AC_LIBOBJ.
17324         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17325         invocations.
17326         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17327         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17328
17329 2011-05-23  Bruno Haible  <bruno@clisp.org>
17330
17331         dirent-safer: Move AC_LIBOBJ invocations to module description.
17332         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17333         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17334
17335 2011-05-23  Bruno Haible  <bruno@clisp.org>
17336
17337         crypto/des: Move AC_LIBOBJ invocations to module description.
17338         * m4/des.m4: Remove file.
17339         * modules/crypto/des (Files): Remove it.
17340         (configure.ac): Remove gl_DES call.
17341         (Makefile.am): Augment lib_SOURCES.
17342
17343 2011-05-23  Bruno Haible  <bruno@clisp.org>
17344
17345         cycle-check: Move AC_LIBOBJ invocations to module description.
17346         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17347         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17348
17349 2011-05-23  Bruno Haible  <bruno@clisp.org>
17350
17351         c-strtold: Move AC_LIBOBJ invocations to module description.
17352         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17353         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17354
17355 2011-05-23  Bruno Haible  <bruno@clisp.org>
17356
17357         c-strtod: Move AC_LIBOBJ invocations to module description.
17358         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17359         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17360
17361 2011-05-23  Bruno Haible  <bruno@clisp.org>
17362
17363         crc: Move AC_LIBOBJ invocations to module description.
17364         * m4/crc.m4: Remove file.
17365         * modules/crc (Files): Remove it.
17366         (configure.ac): Remove gl_CRC call.
17367         (Makefile.am): Augment lib_SOURCES.
17368
17369 2011-05-23  Bruno Haible  <bruno@clisp.org>
17370
17371         close-stream: Move AC_LIBOBJ invocations to module description.
17372         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17373         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17374
17375 2011-05-23  Bruno Haible  <bruno@clisp.org>
17376
17377         closeout: Move AC_LIBOBJ invocations to module description.
17378         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17379         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17380
17381 2011-05-23  Bruno Haible  <bruno@clisp.org>
17382
17383         closein: Move AC_LIBOBJ invocations to module description.
17384         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17385         * modules/closein (Makefile.am): Augment lib_SOURCES.
17386
17387 2011-05-23  Bruno Haible  <bruno@clisp.org>
17388
17389         cloexec: Move AC_LIBOBJ invocations to module description.
17390         * m4/cloexec.m4: Remove file.
17391         * modules/cloexec (Files): Remove it.
17392         (configure.ac): Remove gl_CLOEXEC call.
17393         (Makefile.am): Augment lib_SOURCES.
17394
17395 2011-05-23  Bruno Haible  <bruno@clisp.org>
17396
17397         check-version: Move AC_LIBOBJ invocations to module description.
17398         * m4/check-version.m4: Remove file.
17399         * modules/check-version (Files): Remove it.
17400         (configure.ac): Remove gl_CHECK_VERSION call.
17401         (Makefile.am): Augment lib_SOURCES.
17402
17403 2011-05-23  Bruno Haible  <bruno@clisp.org>
17404
17405         chdir-safer: Move AC_LIBOBJ invocations to module description.
17406         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17407         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17408
17409 2011-05-23  Bruno Haible  <bruno@clisp.org>
17410
17411         canonicalize: Move AC_LIBOBJ invocations to module description.
17412         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17413         AC_LIBOBJ invocation.
17414         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17415
17416 2011-05-23  Bruno Haible  <bruno@clisp.org>
17417
17418         canon-host: Move AC_LIBOBJ invocations to module description.
17419         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17420         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17421         instead of gl_CANON_HOST.
17422         (Makefile.am): Augment lib_SOURCES.
17423
17424 2011-05-23  Bruno Haible  <bruno@clisp.org>
17425
17426         backupfile: Move AC_LIBOBJ invocations to module description.
17427         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17428         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17429
17430 2011-05-23  Bruno Haible  <bruno@clisp.org>
17431
17432         argmatch: Move AC_LIBOBJ invocations to module description.
17433         * m4/argmatch.m4: Remove file.
17434         * modules/argmatch (Files): Remove it.
17435         (configure.ac): Remove gl_ARGMATCH call.
17436         (Makefile.am): Augment lib_SOURCES.
17437
17438 2011-05-23  Bruno Haible  <bruno@clisp.org>
17439
17440         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17441         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17442         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17443
17444 2011-05-23  Bruno Haible  <bruno@clisp.org>
17445
17446         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17447         * m4/arcfour.m4: Remove file.
17448         * modules/crypto/arcfour (Files): Remove it.
17449         (configure.ac): Remove gl_ARCFOUR call.
17450         (Makefile.am): Augment lib_SOURCES.
17451
17452 2011-05-22  Bruno Haible  <bruno@clisp.org>
17453
17454         write: Move AC_LIBOBJ invocations to module description.
17455         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17456         * modules/write (configure.ac): ... to here.
17457
17458 2011-05-22  Bruno Haible  <bruno@clisp.org>
17459
17460         wmemset: Move AC_LIBOBJ invocations to module description.
17461         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17462         here...
17463         * modules/wmemset (configure.ac): ... to here.
17464
17465 2011-05-22  Bruno Haible  <bruno@clisp.org>
17466
17467         wmemmove: Move AC_LIBOBJ invocations to module description.
17468         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17469         here...
17470         * modules/wmemmove (configure.ac): ... to here.
17471
17472 2011-05-22  Bruno Haible  <bruno@clisp.org>
17473
17474         wmemcpy: Move AC_LIBOBJ invocations to module description.
17475         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17476         here...
17477         * modules/wmemcpy (configure.ac): ... to here.
17478
17479 2011-05-22  Bruno Haible  <bruno@clisp.org>
17480
17481         wmemcmp: Move AC_LIBOBJ invocations to module description.
17482         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17483         here...
17484         * modules/wmemcmp (configure.ac): ... to here.
17485
17486 2011-05-22  Bruno Haible  <bruno@clisp.org>
17487
17488         wmemchr: Move AC_LIBOBJ invocations to module description.
17489         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17490         here...
17491         * modules/wmemchr (configure.ac): ... to here.
17492
17493 2011-05-22  Bruno Haible  <bruno@clisp.org>
17494
17495         wcswidth: Move AC_LIBOBJ invocations to module description.
17496         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17497         here...
17498         * modules/wcswidth (configure.ac): ... to here.
17499
17500 2011-05-22  Bruno Haible  <bruno@clisp.org>
17501
17502         wcwidth: Respect rules for use of AC_LIBOBJ.
17503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17504         invocation from here...
17505         * modules/wcwidth (configure.ac): ... to here.
17506         (Depends-on): Update conditions.
17507
17508 2011-05-22  Bruno Haible  <bruno@clisp.org>
17509
17510         wctype: Move AC_LIBOBJ invocations to module description.
17511         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17512         invocation from here...
17513         * modules/wctype (configure.ac): ... to here.
17514         (Depends-on): Update conditions.
17515
17516 2011-05-22  Bruno Haible  <bruno@clisp.org>
17517
17518         wctrans: Move AC_LIBOBJ invocations to module description.
17519         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17520         invocation from here...
17521         * modules/wctrans (configure.ac): ... to here.
17522
17523 2011-05-22  Bruno Haible  <bruno@clisp.org>
17524
17525         wctomb: Move AC_LIBOBJ invocations to module description.
17526         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17527         invocations from here...
17528         * modules/wctomb (configure.ac): ... to here.
17529
17530 2011-05-22  Bruno Haible  <bruno@clisp.org>
17531
17532         wctob: Move AC_LIBOBJ invocations to module description.
17533         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17534         gl_PREREQ_WCTOB invocations from here...
17535         * modules/wctob (configure.ac): ... to here.
17536         (Depends-on): Update conditions.
17537
17538 2011-05-22  Bruno Haible  <bruno@clisp.org>
17539
17540         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17541         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17542         here...
17543         * modules/wcsxfrm (configure.ac): ... to here.
17544
17545 2011-05-22  Bruno Haible  <bruno@clisp.org>
17546
17547         wcstok: Move AC_LIBOBJ invocations to module description.
17548         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17549         * modules/wcstok (configure.ac): ... to here.
17550
17551 2011-05-22  Bruno Haible  <bruno@clisp.org>
17552
17553         wcsstr: Move AC_LIBOBJ invocations to module description.
17554         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17555         * modules/wcsstr (configure.ac): ... to here.
17556
17557 2011-05-22  Bruno Haible  <bruno@clisp.org>
17558
17559         wcsspn: Move AC_LIBOBJ invocations to module description.
17560         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17561         * modules/wcsspn (configure.ac): ... to here.
17562
17563 2011-05-22  Bruno Haible  <bruno@clisp.org>
17564
17565         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17566         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17567         gl_PREREQ_WCSRTOMBS invocations from here...
17568         * modules/wcsrtombs (configure.ac): ... to here.
17569
17570 2011-05-22  Bruno Haible  <bruno@clisp.org>
17571
17572         wcsrchr: Move AC_LIBOBJ invocations to module description.
17573         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17574         here...
17575         * modules/wcsrchr (configure.ac): ... to here.
17576
17577 2011-05-22  Bruno Haible  <bruno@clisp.org>
17578
17579         wcspbrk: Move AC_LIBOBJ invocations to module description.
17580         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17581         here...
17582         * modules/wcspbrk (configure.ac): ... to here.
17583
17584 2011-05-22  Bruno Haible  <bruno@clisp.org>
17585
17586         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17587         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17588         gl_PREREQ_WCSNRTOMBS invocations from here...
17589         * modules/wcsnrtombs (configure.ac): ... to here.
17590
17591 2011-05-22  Bruno Haible  <bruno@clisp.org>
17592
17593         wcsnlen: Move AC_LIBOBJ invocations to module description.
17594         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17595         here...
17596         * modules/wcsnlen (configure.ac): ... to here.
17597
17598 2011-05-22  Bruno Haible  <bruno@clisp.org>
17599
17600         wcsncpy: Move AC_LIBOBJ invocations to module description.
17601         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17602         here...
17603         * modules/wcsncpy (configure.ac): ... to here.
17604
17605 2011-05-22  Bruno Haible  <bruno@clisp.org>
17606
17607         wcsncmp: Move AC_LIBOBJ invocations to module description.
17608         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17609         here...
17610         * modules/wcsncmp (configure.ac): ... to here.
17611
17612 2011-05-22  Bruno Haible  <bruno@clisp.org>
17613
17614         wcsncat: Move AC_LIBOBJ invocations to module description.
17615         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17616         here...
17617         * modules/wcsncat (configure.ac): ... to here.
17618
17619 2011-05-22  Bruno Haible  <bruno@clisp.org>
17620
17621         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17622         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17623         from here...
17624         * modules/wcsncasecmp (configure.ac): ... to here.
17625
17626 2011-05-22  Bruno Haible  <bruno@clisp.org>
17627
17628         wcslen: Move AC_LIBOBJ invocations to module description.
17629         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17630         * modules/wcslen (configure.ac): ... to here.
17631
17632 2011-05-22  Bruno Haible  <bruno@clisp.org>
17633
17634         wcsdup: Move AC_LIBOBJ invocations to module description.
17635         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17636         * modules/wcsdup (configure.ac): ... to here.
17637
17638 2011-05-22  Bruno Haible  <bruno@clisp.org>
17639
17640         wcscspn: Move AC_LIBOBJ invocations to module description.
17641         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17642         here...
17643         * modules/wcscspn (configure.ac): ... to here.
17644
17645 2011-05-22  Bruno Haible  <bruno@clisp.org>
17646
17647         wcscpy: Move AC_LIBOBJ invocations to module description.
17648         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17649         * modules/wcscpy (configure.ac): ... to here.
17650
17651 2011-05-22  Bruno Haible  <bruno@clisp.org>
17652
17653         wcscoll: Move AC_LIBOBJ invocations to module description.
17654         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17655         here...
17656         * modules/wcscoll (configure.ac): ... to here.
17657
17658 2011-05-22  Bruno Haible  <bruno@clisp.org>
17659
17660         wcscmp: Move AC_LIBOBJ invocations to module description.
17661         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17662         * modules/wcscmp (configure.ac): ... to here.
17663
17664 2011-05-22  Bruno Haible  <bruno@clisp.org>
17665
17666         wcschr: Move AC_LIBOBJ invocations to module description.
17667         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17668         * modules/wcschr (configure.ac): ... to here.
17669
17670 2011-05-22  Bruno Haible  <bruno@clisp.org>
17671
17672         wcscat: Move AC_LIBOBJ invocations to module description.
17673         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17674         * modules/wcscat (configure.ac): ... to here.
17675
17676 2011-05-22  Bruno Haible  <bruno@clisp.org>
17677
17678         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17679         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17680         here...
17681         * modules/wcscasecmp (configure.ac): ... to here.
17682
17683 2011-05-22  Bruno Haible  <bruno@clisp.org>
17684
17685         wcrtomb: Move AC_LIBOBJ invocations to module description.
17686         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17687         invocations from here...
17688         * modules/wcrtomb (configure.ac): ... to here.
17689
17690 2011-05-22  Bruno Haible  <bruno@clisp.org>
17691
17692         wcpncpy: Move AC_LIBOBJ invocations to module description.
17693         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17694         here...
17695         * modules/wcpncpy (configure.ac): ... to here.
17696
17697 2011-05-22  Bruno Haible  <bruno@clisp.org>
17698
17699         wcpcpy: Move AC_LIBOBJ invocations to module description.
17700         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17701         * modules/wcpcpy (configure.ac): ... to here.
17702
17703 2011-05-22  Bruno Haible  <bruno@clisp.org>
17704
17705         waitpid: Move AC_LIBOBJ invocations to module description.
17706         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17707         invocation from here...
17708         * modules/waitpid (configure.ac): ... to here.
17709
17710 2011-05-22  Bruno Haible  <bruno@clisp.org>
17711
17712         utimensat: Move AC_LIBOBJ invocations to module description.
17713         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17714         here...
17715         * modules/utimensat (configure.ac): ... to here.
17716
17717 2011-05-22  Bruno Haible  <bruno@clisp.org>
17718
17719         usleep: Move AC_LIBOBJ invocations to module description.
17720         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17721         here...
17722         * modules/usleep (configure.ac): ... to here.
17723
17724 2011-05-22  Bruno Haible  <bruno@clisp.org>
17725
17726         unlockpt: Move AC_LIBOBJ invocations to module description.
17727         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17728         gl_PREREQ_UNLOCKPT invocations from here...
17729         * modules/unlockpt (configure.ac): ... to here.
17730
17731 2011-05-22  Bruno Haible  <bruno@clisp.org>
17732
17733         unlink: Respect rules for use of AC_LIBOBJ.
17734         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17735         * modules/unlink (configure.ac): ... to here.
17736
17737 2011-05-22  Bruno Haible  <bruno@clisp.org>
17738
17739         uname: Move AC_LIBOBJ invocations to module description.
17740         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17741         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17742         here...
17743         * modules/uname (configure.ac): ... to here.
17744
17745 2011-05-22  Bruno Haible  <bruno@clisp.org>
17746
17747         ttyname_r: Move AC_LIBOBJ invocations to module description.
17748         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17749         gl_PREREQ_TTYNAME_R invocations from here...
17750         * modules/ttyname_r (configure.ac): ... to here.
17751
17752 2011-05-22  Bruno Haible  <bruno@clisp.org>
17753
17754         tsearch: Move AC_LIBOBJ invocations to module description.
17755         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17756         invocations from here...
17757         * modules/tsearch (configure.ac): ... to here.
17758
17759 2011-05-22  Bruno Haible  <bruno@clisp.org>
17760
17761         towctrans: Move AC_LIBOBJ invocations to module description.
17762         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17763         AC_LIBOBJ invocation from here...
17764         * modules/towctrans (configure.ac): ... to here.
17765
17766 2011-05-22  Bruno Haible  <bruno@clisp.org>
17767
17768         tmpfile: Move AC_LIBOBJ invocations to module description.
17769         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17770         invocations from here...
17771         * modules/tmpfile (configure.ac): ... to here.
17772
17773 2011-05-22  Bruno Haible  <bruno@clisp.org>
17774
17775         times: Move AC_LIBOBJ invocations to module description.
17776         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17777         * modules/times (configure.ac): ... to here.
17778
17779 2011-05-22  Bruno Haible  <bruno@clisp.org>
17780
17781         time_r: Move AC_LIBOBJ invocations to module description.
17782         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17783         invocations from here...
17784         * modules/time_r (configure.ac): ... to here.
17785
17786 2011-05-22  Bruno Haible  <bruno@clisp.org>
17787
17788         timegm: Move AC_LIBOBJ invocations to module description.
17789         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17790         invocations from here...
17791         * modules/timegm (configure.ac): ... to here.
17792
17793 2011-05-22  Bruno Haible  <bruno@clisp.org>
17794
17795         tcgetsid: Move AC_LIBOBJ invocations to module description.
17796         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17797         and gl_PREREQ_TCGETSID invocations from here...
17798         * modules/tcgetsid (configure.ac): ... to here.
17799         (Depends-on): Update conditions.
17800
17801 2011-05-22  Bruno Haible  <bruno@clisp.org>
17802
17803         symlinkat: Move AC_LIBOBJ invocations to module description.
17804         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17805         here...
17806         * modules/symlinkat (configure.ac): ... to here.
17807
17808 2011-05-22  Bruno Haible  <bruno@clisp.org>
17809
17810         symlink: Move AC_LIBOBJ invocations to module description.
17811         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17812         here...
17813         * modules/symlink (configure.ac): ... to here.
17814
17815 2011-05-22  Bruno Haible  <bruno@clisp.org>
17816
17817         strverscmp: Move AC_LIBOBJ invocations to module description.
17818         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17820         from here...
17821         * modules/strverscmp (configure.ac): ... to here.
17822
17823 2011-05-22  Bruno Haible  <bruno@clisp.org>
17824
17825         strtok_r: Move AC_LIBOBJ invocations to module description.
17826         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17827         and gl_PREREQ_STRTOK_R invocations from here...
17828         * modules/strtok_r (configure.ac): ... to here.
17829         (Depends-on): Update conditions.
17830
17831 2011-05-22  Bruno Haible  <bruno@clisp.org>
17832
17833         strtoumax: Move AC_LIBOBJ invocations to module description.
17834         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17835         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17836         from here...
17837         * modules/strtoumax (configure.ac): ... to here.
17838
17839 2011-05-22  Bruno Haible  <bruno@clisp.org>
17840
17841         strtoimax: Move AC_LIBOBJ invocations to module description.
17842         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17844         from here...
17845         * modules/strtoimax (configure.ac): ... to here.
17846
17847 2011-05-22  Bruno Haible  <bruno@clisp.org>
17848
17849         strtoull: Move AC_LIBOBJ invocations to module description.
17850         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17852         from here...
17853         * modules/strtoull (configure.ac): ... to here.
17854
17855 2011-05-22  Bruno Haible  <bruno@clisp.org>
17856
17857         strtoll: Move AC_LIBOBJ invocations to module description.
17858         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17859         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17860         here...
17861         * modules/strtoll (configure.ac): ... to here.
17862
17863 2011-05-22  Bruno Haible  <bruno@clisp.org>
17864
17865         strtoul: Move AC_LIBOBJ invocations to module description.
17866         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17867         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17868         * modules/strtoul (configure.ac): ... to here.
17869
17870 2011-05-22  Bruno Haible  <bruno@clisp.org>
17871
17872         strtol: Move AC_LIBOBJ invocations to module description.
17873         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17874         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17875         * modules/strtol (configure.ac): ... to here.
17876
17877 2011-05-22  Bruno Haible  <bruno@clisp.org>
17878
17879         strtod: Move AC_LIBOBJ invocations to module description.
17880         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17881         invocations from here...
17882         * modules/strtod (configure.ac): ... to here.
17883
17884 2011-05-22  Bruno Haible  <bruno@clisp.org>
17885
17886         strstr*: Move AC_LIBOBJ invocations to module description.
17887         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17888         invocations from here...
17889         * modules/strstr-simple (configure.ac): ... to here.
17890         * modules/strstr (configure.ac): ... and here.
17891
17892 2011-05-22  Bruno Haible  <bruno@clisp.org>
17893
17894         strsignal: Move AC_LIBOBJ invocations to module description.
17895         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17896         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17897         * modules/strsignal (configure.ac): ... to here.
17898         (Depends-on): Update conditions.
17899
17900 2011-05-22  Bruno Haible  <bruno@clisp.org>
17901
17902         strsep: Move AC_LIBOBJ invocations to module description.
17903         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17904         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17905         here...
17906         * modules/strsep (configure.ac): ... to here.
17907
17908 2011-05-22  Bruno Haible  <bruno@clisp.org>
17909
17910         strptime: Move AC_LIBOBJ invocations to module description.
17911         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17912         gl_PREREQ_STRPTIME invocations from here...
17913         * modules/strptime (configure.ac): ... to here.
17914
17915 2011-05-22  Bruno Haible  <bruno@clisp.org>
17916
17917         strpbrk: Move AC_LIBOBJ invocations to module description.
17918         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17920         here...
17921         * modules/strpbrk (configure.ac): ... to here.
17922
17923 2011-05-22  Bruno Haible  <bruno@clisp.org>
17924
17925         strnlen: Move AC_LIBOBJ invocations to module description.
17926         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17927         invocations from here...
17928         * modules/strnlen (configure.ac): ... to here.
17929
17930 2011-05-22  Bruno Haible  <bruno@clisp.org>
17931
17932         strndup: Move AC_LIBOBJ invocations to module description.
17933         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17934         invocations from here...
17935         * modules/strndup (configure.ac): ... to here.
17936         (Depends-on): Update conditions.
17937
17938 2011-05-22  Bruno Haible  <bruno@clisp.org>
17939
17940         strncat: Move AC_LIBOBJ invocations to module description.
17941         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17942         invocations from here...
17943         * modules/strncat (configure.ac): ... to here.
17944
17945 2011-05-22  Bruno Haible  <bruno@clisp.org>
17946
17947         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17948         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17949         invocations from here...
17950         * modules/strdup (configure.ac): ... to here.
17951         * modules/strdup-posix (configure.ac): ... and here.
17952
17953 2011-05-22  Bruno Haible  <bruno@clisp.org>
17954
17955         strcspn: Move AC_LIBOBJ invocations to module description.
17956         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17958         here...
17959         * modules/strcspn (configure.ac): ... to here.
17960
17961 2011-05-22  Bruno Haible  <bruno@clisp.org>
17962
17963         strchrnul: Move AC_LIBOBJ invocations to module description.
17964         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17965         gl_PREREQ_STRCHRNUL invocations from here...
17966         * modules/strchrnul (configure.ac): ... to here.
17967
17968 2011-05-22  Bruno Haible  <bruno@clisp.org>
17969
17970         strcasestr*: Move AC_LIBOBJ invocations to module description.
17971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17972         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17973         * modules/strcasestr-simple (configure.ac): ... to here.
17974         * modules/strcasestr (configure.ac): ... and here.
17975
17976 2011-05-22  Bruno Haible  <bruno@clisp.org>
17977
17978         strcase: Move AC_LIBOBJ invocations to module description.
17979         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17980         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17981         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17982         gl_PREREQ_STRNCASECMP invocations from here...
17983         * modules/strcase (configure.ac): ... to here.
17984
17985 2011-05-22  Bruno Haible  <bruno@clisp.org>
17986
17987         stpncpy: Move AC_LIBOBJ invocations to module description.
17988         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17989         here...
17990         * modules/stpncpy (configure.ac): ... to here.
17991
17992 2011-05-22  Bruno Haible  <bruno@clisp.org>
17993
17994         stpcpy: Move AC_LIBOBJ invocations to module description.
17995         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17996         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17997         here...
17998         * modules/stpcpy (configure.ac): ... to here.
17999
18000 2011-05-21  Bruno Haible  <bruno@clisp.org>
18001
18002         stat: Move AC_LIBOBJ invocations to module description.
18003         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18004         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18005         here...
18006         * modules/stat (configure.ac): ... to here.
18007
18008 2011-05-21  Bruno Haible  <bruno@clisp.org>
18009
18010         sleep: Move AC_LIBOBJ invocations to module description.
18011         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18012         * modules/sleep (configure.ac): ... to here.
18013
18014 2011-05-21  Bruno Haible  <bruno@clisp.org>
18015
18016         signbit: Move AC_LIBOBJ invocations to module description.
18017         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18018         * modules/signbit (configure.ac): ... to here.
18019
18020 2011-05-21  Bruno Haible  <bruno@clisp.org>
18021
18022         sigprocmask: Move AC_LIBOBJ invocations to module description.
18023         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18024         gl_PREREQ_SIGPROMASK invocations from here...
18025         * modules/sigprocmask (configure.ac): ... to here.
18026
18027 2011-05-21  Bruno Haible  <bruno@clisp.org>
18028
18029         sigaction: Move AC_LIBOBJ invocations to module description.
18030         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18031         gl_PREREQ_SIGACTION invocations from here...
18032         * modules/sigaction (configure.ac): ... to here.
18033
18034 2011-05-21  Bruno Haible  <bruno@clisp.org>
18035
18036         sig2str: Move AC_LIBOBJ invocations to module description.
18037         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18038         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18039         here...
18040         * modules/sig2str (configure.ac): ... to here.
18041
18042 2011-05-21  Bruno Haible  <bruno@clisp.org>
18043
18044         setlocale: Move AC_LIBOBJ invocations to module description.
18045         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18046         gl_PREREQ_SETLOCALE invocations from here...
18047         * modules/setlocale (configure.ac): ... to here.
18048
18049 2011-05-21  Bruno Haible  <bruno@clisp.org>
18050
18051         unsetenv: Move AC_LIBOBJ invocations to module description.
18052         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18053         and gl_PREREQ_UNSETENV invocations from here...
18054         * modules/unsetenv (configure.ac): ... to here.
18055         (Depends-on): Update.
18056
18057 2011-05-21  Bruno Haible  <bruno@clisp.org>
18058
18059         setenv: Move AC_LIBOBJ invocations to module description.
18060         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18061         here...
18062         * modules/setenv (configure.ac): ... to here.
18063
18064 2011-05-21  Bruno Haible  <bruno@clisp.org>
18065
18066         selinux-h: Move AC_LIBOBJ invocations to module description.
18067         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18068         AC_LIBOBJ invocation from here...
18069         * modules/selinux-h (configure.ac): ... to here.
18070
18071 2011-05-21  Bruno Haible  <bruno@clisp.org>
18072
18073         select: Respect rules for use of AC_LIBOBJ.
18074         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18075         here...
18076         * modules/select (configure.ac): ... to here.
18077
18078 2011-05-21  Bruno Haible  <bruno@clisp.org>
18079
18080         scandir: Move AC_LIBOBJ invocations to module description.
18081         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18082         invocations from here...
18083         * modules/scandir (configure.ac): ... to here.
18084
18085 2011-05-21  Bruno Haible  <bruno@clisp.org>
18086
18087         rpmatch: Move AC_LIBOBJ invocations to module description.
18088         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18089         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18090         here...
18091         * modules/rpmatch (configure.ac): ... to here.
18092
18093 2011-05-21  Bruno Haible  <bruno@clisp.org>
18094
18095         rmdir: Respect rules for use of AC_LIBOBJ.
18096         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18097         * modules/rmdir (configure.ac): ... to here.
18098
18099 2011-05-21  Bruno Haible  <bruno@clisp.org>
18100
18101         renameat: Move AC_LIBOBJ invocations to module description.
18102         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18103         here...
18104         * modules/renameat (configure.ac): ... to here.
18105
18106 2011-05-21  Bruno Haible  <bruno@clisp.org>
18107
18108         rename: Respect rules for use of AC_LIBOBJ.
18109         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18110         here...
18111         * modules/rename (configure.ac): ... to here.
18112
18113 2011-05-21  Bruno Haible  <bruno@clisp.org>
18114
18115         remove: Move AC_LIBOBJ invocations to module description.
18116         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18117         here...
18118         * modules/remove (configure.ac): ... to here.
18119
18120 2011-05-21  Bruno Haible  <bruno@clisp.org>
18121
18122         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18123         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18124         macro.
18125         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18126         * modules/relocatable-lib (configure.ac): ... to here.
18127         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18128         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18129
18130 2011-05-21  Bruno Haible  <bruno@clisp.org>
18131
18132         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18133         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18134         here...
18135         * modules/relocatable-prog (configure.ac): ... to here.
18136
18137 2011-05-21  Bruno Haible  <bruno@clisp.org>
18138
18139         regex: Move AC_LIBOBJ invocations to module description.
18140         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18141         invocations from here...
18142         * modules/regex (configure.ac): ... to here.
18143
18144 2011-05-21  Bruno Haible  <bruno@clisp.org>
18145
18146         realloc-*: Move AC_LIBOBJ invocations to module description.
18147         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18148         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18149         AC_LIBOBJ invocations from here...
18150         * modules/realloc-gnu (configure.ac): ... to here.
18151         * modules/realloc-posix (configure.ac): ... and here.
18152
18153 2011-05-21  Bruno Haible  <bruno@clisp.org>
18154
18155         readutmp: Move AC_LIBOBJ invocations to module description.
18156         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18157         * modules/readutmp (configure.ac): ... to here.
18158
18159 2011-05-21  Bruno Haible  <bruno@clisp.org>
18160
18161         readlinkat: Move AC_LIBOBJ invocations to module description.
18162         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18163         here...
18164         * modules/readlinkat (configure.ac): ... to here.
18165
18166 2011-05-21  Bruno Haible  <bruno@clisp.org>
18167
18168         readlink: Move AC_LIBOBJ invocations to module description.
18169         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18170         gl_PREREQ_READLINK invocations from here...
18171         * modules/readlink (configure.ac): ... to here.
18172
18173 2011-05-21  Bruno Haible  <bruno@clisp.org>
18174
18175         readline: Move AC_LIBOBJ invocations to module description.
18176         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18177         gl_PREREQ_READLINE invocations from here...
18178         * modules/readline (configure.ac): ... to here.
18179
18180 2011-05-21  Bruno Haible  <bruno@clisp.org>
18181
18182         read: Move AC_LIBOBJ invocations to module description.
18183         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18184         * modules/read (configure.ac): ... to here.
18185
18186 2011-05-21  Bruno Haible  <bruno@clisp.org>
18187
18188         rawmemchr: Move AC_LIBOBJ invocations to module description.
18189         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18191         from here...
18192         * modules/rawmemchr (configure.ac): ... to here.
18193
18194 2011-05-21  Bruno Haible  <bruno@clisp.org>
18195
18196         random_r: Move AC_LIBOBJ invocations to module description.
18197         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18198         gl_PREREQ_RANDOM_R invocations from here...
18199         * modules/random_r (configure.ac): ... to here.
18200
18201 2011-05-21  Bruno Haible  <bruno@clisp.org>
18202
18203         pwrite: Move AC_LIBOBJ invocations to module description.
18204         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18205         * modules/pwrite (configure.ac): ... to here.
18206
18207 2011-05-21  Bruno Haible  <bruno@clisp.org>
18208
18209         putenv: Move AC_LIBOBJ invocations to module description.
18210         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18211         * modules/putenv (configure.ac): ... to here.
18212
18213 2011-05-21  Bruno Haible  <bruno@clisp.org>
18214
18215         login_tty: Move AC_LIBOBJ invocations to module description.
18216         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18217         * modules/login_tty (configure.ac): ... to here.
18218
18219 2011-05-21  Bruno Haible  <bruno@clisp.org>
18220
18221         openpty: Move AC_LIBOBJ invocations to module description.
18222         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18223         * modules/openpty (configure.ac): ... to here.
18224
18225 2011-05-21  Bruno Haible  <bruno@clisp.org>
18226
18227         forkpty: Move AC_LIBOBJ invocations to module description.
18228         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18229         * modules/forkpty (configure.ac): ... to here.
18230
18231 2011-05-21  Bruno Haible  <bruno@clisp.org>
18232
18233         ptsname: Move AC_LIBOBJ invocations to module description.
18234         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18235         invocations from here...
18236         * modules/ptsname (configure.ac): ... to here.
18237
18238 2011-05-21  Bruno Haible  <bruno@clisp.org>
18239
18240         pread: Move AC_LIBOBJ invocations to module description.
18241         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18242         * modules/pread (configure.ac): ... to here.
18243
18244 2011-05-21  Bruno Haible  <bruno@clisp.org>
18245
18246         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18247         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18248         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18249         * modules/posix_spawn (configure.ac): ... to here.
18250         * modules/posix_spawnp (configure.ac): ... and here.
18251
18252 2011-05-21  Bruno Haible  <bruno@clisp.org>
18253
18254         popen: Move AC_LIBOBJ invocations to module description.
18255         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18256         invocations from here...
18257         * modules/popen (configure.ac): ... to here.
18258
18259 2011-05-21  Bruno Haible  <bruno@clisp.org>
18260
18261         poll: Move AC_LIBOBJ invocations to module description.
18262         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18263         invocations from here...
18264         * modules/poll (configure.ac): ... to here.
18265
18266 2011-05-21  Bruno Haible  <bruno@clisp.org>
18267
18268         pipe-posix: Move AC_LIBOBJ invocations to module description.
18269         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18270         * modules/pipe-posix (configure.ac): ... to here.
18271
18272 2011-05-21  Bruno Haible  <bruno@clisp.org>
18273
18274         openat: Respect rules for use of AC_LIBOBJ.
18275         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18276         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18277         * modules/openat (configure.ac): ... to here.
18278
18279 2011-05-21  Bruno Haible  <bruno@clisp.org>
18280
18281         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18282         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18283         invocation from here...
18284         * modules/obstack-printf (configure.ac): ... to here.
18285         * modules/obstack-printf-posix (configure.ac): ... and here.
18286
18287 2011-05-21  Bruno Haible  <bruno@clisp.org>
18288
18289         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18290         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18291         from here...
18292         * modules/nl_langinfo (configure.ac): ... to here.
18293
18294 2011-05-21  Bruno Haible  <bruno@clisp.org>
18295
18296         nanosleep: Move AC_LIBOBJ invocations to module description.
18297         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18298         gl_PREREQ_NANOSLEEP invocations from here...
18299         * modules/nanosleep (configure.ac): ... to here.
18300
18301 2011-05-21  Bruno Haible  <bruno@clisp.org>
18302
18303         mountlist: Move AC_LIBOBJ invocations to module description.
18304         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18305         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18306         * modules/mountlist (configure.ac): ... to here.
18307
18308 2011-05-21  Bruno Haible  <bruno@clisp.org>
18309
18310         mktime: Respect rules for use of AC_LIBOBJ.
18311         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18312         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18313         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18314         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18315         * modules/mktime (configure.ac): ... to here.
18316         * modules/mktime-internal (configure.ac): ... and here.
18317         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18318
18319 2011-05-21  Bruno Haible  <bruno@clisp.org>
18320
18321         mkstemps: Move AC_LIBOBJ invocations to module description.
18322         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18323         here...
18324         * modules/mkstemps (configure.ac): ... to here.
18325
18326 2011-05-21  Bruno Haible  <bruno@clisp.org>
18327
18328         mkstemp: Move AC_LIBOBJ invocations to module description.
18329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18330         gl_PREREQ_MKSTEMP invocations from here...
18331         * modules/mkstemp (configure.ac): ... to here.
18332
18333 2011-05-21  Bruno Haible  <bruno@clisp.org>
18334
18335         mkostemps: Move AC_LIBOBJ invocations to module description.
18336         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18337         here...
18338         * modules/mkostemps (configure.ac): ... to here.
18339
18340 2011-05-21  Bruno Haible  <bruno@clisp.org>
18341
18342         mkostemp: Move AC_LIBOBJ invocations to module description.
18343         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18344         gl_PREREQ_MKOSTEMP invocations from here...
18345         * modules/mkostemp (configure.ac): ... to here.
18346
18347 2011-05-21  Bruno Haible  <bruno@clisp.org>
18348
18349         mknod: Move AC_LIBOBJ invocations to module description.
18350         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18351         * modules/mknod (configure.ac): ... to here.
18352
18353 2011-05-21  Bruno Haible  <bruno@clisp.org>
18354
18355         mkfifoat: Move AC_LIBOBJ invocations to module description.
18356         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18357         here...
18358         * modules/mkfifoat (configure.ac): ... to here.
18359
18360 2011-05-21  Bruno Haible  <bruno@clisp.org>
18361
18362         mkfifo: Respect rules for use of AC_LIBOBJ.
18363         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18364         here...
18365         * modules/mkfifo (configure.ac): ... to here.
18366
18367 2011-05-21  Bruno Haible  <bruno@clisp.org>
18368
18369         mkdtemp: Move AC_LIBOBJ invocations to module description.
18370         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18371         invocations from here...
18372         * modules/mkdtemp (configure.ac): ... to here.
18373
18374 2011-05-21  Bruno Haible  <bruno@clisp.org>
18375
18376         mkdir: Move AC_LIBOBJ invocations to module description.
18377         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18378         * modules/mkdir (configure.ac): ... to here.
18379
18380 2011-05-21  Bruno Haible  <bruno@clisp.org>
18381
18382         memset: Move AC_LIBOBJ invocations to module description.
18383         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18384         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18385         here...
18386         * modules/memset (configure.ac): ... to here.
18387
18388 2011-05-21  Bruno Haible  <bruno@clisp.org>
18389
18390         memrchr: Move AC_LIBOBJ invocations to module description.
18391         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18393         here...
18394         * modules/memrchr (configure.ac): ... to here.
18395
18396 2011-05-21  Bruno Haible  <bruno@clisp.org>
18397
18398         mempcpy: Move AC_LIBOBJ invocations to module description.
18399         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18401         here...
18402         * modules/mempcpy (configure.ac): ... to here.
18403
18404 2011-05-21  Bruno Haible  <bruno@clisp.org>
18405
18406         memmove: Move AC_LIBOBJ invocations to module description.
18407         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18408         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18409         here...
18410         * modules/memmove (configure.ac): ... to here.
18411
18412 2011-05-21  Bruno Haible  <bruno@clisp.org>
18413
18414         memmem*: Move AC_LIBOBJ invocations to module description.
18415         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18416         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18417         here...
18418         (gl_FUNC_MEMMEM): ... and here...
18419         * modules/memmem-simple (configure.ac): ... to here.
18420         * modules/memmem (configure.ac): ... and here.
18421
18422 2011-05-21  Bruno Haible  <bruno@clisp.org>
18423
18424         memcpy: Move AC_LIBOBJ invocations to module description.
18425         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18426         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18427         here...
18428         * modules/memcpy (configure.ac): ... to here.
18429
18430 2011-05-21  Bruno Haible  <bruno@clisp.org>
18431
18432         memcmp: Simplify autoconf macro.
18433         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18434         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18435         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18436
18437 2011-05-21  Bruno Haible  <bruno@clisp.org>
18438
18439         memcmp: Move AC_LIBOBJ invocations to module description.
18440         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18441         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18442         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18443         * modules/memcmp (configure.ac): ... to here.
18444         (Depends-on): Update conditions.
18445
18446 2011-05-21  Bruno Haible  <bruno@clisp.org>
18447
18448         memchr: Respect rules for use of AC_LIBOBJ.
18449         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18450         invocations from here...
18451         * modules/memchr (configure.ac): ... to here.
18452
18453 2011-05-21  Bruno Haible  <bruno@clisp.org>
18454
18455         mbtowc: Move AC_LIBOBJ invocations to module description.
18456         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18457         invocations from here...
18458         * modules/mbtowc (configure.ac): ... to here.
18459
18460 2011-05-21  Bruno Haible  <bruno@clisp.org>
18461
18462         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18463         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18464         gl_PREREQ_MBSRTOWCS invocations from here...
18465         * modules/mbsrtowcs (configure.ac): ... to here.
18466
18467 2011-05-21  Bruno Haible  <bruno@clisp.org>
18468
18469         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18470         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18471         gl_PREREQ_MBSNRTOWCS invocations from here...
18472         * modules/mbsnrtowcs (configure.ac): ... to here.
18473
18474 2011-05-21  Bruno Haible  <bruno@clisp.org>
18475
18476         mbsinit: Move AC_LIBOBJ invocations to module description.
18477         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18478         invocations from here...
18479         * modules/mbsinit (configure.ac): ... to here.
18480
18481 2011-05-21  Bruno Haible  <bruno@clisp.org>
18482
18483         mbrlen: Move AC_LIBOBJ invocations to module description.
18484         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18485         invocations from here...
18486         * modules/mbrlen (configure.ac): ... to here.
18487
18488 2011-05-21  Bruno Haible  <bruno@clisp.org>
18489
18490         mbrtowc: Respect rules for use of AC_LIBOBJ.
18491         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18492         invocations from here...
18493         * modules/mbrtowc (configure.ac): ... to here.
18494
18495 2011-05-21  Bruno Haible  <bruno@clisp.org>
18496
18497         malloc-*: Move AC_LIBOBJ invocations to module description.
18498         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18499         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18500         AC_LIBOBJ invocations from here...
18501         * modules/malloc-gnu (configure.ac): ... to here.
18502         * modules/malloc-posix (configure.ac): ... and here.
18503
18504 2011-05-21  Bruno Haible  <bruno@clisp.org>
18505
18506         lstat, openat: Respect rules for use of AC_LIBOBJ.
18507         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18508         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18509         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18510         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18511         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18512         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18513         here.
18514         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18515
18516 2011-05-21  Bruno Haible  <bruno@clisp.org>
18517
18518         lseek: Move AC_LIBOBJ invocations to module description.
18519         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18520         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18521         * modules/lseek (configure.ac): ... to here.
18522
18523 2011-05-21  Bruno Haible  <bruno@clisp.org>
18524
18525         linkat: Move AC_LIBOBJ invocations to module description.
18526         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18527         here...
18528         * modules/linkat (configure.ac): ... to here.
18529
18530 2011-05-21  Bruno Haible  <bruno@clisp.org>
18531
18532         link: Respect rules for use of AC_LIBOBJ.
18533         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18534         * modules/link (configure.ac): ... to here.
18535
18536 2011-05-21  Bruno Haible  <bruno@clisp.org>
18537
18538         lchown: Move AC_LIBOBJ invocations to module description.
18539         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18540         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18541         * modules/lchown (configure.ac): ... to here.
18542
18543 2011-05-21  Bruno Haible  <bruno@clisp.org>
18544
18545         iswctype: Move AC_LIBOBJ invocations to module description.
18546         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18547         here...
18548         * modules/iswctype (configure.ac): ... to here.
18549
18550 2011-05-21  Bruno Haible  <bruno@clisp.org>
18551
18552         iswblank: Move AC_LIBOBJ invocations to module description.
18553         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18554         here...
18555         * modules/iswblank (configure.ac): ... to here.
18556
18557 2011-05-21  Bruno Haible  <bruno@clisp.org>
18558
18559         atanl: Move AC_LIBOBJ invocations to module description.
18560         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18561         * modules/atanl (configure.ac): ... to here.
18562
18563 2011-05-21  Bruno Haible  <bruno@clisp.org>
18564
18565         acosl: Move AC_LIBOBJ invocations to module description.
18566         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18567         * modules/acosl (configure.ac): ... to here.
18568
18569 2011-05-21  Bruno Haible  <bruno@clisp.org>
18570
18571         asinl: Respect rules for use of AC_LIBOBJ.
18572         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18573         * modules/asinl (configure.ac): ... to here.
18574
18575 2011-05-21  Bruno Haible  <bruno@clisp.org>
18576
18577         tanl: Move AC_LIBOBJ invocations to module description.
18578         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18579         * modules/tanl (configure.ac): ... to here.
18580
18581 2011-05-21  Bruno Haible  <bruno@clisp.org>
18582
18583         cosl: Move AC_LIBOBJ invocations to module description.
18584         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18585         * modules/cosl (configure.ac): ... to here.
18586
18587 2011-05-21  Bruno Haible  <bruno@clisp.org>
18588
18589         sinl: Move AC_LIBOBJ invocations to module description.
18590         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18591         * modules/sinl (configure.ac): ... to here.
18592
18593 2011-05-21  Bruno Haible  <bruno@clisp.org>
18594
18595         logl: Move AC_LIBOBJ invocations to module description.
18596         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18597         * modules/logl (configure.ac): ... to here.
18598
18599 2011-05-21  Bruno Haible  <bruno@clisp.org>
18600
18601         expl: Move AC_LIBOBJ invocations to module description.
18602         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18603         * modules/expl (configure.ac): ... to here.
18604
18605 2011-05-21  Bruno Haible  <bruno@clisp.org>
18606
18607         roundl: Move AC_LIBOBJ invocations to module description.
18608         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18609         * modules/roundl (configure.ac): ... to here.
18610
18611 2011-05-21  Bruno Haible  <bruno@clisp.org>
18612
18613         round: Move AC_LIBOBJ invocations to module description.
18614         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18615         * modules/round (configure.ac): ... to here.
18616
18617 2011-05-21  Bruno Haible  <bruno@clisp.org>
18618
18619         roundf: Move AC_LIBOBJ invocations to module description.
18620         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18621         * modules/roundf (configure.ac): ... to here.
18622
18623 2011-05-21  Bruno Haible  <bruno@clisp.org>
18624
18625         truncl: Move AC_LIBOBJ invocations to module description.
18626         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18627         * modules/truncl (configure.ac): ... to here.
18628
18629 2011-05-21  Bruno Haible  <bruno@clisp.org>
18630
18631         trunc: Move AC_LIBOBJ invocations to module description.
18632         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18633         * modules/trunc (configure.ac): ... to here.
18634
18635 2011-05-21  Bruno Haible  <bruno@clisp.org>
18636
18637         truncf: Move AC_LIBOBJ invocations to module description.
18638         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18639         * modules/truncf (configure.ac): ... to here.
18640
18641 2011-05-21  Bruno Haible  <bruno@clisp.org>
18642
18643         ceill: Move AC_LIBOBJ invocations to module description.
18644         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18645         * modules/ceill (configure.ac): ... to here.
18646
18647 2011-05-21  Bruno Haible  <bruno@clisp.org>
18648
18649         ceil: Move AC_LIBOBJ invocations to module description.
18650         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18651         * modules/ceil (configure.ac): ... to here.
18652
18653 2011-05-21  Bruno Haible  <bruno@clisp.org>
18654
18655         ceilf: Move AC_LIBOBJ invocations to module description.
18656         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18657         * modules/ceilf (configure.ac): ... to here.
18658
18659 2011-05-21  Bruno Haible  <bruno@clisp.org>
18660
18661         floorl: Respect rules for use of AC_LIBOBJ.
18662         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18663         * modules/floorl (configure.ac): ... to here.
18664
18665 2011-05-21  Bruno Haible  <bruno@clisp.org>
18666
18667         floor: Respect rules for use of AC_LIBOBJ.
18668         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18669         * modules/floor (configure.ac): ... to here.
18670
18671 2011-05-21  Bruno Haible  <bruno@clisp.org>
18672
18673         floorf: Move AC_LIBOBJ invocations to module description.
18674         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18675         * modules/floorf (configure.ac): ... to here.
18676
18677 2011-05-20  Bruno Haible  <bruno@clisp.org>
18678
18679         sqrtl: Respect rules for use of AC_LIBOBJ.
18680         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18681         * modules/sqrtl (configure.ac): ... to here.
18682
18683 2011-05-20  Bruno Haible  <bruno@clisp.org>
18684
18685         ldexpl: Respect rules for use of AC_LIBOBJ.
18686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18687         * modules/ldexpl (configure.ac): ... to here.
18688
18689 2011-05-20  Bruno Haible  <bruno@clisp.org>
18690
18691         frexpl*: Respect rules for use of AC_LIBOBJ.
18692         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18693         invocation from here...
18694         * modules/frexpl (configure.ac): ... to here.
18695         * modules/frexpl-nolibm (configure.ac): ... and here.
18696
18697 2011-05-20  Bruno Haible  <bruno@clisp.org>
18698
18699         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18700         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18701         invocation from here...
18702         * modules/frexp (configure.ac): ... to here.
18703         * modules/frexp-nolibm (configure.ac): ... and here.
18704
18705 2011-05-20  Bruno Haible  <bruno@clisp.org>
18706
18707         isnan: Respect rules for use of AC_LIBOBJ.
18708         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18709         invocations here.
18710         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18711         REPLACE_ISNAN.
18712         * modules/isnand (configure.ac): Likewise.
18713         * modules/isnanl (configure.ac): Likewise.
18714
18715 2011-05-20  Bruno Haible  <bruno@clisp.org>
18716
18717         isnanl*: Respect rules for use of AC_LIBOBJ.
18718         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18719         invocation from here...
18720         * modules/isnanl (configure.ac): ... to here.
18721         * modules/isnanl-nolibm (configure.ac): ... and here.
18722
18723 2011-05-20  Bruno Haible  <bruno@clisp.org>
18724
18725         isnand*: Move AC_LIBOBJ invocations to module description.
18726         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18727         invocation from here...
18728         * modules/isnand (configure.ac): ... to here.
18729         * modules/isnand-nolibm (configure.ac): ... and here.
18730
18731 2011-05-20  Bruno Haible  <bruno@clisp.org>
18732
18733         isnanf*: Move AC_LIBOBJ invocations to module description.
18734         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18735         invocation from here...
18736         * modules/isnanf (configure.ac): ... to here.
18737         * modules/isnanf-nolibm (configure.ac): ... and here.
18738
18739 2011-05-20  Bruno Haible  <bruno@clisp.org>
18740
18741         isnan*: Separate the AC_LIBOBJ invocations.
18742         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18743         AC_LIBOBJ invocation.
18744         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18745         here.
18746         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18747         AC_LIBOBJ invocation.
18748         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18749         here.
18750         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18751         AC_LIBOBJ invocation.
18752         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18753         here.
18754         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18755
18756 2011-05-08  Bruno Haible  <bruno@clisp.org>
18757
18758         isinf: Move AC_LIBOBJ invocations to module description.
18759         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18760         * modules/isinf (configure.ac): ... to here.
18761
18762 2011-05-08  Bruno Haible  <bruno@clisp.org>
18763
18764         isfinite: Move AC_LIBOBJ invocations to module description.
18765         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18766         * modules/isfinite (configure.ac): ... to here.
18767
18768 2011-05-08  Bruno Haible  <bruno@clisp.org>
18769
18770         isblank: Move AC_LIBOBJ invocations to module description.
18771         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18772         here...
18773         * modules/isblank (configure.ac): ... to here.
18774
18775 2011-05-08  Bruno Haible  <bruno@clisp.org>
18776
18777         isapipe: Move AC_LIBOBJ invocations to module description.
18778         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18779         gl_PREREQ_ISAPIPE invocations from here...
18780         * modules/isapipe (configure.ac): ... to here.
18781         (Depends-on): Update condition.
18782
18783 2011-05-08  Bruno Haible  <bruno@clisp.org>
18784
18785         ioctl: Move AC_LIBOBJ invocations to module description.
18786         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18787         invocations from here...
18788         * modules/ioctl (configure.ac): ... to here.
18789         (Depends-on): Update condition.
18790
18791 2011-05-08  Bruno Haible  <bruno@clisp.org>
18792
18793         imaxdiv: Move AC_LIBOBJ invocations to module description.
18794         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18795         invocations from here...
18796         * modules/imaxdiv (configure.ac): ... to here.
18797
18798 2011-05-08  Bruno Haible  <bruno@clisp.org>
18799
18800         imaxabs: Move AC_LIBOBJ invocations to module description.
18801         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18802         invocations from here...
18803         * modules/imaxabs (configure.ac): ... to here.
18804
18805 2011-05-08  Bruno Haible  <bruno@clisp.org>
18806
18807         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18808         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18809         AC_LIBOBJ invocations from here...
18810         * modules/getaddrinfo (configure.ac): ... to here.
18811         (Depends-on): Add conditions.
18812
18813 2011-05-08  Bruno Haible  <bruno@clisp.org>
18814
18815         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18816         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18817         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18818         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18819         (gl_PREREQ_INET_PTON): ... from here.
18820         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18821         gl_PREREQ_INET_PTON here.
18822         (Depends-on): Update condition.
18823
18824 2011-05-08  Bruno Haible  <bruno@clisp.org>
18825
18826         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18827         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18828         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18829         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18830         (gl_PREREQ_INET_NTOP): ... from here.
18831         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18832         gl_PREREQ_INET_NTOP here.
18833         (Depends-on): Update condition.
18834
18835 2011-05-08  Bruno Haible  <bruno@clisp.org>
18836
18837         iconv_open: Move AC_LIBOBJ invocations to module description.
18838         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18839         AC_LIBOBJ invocations from here...
18840         * modules/iconv_open (configure.ac): ... to here.
18841
18842 2011-05-08  Bruno Haible  <bruno@clisp.org>
18843
18844         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18845         If module 'iconv_open' is among the main modules and module
18846         'iconv_open-utf' is among the tests dependencies, then
18847         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18848         return the special iconv_t values. Therefore iconv() and iconv_close()
18849         must support these special iconv_t values, already in lib, not only in
18850         tests.
18851         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18852         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18853         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18854         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18855         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18856         (Depends-on): Add the dependencies of iconv_open-utf.
18857         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18858         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18859         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18860
18861 2011-05-08  Bruno Haible  <bruno@clisp.org>
18862
18863         group-member: Move AC_LIBOBJ invocations to module description.
18864         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18865         gl_PREREQ_GROUP_MEMBER invocations from here...
18866         * modules/group-member (configure.ac): ... to here.
18867
18868 2011-05-08  Bruno Haible  <bruno@clisp.org>
18869
18870         grantpt: Move AC_LIBOBJ invocations to module description.
18871         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18872         invocations from here...
18873         * modules/grantpt (configure.ac): ... to here.
18874
18875 2011-05-08  Bruno Haible  <bruno@clisp.org>
18876
18877         glob: Move AC_LIBOBJ invocations to module description.
18878         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18879         from here...
18880         * modules/glob (configure.ac): ... to here.
18881
18882 2011-05-08  Bruno Haible  <bruno@clisp.org>
18883
18884         getusershell: Move AC_LIBOBJ invocations to module description.
18885         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18886         Move AC_LIBOBJ invocation from here...
18887         * modules/getusershell (configure.ac): ... to here.
18888         (Depends-on): Update condition.
18889
18890 2011-05-08  Bruno Haible  <bruno@clisp.org>
18891
18892         gettimeofday: Move AC_LIBOBJ invocations to module description.
18893         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18894         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18895         gl_PREREQ_GETTIMEOFDAY invocations from here...
18896         * modules/gettimeofday (configure.ac): ... to here.
18897
18898 2011-05-08  Bruno Haible  <bruno@clisp.org>
18899
18900         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18901         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18902         just gl_FUNC_TZSET.
18903         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18904         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18905         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18906         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18907
18908 2011-05-08  Bruno Haible  <bruno@clisp.org>
18909
18910         getsubopt: Move AC_LIBOBJ invocations to module description.
18911         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18912         gl_PREREQ_GETSUBOPT invocations from here...
18913         * modules/getsubopt (configure.ac): ... to here.
18914
18915 2011-05-08  Bruno Haible  <bruno@clisp.org>
18916
18917         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18918         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18919         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18920         * modules/getpass-gnu (configure.ac): ... to here.
18921
18922 2011-05-08  Bruno Haible  <bruno@clisp.org>
18923
18924         getpass: Move AC_LIBOBJ invocations to module description.
18925         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18926         gl_PREREQ_GETPASS invocations from here...
18927         * modules/getpass (configure.ac): ... to here.
18928
18929 2011-05-08  Bruno Haible  <bruno@clisp.org>
18930
18931         getpagesize: Move AC_LIBOBJ invocations to module description.
18932         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18933         from here...
18934         * modules/getpagesize (configure.ac): ... to here.
18935
18936 2011-05-08  Bruno Haible  <bruno@clisp.org>
18937
18938         getopt: Move AC_LIBOBJ invocations to module description.
18939         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18940         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18941         invocations from here...
18942         * modules/getopt-gnu (configure.ac): ... to here.
18943         * modules/getopt-posix (configure.ac): ... and here.
18944         (Depends-on): Update condition.
18945
18946 2011-05-08  Bruno Haible  <bruno@clisp.org>
18947
18948         getopt, argp: Respect rules for use of AC_LIBOBJ.
18949         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18950         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18951         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18952         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18953
18954 2011-05-08  Bruno Haible  <bruno@clisp.org>
18955
18956         getlogin_r: Move AC_LIBOBJ invocations to module description.
18957         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18958         gl_PREREQ_GETLOGIN_R invocations from here...
18959         * modules/getlogin_r (configure.ac): ... to here.
18960
18961 2011-05-08  Bruno Haible  <bruno@clisp.org>
18962
18963         getlogin: Move AC_LIBOBJ invocations to module description.
18964         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18965         here...
18966         * modules/getlogin (configure.ac): ... to here.
18967
18968 2011-05-08  Bruno Haible  <bruno@clisp.org>
18969
18970         getloadavg: Move AC_LIBOBJ invocations to module description.
18971         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18972         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18973         * modules/getloadavg (configure.ac): ... to here.
18974
18975 2011-05-08  Bruno Haible  <bruno@clisp.org>
18976
18977         gethrxtime: Move AC_LIBOBJ invocations to module description.
18978         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18979         LIB_GETHRXTIME from here...
18980         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18981         invocations from here...
18982         * modules/gethrxtime (configure.ac): ... to here.
18983
18984 2011-05-08  Bruno Haible  <bruno@clisp.org>
18985
18986         gethostname: Move AC_LIBOBJ invocations to module description.
18987         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18988         gl_PREREQ_GETHOSTNAME invocations from here...
18989         * modules/gethostname (configure.ac): ... to here.
18990
18991 2011-05-08  Bruno Haible  <bruno@clisp.org>
18992
18993         getgroups: Move AC_LIBOBJ invocations to module description.
18994         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18995         here...
18996         * modules/getgroups (configure.ac): ... to here.
18997
18998 2011-05-08  Bruno Haible  <bruno@clisp.org>
18999
19000         getdtablesize: Move AC_LIBOBJ invocations to module description.
19001         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19002         invocation from here...
19003         * modules/getdtablesize (configure.ac): ... to here.
19004
19005 2011-05-08  Bruno Haible  <bruno@clisp.org>
19006
19007         getdomainname: Move AC_LIBOBJ invocations to module description.
19008         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19009         gl_PREREQ_GETDOMAINNAME invocations from here...
19010         * modules/getdomainname (configure.ac): ... to here.
19011
19012 2011-05-08  Bruno Haible  <bruno@clisp.org>
19013
19014         getline: Move AC_LIBOBJ invocations to module description.
19015         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19016         invocations from here...
19017         * modules/getline (configure.ac): ... to here.
19018
19019 2011-05-08  Bruno Haible  <bruno@clisp.org>
19020
19021         getline: Simplify.
19022         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19023         It's already handled through the module dependency.
19024
19025 2011-05-08  Bruno Haible  <bruno@clisp.org>
19026
19027         getdelim: Move AC_LIBOBJ invocations to module description.
19028         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19029         and gl_PREREQ_GETDELIM invocations from here...
19030         * modules/getdelim (configure.ac): ... to here.
19031         (Depends-on): Fix condition.
19032
19033 2011-05-08  Bruno Haible  <bruno@clisp.org>
19034
19035         getcwd: Move AC_LIBOBJ invocations to module description.
19036         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19037         invocations from here...
19038         * modules/getcwd (configure.ac): ... to here.
19039
19040 2011-05-08  Bruno Haible  <bruno@clisp.org>
19041
19042         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19043         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19044         here...
19045         * modules/getcwd-lgpl (configure.ac): ... to here.
19046
19047 2011-05-07  Bruno Haible  <bruno@clisp.org>
19048
19049         crypto/gc: Move AC_LIBOBJ invocations to module description.
19050         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19051         * modules/crypto/gc (configure.ac): ... to here.
19052
19053 2011-05-07  Bruno Haible  <bruno@clisp.org>
19054
19055         fwriting: Move AC_LIBOBJ invocations to module description.
19056         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19057         here...
19058         * modules/fwriting (configure.ac): ... to here.
19059
19060 2011-05-07  Bruno Haible  <bruno@clisp.org>
19061
19062         fwritable: Move AC_LIBOBJ invocations to module description.
19063         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19064         here...
19065         * modules/fwritable (configure.ac): ... to here.
19066
19067 2011-05-07  Bruno Haible  <bruno@clisp.org>
19068
19069         futimens: Move AC_LIBOBJ invocations to module description.
19070         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19071         here...
19072         * modules/futimens (configure.ac): ... to here.
19073
19074 2011-05-07  Bruno Haible  <bruno@clisp.org>
19075
19076         ftruncate: Move AC_LIBOBJ invocations to module description.
19077         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19078         gl_PREREQ_FTRUNCATE invocations from here...
19079         * modules/ftruncate (configure.ac): ... to here.
19080
19081 2011-05-07  Bruno Haible  <bruno@clisp.org>
19082
19083         fsync: Move AC_LIBOBJ invocations to module description.
19084         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19085         invocations from here...
19086         * modules/fsync (configure.ac): ... to here.
19087
19088 2011-05-07  Bruno Haible  <bruno@clisp.org>
19089
19090         fsusage: Move AC_LIBOBJ invocations to module description.
19091         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19092         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19093         * modules/fsusage (configure.ac): ... to here.
19094
19095 2011-05-07  Bruno Haible  <bruno@clisp.org>
19096
19097         freopen: Move AC_LIBOBJ invocations to module description.
19098         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19099         invocations from here...
19100         * modules/freopen (configure.ac): ... to here.
19101
19102 2011-05-07  Bruno Haible  <bruno@clisp.org>
19103
19104         free: Move AC_LIBOBJ invocations to module description.
19105         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19106         invocations from here...
19107         * modules/free (configure.ac): ... to here.
19108
19109 2011-05-07  Bruno Haible  <bruno@clisp.org>
19110
19111         freadable: Move AC_LIBOBJ invocations to module description.
19112         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19113         here...
19114         * modules/freadable (configure.ac): ... to here.
19115
19116 2011-05-07  Bruno Haible  <bruno@clisp.org>
19117
19118         fpurge: Move AC_LIBOBJ invocations to module description.
19119         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19120         invocations from here...
19121         * modules/fpurge (configure.ac): ... to here.
19122
19123 2011-05-07  Bruno Haible  <bruno@clisp.org>
19124
19125         fpending: Move AC_LIBOBJ invocations to module description.
19126         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19127         gl_FUNC_FPENDING.
19128         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19129         invocations from here...
19130         * modules/fpending (configure.ac): ... to here.
19131
19132 2011-05-07  Bruno Haible  <bruno@clisp.org>
19133
19134         fopen: Move AC_LIBOBJ invocations to module description.
19135         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19136         invocations from here...
19137         * modules/fopen (configure.ac): ... to here.
19138
19139 2011-05-07  Bruno Haible  <bruno@clisp.org>
19140
19141         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19142         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19143         gl_FUNC_FNMATCH_POSIX.
19144         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19145         invocations from here...
19146         * modules/fnmatch (configure.ac): ... to here.
19147         * modules/fnmatch-gnu (configure.ac): ... and here.
19148
19149 2011-05-07  Bruno Haible  <bruno@clisp.org>
19150
19151         flock: Move AC_LIBOBJ invocations to module description.
19152         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19153         invocations from here...
19154         * modules/flock (configure.ac): ... to here.
19155
19156 2011-05-07  Bruno Haible  <bruno@clisp.org>
19157
19158         fileblocks: Move AC_LIBOBJ invocations to module description.
19159         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19160         gl_PREREQ_FILEBLOCKS invocations from here...
19161         * modules/fileblocks (configure.ac): ... to here.
19162
19163 2011-05-06  Bruno Haible  <bruno@clisp.org>
19164
19165         fflush: Move AC_LIBOBJ invocations to module description.
19166         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19167         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19168         invocations from here...
19169         * modules/fflush (configure.ac): ... to here.
19170
19171 2011-05-06  Bruno Haible  <bruno@clisp.org>
19172
19173         fdopendir: Move AC_LIBOBJ invocations to module description.
19174         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19175         here...
19176         * modules/fdopendir (configure.ac): ... to here.
19177         (Depends-on): Improve conditions.
19178
19179 2011-05-06  Bruno Haible  <bruno@clisp.org>
19180
19181         _Exit: Move AC_LIBOBJ invocations to module description.
19182         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19183         invocations from here...
19184         * modules/_Exit (configure.ac): ... to here.
19185
19186 2011-05-21  Bruno Haible  <bruno@clisp.org>
19187
19188         euidaccess: Respect rules for use of AC_LIBOBJ.
19189         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19191         from here...
19192         * modules/euidaccess (configure.ac): ... to here.
19193
19194 2011-05-06  Bruno Haible  <bruno@clisp.org>
19195
19196         error: Move AC_LIBOBJ invocations to module description.
19197         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19198         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19199         invocations from here...
19200         * modules/error (configure.ac): ... to here.
19201
19202 2011-05-06  Bruno Haible  <bruno@clisp.org>
19203
19204         duplocale: Move AC_LIBOBJ invocations to module description.
19205         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19206         gl_PREREQ_DUPLOCALE invocations from here...
19207         * modules/duplocale (configure.ac): ... to here.
19208
19209 2011-05-05  Bruno Haible  <bruno@clisp.org>
19210
19211         dirfd: Move AC_LIBOBJ invocations to module description.
19212         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19213         gl_FUNC_DIRFD.
19214         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19215         here...
19216         * modules/dirfd (configure.ac): ... to here.
19217         (Depends-on): Fix condition.
19218
19219 2011-05-05  Bruno Haible  <bruno@clisp.org>
19220
19221         chown: Respect rules for use of AC_LIBOBJ.
19222         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19223         * modules/chown (configure.ac): ... to here.
19224
19225 2011-05-05  Bruno Haible  <bruno@clisp.org>
19226
19227         chdir-long: Move AC_LIBOBJ invocations to module description.
19228         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19229         gl_PREREQ_CHDIR_LONG invocations from here...
19230         * modules/chdir-long (configure.ac): ... to here.
19231
19232 2011-05-05  Bruno Haible  <bruno@clisp.org>
19233
19234         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19235         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19236         from here...
19237         * modules/canonicalize-lgpl (configure.ac): ... to here.
19238
19239 2011-05-05  Bruno Haible  <bruno@clisp.org>
19240
19241         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19242         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19243         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19244         REPLACE_CALLOC.
19245         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19246         * modules/calloc-gnu (configure.ac): Likewise.
19247
19248 2011-05-05  Bruno Haible  <bruno@clisp.org>
19249
19250         btowc: Move AC_LIBOBJ invocations to module description.
19251         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19252         invocations from here...
19253         * modules/btowc (configure.ac): ... to here.
19254
19255 2011-05-21  Bruno Haible  <bruno@clisp.org>
19256
19257         atexit: Move AC_LIBOBJ invocations to module description.
19258         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19259         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19260         here...
19261         * modules/atexit (configure.ac): ... to here.
19262
19263 2011-05-05  Bruno Haible  <bruno@clisp.org>
19264
19265         atoll: Move AC_LIBOBJ invocations to module description.
19266         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19267         invocations from here...
19268         * modules/atoll (configure.ac): ... to here.
19269
19270 2011-05-05  Bruno Haible  <bruno@clisp.org>
19271
19272         argz: Move AC_LIBOBJ invocations to module description.
19273         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19274         * modules/argz (configure.ac): ... to here.
19275
19276 2011-05-05  Bruno Haible  <bruno@clisp.org>
19277
19278         alphasort: Move AC_LIBOBJ invocations to module description.
19279         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19280         gl_PREREQ_ALPHASORT invocations from here...
19281         * modules/alphasort (configure.ac): ... to here.
19282
19283 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19284
19285         verify: new macro verify_expr; verify_true deprecated
19286         * NEWS: Mention this.
19287         * doc/verify.texi (Compile-time Assertions): Document this.
19288         * lib/verify.h (verify_true): Deprecate.
19289         (verify_expr): New macro.
19290         * tests/test-verify.c (function): Test verify_expr.
19291
19292 2011-06-14  Jim Meyering  <meyering@redhat.com>
19293
19294         init.sh: give more portable redirection-related advice in a comment
19295         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19296         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19297         for lots of discussion.  Stefano Lattarini suggested the solution
19298         of putting "9>&2" after the command.  Reported by Bruno Haible.
19299
19300 2011-06-13  Bruno Haible  <bruno@clisp.org>
19301
19302         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19303         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19304         'none'.
19305
19306 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19307
19308         ftoastr: use strtof only if HAVE_STRTOF
19309         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19311         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19312         * modules/ftoastr (configure.ac): Check for strtof.
19313
19314 2011-06-13  Bruno Haible  <bruno@clisp.org>
19315
19316         gnulib-tool: Addendum to 2011-06-08 commit.
19317         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19318         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19319
19320 2011-06-13  Bruno Haible  <bruno@clisp.org>
19321
19322         fseeko: Provide a non-inline replacement of fseek().
19323         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19324         * modules/fseeko (Depends-on): Add fseek.
19325         * modules/fseek (License): Change to LGPLv2+.
19326
19327 2011-06-13  Bruno Haible  <bruno@clisp.org>
19328
19329         ftello: Provide a non-inline replacement of ftell().
19330         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19331         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19332         not have ftello() (such as on mingw).
19333         * modules/ftello (Depends-on): Add ftell.
19334         * modules/ftell (License): Change to LGPLv2+.
19335
19336 2011-05-07  Bruno Haible  <bruno@clisp.org>
19337
19338         ftell: Move AC_LIBOBJ invocations to module description.
19339         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19340         * modules/ftell (configure.ac): ... to here.
19341
19342 2011-05-07  Bruno Haible  <bruno@clisp.org>
19343
19344         ftello: Respect rules for use of AC_LIBOBJ.
19345         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19346         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19347         here...
19348         * modules/ftello (configure.ac): ... to here.
19349
19350 2011-05-07  Bruno Haible  <bruno@clisp.org>
19351
19352         fseeko: Simplify.
19353         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19354         (gl_FUNC_FSEEKO): Inline it here.
19355
19356 2011-05-07  Bruno Haible  <bruno@clisp.org>
19357
19358         fseek: Move AC_LIBOBJ invocations to module description.
19359         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19360         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19361         * modules/fseek (configure.ac): ... to here.
19362
19363 2011-05-07  Bruno Haible  <bruno@clisp.org>
19364
19365         fseek: Respect rules for use of AC_LIBOBJ.
19366         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19367         here...
19368         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19369
19370 2011-05-07  Bruno Haible  <bruno@clisp.org>
19371
19372         fseeko: Respect rules for use of AC_LIBOBJ.
19373         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19374         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19375         here...
19376         * modules/fseeko (configure.ac): ... to here.
19377
19378 2011-06-13  Bruno Haible  <bruno@clisp.org>
19379
19380         gnulib-tool: Allow comments in the 'Depends-on' section.
19381         * doc/gnulib.texi (Module description): Mention comment syntax in the
19382         Depends-on section.
19383         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19384
19385 2011-06-13  Bruno Haible  <bruno@clisp.org>
19386
19387         file-set.h: guard __attibute__ use, now that it's not always defined
19388         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19389         versions that support it.  This fixes a coreutils build failure with
19390         the vendor cc on HP-UX 11.31.
19391
19392 2011-06-12  Bruno Haible  <bruno@clisp.org>
19393
19394         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19395         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19396         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19397         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19398         (acl, aclsort): New declarations.
19399         (aclv_nontrivial): New declaration.
19400         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19401         (file_has_acl): Read also the second kind of HP-UX ACLs.
19402         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19403         kind of HP-UX ACLs if the first kind fails.
19404         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19405         second kind of HP-UX ACLs.
19406         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19407         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19408         agree.
19409         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19410         hpuxjfs.
19411         Handle hpuxjfs.
19412         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19413         hpuxjfs.
19414         Handle hpuxjfs.
19415         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19416         (func_test_same_acls): Use both lsacl and getacl.
19417         Handle hpuxjfs.
19418         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19419         (func_test_same_acls): Use both lsacl and getacl.
19420         Handle hpuxjfs.
19421
19422 2011-06-12  Bruno Haible  <bruno@clisp.org>
19423
19424         acl: Complete the 2010-08-10 fix.
19425         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19426         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19427         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19428         explicitly.
19429         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19430         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19431
19432 2011-06-12  Bruno Haible  <bruno@clisp.org>
19433
19434         spawn-pipe tests: Comments.
19435         * tests/test-spawn-pipe-child.c (main): Update comment.
19436         Reported by James Youngman <jay@gnu.org>.
19437
19438 2011-06-11  James Youngman  <jay@gnu.org>
19439
19440         New module 'stat-size'.
19441         * modules/stat-size: New module.  Provides macros for accessing
19442         file size information in instances of struct stat.  Depends on the
19443         fileblocks module because it calls st_blocks.
19444         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19445         * doc/gnulib.texi: Include stat-size.texi.
19446         * doc/stat-size.texi: Documentation for this module.
19447         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19448         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19449         AC_STRUCT_ST_BLOCKS.
19450
19451 2011-06-09  Bruno Haible  <bruno@clisp.org>
19452
19453         thread: Support pthreads-win32.
19454         * lib/glthread/thread.h (gl_thread_self): Define differently on
19455         pthreads-win32.
19456         (gl_null_thread): New declaration.
19457         (gl_thread_self_pointer): New macro.
19458         * lib/glthread/thread.c (gl_null_thread): New constant.
19459         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19460         gl_thread_self.
19461         * tests/test-tls.c: Likewise.
19462         Suggested by Paul Eggert. Reported by Eric Blake.
19463
19464 2011-06-09  Bruno Haible  <bruno@clisp.org>
19465
19466         thread: Fix confusion between NULL and 0.
19467         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19468         Reported by Paul Eggert.
19469
19470 2011-06-09  Bruno Haible  <bruno@clisp.org>
19471
19472         spawn-pipe tests: Avoid test failure on HP-UX 11.
19473         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19474         is closed.
19475
19476 2011-06-09  Bruno Haible  <bruno@clisp.org>
19477
19478         acl tests: Fix compilation error on HP-UX 11.
19479         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19480
19481 2011-06-09  Bruno Haible  <bruno@clisp.org>
19482
19483         rmdir: Avoid test failure on HP-UX 10.20.
19484         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19485         EEXIST.
19486
19487 2011-06-08  Eric Blake  <eblake@redhat.com>
19488
19489         perror: fix test on mingw
19490         * modules/perror-tests (Depends-on): Add dup2.
19491
19492         strerror_r-posix: fix on MacOS
19493         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19494         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19495         logic bug.
19496         * lib/strerror_r.c (strerror_r): Fix the bug.
19497         * lib/strerror.c (strerror): Likewise.
19498         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19499         problem.
19500         * doc/posix-functions/strerror.texi (strerror): Likewise.
19501         * doc/posix-functions/perror.texi (perror): Likewise.
19502         * tests/test-strerror.c (main): Enhance test.
19503         * tests/test-strerror_r.c (main): Likewise.
19504
19505 2011-06-08  Bruno Haible  <bruno@clisp.org>
19506
19507         gnulib-tool: Better isolation between different gnulib-tool invocations.
19508         * gnulib-tool: New option --witness-c-macro.
19509         (witness_c_macro): New variable.
19510         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19511         AM_CPPFLAGS define it as a C macro.
19512         (func_emit_tests_Makefile_am): Likewise.
19513         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19514         read it from there.
19515         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19516         m4_define, not AC_DEFUN.
19517         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19518         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19519         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19520         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19521         s|...|...|, to substitute the values of the GNULIB_* module indicator
19522         variables.
19523         * modules/dirent (Makefile.am): Likewise.
19524         * modules/fcntl-h (Makefile.am): Likewise.
19525         * modules/iconv-h (Makefile.am): Likewise.
19526         * modules/langinfo (Makefile.am): Likewise.
19527         * modules/locale (Makefile.am): Likewise.
19528         * modules/math (Makefile.am): Likewise.
19529         * modules/netdb (Makefile.am): Likewise.
19530         * modules/poll-h (Makefile.am): Likewise.
19531         * modules/pty (Makefile.am): Likewise.
19532         * modules/search (Makefile.am): Likewise.
19533         * modules/signal (Makefile.am): Likewise.
19534         * modules/spawn (Makefile.am): Likewise.
19535         * modules/stdio (Makefile.am): Likewise.
19536         * modules/stdlib (Makefile.am): Likewise.
19537         * modules/string (Makefile.am): Likewise.
19538         * modules/sys_ioctl (Makefile.am): Likewise.
19539         * modules/sys_select (Makefile.am): Likewise.
19540         * modules/sys_socket (Makefile.am): Likewise.
19541         * modules/sys_stat (Makefile.am): Likewise.
19542         * modules/sys_times (Makefile.am): Likewise.
19543         * modules/sys_utsname (Makefile.am): Likewise.
19544         * modules/sys_wait (Makefile.am): Likewise.
19545         * modules/termios (Makefile.am): Likewise.
19546         * modules/time (Makefile.am): Likewise.
19547         * modules/unistd (Makefile.am): Likewise.
19548         * modules/wchar (Makefile.am): Likewise.
19549
19550 2011-06-08  Eric Blake  <eblake@redhat.com>
19551
19552         strerror: simplify replacement
19553         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19554         * modules/strerror (configure.ac): No prereqs needed here...
19555         * modules/strerror-override (configure.ac): ...but this needs it.
19556         (Files): Add file for needed prereq macro.
19557
19558 2011-06-08  Bruno Haible  <bruno@clisp.org>
19559
19560         strerror_r-posix: Tweaks.
19561         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19562         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19563         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19564         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19565         (gl_FUNC_STRERROR_R): ... to here.
19566         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19567
19568 2011-06-07  Eric Blake  <eblake@redhat.com>
19569
19570         perror: document fixed bugs
19571         * doc/posix-functions/perror.texi (perror): Document recent
19572         patches.
19573
19574 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19575
19576         stat-time: get_stat_birthtime failure is better-defined
19577         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19578         return a timestamp whose tv_sec and tv_nsec values are both -1.
19579         Previously, the spec said only that the tv_nsec value was negative.
19580         This upward-compatible change simplifies GNU tar a bit.
19581
19582 2011-06-07  Eric Blake  <eblake@redhat.com>
19583
19584         strerror_r-posix: work around cygwin 1.7.9
19585         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19586         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19587         bug without replacing strerror_r.
19588         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19589         strerror_r is buggy, but without requiring strerror_r compilation.
19590         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19591
19592         test-perror: relax test to ignore cygwin bug
19593         * tests/test-perror2.c (main): Relax test on requiring detection
19594         of stream errors, and use unbuffered stream.
19595         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19596         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19597         * doc/posix-functions/fputc.texi (fputc): Likewise.
19598         * doc/posix-functions/fputs.texi (fputs): Likewise.
19599         * doc/posix-functions/fputws.texi (fputws): Likewise.
19600         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19601         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19602         * doc/posix-functions/getopt.texi (getopt): Likewise.
19603         * doc/posix-functions/perror.texi (perror): Likewise.
19604         * doc/posix-functions/printf.texi (printf): Likewise.
19605         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19606         * doc/posix-functions/psignal.texi (psignal): Likewise.
19607         * doc/posix-functions/putc.texi (putc): Likewise.
19608         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19609         Likewise.
19610         * doc/posix-functions/putchar.texi (putchar): Likewise.
19611         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19612         Likewise.
19613         * doc/posix-functions/puts.texi (puts): Likewise.
19614         * doc/posix-functions/putwc.texi (putwc): Likewise.
19615         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19616         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19617         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19618         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19619         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19620         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19621         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19622         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19623
19624 2011-05-22  Bruno Haible  <bruno@clisp.org>
19625
19626         strerror: Move AC_LIBOBJ invocations to module description.
19627         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19628         gl_PREREQ_STRERROR invocations from here...
19629         * modules/strerror (configure.ac): ... to here.
19630
19631 2011-05-21  Bruno Haible  <bruno@clisp.org>
19632
19633         perror: Use common idiom.
19634         * modules/perror (configure.ac): Reorder statements.
19635
19636 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19637
19638         tests: fix usage message in 'mktempd_'
19639         * tests/init.sh (mktempd_): In the usage message, use literal
19640         'mktempd_', not '$ME' (which is even undefined), as the name of
19641         the subroutine.
19642
19643 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19644
19645         tests init: new function 'fatal_', for hard errors
19646         Before this patch, the only way offered by tests/init.sh to
19647         properly signal a hard error was the `framework_failure_'
19648         function.  But the error message issued by that function,
19649         as its name would suggest, refers to a set-up failure in the
19650         testsuite, while hard errors can obviously also be due to
19651         other reasons.  The best way to fix this inconsistency is to
19652         introduce a new function with a more general error message.
19653         * tests/init.sh (fatal_): New function.
19654
19655 2011-06-06  Eric Blake  <eblake@redhat.com>
19656
19657         canonicalize-lgpl: use common idiom
19658         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19659         over newer POSIX -Rf.
19660         Reported by Bruno Haible.
19661
19662         canonicalize-lgpl: work around AIX realpath bug
19663         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19664         * doc/posix-functions/realpath.texi (realpath): Document it.
19665         Reported by Bruno Haible.
19666
19667         strerror: work around FreeBSD bug
19668         * lib/strerror.c (strerror): Special case 0.
19669         Reported by Bruno Haible.
19670
19671         strerror-override: avoid bloating errno module
19672         * modules/errno (Files, configure.ac): Move replacement strings...
19673         * modules/strerror-override: ...to new module.
19674         * modules/strerror (Depends-on): Add strerror-override.
19675         * modules/strerror_r-posix (Depends-on): Likewise.
19676         * MODULES.html.sh: Document new module.
19677         Reported by Bruno Haible.
19678
19679 2011-06-06  Bruno Haible  <bruno@clisp.org>
19680
19681         spawn-pipe tests: Rename program.
19682         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19683         * tests/test-spawn-pipe-child.c: Update comment.
19684         * tests/test-spawn-pipe.sh: Update.
19685         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19686
19687         spawn-pipe tests: Link the child program only against libc.
19688         * tests/test-spawn-pipe-child.c: New file, extracted from
19689         tests/test-spawn-pipe.c.
19690         (main): Expect only one argument.
19691         (is_open): New function, copied from tests/test-pipe.c.
19692         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19693         (child_main): Remove function.
19694         (test_pipe): Pass only one argument to the child program.
19695         (main): Remove child process code. Expect the child program's name as
19696         first argument.
19697         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19698         argument.
19699         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19700         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19701         test-spawn-pipe-child against no libraries.
19702
19703 2011-06-06  Bruno Haible  <bruno@clisp.org>
19704
19705         careadlinkat: Avoid mismatch between ssize_t and int.
19706         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19707         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19708
19709 2011-06-06  Jim Meyering  <meyering@redhat.com>
19710
19711         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19712         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19713         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19714
19715 2011-06-05  Bruno Haible  <bruno@clisp.org>
19716
19717         ansi-c++-opt: Interoperability with libtool.
19718         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19719         set the variable to "no", not to ":".
19720         * NEWS: Mention the change.
19721
19722 2011-06-05  Bruno Haible  <bruno@clisp.org>
19723
19724         acl: Fix test failure on AIX 7.
19725         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19726         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19727
19728 2011-06-05  Bruno Haible  <bruno@clisp.org>
19729
19730         pipe-filter-ii: Fix test failure on AIX and IRIX.
19731         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19732         with EAGAIN, retry with a smaller buffer size.
19733
19734 2011-06-05  Bruno Haible  <bruno@clisp.org>
19735
19736         localename: Fix link dependencies.
19737         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19738         * modules/localename-tests (Makefile.am): Link test-localename with
19739         $(LIBTHREAD).
19740
19741 2011-06-05  Bruno Haible  <bruno@clisp.org>
19742
19743         error: Avoid gcc warning.
19744         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19745
19746 2011-06-05  Bruno Haible  <bruno@clisp.org>
19747
19748         unsetenv: Avoid gcc warning.
19749         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19750
19751 2011-06-05  Bruno Haible  <bruno@clisp.org>
19752
19753         setenv: Avoid gcc warning.
19754         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19755
19756 2011-06-05  Bruno Haible  <bruno@clisp.org>
19757
19758         sys_select: Ensure memset is declared also on AIX 7.
19759         * lib/sys_select.in.h: Include <string.h> also on AIX.
19760         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19761         self-contained also on AIX 7.1.
19762
19763 2011-06-04  Jim Meyering  <meyering@redhat.com>
19764
19765         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19766         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19767         function name, "error".
19768         (_gl_translatable_diag_func_re): New configurable variable.
19769
19770 2011-06-04  Bruno Haible  <bruno@clisp.org>
19771
19772         getopt: Avoid gcc warning.
19773         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19774
19775 2011-06-04  Bruno Haible  <bruno@clisp.org>
19776
19777         strerror_r: Fix comments.
19778         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19779         commit.
19780
19781 2011-06-04  Bruno Haible  <bruno@clisp.org>
19782
19783         perror: Fix compilation error.
19784         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19785         Undefine fprintf, not sprintf.
19786         * modules/perror (Depends-on): Remove intprops, verify.
19787
19788 2011-06-04  Bruno Haible  <bruno@clisp.org>
19789
19790         setlocale: Enable replacement on Cygwin 1.5.
19791         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19792         Cygwin 1.5.x.
19793         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19794         LC_CTYPE category also exists on Cygwin 1.5.x.
19795
19796 2011-06-04  Bruno Haible  <bruno@clisp.org>
19797
19798         strerror-override: Don't disable symbol renamings.
19799         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19800         * lib/strerror-override.c: Include config.h.
19801         (strerror_override): Don't undefine.
19802
19803 2011-06-03  Bruno Haible  <bruno@clisp.org>
19804
19805         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19806         * lib/localename.h: Update copyright header.
19807         * lib/localename.c: Likewise.
19808         * lib/relocatable.h: Likewise.
19809         * lib/relocatable.c: Likewise.
19810
19811 2011-06-02  Bruno Haible  <bruno@clisp.org>
19812
19813         doc: Fix a module name.
19814         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19815
19816 2011-06-02  Bruno Haible  <bruno@clisp.org>
19817
19818         pipe2: Remove dependency on 'nonblocking' module.
19819         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19820         O_NONBLOCK is defined by gnulib.
19821         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19822         is zero.
19823         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19824         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19825         defined by gnulib.
19826         (get_nonblocking_flag): New function.
19827         (main): Test O_NONBLOCK flag only if it is nonzero.
19828         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19829
19830 2011-06-03  Jim Meyering  <meyering@redhat.com>
19831
19832         maint: three new prohibit-header-without-use rules
19833         Prohibit use of cloexec.h, posixver.h, same.h without use.
19834         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19835         (sc_prohibit_posixver_without_use): Likewise.
19836         (sc_prohibit_same_without_use): Likewise.
19837
19838 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19839
19840         allocator: 'die' routine is now given requested size
19841         * lib/allocator.h (struct allocator.die): New size arg.
19842         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19843         If the actual problem is an ssize_t limitation, not a size_t or
19844         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19845
19846 2011-06-01  Eric Blake  <eblake@redhat.com>
19847
19848         strerror: drop strerror_r dependency
19849         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19850         * lib/strerror-override.c (strerror_override): ...to new file.
19851         * lib/strerror-override.h: Add prototype.
19852         * lib/strerror-impl.h: Delete.
19853         * lib/strerror.c (strerror): New implementation.
19854         * modules/errno (Files): Add new files.
19855         (configure.ac): Compile new file as appropriate.
19856         * modules/strerror (Files): Drop unused file.
19857         (Depends-on): Drop strerror_r-posix.
19858         * MODULES.html.sh: Document strerror_r-posix.
19859         Requested by Sam Steingold.
19860
19861         perror: call strerror_r directly
19862         * modules/perror (Files): Drop strerror-impl.h.
19863         * lib/perror.c (perror): Use our own stack buffer, rather than
19864         calling a wrapper that uses static storage.
19865         * doc/posix-functions/perror.texi (perror): Document a limitation
19866         of our replacement.
19867
19868         strerror_r: fix includes for FreeBSD
19869         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19870         since we use abort on some platforms.
19871         Reported by Matthias Bolte.
19872
19873 2011-05-31  Bruno Haible  <bruno@clisp.org>
19874
19875         Fix link errors in tests: openat-die uses gettext-h.
19876         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19877         against $(LIBINTL).
19878         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19879         against $(LIBINTL).
19880         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19881         $(LIBINTL).
19882         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19883         against $(LIBINTL).
19884         * modules/linkat-tests (Makefile.am): Link test-linkat against
19885         $(LIBINTL).
19886         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19887         $(LIBINTL).
19888         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19889         against $(LIBINTL).
19890         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19891         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19892         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19893         $(LIBINTL).
19894         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19895         $(LIBINTL).
19896         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19897         $(LIBINTL).
19898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19899
19900 2011-05-31  Bruno Haible  <bruno@clisp.org>
19901
19902         Fix link errors in tests: wait-process uses gettext-h.
19903         * modules/nonblocking-pipe-tests (Makefile.am): Set
19904         test_nonblocking_pipe_main_LDADD.
19905         * modules/nonblocking-socket-tests (Makefile.am): Link
19906         test-nonblocking-socket-main against $(LIBINTL).
19907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19908
19909 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19910
19911         assert-h: work around 'verify' incompatibility
19912         * lib/verify.h: Use @...@ directives, not ifdef.
19913         * modules/assert-h (assert.h): Implement the directives.
19914         (assert.h): Substitute the symbol-prefix more consistently.
19915
19916 2011-05-29  Jim Meyering  <meyering@redhat.com>
19917
19918         trim: remove three superfluous assignments
19919         * lib/trim.c (trim2): Remove three superfluous assignments
19920         and correct brace positioning.
19921
19922 2011-05-29  Bruno Haible  <bruno@clisp.org>
19923
19924         wctype-h: Avoid namespace pollution on Solaris 2.6.
19925         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19926         identifiers.
19927         * doc/posix-headers/wctype.texi: Mention the problem.
19928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19929
19930 2011-05-28  Jim Meyering  <meyering@redhat.com>
19931
19932         parse-datetime.y: accommodate -Wstrict-overflow
19933         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19934         placate -Wstrict-overflow.
19935
19936         trim: avoid a warning from -O2 -Wstrict-overflow
19937         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19938
19939 2011-05-29  Bruno Haible  <bruno@clisp.org>
19940
19941         gnulib-tool: Fix bug in yesterday's commit.
19942         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19943         twice.
19944
19945 2011-05-29  Bruno Haible  <bruno@clisp.org>
19946
19947         Allow multiple gnulib generated include files to be combined.
19948         * gnulib-tool (func_compute_include_guard_prefix): New function.
19949         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19950         ${gl_include_guard_prefix} references.
19951         (func_import, func_create_testdir): Invoke
19952         func_compute_include_guard_prefix.
19953         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19954         * lib/ctype.in.h: Likewise.
19955         * lib/dirent.in.h: Likewise.
19956         * lib/errno.in.h: Likewise.
19957         * lib/fcntl.in.h: Likewise.
19958         * lib/float.in.h: Likewise.
19959         * lib/getopt.in.h: Likewise.
19960         * lib/iconv.in.h: Likewise.
19961         * lib/langinfo.in.h: Likewise.
19962         * lib/locale.in.h: Likewise.
19963         * lib/math.in.h: Likewise.
19964         * lib/netdb.in.h: Likewise.
19965         * lib/netinet_in.in.h: Likewise.
19966         * lib/poll.in.h: Likewise.
19967         * lib/pthread.in.h: Likewise.
19968         * lib/pty.in.h: Likewise.
19969         * lib/sched.in.h: Likewise.
19970         * lib/se-selinux.in.h: Likewise.
19971         * lib/search.in.h: Likewise.
19972         * lib/signal.in.h: Likewise.
19973         * lib/spawn.in.h: Likewise.
19974         * lib/stdarg.in.h: Likewise.
19975         * lib/stddef.in.h: Likewise.
19976         * lib/stdint.in.h: Likewise.
19977         * lib/stdio.in.h: Likewise.
19978         * lib/stdlib.in.h: Likewise.
19979         * lib/string.in.h: Likewise.
19980         * lib/strings.in.h: Likewise.
19981         * lib/sys_file.in.h: Likewise.
19982         * lib/sys_ioctl.in.h: Likewise.
19983         * lib/sys_select.in.h: Likewise.
19984         * lib/sys_socket.in.h: Likewise.
19985         * lib/sys_stat.in.h: Likewise.
19986         * lib/sys_time.in.h: Likewise.
19987         * lib/sys_times.in.h: Likewise.
19988         * lib/sys_uio.in.h: Likewise.
19989         * lib/sys_utsname.in.h: Likewise.
19990         * lib/sys_wait.in.h: Likewise.
19991         * lib/sysexits.in.h: Likewise.
19992         * lib/termios.in.h: Likewise.
19993         * lib/time.in.h: Likewise.
19994         * lib/unistd.in.h: Likewise.
19995         * lib/wchar.in.h: Likewise.
19996         * lib/wctype.in.h: Likewise.
19997         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19998         * modules/ctype (Makefile.am): Likewise.
19999         * modules/dirent (Makefile.am): Likewise.
20000         * modules/errno (Makefile.am): Likewise.
20001         * modules/fcntl-h (Makefile.am): Likewise.
20002         * modules/float (Makefile.am): Likewise.
20003         * modules/getopt-posix (Makefile.am): Likewise.
20004         * modules/iconv-h (Makefile.am): Likewise.
20005         * modules/langinfo (Makefile.am): Likewise.
20006         * modules/locale (Makefile.am): Likewise.
20007         * modules/math (Makefile.am): Likewise.
20008         * modules/netdb (Makefile.am): Likewise.
20009         * modules/netinet_in (Makefile.am): Likewise.
20010         * modules/poll-h (Makefile.am): Likewise.
20011         * modules/pthread (Makefile.am): Likewise.
20012         * modules/pty (Makefile.am): Likewise.
20013         * modules/sched (Makefile.am): Likewise.
20014         * modules/search (Makefile.am): Likewise.
20015         * modules/selinux-h (Makefile.am): Likewise.
20016         * modules/signal (Makefile.am): Likewise.
20017         * modules/spawn (Makefile.am): Likewise.
20018         * modules/stdarg (Makefile.am): Likewise.
20019         * modules/stddef (Makefile.am): Likewise.
20020         * modules/stdint (Makefile.am): Likewise.
20021         * modules/stdio (Makefile.am): Likewise.
20022         * modules/stdlib (Makefile.am): Likewise.
20023         * modules/string (Makefile.am): Likewise.
20024         * modules/strings (Makefile.am): Likewise.
20025         * modules/sys_file (Makefile.am): Likewise.
20026         * modules/sys_ioctl (Makefile.am): Likewise.
20027         * modules/sys_select (Makefile.am): Likewise.
20028         * modules/sys_socket (Makefile.am): Likewise.
20029         * modules/sys_stat (Makefile.am): Likewise.
20030         * modules/sys_time (Makefile.am): Likewise.
20031         * modules/sys_times (Makefile.am): Likewise.
20032         * modules/sys_uio (Makefile.am): Likewise.
20033         * modules/sys_utsname (Makefile.am): Likewise.
20034         * modules/sys_wait (Makefile.am): Likewise.
20035         * modules/sysexits (Makefile.am): Likewise.
20036         * modules/termios (Makefile.am): Likewise.
20037         * modules/time (Makefile.am): Likewise.
20038         * modules/unistd (Makefile.am): Likewise.
20039         * modules/wchar (Makefile.am): Likewise.
20040         * modules/wctype-h (Makefile.am): Likewise.
20041         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20042
20043 2011-05-29  Bruno Haible  <bruno@clisp.org>
20044
20045         assert-h: Allow multiple gnulib generated replacements to coexist.
20046         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20047
20048 2011-05-29  Bruno Haible  <bruno@clisp.org>
20049
20050         argp: Allow coexistence with strerror_r-posix module.
20051         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20052         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20053         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20054         not the glibc signature.
20055
20056 2011-05-28  Bruno Haible  <bruno@clisp.org>
20057
20058         gnulib-tool: Alternative structure of testdirs, similar to --import.
20059         * gnulib-tool: New option --single-configure.
20060         (func_usage): Document it.
20061         (single_configure): New variable.
20062         (func_modules_transitive_closure_separately,
20063         func_modules_transitive_closure_separately,
20064         func_determine_use_libtests, func_modules_add_dummy_separately,
20065         func_modules_to_filelist_separately): New functions, extracted from
20066         func_import.
20067         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20068         (func_import): Use the new functions.
20069         (func_create_testdir): Set final_modules. Handle $single_configure =
20070         true case.
20071
20072 2011-05-28  Bruno Haible  <bruno@clisp.org>
20073
20074         getloadavg: Remove an unreliable safety check.
20075         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20076         getloadavg.c is in place.
20077         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20078         Reported by Sam Steingold <sds@gnu.org>.
20079
20080 2011-05-28  Bruno Haible  <bruno@clisp.org>
20081
20082         doc: Cleanup yet another file produced by texinfo.tex.
20083         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20084
20085 2011-05-28  Bruno Haible  <bruno@clisp.org>
20086
20087         Finish the conditional dependencies mechanism.
20088         * gnulib-tool: New option --no-conditional-dependencies.
20089         (func_usage): Document it. Don't mark --conditional-dependencies as
20090         experimental.
20091         (cond_dependencies): The possible values can now be true, false, empty.
20092         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20093         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20094         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20095
20096 2011-05-28  Bruno Haible  <bruno@clisp.org>
20097
20098         doc: Use a recent texinfo.tex.
20099         * doc/Makefile (tex_opts): New variable.
20100         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20101
20102 2011-05-28  Jim Meyering  <meyering@redhat.com>
20103
20104         intprops.h: adjust comment to match code change
20105         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20106         only once, it *may* have side effects.  Also fix an unrelated typo.
20107         (_GL_INT_SIGNED): Likewise.
20108
20109 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20110
20111         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20112
20113 2011-05-26  Bruno Haible  <bruno@clisp.org>
20114
20115         mbsrchr: Avoid collision with system function on Interix.
20116         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20117         Reported by Markus Duft <mduft@gentoo.org>.
20118
20119 2011-05-15  James Youngman  <jay@gnu.org>
20120
20121         getopt: for ambiguous options, enumerate the possibilities.
20122         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20123         the ambiguous options when an ambiguous prefix is given. This was
20124         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20125         glibc change was
20126         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20127
20128 2011-05-25  Eric Blake  <eblake@redhat.com>
20129
20130         getcwd: work around mingw bug
20131         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20132         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20133         Reported by Matthias Bolte.
20134
20135 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20136
20137         test-intprops: disable -Wtype-limits diagnostics
20138         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20139         diagnostics.  Otherwise, the integer overflow macros generate many
20140         diagnostics.  Reported by Jim Meyering in
20141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20142
20143         intprops: shorten, to pacify gcc -Woverlength-strings
20144         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20145         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20146         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20147         likely to run afoul of C compiler limits for string constant lengths.
20148         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20149
20150 2011-05-24  Eric Blake  <eblake@redhat.com>
20151
20152         docs: document recently fixed glibc printf bug
20153         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20154         * doc/posix-functions/printf.texi (printf): Likewise.
20155         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20156         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20157
20158         closein-tests: convert to init.sh
20159         * modules/closein-tests (Files): Add init.sh
20160         * tests/test-closein.sh Use it.
20161
20162         yesno-tests: convert to init.sh
20163         * modules/yesno-tests (Files): Add init.sh.
20164         * tests/test-yesno.sh: Use it.
20165
20166         atexit-tests: ensure reliable exit status
20167         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20168         Reported by Bruno Haible.
20169
20170 2011-05-24  Bruno Haible  <bruno@clisp.org>
20171
20172         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20173         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20174         gl_PREREQ_STRERROR_R invocations from here...
20175         * modules/strerror_r-posix (configure.ac): ... to here.
20176
20177 2011-05-24  Eric Blake  <eblake@redhat.com>
20178
20179         strerror_r: fix missing header
20180         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20181
20182         strerror_r: fix AIX test failures
20183         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20184         ERANGE failure.
20185
20186         strerror_r: fix Solaris test failures
20187         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20188         failures.
20189         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20190
20191         strerror_r: enforce POSIX recommendations
20192         * lib/strerror_r.c (safe_copy): New helper method.
20193         (strerror_r): Guarantee a non-empty string.
20194         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20195         recent POSIX rulings and to match our strerror guarantees.
20196         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20197
20198 2011-05-24  Jim Meyering  <meyering@redhat.com>
20199
20200         test-perror2.c: avoid warning about unused variable
20201         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20202
20203 2011-05-24  Eric Blake  <eblake@redhat.com>
20204
20205         perror: avoid spurious test failure on HP-UX
20206         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20207
20208         tests: fix logic bug in init.sh
20209         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20210         shell.
20211
20212 2011-05-24  Jim Meyering  <meyering@redhat.com>
20213
20214         utimensat: do not reference an out-of-scope buffer
20215         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20216         declared in an inner scope, yet "times" would be dereferenced outside
20217         the scope in which "ts" was valid.
20218         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20219         of ts[2] "out/up", so that the use of aliased "times" (via
20220         "times = ts;") does not end up referencing an out-of-scope "ts"
20221
20222         opendir-safer.c: don't clobber errno; don't close negative FD
20223         * lib/opendir-safer.c (opendir_safer):
20224         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20225         file descriptor, and more importantly, don't clobber the
20226         offending errno value with EINVAL.  Before, upon failure
20227         of dup_safer, we would pass the negative file descriptor to
20228         fdopendir, which would clobber errno.
20229
20230 2011-05-23  Bruno Haible  <bruno@clisp.org>
20231
20232         idcache: Fix module description.
20233         * modules/idcache (Include): Set to "idcache.h".
20234
20235 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20236
20237         gnulib-tool: fix portability problem with MacOS sed
20238         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20239         before the "}".  Problem reported by Leo in
20240         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20241         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20242         sed_extract_condition1, sed_extract_condition2.
20243
20244 2011-05-23  Bruno Haible  <bruno@clisp.org>
20245
20246         hash: Simplify autoconf macro.
20247         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20248
20249 2011-05-23  Bruno Haible  <bruno@clisp.org>
20250
20251         getugroups: Fix module description.
20252         * modules/getugroups (Include): Set to "getugroups.h".
20253
20254 2011-05-23  Bruno Haible  <bruno@clisp.org>
20255
20256         linkat: Simplify autoconf macro.
20257         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20258
20259 2011-05-23  Bruno Haible  <bruno@clisp.org>
20260             Eric Blake  <eblake@redhat.com>
20261
20262         linkat, renameat: Update dependencies.
20263         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20264         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20265         symlinkat.
20266
20267 2011-05-23  Jim Meyering  <meyering@redhat.com>
20268
20269         maint.mk: more tight_scope improvements
20270         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20271         (_gl_TS_headers): Define only in if-0'd block.
20272         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20273         sometimes we must *not* use it.  Adjust uses accordingly.
20274         (sc_tight_scope): Use much simpler grep-based test to determine
20275         whether we skip this rule.
20276
20277         maint.mk: generalize/improve the tight-scope rule
20278         * top/maint.mk: Emit a warning when the test is skipped.
20279         (_gl_TS_dir): Add $(srcdir)/ prefix.
20280         (_gl_TS_function_match): Simplify, rather than trying
20281         to enumerate common types.  Otherwise, it would fail to match an
20282         "extern unsigned char const *" declaration in idutils.
20283         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20284         a way to support use of that type of macro.
20285         (_gl_TS_var_match): Simplify regexp.
20286         (_gl_TS_obj_files): New configurable variable.
20287         (_gl_TS_headers): Likewise.
20288
20289 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20290
20291         verify: fix bug when gnulib <assert.h> is also included
20292         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20293         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20294         Perhaps there's a better way, but this fixes the immediate problem.
20295         Problem reported by Bruno Haible in
20296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20297
20298 2011-05-22  Bruno Haible  <bruno@clisp.org>
20299
20300         xgetcwd: Simplify autoconf macro.
20301         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20302
20303 2011-05-22  Bruno Haible  <bruno@clisp.org>
20304
20305         New module 'mktime-internal'.
20306         * modules/mktime-internal: New file.
20307         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20308         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20309         mktime_internal as a C macro if libc has __mktime_internal.
20310         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20311         conditions.
20312         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20313
20314 2011-05-22  Bruno Haible  <bruno@clisp.org>
20315
20316         timegm: Correct mktime replacement statements.
20317         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20318         defining mktime as a C macro. This completes a 2009-07-28 commit.
20319
20320 2011-05-22  Bruno Haible  <bruno@clisp.org>
20321
20322         timegm: Simplify autoconf macro.
20323         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20324
20325 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20326
20327         clock-time: change to LGPLv2+.
20328         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20329         BSD-like but we have no mark for that; this is good enough for now.
20330
20331 2011-05-21  Bruno Haible  <bruno@clisp.org>
20332
20333         strerror_r: Fix comments.
20334         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20335
20336 2011-05-21  Bruno Haible  <bruno@clisp.org>
20337
20338         relocatable-prog-wrapper: Fix possible link error.
20339         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20340         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20341         (gl_FUNC_SETENV): ... to here.
20342         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20343         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20344
20345 2011-05-21  Bruno Haible  <bruno@clisp.org>
20346
20347         relocatable-prog-wrapper: Assume strerror() exists.
20348         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20349         m4/strerror.m4.
20350         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20351         * lib/relocwrapper.c: Remove mention of strerror module.
20352         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20353         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20354         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20355         C macro.
20356
20357 2011-05-21  Bruno Haible  <bruno@clisp.org>
20358
20359         select: Simplify replacement idiom.
20360         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20361         Win32 platforms.
20362         * lib/sys_select.in.h (select): Simplify accordingly.
20363         * modules/select (Depends-on): Likewise.
20364
20365 2011-05-21  Bruno Haible  <bruno@clisp.org>
20366
20367         mkdir-p: Simplify autoconf macro.
20368         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20369         gl_FUNC_LCHOWN.
20370
20371 2011-05-21  Eric Blake  <eblake@redhat.com>
20372
20373         strerror_r: avoid clobbering strerror on cygwin
20374         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20375         fall back instead to sys_errlist.
20376         * modules/strerror (configure.ac): Add witness.
20377         * tests/test-strerror_r.c (main): Enhance test.
20378         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20379         * tests/test-perror2.c (main): Free memory before exit.
20380
20381 2011-05-21  Bruno Haible  <bruno@clisp.org>
20382
20383         mkdtemp: Use gnulib naming conventions.
20384         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20385         * modules/mkdtemp (configure.ac): Update.
20386
20387 2011-05-20  Eric Blake  <eblake@redhat.com>
20388
20389         strerror_r: avoid corrupting errno on Solaris
20390         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20391         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20392
20393         strerror_r: avoid compiler warning
20394         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20395
20396         strerror_r: simplify AIX code
20397         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20398
20399         test-perror: avoid spurious failure on FreeBSD
20400         * modules/perror-tests (Depends-on): Add strerror, now that
20401         strerror_r no longer pulls it in.
20402
20403 2011-05-20  Bruno Haible  <bruno@clisp.org>
20404
20405         strerror_r-posix: Remove unused dependencies.
20406         * modules/strerror_r-posix (Depends-on): Remove strerror.
20407         Reported by Eric Blake.
20408
20409 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20410
20411         intprops: remove assumption about A|B representation
20412         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20413         is a valid integer if both A and B are.  Although this is true for
20414         all known practical hosts, the C standard doesn't guarantee it,
20415         and the code need not assume it.  Also, this change may work around
20416         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20417         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20418
20419 2011-05-20  Eric Blake  <eblake@redhat.com>
20420
20421         perror: work around FreeBSD bug
20422         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20423         is broken.  Move AC_LIBOBJ...
20424         * modules/perror (configure.ac): Here.
20425         * doc/posix-functions/perror.texi (perror): Document this.
20426         * tests/test-perror2.c (main): Enhance test.
20427
20428         test-perror: check for strerror interactions
20429         * tests/macros.h (STREQ): Add macro.
20430         * modules/perror-tests (Files): Add second test.
20431         * tests/test-perror2.c (main): New file.
20432         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20433
20434         test-perror: rewrite to use init script
20435         * modules/perror-tests (Files): Add init.sh.
20436         * tests/test-perror.sh: Use temporary directory.
20437
20438 2011-05-20  Jim Meyering  <meyering@redhat.com>
20439
20440         maint: replace misused "a" with "an"
20441         * doc/intprops.texi: "a integer"
20442         * doc/regex.texi: "a explanation"
20443         * lib/alignof.h: "a object"
20444         * lib/argmatch.h: "a explanation"
20445         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20446         * lib/stdint.in.h: "a integer"
20447         * lib/userspec.c: "a owner"
20448         * doc/gnulib.texi: Fix "a idea", and reword.
20449
20450 2011-05-19  Jim Meyering  <meyering@redhat.com>
20451
20452         maint: correct misuse of "a" and "an"
20453         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20454         * lib/argp-help.c: "an docum...": s/an/a/
20455         * lib/argp-parse.c: "An vector": s/An/A/
20456         * lib/execute.c: "an native": s/an/a/
20457         * lib/spawn-pipe.c: Likewise.
20458         * lib/gc.h: "an Gc_rc": s/an/a/
20459         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20460         * lib/fts.c: "an stat.st_dev": s/an/a/
20461
20462 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20463
20464         intprops-tests: work around HP-UX 11.23 cc bug with constants
20465         * tests/test-intprops.c (VERIFY): New macro.
20466         (main): Use it, instead of verify, to work around the compiler bug; see
20467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20468
20469         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20470         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20471         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20472         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20473         (_GL_REMAINDER_OVERFLOW): Use it.
20474
20475         intprops-tests: revert unsigned part of previous change
20476         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20477         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20478         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20480
20481 2011-05-19  Bruno Haible  <bruno@clisp.org>
20482
20483         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20484         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20485         strerror_r() returned without filling the buffer.
20486         Reported by Eric Blake.
20487
20488 2011-05-19  Eric Blake  <eblake@redhat.com>
20489
20490         strerror_r: guarantee unchanged errno
20491         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20492         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20493         failure.
20494         * tests/test-strerror_r.c (main): Enhance test.
20495
20496 2011-05-19  Bruno Haible  <bruno@clisp.org>
20497
20498         strerror_r: Reorder #if blocks.
20499         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20500         for consistency with the previous commit.
20501
20502 2011-05-19  Bruno Haible  <bruno@clisp.org>
20503
20504         perror: Avoid clobbering the strerror buffer when possible.
20505         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20506         * lib/strerror.c: Include it.
20507         * modules/strerror (Files): Add lib/strerror-impl.h.
20508         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20509         (my_strerror): New function, defined through lib/strerror-impl.h.
20510         (perror): Use it instead of strerror.
20511         * modules/perror (Files): Add lib/strerror-impl.h.
20512         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20513
20514 2011-05-19  Eric Blake  <eblake@redhat.com>
20515
20516         strerror_r: fix on newer cygwin
20517         * lib/strerror_r.c (strerror_r): Cygwin now has
20518         __xpg_strerror_r, use it.
20519
20520 2011-05-19  Bruno Haible  <bruno@clisp.org>
20521
20522         strerror_r: Avoid clobbering the strerror buffer when possible.
20523         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20524         (sys_nerr, sys_errlist): New declarations.
20525         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20526         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20527         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20528
20529 2011-05-19  Bruno Haible  <bruno@clisp.org>
20530
20531         strerror_r: Fix test failure on mingw.
20532         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20533         EXTEND_STRERROR_R.
20534         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20535         macros from errno.in.h instead.
20536
20537 2011-05-19  Eric Blake  <eblake@redhat.com>
20538
20539         strerror: relax test for Solaris
20540         * tests/test-strerror.c (main): Permit Solaris behavior.
20541         * tests/test-strerror_r.c (main): Likewise.
20542
20543         strerror: enforce POSIX ruling on strerror(0)
20544         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20545         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20546         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20547         * doc/posix-functions/strerror.texi (strerror): Document it.
20548         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20549         * tests/test-strerror.c (main): Strengthen test.
20550         * tests/test-strerror_r.c (main): Likewise.
20551
20552 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20553
20554         intprop-tests: port to older and more-pedantic compilers
20555         * modules/intprops-tests (Files): Add tests/macros.h.
20556         * tests/test-intprops.c: Include macros.h.
20557         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20558         it's no longer documented to expand to an integer constant expression.
20559         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20560         argument is floating point, as it's no longer documented to expand
20561         to an integer constant expression in that case.
20562         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20563         compiler bugs reported by Bruno Haible.  See
20564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20565         (U0, U1): New constants, to work around the same bugs.  Also,
20566         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20567
20568         intprops: work around C compiler bugs
20569         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20570         bug in Sun C 5.11 2010/08/13 and other compilers; see
20571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20572
20573         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20574         * doc/intprops.texi (Integer Type Determination): Fix
20575         documentation for TYPE_IS_INTEGER: it returns an constant
20576         expression, not an integer constant expression.  Fix doc for
20577         TYPE_SIGNED: it returns an integer constant expression only if its
20578         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20579         hardly worth documented that way....)
20580
20581 2011-05-18  Bruno Haible  <bruno@clisp.org>
20582
20583         strerror_r: Avoid clobbering the strerror buffer when possible.
20584         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20585         Handle gnulib defined errno values here. When strerror() returns NULL
20586         or an empty string, return EINVAL.
20587         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20588         gnulib defined errno values here.
20589         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20590
20591 2011-05-18  Eric Blake  <eblake@redhat.com>
20592
20593         fnmatch: avoid compiler warning
20594         * lib/fnmatch_loop.c (FCT): Use correct type.
20595         Reported by Matthias Bolte.
20596
20597 2011-05-13  Jim Meyering  <meyering@redhat.com>
20598
20599         maint.mk: three new prohibit_<HDR>_without_use rules
20600         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20601         (sc_prohibit_stdio-safer_without_use): Likewise.
20602         (sc_prohibit_xfreopen_without_use): Likewise.
20603
20604 2011-05-17  Jim Meyering  <meyering@redhat.com>
20605
20606         announce-gen: fail if the NEWS delta is empty
20607         If there's nothing noteworthy in NEWS, then either you forgot
20608         or you shouldn't be releasing.
20609         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20610
20611 2011-05-17  Pádraig Brady <P@draigBrady.com>
20612
20613         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20614         reserved symbols starting with double underscore from the check.
20615
20616 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20617
20618         intprops: add doc
20619         * doc/intprops.texi: New file, documenting intprops.
20620         * doc/gnulib.texi (Particular Modules): Include it.
20621
20622         verify: add doc to gnulib manual and fix example
20623         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20624         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20625         (Compile-time Assertions): Fix example so it can't overflow.
20626
20627 2011-05-17  Jim Meyering  <meyering@redhat.com>
20628
20629         warnings.m4: don't usurp save_CPPFLAGS variable name
20630         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20631
20632         doc: fix typo
20633         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20634
20635 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20636             Bruno Haible  <bruno@clisp.org>
20637
20638         doc: Tweak recent change.
20639         * README (Portability guidelines): Tweak new text.
20640         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20641         Interix 6.1.
20642
20643 2011-05-16  Eric Blake  <eblake@redhat.com>
20644
20645         inttypes: avoid autoconf warning
20646         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20647         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20648
20649 2011-05-16  Sam Steingold <sds@gnu.org>
20650         and Eric Blake  <eblake@redhat.com>
20651
20652         vc-list-files: accept multiple directory operands
20653         * build-aux/vc-list-files: Iterate over all remaining operands.
20654
20655 2011-05-16  Bruno Haible  <bruno@clisp.org>
20656
20657         Fix confusion regarding deprecated modules.
20658         * modules/calloc (Status, Notice): Mark module as deprecated, not
20659         obsolete.
20660         * modules/fnmatch-posix (Status, Notice): Likewise.
20661         * modules/getdate (Status, Notice): Likewise.
20662         * modules/getopt (Status, Notice): Likewise.
20663         * modules/malloc (Status, Notice): Likewise.
20664         * modules/pipe (Status, Notice): Likewise.
20665         * modules/realloc (Status, Notice): Likewise.
20666         * modules/rename-dest-slash (Status, Notice): Likewise.
20667         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20668         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20669         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20670         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20671         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20672
20673 2011-05-16  Bruno Haible  <bruno@clisp.org>
20674
20675         doc: List the target platforms.
20676         * doc/gnulib-intro.texi (Target Platforms): New section.
20677         * doc/gnulib.texi (Introduction): Update menu.
20678         * README (Portability guidelines): Refer to the new section. Update
20679         statement about oldest supported environment. Remove rationale why
20680         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20681         unportable C89 function.
20682         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20683         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20684
20685 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20686
20687         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20688
20689 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20690
20691         intprops-tests: new module
20692         * modules/intprops-tests, tests/test-intprops.c: New files.
20693
20694         intprops: add safe, portable integer overflow checking
20695         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20696         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20697         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20698         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20699         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20700         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20701         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20702         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20703         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20704         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20705         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20706
20707 2011-05-12  James Youngman  <jay@gnu.org>
20708
20709         Add a test for glibc's Bugzilla bug #12378.
20710         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20711         doesn't allow the literal matching of a lone "[" (which is
20712         required by POSIX).
20713         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20714
20715 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20716
20717         Sync glibc change fixing Bugzilla bug #12378.
20718         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20719         beginning and fall back to matching as normal character if the
20720         string ends before the matching ']' is found.  This is what POSIX
20721         requires.
20722
20723 2011-05-13  Eric Blake  <eblake@redhat.com>
20724
20725         getcwd-lgpl: relax test for FreeBSD
20726         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20727         issue.
20728         * tests/test-getcwd-lgpl.c (main): Relax test.
20729         Reported by Matthias Bolte.
20730
20731 2011-05-11  Eric Blake  <eblake@redhat.com>
20732
20733         test-fflush: silence compiler warning
20734         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20735
20736 2011-05-11  Bruno Haible  <bruno@clisp.org>
20737
20738         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20739         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20740         * modules/canonicalize (Depends-on): Add 'nocrash'.
20741         * modules/canonicalize-lgpl (Depends-on): Likewise.
20742         * doc/posix-functions/realpath.texi: Update platforms list.
20743         Reported by Ryan Schmidt <ryandesign@macports.org>.
20744
20745 2011-05-11  Bruno Haible  <bruno@clisp.org>
20746
20747         group-member: Declare function in <unistd.h>.
20748         * lib/unistd.in.h (group_member): New declaration.
20749         * lib/group-member.h: Remove file.
20750         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20751         * tests/test-unistd-c++.cc: Check signature of group_member.
20752         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20753         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20754         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20755         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20756         HAVE_GROUP_MEMBER.
20757         * modules/group-member (Files): Remove lib/group-member.h.
20758         (Depends-on): Add unistd. Specify conditions.
20759         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20760         (Include): Change to <unistd.h>.
20761         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20762         HAVE_GROUP_MEMBER.
20763         * NEWS: Mention the change.
20764         * lib/euidaccess.c: Don't include group-member.h.
20765
20766 2011-05-11  Bruno Haible  <bruno@clisp.org>
20767
20768         group-member: Document module.
20769         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20770         module.
20771
20772 2011-05-11  Bruno Haible  <bruno@clisp.org>
20773
20774         fclose: Fix mistake earlier today.
20775         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20776
20777 2011-05-11  Eric Blake  <eblake@redhat.com>
20778
20779         fclose: preserve fflush errors
20780         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20781         Reported by Jim Meyering.
20782
20783         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20784         * build-aux/bootstrap (check_versions): When no specific version
20785         is required, merely check that the app produces an exit status
20786         that indicates its existence.
20787
20788         maint.mk: drop redundant check
20789         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20790         the same but better.
20791
20792 2011-05-11  Bruno Haible  <bruno@clisp.org>
20793
20794         fclose: Fix possible link error.
20795         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20796         unregister_shadow_fd. Improve comments.
20797         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20798         Eric Blake.
20799
20800 2011-05-11  Jim Meyering  <meyering@redhat.com>
20801
20802         maint.mk: improve "can not" detection and generalize rule name
20803         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20804         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20805         Use the same technique as in sc_prohibit_doubled_word, so that
20806         we recognize "can not" also when the words are separated by a newline.
20807         Suggested by Eric Blake.
20808         (perl_filename_lineno_text_): Define.  Factored out of...
20809         (prohibit_doubled_word_): ...here.  Use the new definition.
20810         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20811         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20812         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20813
20814 2011-05-10  Eric Blake  <eblake@redhat.com>
20815
20816         fclose: avoid double close race when possible
20817         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20818         all but WINDOWS_SOCKETS.
20819
20820 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20821
20822         openat: correct new comment
20823         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20824
20825 2011-05-10  Jim Meyering  <meyering@redhat.com>
20826
20827         openat: add comments
20828         * lib/openat-proc.c (openat_proc_name): Add comments,
20829         mostly from Eric Blake.
20830
20831 2011-05-09  Eric Blake  <eblake@redhat.com>
20832
20833         openat: reduce syscalls in first probe of /proc
20834         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20835         be a directory.  Simplify the probe for .. bugs.
20836         * modules/openat (Depends-on): Drop same-inode.
20837         Reported by Bastien ROUCARIES.
20838
20839 2011-05-09  Jim Meyering  <meyering@redhat.com>
20840
20841         maint.mk: change semantics/name of tight_scope variables
20842         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20843         Rename variables to align with semantics that make them more useful.
20844
20845         maint.mk: tweak new rule's name not to impinge
20846         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20847         (sc_tight_scope): Use new rule name rather than $@-0.
20848
20849         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20850         * top/maint.mk (sc_tight_scope): New rule.
20851         (sc_tight_scope-0): New rule, ifdef'd out.
20852         (_gl_TS_dir): Default.
20853         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20854         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20855
20856 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20857
20858         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20859         Haible <bruno@clisp.org>.
20860
20861 2011-05-08  Bruno Haible  <bruno@clisp.org>
20862
20863         Comments.
20864         * m4/isnanf.m4: Add comment.
20865         * m4/isnanl.m4: Likewise.
20866
20867 2011-05-08  Bruno Haible  <bruno@clisp.org>
20868
20869         glob: Remove obsolete macro.
20870         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20871
20872 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20873
20874         intprops: Sun C 5.11 supports __typeof__
20875         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20876         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20877         which is new.
20878         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20879
20880         intprops: switch to usual gnulib indenting and naming
20881         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20882         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20883
20884         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20885
20886 2011-05-08  Jim Meyering  <meyering@redhat.com>
20887
20888         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20889         * top/maint.mk (release-prep): Use make's --no-print-directory
20890         option when generating the announcement.  This eliminates the
20891         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20892         generated announcement template.
20893
20894 2011-05-08  Bruno Haible  <bruno@clisp.org>
20895
20896         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20897         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20898         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20899
20900 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20901
20902         ignore-value, verify: Omit include files from lib_SOURCES.
20903         * modules/ignore-value, modules/verify (Makefile.am):
20904         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20905         that leads Automake to duplicate use of am__objects_... variables
20906         in Makefile.in.  See
20907         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20908
20909 2011-05-07  Bruno Haible  <bruno@clisp.org>
20910
20911         fclose: Simplify autoconf macro.
20912         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20913         defined.
20914
20915 2011-05-07  Bruno Haible  <bruno@clisp.org>
20916
20917         canonicalize-lgpl: Fix autoconf macro ordering bug.
20918         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20919         gl_STDLIB_H_DEFAULTS.
20920
20921 2011-05-06  Eric Blake  <eblake@redhat.com>
20922
20923         maintainer-makefile: make sc_po_check easier to tune
20924         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20925         to probe for strings, such as an alternate location for gnulib.
20926
20927         fclose: guarantee behavior on seekable stdin
20928         * modules/fclose (Depends-on): Add fflush.
20929         * doc/posix-functions/fclose.texi (fclose): Document this.
20930         * tests/test-fclose.c (main): Make test for this unconditional.
20931
20932 2011-05-06  Bruno Haible  <bruno@clisp.org>
20933
20934         fflush, fpurge: Relicense under LGPLv2+.
20935         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20936         * modules/fpurge (License): Likewise.
20937         With permission from Eric Blake and Jim Meyering.
20938         Suggested by Eric Blake.
20939
20940 2011-05-06  Karl Berry  <karl@gnu.org>
20941
20942         * MODULES.html.sh (func_all_modules): remove exit.
20943
20944 2011-05-06  Jim Meyering  <meyering@redhat.com>
20945
20946         maint.mk: use info-gnu@ as the default only for a stable release
20947         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20948         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20949         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20950         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20951
20952 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20953
20954         assert-h: new module, which supports C1X-style static_assert
20955         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20956         * lib/verify.h: Revamp so that this can be copied into assert.h,
20957         while retaining the ability to use it standalone as before.
20958         Rename private identifiers so as not to encroach on the
20959         standard C namespace, since this is now used by assert.h.
20960         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20961         the old verify_true.
20962         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20963         the old verify_true.  Use _GL_VERIFY_TYPE.
20964         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20965         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20966         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20967         defined when this file is copied into the replacement assert.h.
20968         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20969         and _Static_assert is not built in.
20970         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20971         defined, and use the new macros mentioned above.
20972         * doc/posix-headers/assert.texi: Document this.
20973
20974 2011-05-05  Bruno Haible  <bruno@clisp.org>
20975
20976         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20977         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20978         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20979         gl_REPLACE_FCLOSE here.
20980         * modules/fflush (Depends-on): Remove fclose.
20981         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20982         combination with module 'fclose'.
20983
20984 2011-05-05  Bruno Haible  <bruno@clisp.org>
20985
20986         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20987         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20988         gl_FUNC_FFLUSH.
20989         (gl_FUNC_FFLUSH): Use it.
20990         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20991         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20992         gl_REPLACE_FSEEKO here.
20993
20994 2011-05-05  Bruno Haible  <bruno@clisp.org>
20995
20996         tzset: Relicense under LGPL.
20997         * modules/tzset (License): Change to LGPL.
20998         No agreement needed; it's a no-op.
20999
21000         strtoimax, strtoumax: Relicense under LGPL.
21001         * modules/strtoimax (License): Change to LGPL.
21002         * modules/strtoumax (License): Likewise.
21003         With permission from Jim Meyering, Paul Eggert:
21004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21006
21007         getgroups: Relicense under LGPL.
21008         * modules/getgroups (License): Change to LGPL.
21009         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21013
21014         nanosleep: Relicense under LGPL.
21015         * modules/nanosleep (License): Change to LGPL.
21016         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21017         Haible:
21018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21022
21023         futimens: Relicense under LGPL.
21024         * modules/futimens (License): Change to LGPL.
21025         With permission from Eric Blake:
21026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21027
21028         fflush: Relicense under LGPL.
21029         * modules/fflush (License): Change to LGPL.
21030         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21034
21035         tmpfile: Relicense under LGPL.
21036         * modules/tmpfile (License): Change to LGPL.
21037         With permission from Ben Pfaff:
21038         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21039
21040         isfinite: Relicense under LGPL.
21041         * modules/isfinite (License): Change to LGPL.
21042         With permission from Ben Pfaff, Bruno Haible:
21043         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21045
21046         acosl..tanl: Relicense under LGPL.
21047         * modules/acosl (License): Change to LGPL.
21048         * modules/asinl (License): Likewise.
21049         * modules/atanl (License): Likewise.
21050         * modules/cosl (License): Likewise.
21051         * modules/expl (License): Likewise.
21052         * modules/logl (License): Likewise.
21053         * modules/sinl (License): Likewise.
21054         * modules/sqrtl (License): Likewise.
21055         * modules/tanl (License): Likewise.
21056         Source code originally from glibc and Paolo Bonzini. Agreements:
21057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21059
21060 2011-05-05  Bruno Haible  <bruno@clisp.org>
21061
21062         signal: Define sighandler_t.
21063         * lib/signal.in.h (sighandler_t): New type.
21064         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21065         whether sighandler_t is defined.
21066         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21067         * modules/signal (Depends-on): Add extensions.
21068         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21069         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21070         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21071
21072 2011-05-05  Eric Blake  <eblake@redhat.com>
21073
21074         maint: remove useless REPLACE_*_H macros
21075         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21076         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21077         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21078         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21079         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21080         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21081         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21082         * m4/btowc.m4: Update callers.
21083         * m4/dirfd.m4: Likewise.
21084         * m4/duplocale.m4: Likewise.
21085         * m4/fchdir.m4: Likewise.
21086         * m4/fdopendir.m4: Likewise.
21087         * m4/inet_ntop.m4: Likewise.
21088         * m4/inet_pton.m4: Likewise.
21089         * m4/ioctl.m4: Likewise.
21090         * m4/mbrlen.m4: Likewise.
21091         * m4/mbrtowc.m4: Likewise.
21092         * m4/mbsinit.m4: Likewise.
21093         * m4/mbsnrtowcs.m4: Likewise.
21094         * m4/mbsrtowcs.m4: Likewise.
21095         * m4/poll.m4: Likewise.
21096         * m4/setlocale.m4: Likewise.
21097         * m4/wcrtomb.m4: Likewise.
21098         * m4/wcsnrtombs.m4: Likewise.
21099         * m4/wcsrtombs.m4: Likewise.
21100         * m4/wctob.m4: Likewise.
21101         * m4/wcwidth.m4: Likewise.
21102         * modules/posix_spawn: Likewise.
21103         * modules/posix_spawn_file_actions_addclose: Likewise.
21104         * modules/posix_spawn_file_actions_adddup2: Likewise.
21105         * modules/posix_spawn_file_actions_addopen: Likewise.
21106         * modules/posix_spawn_file_actions_destroy: Likewise.
21107         * modules/posix_spawn_file_actions_init: Likewise.
21108         * modules/posix_spawnattr_destroy: Likewise.
21109         * modules/posix_spawnattr_getflags: Likewise.
21110         * modules/posix_spawnattr_getpgroup: Likewise.
21111         * modules/posix_spawnattr_getschedparam: Likewise.
21112         * modules/posix_spawnattr_getschedpolicy: Likewise.
21113         * modules/posix_spawnattr_getsigdefault: Likewise.
21114         * modules/posix_spawnattr_getsigmask: Likewise.
21115         * modules/posix_spawnattr_init: Likewise.
21116         * modules/posix_spawnattr_setflags: Likewise.
21117         * modules/posix_spawnattr_setpgroup: Likewise.
21118         * modules/posix_spawnattr_setschedparam: Likewise.
21119         * modules/posix_spawnattr_setschedpolicy: Likewise.
21120         * modules/posix_spawnattr_setsigdefault: Likewise.
21121         * modules/posix_spawnattr_setsigmask: Likewise.
21122         * modules/posix_spawnp: Likewise.
21123
21124 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21125
21126         Add option to do-release-commit-and-tag to specify branch.
21127         * build-aux/do-release-commit-and-tag: Add --branch.
21128
21129 2011-05-03  Bruno Haible  <bruno@clisp.org>
21130
21131         Avoid unnecessary compilation units, through conditional dependencies.
21132         * modules/accept (Depends-on): Add conditions to the dependencies.
21133         * modules/acosl (Depends-on): Likewise.
21134         * modules/argz (Depends-on): Likewise.
21135         * modules/asinl (Depends-on): Likewise.
21136         * modules/atanl (Depends-on): Likewise.
21137         * modules/atoll (Depends-on): Likewise.
21138         * modules/bind (Depends-on): Likewise.
21139         * modules/btowc (Depends-on): Likewise.
21140         * modules/canonicalize-lgpl (Depends-on): Likewise.
21141         * modules/ceil (Depends-on): Likewise.
21142         * modules/ceilf (Depends-on): Likewise.
21143         * modules/ceill (Depends-on): Likewise.
21144         * modules/chdir-long (Depends-on): Likewise.
21145         * modules/chown (Depends-on): Likewise.
21146         * modules/close (Depends-on): Likewise.
21147         * modules/connect (Depends-on): Likewise.
21148         * modules/cosl (Depends-on): Likewise.
21149         * modules/dirfd (Depends-on): Likewise.
21150         * modules/dprintf (Depends-on): Likewise.
21151         * modules/dprintf-posix (Depends-on): Likewise.
21152         * modules/error (Depends-on): Likewise.
21153         * modules/euidaccess (Depends-on): Likewise.
21154         * modules/expl (Depends-on): Likewise.
21155         * modules/faccessat (Depends-on): Likewise.
21156         * modules/fchdir (Depends-on): Likewise.
21157         * modules/fclose (Depends-on): Likewise.
21158         * modules/fcntl (Depends-on): Likewise.
21159         * modules/fdopendir (Depends-on): Likewise.
21160         * modules/fflush (Depends-on): Likewise.
21161         * modules/floor (Depends-on): Likewise.
21162         * modules/floorf (Depends-on): Likewise.
21163         * modules/floorl (Depends-on): Likewise.
21164         * modules/fnmatch (Depends-on): Likewise.
21165         * modules/fopen (Depends-on): Likewise.
21166         * modules/fprintf-posix (Depends-on): Likewise.
21167         * modules/frexp (Depends-on): Likewise.
21168         * modules/frexp-nolibm (Depends-on): Likewise.
21169         * modules/frexpl (Depends-on): Likewise.
21170         * modules/frexpl-nolibm (Depends-on): Likewise.
21171         * modules/fseek (Depends-on): Likewise.
21172         * modules/fsusage (Depends-on): Likewise.
21173         * modules/ftell (Depends-on): Likewise.
21174         * modules/ftello (Depends-on): Likewise.
21175         * modules/futimens (Depends-on): Likewise.
21176         * modules/getcwd (Depends-on): Likewise.
21177         * modules/getcwd-lgpl (Depends-on): Likewise.
21178         * modules/getdelim (Depends-on): Likewise.
21179         * modules/getdomainname (Depends-on): Likewise.
21180         * modules/getgroups (Depends-on): Likewise.
21181         * modules/gethostname (Depends-on): Likewise.
21182         * modules/getline (Depends-on): Likewise.
21183         * modules/getlogin_r (Depends-on): Likewise.
21184         * modules/getopt-posix (Depends-on): Likewise.
21185         * modules/getpeername (Depends-on): Likewise.
21186         * modules/getsockname (Depends-on): Likewise.
21187         * modules/getsockopt (Depends-on): Likewise.
21188         * modules/getsubopt (Depends-on): Likewise.
21189         * modules/getusershell (Depends-on): Likewise.
21190         * modules/glob (Depends-on): Likewise.
21191         * modules/grantpt (Depends-on): Likewise.
21192         * modules/iconv_open (Depends-on): Likewise.
21193         * modules/iconv_open-utf (Depends-on): Likewise.
21194         * modules/inet_ntop (Depends-on): Likewise.
21195         * modules/inet_pton (Depends-on): Likewise.
21196         * modules/ioctl (Depends-on): Likewise.
21197         * modules/isapipe (Depends-on): Likewise.
21198         * modules/isfinite (Depends-on): Likewise.
21199         * modules/isinf (Depends-on): Likewise.
21200         * modules/lchown (Depends-on): Likewise.
21201         * modules/ldexpl (Depends-on): Likewise.
21202         * modules/link (Depends-on): Likewise.
21203         * modules/linkat (Depends-on): Likewise.
21204         * modules/listen (Depends-on): Likewise.
21205         * modules/logl (Depends-on): Likewise.
21206         * modules/lstat (Depends-on): Likewise.
21207         * modules/mbrlen (Depends-on): Likewise.
21208         * modules/mbrtowc (Depends-on): Likewise.
21209         * modules/mbsinit (Depends-on): Likewise.
21210         * modules/mbsnrtowcs (Depends-on): Likewise.
21211         * modules/mbsrtowcs (Depends-on): Likewise.
21212         * modules/mbtowc (Depends-on): Likewise.
21213         * modules/memcmp (Depends-on): Likewise.
21214         * modules/mkdir (Depends-on): Likewise.
21215         * modules/mkdtemp (Depends-on): Likewise.
21216         * modules/mkfifo (Depends-on): Likewise.
21217         * modules/mkfifoat (Depends-on): Likewise.
21218         * modules/mknod (Depends-on): Likewise.
21219         * modules/mkostemp (Depends-on): Likewise.
21220         * modules/mkostemps (Depends-on): Likewise.
21221         * modules/mkstemp (Depends-on): Likewise.
21222         * modules/mkstemps (Depends-on): Likewise.
21223         * modules/mktime (Depends-on): Likewise.
21224         * modules/nanosleep (Depends-on): Likewise.
21225         * modules/open (Depends-on): Likewise.
21226         * modules/openat (Depends-on): Likewise.
21227         * modules/perror (Depends-on): Likewise.
21228         * modules/poll (Depends-on): Likewise.
21229         * modules/popen (Depends-on): Likewise.
21230         * modules/posix_spawn (Depends-on): Likewise.
21231         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21232         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21233         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21234         * modules/posix_spawnp (Depends-on): Likewise.
21235         * modules/pread (Depends-on): Likewise.
21236         * modules/printf-posix (Depends-on): Likewise.
21237         * modules/ptsname (Depends-on): Likewise.
21238         * modules/putenv (Depends-on): Likewise.
21239         * modules/pwrite (Depends-on): Likewise.
21240         * modules/readline (Depends-on): Likewise.
21241         * modules/readlink (Depends-on): Likewise.
21242         * modules/readlinkat (Depends-on): Likewise.
21243         * modules/recv (Depends-on): Likewise.
21244         * modules/recvfrom (Depends-on): Likewise.
21245         * modules/regex (Depends-on): Likewise.
21246         * modules/remove (Depends-on): Likewise.
21247         * modules/rename (Depends-on): Likewise.
21248         * modules/renameat (Depends-on): Likewise.
21249         * modules/rmdir (Depends-on): Likewise.
21250         * modules/round (Depends-on): Likewise.
21251         * modules/roundf (Depends-on): Likewise.
21252         * modules/roundl (Depends-on): Likewise.
21253         * modules/rpmatch (Depends-on): Likewise.
21254         * modules/select (Depends-on): Likewise.
21255         * modules/send (Depends-on): Likewise.
21256         * modules/sendto (Depends-on): Likewise.
21257         * modules/setenv (Depends-on): Likewise.
21258         * modules/setlocale (Depends-on): Likewise.
21259         * modules/setsockopt (Depends-on): Likewise.
21260         * modules/shutdown (Depends-on): Likewise.
21261         * modules/sigaction (Depends-on): Likewise.
21262         * modules/signbit (Depends-on): Likewise.
21263         * modules/sigprocmask (Depends-on): Likewise.
21264         * modules/sinl (Depends-on): Likewise.
21265         * modules/sleep (Depends-on): Likewise.
21266         * modules/snprintf (Depends-on): Likewise.
21267         * modules/snprintf-posix (Depends-on): Likewise.
21268         * modules/socket (Depends-on): Likewise.
21269         * modules/sprintf-posix (Depends-on): Likewise.
21270         * modules/sqrtl (Depends-on): Likewise.
21271         * modules/stat (Depends-on): Likewise.
21272         * modules/strchrnul (Depends-on): Likewise.
21273         * modules/strdup-posix (Depends-on): Likewise.
21274         * modules/strerror (Depends-on): Likewise.
21275         * modules/strerror_r-posix (Depends-on): Likewise.
21276         * modules/strndup (Depends-on): Likewise.
21277         * modules/strnlen (Depends-on): Likewise.
21278         * modules/strptime (Depends-on): Likewise.
21279         * modules/strsep (Depends-on): Likewise.
21280         * modules/strsignal (Depends-on): Likewise.
21281         * modules/strstr-simple (Depends-on): Likewise.
21282         * modules/strtod (Depends-on): Likewise.
21283         * modules/strtoimax (Depends-on): Likewise.
21284         * modules/strtok_r (Depends-on): Likewise.
21285         * modules/strtoumax (Depends-on): Likewise.
21286         * modules/symlink (Depends-on): Likewise.
21287         * modules/symlinkat (Depends-on): Likewise.
21288         * modules/tanl (Depends-on): Likewise.
21289         * modules/tcgetsid (Depends-on): Likewise.
21290         * modules/tmpfile (Depends-on): Likewise.
21291         * modules/trunc (Depends-on): Likewise.
21292         * modules/truncf (Depends-on): Likewise.
21293         * modules/truncl (Depends-on): Likewise.
21294         * modules/uname (Depends-on): Likewise.
21295         * modules/unlink (Depends-on): Likewise.
21296         * modules/unlockpt (Depends-on): Likewise.
21297         * modules/unsetenv (Depends-on): Likewise.
21298         * modules/usleep (Depends-on): Likewise.
21299         * modules/utimensat (Depends-on): Likewise.
21300         * modules/vasprintf (Depends-on): Likewise.
21301         * modules/vdprintf (Depends-on): Likewise.
21302         * modules/vdprintf-posix (Depends-on): Likewise.
21303         * modules/vfprintf-posix (Depends-on): Likewise.
21304         * modules/vprintf-posix (Depends-on): Likewise.
21305         * modules/vsnprintf (Depends-on): Likewise.
21306         * modules/vsnprintf-posix (Depends-on): Likewise.
21307         * modules/vsprintf-posix (Depends-on): Likewise.
21308         * modules/wcrtomb (Depends-on): Likewise.
21309         * modules/wcscasecmp (Depends-on): Likewise.
21310         * modules/wcscspn (Depends-on): Likewise.
21311         * modules/wcsdup (Depends-on): Likewise.
21312         * modules/wcsncasecmp (Depends-on): Likewise.
21313         * modules/wcsnrtombs (Depends-on): Likewise.
21314         * modules/wcspbrk (Depends-on): Likewise.
21315         * modules/wcsrtombs (Depends-on): Likewise.
21316         * modules/wcsspn (Depends-on): Likewise.
21317         * modules/wcsstr (Depends-on): Likewise.
21318         * modules/wcstok (Depends-on): Likewise.
21319         * modules/wcswidth (Depends-on): Likewise.
21320         * modules/wctob (Depends-on): Likewise.
21321         * modules/wctomb (Depends-on): Likewise.
21322         * modules/wctype (Depends-on): Likewise.
21323         * modules/wcwidth (Depends-on): Likewise.
21324         * modules/write (Depends-on): Likewise.
21325
21326 2011-05-03  Bruno Haible  <bruno@clisp.org>
21327
21328         Support for conditional dependencies.
21329         * doc/gnulib.texi (Module description): Document the syntax of
21330         conditional dependencies.
21331         * gnulib-tool: New option --conditional-dependencies.
21332         (func_usage): Document it.
21333         (cond_dependencies): New variable.
21334         (func_get_automake_snippet_conditional,
21335         func_get_automake_snippet_unconditional): New functions, extracted from
21336         func_get_automake_snippet.
21337         (func_get_automake_snippet): Use them.
21338         (sed_first_32_chars): New variable.
21339         (func_module_shellfunc_name): New function.
21340         (func_module_shellvar_name): New function.
21341         (func_module_conditional_name): New function.
21342         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21343         func_cond_module_condition): New functions.
21344         (func_modules_transitive_closure): Add support for conditional
21345         dependencies.
21346         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21347         conditional automake snippet in an automake conditional.
21348         (func_emit_autoconf_snippets): Emit shell functions that contain the
21349         code for conditional modules.
21350         (func_import, func_create_testdir): Update specification.
21351
21352 2011-05-03  Eric Blake  <eblake@redhat.com>
21353
21354         test-getaddrinfo: report error information
21355         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21356
21357 2011-05-03  Jim Meyering  <meyering@redhat.com>
21358
21359         bootstrap: avoid build failure when $GZIP is set
21360         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21361         program name.  If defined at all, it is supposed to list gzip options.
21362         Reported by Alan Curry in http://debbugs.gnu.org/8609
21363
21364 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21365
21366         readme-release: new module with release instructions
21367         * modules/readme-release: New module.
21368         * top/README-release: New file, from coreutils, grep, diffutils.
21369         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21370
21371 2011-05-02  Eric Blake  <eblake@redhat.com>
21372
21373         fflush: also replace fclose when fixing fflush
21374         * modules/fflush (Depends-on): Add fclose.
21375         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21376         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21377         memstreams with no backing fd.
21378         * doc/posix-functions/fclose.texi (fclose): Document the use of
21379         fflush module to fix the bug.
21380         * tests/test-fclose.c (main): Relax test when fclose is used in
21381         isolation.
21382
21383         fclose: add some tests
21384         * modules/fclose-tests: New test module.
21385         * tests/test-fclose.c: New file.
21386         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21387
21388         fclose: reduced dependencies
21389         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21390         simpler lseek.
21391         * lib/fclose.c (rpl_fclose): Likewise.
21392         Reported by Simon Josefsson.
21393
21394         exit: drop remaining clients
21395         * modules/argmatch (Depends-on): Replace exit with stdlib.
21396         * modules/copy-file (Depends-on): Likewise.
21397         * modules/execute (Depends-on): Likewise.
21398         * modules/exitfail (Depends-on): Likewise.
21399         * modules/obstack (Depends-on): Likewise.
21400         * modules/pagealign_alloc (Depends-on): Likewise.
21401         * modules/pipe-filter-gi (Depends-on): Likewise.
21402         * modules/pipe-filter-ii (Depends-on): Likewise.
21403         * modules/savewd (Depends-on): Likewise.
21404         * modules/spawn-pipe (Depends-on): Likewise.
21405         * modules/wait-process (Depends-on): Likewise.
21406         * modules/xsetenv (Depends-on): Likewise.
21407         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21408         * modules/git-merge-changelog (Depends-on): Likewise.
21409         * modules/long-options (Depends-on): Likewise.
21410         * modules/pt_chown (Depends-on): Likewise.
21411         * modules/sysexits (Depends-on): Likewise.
21412
21413         freading: relax license from LGPLv3+ to LGPLv2+
21414         * modules/freading (License): Relax LGPL version.
21415
21416 2011-05-02  Bruno Haible  <bruno@clisp.org>
21417
21418         fchdir: Remove unused dependencies.
21419         * modules/fchdir (Depends-on): Remove include_next.
21420
21421 2011-05-02  Bruno Haible  <bruno@clisp.org>
21422
21423         gnulib-tool: Refactor.
21424         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21425         from func_emit_autoconf_snippets.
21426         (func_emit_autoconf_snippets): Use it.
21427
21428 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21429
21430         * NEWS: Document removal of 'exit'.
21431         * modules/exit: Remove file.
21432
21433 2011-05-01  Bruno Haible  <bruno@clisp.org>
21434
21435         Update DEPENDENCIES.
21436         * DEPENDENCIES (gettext): Recommend the newest release.
21437         Reported by Simon Josefsson.
21438
21439 2011-05-01  Bruno Haible  <bruno@clisp.org>
21440
21441         gnulib-tool: Reduce code duplication.
21442         * gnulib-tool (func_emit_autoconf_snippets): New function.
21443         (func_import, func_create_testdir): Use it.
21444
21445 2011-04-30  Eric Blake  <eblake@redhat.com>
21446
21447         fclose: don't fail on non-seekable input stream
21448         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21449         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21450         since fflush is allowed to fail in that case.
21451
21452 2011-04-30  Bruno Haible  <bruno@clisp.org>
21453
21454         dup3: cleanup
21455         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21456
21457 2011-04-30  Bruno Haible  <bruno@clisp.org>
21458
21459         netdb: Make it work in C++ mode.
21460         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21461         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21462         module.
21463         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21464         gl_MODULE_INDICATOR_FOR_TESTS.
21465         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21466         * modules/netdb-c++-tests: New file.
21467         * tests/test-netdb-c++.cc: New file.
21468
21469 2011-04-30  Bruno Haible  <bruno@clisp.org>
21470
21471         New modules 'vfscanf', 'vscanf'.
21472         * modules/vfscanf: New file.
21473         * modules/vscanf: New file.
21474         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21475         here.
21476         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21477         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21478
21479 2011-04-30  Bruno Haible  <bruno@clisp.org>
21480
21481         passfd: Add comments.
21482         * lib/passfd.c: Add comments about platforms.
21483
21484 2011-04-30  Bruno Haible  <bruno@clisp.org>
21485
21486         sys_uio: Make <sys/uio.h> self-contained.
21487         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21488         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21489
21490 2011-04-30  Bruno Haible  <bruno@clisp.org>
21491
21492         sys_socket: Ensure 'struct iovec' definition.
21493         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21494         <sys/socket.h>.
21495         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21496
21497 2011-04-30  Bruno Haible  <bruno@clisp.org>
21498
21499         sys_uio: Protect definition of 'struct iovec'.
21500         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21501         it as a C struct.
21502
21503 2011-04-30  Bruno Haible  <bruno@clisp.org>
21504
21505         manywarnings: fix indentation
21506         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21507
21508 2011-04-30  Pádraig Brady <P@draigBrady.com>
21509
21510         manywarnings: add -Wno-missing-field-initializers if needed.
21511         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21512         option if it's needed to allow initialization with { 0, }
21513
21514 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21515
21516         announce-gen: cosmetic improvement
21517         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21518
21519 2011-04-29  Jim Meyering  <meyering@redhat.com>
21520
21521         vc-list-files: indent with spaces, not TABs
21522         * build-aux/vc-list-files: Convert leading TABs to spaces,
21523         to match the style of most other files in gnulib.
21524
21525         announce-gen: indent with spaces, not TABs
21526         * build-aux/announce-gen: Convert all TABs to spaces, to match
21527         the style of most other files in gnulib.
21528
21529 2011-04-29  Eric Blake  <eblake@redhat.com>
21530
21531         quotearg: avoid uninitialized variable use
21532         * lib/quotearg.c (quoting_options_from_style): Initialize
21533         remaining fields, and ensure that custom styles are only used via
21534         quoting_options rather than quoting_style.
21535
21536 2011-04-29  Jim Meyering  <meyering@redhat.com>
21537
21538         maint.mk: remove unused VC-tag variable
21539         * top/maint.mk (VC-tag): Remove unused variable.
21540
21541 2011-04-29  Bruno Haible  <bruno@clisp.org>
21542
21543         netdb: fix gai_strerror replacements
21544         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21545         * modules/netdb: Substitute it.
21546
21547 2011-04-29  Jim Meyering  <meyering@redhat.com>
21548
21549         test-getcwd.c: avoid new set-but-not-used warning
21550         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21551         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21552         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21553         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21554
21555         test-hash.c: avoid a new shadowing warning
21556         * tests/test-hash.c (main): Don't shadow "dup".
21557
21558 2011-04-28  Eric Blake  <eblake@redhat.com>
21559
21560         getaddrinfo: fix gai_strerror signature
21561         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21562         and work around mingw with UNICODE defined.
21563         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21564         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21565         * modules/netdb (Makefile.am): Substitute it.
21566         * lib/netdb.in.h (gai_strerror): Declare replacement.
21567         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21568         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21569         the fix.
21570
21571         getsockopt: avoid compiler warning
21572         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21573         Reported by Matthias Bolte.
21574
21575         tests: drop unused link dependency
21576         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21577         * modules/dirent-safer-tests (Makefile.am): Likewise.
21578         * modules/fdopendir-tests (Makefile.am): Likewise.
21579         * modules/mkfifoat-tests (Makefile.am): Likewise.
21580         * modules/openat-safer-tests (Makefile.am): Likewise.
21581         * modules/openat-tests (Makefile.am): Likewise.
21582         * modules/readlinkat-tests (Makefile.am): Likewise.
21583         * modules/symlinkat-tests (Makefile.am): Likewise.
21584         * modules/linkat-tests (Makefile.am): Likewise.
21585         (Depends-on): Switch to filenamecat-lgpl.
21586         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21587         LIBINTL.
21588         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21589         * tests/test-linkat.c (main): Don't require xalloc.
21590
21591         hash, mgetgroups: drop xalloc dependency
21592         * lib/hash.c (includes): Adjust includes.
21593         * lib/mgetgroups.c (includes): Likewise.
21594         (xgetgroups): Move...
21595         * lib/xgetgroups.c: ...to new file.
21596         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21597         * modules/xgetgroups: New file, split from...
21598         * modules/mgetgroups: ...here.
21599         (Depends-on): Add xalloc-oversized.
21600         * modules/hash (Depends-on): Likewise.
21601         * modules/hash-tests (Depends-on): Drop xalloc.
21602         (test_hash_LDADD): Drop unused library.
21603         * tests/test-hash.c (main): Break xalloc dependency.
21604         (includes): Drop unused include.
21605
21606         xalloc-oversized: new module
21607         * modules/xalloc-oversized: New module.
21608         * modules/xalloc (Depends-on): Add it.
21609         * lib/xalloc.h (xalloc_oversized): Move...
21610         * lib/xalloc-oversized.h: ...into new file.
21611
21612         utimecmp: drop dependency on xmalloc
21613         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21614         due to memory pressure.
21615         * modules/utimecmp (Depends-on): Drop xalloc.
21616
21617 2011-04-27  Eric Blake  <eblake@redhat.com>
21618
21619         getcwd: fix mingw bugs
21620         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21621         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21622         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21623
21624 2011-04-27  Bruno Haible  <bruno@clisp.org>
21625
21626         mkstemps: Ensure declaration on MacOS X 10.5.
21627         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21628         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21629         MacOS X.
21630
21631 2011-04-27  Bruno Haible  <bruno@clisp.org>
21632
21633         mkstemp: More documentation.
21634         * doc/posix-functions/mkstemp.texi: Document header file problem on
21635         MacOS X.
21636
21637 2011-04-27  Bruno Haible  <bruno@clisp.org>
21638
21639         mkstemp: Tweak configure message when cross-compiling.
21640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21641         result as a guess.
21642
21643 2011-04-27  Bruno Haible  <bruno@clisp.org>
21644
21645         clean-temp: Clarify what it does.
21646         * lib/clean-temp.h: Add more comments.
21647         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21648         module.
21649         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21650         * doc/glibc-functions/mkstemps.texi: Likewise.
21651         * doc/glibc-functions/mkostemps.texi: Likewise.
21652
21653 2011-04-27  Eric Blake  <eblake@redhat.com>
21654
21655         fchdir: avoid extra chdir and fix test
21656         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21657         getcwd-lgpl.
21658         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21659         have to be canonical.
21660         (canonicalize_file_name): Drop unused macro.
21661         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21662
21663         filenamecat-lgpl: fix licence
21664         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21665         when it was first created.
21666
21667         linkat, renameat: add missing dependency
21668         * modules/linkat (Depends-on): Require getcwd-lgpl.
21669         * modules/renameat (Depends-on): Likewise.
21670
21671         tests: reduce dependencies
21672         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21673         * tests/test-renameat.c (main): Likewise.
21674         * modules/linkat-tests (Depends-on): Relax dependency.
21675         * modules/renameat-tests (Depends-on): Likewise.
21676         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21677         dependency explicit.
21678
21679         save-cwd: reduce default dependency
21680         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21681         * lib/save-cwd.c: Update comments.
21682         * NEWS: Document the semantic change.
21683
21684         getcwd: enhance tests
21685         * tests/test-getcwd-lgpl.c: New file, taken from...
21686         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21687         repeat long path stress tests from m4 probe.
21688         * modules/getcwd-lgpl-tests: New module.
21689         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21690         * m4/getcwd-abort-bug.m4: Update comment.
21691         * m4/getcwd-path-max.m4: Likewise.
21692
21693         getcwd-lgpl: new module
21694         * modules/getcwd-lgpl: New module.
21695         * lib/getcwd-lgpl.c: New file.
21696         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21697         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21698         * modules/getcwd (configure.ac): Set C witness.
21699         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21700
21701         getcwd: tweak comments
21702         * m4/getcwd-abort-bug.m4: Fix comments.
21703         * m4/getcwd-path-max.m4: Likewise.
21704         * m4/getcwd.m4: Likewise.
21705
21706 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21707         and Eric Blake  <eblake@redhat.com>
21708
21709         mkstemp: replace if system version uses wrong permissions
21710         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21711         read/write mode bits set in file created by mkstemp.
21712         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21713
21714 2011-04-27  Eric Blake  <eblake@redhat.com>
21715
21716         passfd: avoid compiler warning
21717         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21718         Reported by Laine Stump.
21719
21720 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21721
21722         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21723         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21724
21725 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21726         and Eric Blake  <eblake@redhat.com>
21727
21728         mkstemp: mention clean-temp module
21729         * lib/mkstemp.c: Add comment.
21730         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21731
21732 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21733
21734         inttypes: also provide default values for 32-bit tests
21735         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21736         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21737
21738 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21739
21740         strtoumax: remove dependency on strtoimax
21741         This is like the strtoull change of yesterday.
21742         * modules/strtoumax (Files): Add lib/strtoimax.c.
21743         (Depends-on): Remove strtoimax and add verify.
21744
21745         inttypes-incomplete: new module
21746         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21747         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21748         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21749         of gl_INTTYPES_H.
21750         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21751         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21752         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21753         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21754         * modules/strtoumax, modules/xstrtol (Depends-on):
21755         Depend on inttypes-incomplete, not inttypes.
21756         * modules/inttypes-incomplete: New module, containing the contents
21757         of the old modules/inttypes module, except that the Files: section
21758         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21759         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21760         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21761         (Depends-on): Depend only on inttypes-incomplete.
21762         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21763
21764         inttypes: omit now-redundant strtoimax and strtoumax work
21765         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21766         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21767
21768         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21769         This supports apps that need pointers to strtoimax and strtoumax,
21770         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21771         nonexistent functions.  See
21772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21773         et seq.
21774         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21775         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21776         a macro.
21777         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21778
21779 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21780
21781         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21782
21783 2011-04-25  Bruno Haible  <bruno@clisp.org>
21784
21785         strtol, strtoul: Mark modules as obsolete.
21786         * modules/strtol (Status, Notice): New sections.
21787         * modules/strtoul (Status, Notice): New sections.
21788
21789 2011-04-25  Bruno Haible  <bruno@clisp.org>
21790
21791         strtod: Remove check for strtod, unless supporting old platforms.
21792         * modules/strtod-obsolete: New file.
21793         * m4/strtod-obsolete.m4: New file.
21794         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21795         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21796         * modules/strtod (Depends-on): Add strtod-obsolete.
21797         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21798
21799 2011-04-25  Bruno Haible  <bruno@clisp.org>
21800
21801         strcase: Make module obsolete.
21802         * modules/strcase (Status, Notice): New sections.
21803
21804 2011-04-25  Bruno Haible  <bruno@clisp.org>
21805
21806         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21807         * modules/dup2-obsolete: New file.
21808         * m4/dup2-obsolete.m4: New file.
21809         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21810         gl_FUNC_DUP2_OBSOLETE is not also defined.
21811         * modules/dup2 (Depends-on): Add dup2-obsolete.
21812         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21813
21814 2011-04-25  Bruno Haible  <bruno@clisp.org>
21815
21816         strnlen: Avoid memchr related link error on old obsolete platforms.
21817         * modules/memchr-obsolete: New file.
21818         * m4/memchr-obsolete.m4: New file.
21819         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21820         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21821         * modules/memchr (Depends-on): Add memchr-obsolete.
21822         * modules/strnlen (Depends-on): Likewise.
21823         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21824
21825 2011-04-25  Jim Meyering  <meyering@redhat.com>
21826
21827         maint.mk: makefile_at_at_check extend and clean up
21828         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21829         in addition to */Makefile.am.
21830         Exempt legitimate uses of @VAR@ notation, e.g.,
21831         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21832         Remove obsolete coreutils-specific comment.
21833         Prompted by discussion here:
21834         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21835
21836 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21837
21838         strtoul: remove dependency on strtol
21839         This is so that 'configure' need not check for strtol merely because
21840         the application needs strtoul.
21841         * modules/strtoul (Files): Add lib/strtol.c.
21842         (Depends-on): Remove strtol.
21843
21844         strtoull: remove dependency on strtoul
21845         This is like the strtoll change.
21846         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21847         (Depends-on): Remove strtoul.
21848
21849         strtoll: remove dependency on strtol
21850         This is so that 'configure' need not check for strtol merely because
21851         the application needs strtoll.
21852         * modules/strtoll (Files): Add lib/strtol.c.
21853         (Depends-on): Remove strtol.
21854
21855 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21856
21857         inttypes: Move some configure check to module 'imaxdiv'.
21858         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21859         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21860         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21861
21862 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21863
21864         inttypes: Move some configure check to module 'imaxabs'.
21865         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21866         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21867         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21868
21869 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21870
21871         inttypes: Remove configure tests that are not needed since 2009-12-31.
21872         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21873         gl_cv_header_working_inttypes_h.
21874
21875 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21876
21877         * modules/strnlen (Depends-on): Remove memchr.
21878         The strnlen implementation doesn't need the memchr module's fixes; see
21879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21880
21881         strtol: remove dependency on wchar
21882         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21883         * modules/strtol (Depends-on): Remove wchar.
21884
21885 2011-04-21  Eric Blake  <eblake@redhat.com>
21886
21887         passfd: fix test regression on Linux
21888         * modules/passfd-tests (configure.ac): Correct socketpair check.
21889
21890         passfd: speed up configure and drop unused code
21891         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21892         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21893         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21894         Instead of probing at configure for unix_scm_rights_bsd44_way,
21895         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21896         check to a struct member probe.
21897         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21898         (sendfd, recvfd): Update preprocessor checks.
21899         * modules/passfd (Files): Reflect rename, and drop unused file.
21900         (Depends-on): Drop unused dependency.
21901
21902         passfd: allow compilation on mingw
21903         * modules/sys_socket (Depends-on): Add sys_uio.
21904         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21905         iovec and a minimal struct msghdr.
21906         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21907         * tests/test-sys_socket.c (main): Enhance test.
21908         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21909         guaranteed to provide what we need.
21910         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21911         * modules/passfd-tests (Depends-on): Add sys_wait.
21912         * tests/test-passfd.c (main): Skip test on mingw, for now.
21913         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21914         partial 'struct msghdr' implementation.
21915
21916         sys_uio: new module
21917         * modules/sys_uio: New module.
21918         * modules/sys_uio-tests: Likewise.
21919         * lib/sys_uio.in.h: New file.
21920         * m4/sys_uio_h.m4: Likewise.
21921         * tests/test-sys_uio.c: Likewise.
21922         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21923         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21924
21925 2011-04-20  Jim Meyering  <meyering@redhat.com>
21926
21927         useless-if-before-free: avoid false-positive
21928         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21929         disjunct so that it too requires a terminating ";".  Without that,
21930         this script would identify as useless one statement from gcc that
21931         was not:
21932           if (aligned_ptr)
21933             free (((void **) aligned_ptr) [-1]);
21934
21935 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21936
21937         doc: update users.txt.
21938         * users.txt: Add barcode.
21939
21940 2011-04-19  Bruno Haible  <bruno@clisp.org>
21941
21942         ioctl: Remove link dependency on native Windows.
21943         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21944         (gl_close_fn, gl_ioctl_fn): New types.
21945         (struct fd_hook): Renamed from struct close_hook. Change type of
21946         private_close_fn field. Add private_ioctl_fn field.
21947         (close_hook_fn): Add parameter for primary close method.
21948         (execute_close_hooks, execute_all_close_hooks): Likewise.
21949         (ioctl_hook_fn): New type.
21950         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21951         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21952         argument.
21953         (unregister_fd_hook): Renamed from unregister_close_hook.
21954         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21955         Don't include <unistd.h>.
21956         (close): Remove undef.
21957         (anchor): Update.
21958         (execute_close_hooks): Add argument for primary close method.
21959         (execute_all_close_hooks): Likewise.
21960         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21961         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21962         argument. Allow each argument to be NULL.
21963         (unregister_fd_hook): Renamed from unregister_close_hook.
21964         * lib/close.c (rpl_close): Pass 'close' function pointer to
21965         execute_all_close_hooks.
21966         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21967         (primary_ioctl): New function.
21968         (ioctl): Don't call ioctlsocket here. Instead, call
21969         execute_all_ioctl_hooks.
21970         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21971         close method.
21972         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21973         (fd_sockets_hook): Renamed from close_sockets_hook.
21974         (gl_sockets_startup, gl_sockets_cleanup): Update.
21975         * modules/fd-hook: Renamed from modules/close-hook. Update.
21976         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21977         * modules/sockets (Depends-on): Likewise.
21978         * modules/ioctl (Depends-on): Add fd-hook.
21979         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21980         GNULIB_SOCKET.
21981
21982 2011-04-19  Bruno Haible  <bruno@clisp.org>
21983
21984         Move the support of O_NONBLOCK in open() to the 'open' module.
21985         * modules/nonblocking (Depends-on): Remove 'open'.
21986         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21987         gl_cv_have_open_O_NONBLOCK.
21988         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21989         O_NONBLOCK support.
21990         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21991
21992 2011-04-17  Bruno Haible  <bruno@clisp.org>
21993
21994         pipe2: Simplify code.
21995         * lib/pipe2.c (pipe2): Reduce code duplication.
21996
21997 2011-04-17  Bruno Haible  <bruno@clisp.org>
21998
21999         nonblocking: Add comment.
22000         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22001
22002 2011-04-17  Bruno Haible  <bruno@clisp.org>
22003
22004         nonblocking: Add tests for sockets.
22005         * tests/test-nonblocking-socket.sh: New file.
22006         * tests/test-nonblocking-socket-main.c: New file.
22007         * tests/test-nonblocking-socket-child.c: New file.
22008         * tests/test-nonblocking-socket.h: New file.
22009         * tests/socket-server.h: New file.
22010         * tests/socket-client.h: New file.
22011         * modules/nonblocking-socket-tests: New file.
22012         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22013
22014 2011-04-17  Bruno Haible  <bruno@clisp.org>
22015
22016         nonblocking: Add tests for pipes.
22017         * tests/test-nonblocking-pipe.sh: New file.
22018         * tests/test-nonblocking-pipe-main.c: New file.
22019         * tests/test-nonblocking-pipe-child.c: New file.
22020         * tests/test-nonblocking-pipe.h: New file.
22021         * tests/test-nonblocking-writer.h: New file.
22022         * tests/test-nonblocking-reader.h: New file.
22023         * tests/test-nonblocking-misc.h: New file.
22024         * modules/nonblocking-pipe-tests: New file.
22025         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22026
22027 2011-04-16  Bruno Haible  <bruno@clisp.org>
22028
22029         gettext: Clarify the needed programmer actions.
22030         * modules/gettext (Notice): New field.
22031         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22032
22033 2011-04-16  Bruno Haible  <bruno@clisp.org>
22034
22035         strchrnul: Tweak last commit.
22036         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22037         bug.
22038         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22039         as in _GL_FUNCDECL_SYS.
22040         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22041         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22042
22043 2011-04-15  Eric Blake  <eblake@redhat.com>
22044
22045         strchrnul: work around cygwin bug
22046         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22047         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22049         * modules/string (Makefile.am): Substitute it.
22050         * lib/string.in.h (strchrnul): Use it.
22051
22052 2011-04-15  Bruno Haible  <bruno@clisp.org>
22053
22054         Don't require lib/stdio-write.c when only module 'stdio' is used.
22055         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22056         invocation.
22057         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22058
22059 2011-04-14  Bruno Haible  <bruno@clisp.org>
22060
22061         Support non-blocking pipe I/O in read() on native Windows.
22062         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22063         (read): New declaration.
22064         * lib/read.c: New file.
22065         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22066         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22067         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22068         vscanf): New declarations.
22069         * lib/stdio-read.c: New file.
22070         * m4/read.m4: New file.
22071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22072         REPLACE_READ.
22073         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22074         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22075         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22076         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22077         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22078         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22079         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22080         * modules/read: New file.
22081         * modules/nonblocking (Files): Add lib/stdio-read.c.
22082         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22083         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22084         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22085         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22086         * modules/pread (Depends-on): Add read.
22087         * modules/safe-read (Depends-on): Likewise.
22088         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22089         gets, scanf, vfscanf, vscanf): Verify signatures.
22090         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22091         problem with non-blocking pipes.
22092         * doc/posix-functions/fgetc.texi: Likewise.
22093         * doc/posix-functions/fgets.texi: Likewise.
22094         * doc/posix-functions/fread.texi: Likewise.
22095         * doc/posix-functions/fscanf.texi: Likewise.
22096         * doc/posix-functions/getc.texi: Likewise.
22097         * doc/posix-functions/getchar.texi: Likewise.
22098         * doc/posix-functions/gets.texi: Likewise.
22099         * doc/posix-functions/scanf.texi: Likewise.
22100         * doc/posix-functions/vfscanf.texi: Likewise.
22101         * doc/posix-functions/vscanf.texi: Likewise.
22102
22103 2011-04-14  Bruno Haible  <bruno@clisp.org>
22104
22105         Support non-blocking pipe I/O in write() on native Windows.
22106         * lib/write.c (rpl_write): Split a write request that failed merely
22107         because the byte count was larger than the pipe buffer's size.
22108         * doc/posix-functions/write.texi: Mention the problem with large byte
22109         counts.
22110
22111 2011-04-14  Bruno Haible  <bruno@clisp.org>
22112
22113         wchar: Ensure that wchar_t gets defined on uClibc.
22114         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22115         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22116
22117 2011-04-13  Bruno Haible  <bruno@clisp.org>
22118
22119         safe-write, full-read: Avoid unnecessary compilation units.
22120         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22121         (Depends-on): Remove safe-read. Add ssize_t.
22122         * modules/full-read (Files): Add lib/full-write.c.
22123         (Depends-on): Add full-write.
22124
22125 2011-04-13  Bruno Haible  <bruno@clisp.org>
22126
22127         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22128         * modules/pwrite (Depends-on): Add 'write'.
22129
22130 2011-04-13  Bruno Haible  <bruno@clisp.org>
22131
22132         Support non-blocking pipe I/O in write() on native Windows.
22133         * lib/unistd.in.h (write): Enable replacement also if
22134         GNULIB_UNISTD_H_NONBLOCKING is 1.
22135         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22136         (rpl_write): When failing to write on a non-blocking pipe, change
22137         errno from ENOSPC to EAGAIN.
22138         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22139         putchar, puts, vfprintf, vprintf): Enable replacement also if
22140         GNULIB_STDIO_H_NONBLOCKING is 1.
22141         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22142         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22143         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22144         CALL_WITH_SIGPIPE_EMULATION.
22145         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22146         * m4/nonblocking.m4: New file.
22147         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22148         for non-blocking I/O support.
22149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22150         GNULIB_UNISTD_H_NONBLOCKING.
22151         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22152         required for non-blocking I/O support.
22153         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22154         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22155         lib/stdio-write.c, m4/asm-underscore.m4.
22156         (Depends-on): Add stdio, unistd.
22157         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22158         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22159         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22160         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22161         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22162         problem with non-blocking pipes.
22163         * doc/posix-functions/fputc.texi: Likewise.
22164         * doc/posix-functions/fputs.texi: Likewise.
22165         * doc/posix-functions/fwrite.texi: Likewise.
22166         * doc/posix-functions/printf.texi: Likewise.
22167         * doc/posix-functions/putc.texi: Likewise.
22168         * doc/posix-functions/putchar.texi: Likewise.
22169         * doc/posix-functions/puts.texi: Likewise.
22170         * doc/posix-functions/vfprintf.texi: Likewise.
22171         * doc/posix-functions/vprintf.texi: Likewise.
22172         * doc/posix-functions/write.texi: Likewise.
22173
22174 2011-04-10  Jim Meyering  <meyering@redhat.com>
22175
22176         maint.mk: prohibit doubled words
22177         Detect them also when they're separated by a newline.
22178         There are 3 ways to customize it:
22179           - disable the test on a per file basis, as usual with rules using
22180             $(VC_LIST_EXCEPT)
22181           - replace the default doubled-word-selecting regexp (affects all files)
22182           - ignore a particular file-vs-doubled-word match
22183         I nearly used that last one to ignore the "is is" match in
22184         coreutils' NEWS file, since the text was "ls -is is ..."
22185         To do that, I would have added this line to cfg.mk:
22186           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22187         but it would have ignored any "is is" match in NEWS.
22188         Low probability, but still...
22189         Instead, I changed the text, slightly:
22190           -  ls -is is now consistent with ls -lis in ignoring values returned
22191           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22192         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22193         (prohibit_doubled_word_): Define.
22194         (sc_prohibit_doubled_word): New rule.
22195         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22196
22197 2011-04-10  Jim Meyering  <meyering@redhat.com>
22198
22199         maint: fix doubled-word typo in comment
22200         * m4/gethostname.m4: s/is is/it is/
22201         * m4/getdomainname.m4: Likewise.
22202
22203 2011-04-10  Jim Meyering  <meyering@redhat.com>
22204
22205         maint: remove doubled word: s/it it/it/
22206         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22207
22208 2011-04-10  Jim Meyering  <meyering@redhat.com>
22209
22210         maint.mk: remove useless semicolon and backslash
22211         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22212         semicolon and backslash.
22213
22214 2011-04-10  Bruno Haible  <bruno@clisp.org>
22215
22216         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22217         * modules/stdint-tests (Depends-on): Add wchar.
22218
22219 2011-04-10  Jim Meyering  <meyering@redhat.com>
22220
22221         maint: remove doubled words in comments, e.g., s/a a/a/
22222         * lib/strptime.c (day_of_the_week): s/the the/the/
22223         * tests/test-chown.h (test_chown): s/a a/a/
22224
22225         test-chown.h: correct a cast
22226         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22227         when the destination is a stat.st_gid.
22228
22229 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22230
22231         getaddrinfo: Fix test for sa_len member.
22232         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22233         include <sys/types.h> before <sys/socket.h>.
22234
22235 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22236
22237         maint: change "can not" to "cannot"
22238         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22239         boundaries.
22240
22241 2011-04-09  Jim Meyering  <meyering@redhat.com>
22242
22243         maint: change "a a" to "a"
22244         * tests/test-lchown.h (test_lchown): s/a a/a/
22245
22246         maint.mk: prohibit \<the the\>
22247         * top/maint.mk (sc_prohibit_the_the): New rule.
22248
22249         maint: fix "the the" in comment
22250         * lib/count-one-bits.h: s/the the/the/
22251
22252         maint: change "can not" to "cannot"
22253         But do not change the occurrences in maintain.texi or in
22254         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22255         * doc/gnulib-tool.texi: s/can not/cannot/
22256         * doc/posix-functions/accept.texi (accept): Likewise.
22257         * doc/posix-functions/socket.texi (socket): Likewise.
22258         * lib/mbrtowc.c: Likewise.
22259
22260         maint.mk: prohibit use of "can not"
22261         * top/maint.mk (sc_prohibit_can_not): New rule.
22262         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22263
22264 2011-04-09  Bruno Haible  <bruno@clisp.org>
22265
22266         careadlinkat: Guard against misuse of careadlinkatcwd.
22267         * lib/careadlinkat.c: Include <stdlib.h>.
22268         (careadlinkatcwd): Check that the fd argument is as expected.
22269
22270 2011-04-09  Bruno Haible  <bruno@clisp.org>
22271
22272         careadlinkat: Use common coding style.
22273         * lib/careadlinkat.c: Move gnulib includes after system includes.
22274
22275 2011-04-09  Bruno Haible  <bruno@clisp.org>
22276
22277         careadlinkat: Clarify specification.
22278         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22279         (careadlinkatcwd): Add comment.
22280         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22281
22282 2011-04-09  Bruno Haible  <bruno@clisp.org>
22283
22284         areadlinkat: Avoid link error on many platforms.
22285         * modules/areadlinkat (Depends-on): Add areadlink.
22286
22287 2011-04-09  Bruno Haible  <bruno@clisp.org>
22288
22289         allocator, careadlinkat: Fix double-inclusion guard.
22290         * lib/allocator.h: Fix double-inclusion guard.
22291         * lib/careadlinkat.h: Likewise.
22292
22293 2011-04-09  Bruno Haible  <bruno@clisp.org>
22294
22295         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22296         * lib/relocwrapper.c: Update dependencies hierarchy.
22297         * build-aux/install-reloc: Update list of files to be compiled.
22298         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22299         lib/allocator.[hc].
22300
22301 2011-04-08  Eric Blake  <eblake@redhat.com>
22302
22303         strftime: silence gnulib-tool warning
22304         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22305
22306 2011-04-08  Bruno Haible  <bruno@clisp.org>
22307
22308         verify: Fix syntax error with GCC 4.6 in C++ mode.
22309         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22310         (HAVE_STATIC_ASSERT): New macro.
22311         (verify_true, verify): Use 'static_assert' if it is supported and
22312         '_Static_assert' is not supported.
22313
22314 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22315
22316         allocator: New module.
22317         * modules/allocator, lib/allocator.c: New files.
22318         * lib/allocator.h (stdlib_allocator): New decl.
22319         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22320         Remove.  Do not include <stdlib.h>.
22321         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22322         * modules/careadlinkat (Files): Remove lib/allocator.h.
22323         (Depends-on): Add allocator.
22324
22325         stdlib: let modules use system malloc, realloc
22326         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22327         if !_GL_USE_STDLIB_ALLOC.
22328         (malloc, realloc): Limit this change to a smaller scope.
22329
22330         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22331         (malloc, realloc): Don't #undef; no longer needed.
22332         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22333         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22334         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22335         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22336         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22337         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22338         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22339         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22340
22341         careadlinkat: rename members to avoid problem
22342         * lib/allocator.h (struct allocator): Rename members from
22343         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22344         and realloc are #define'd.  Reported by Eric Blake in
22345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22346         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22347
22348 2011-04-08  Eric Blake  <eblake@redhat.com>
22349
22350         nonblocking: reduce dependency
22351         * tests/test-nonblocking.c: Only test sockets when in use.
22352         * modules/nonblocking-tests (Depends-on): Drop socket.
22353         (Makefile.am): Link even if sockets are not present.
22354         * modules/pipe2-tests (Makefile.am): Likewise.
22355         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22356
22357         pipe2: fix O_NONBLOCK support on mingw
22358         * modules/pipe2 (Depends-on): Add nonblocking.
22359         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22360         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22361         * tests/test-nonblocking.c (main): Likewise.
22362         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22363
22364         fcntl-h: fix O_ACCMODE on cygwin
22365         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22366         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22367
22368         pipe-filter: drop O_NONBLOCK workarounds
22369         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22370         * modules/pipe-filter-ii (Depends-on): Likewise.
22371         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22372
22373         nonblocking: provide O_NONBLOCK for mingw
22374         * modules/nonblocking (Depends-on): Add open.
22375         (configure.ac): Set new witness macro.
22376         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22377         * modules/fcntl-h (Makefile.am): Substitute it.
22378         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22379         nonblocking module is in use.
22380         * lib/nonblocking.c: Adjust portability test.
22381         * lib/open.c (open): Don't let native open see gnulib flag.
22382         * tests/test-fcntl-h.c (main): Enhance test.
22383         * tests/test-open.h (test_open): Likewise.
22384         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22385
22386         careadlinkat: fix compilation error on mingw
22387         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22388         within struct allocator.
22389
22390 2011-04-06  Eric Blake  <eblake@redhat.com>
22391
22392         binary-io: relicense under LGPLv2+
22393         * modules/binary-io (License): Relax to LGPLv2+.
22394         Requested for libvirt, and required by pipe2.
22395
22396 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22397
22398         verify: use _Static_assert if available
22399         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22400         (verify_true, verify): Use it if available.  This generates better
22401         diagnostics with GCC 4.6.0 and later.
22402
22403 2011-04-05  Bruno Haible  <bruno@clisp.org>
22404
22405         Remove leftover generated .h files after config.status changed.
22406
22407         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22408         GL_GENERATE_ALLOCA_H.
22409         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22410         GL_GENERATE_ALLOCA_H evaluates to false.
22411
22412         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22413         GL_GENERATE_ARGZ_H.
22414         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22415         evaluates to false.
22416
22417         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22418         GL_GENERATE_BYTESWAP_H.
22419         * modules/byteswap (Makefile.am): Remove byteswap.h if
22420         GL_GENERATE_BYTESWAP_H evaluates to false.
22421
22422         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22423         GL_GENERATE_ERRNO_H.
22424         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22425         evaluates to false.
22426
22427         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22428         GL_GENERATE_FLOAT_H.
22429         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22430         evaluates to false.
22431
22432         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22433         GL_GENERATE_FNMATCH_H.
22434         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22435         GL_GENERATE_FNMATCH_H evaluates to false.
22436
22437         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22438         GL_GENERATE_GLOB_H.
22439         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22440         evaluates to false.
22441
22442         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22443         automake conditional GL_GENERATE_ICONV_H.
22444         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22445         evaluates to false.
22446
22447         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22448         GL_GENERATE_NETINET_IN_H.
22449         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22450         GL_GENERATE_NETINET_IN_H evaluates to false.
22451
22452         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22453         conditional GL_GENERATE_PTHREAD_H.
22454         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22455         * modules/pthread (Makefile.am): Remove pthread.h if
22456         GL_GENERATE_PTHREAD_H evaluates to false.
22457
22458         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22459         GL_GENERATE_SCHED_H.
22460         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22461         evaluates to false.
22462
22463         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22464         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22465         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22466         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22467
22468         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22469         GL_GENERATE_STDARG_H.
22470         * modules/stdarg (Makefile.am): Remove stdarg.h if
22471         GL_GENERATE_STDARG_H evaluates to false.
22472
22473         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22474         GL_GENERATE_STDBOOL_H.
22475         * modules/stdbool (Makefile.am): Remove stdbool.h if
22476         GL_GENERATE_STDBOOL_H evaluates to false.
22477
22478         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22479         conditional GL_GENERATE_STDDEF_H.
22480         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22481         * modules/stddef (Makefile.am): Remove stddef.h if
22482         GL_GENERATE_STDDEF_H evaluates to false.
22483
22484         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22485         GL_GENERATE_STDINT_H.
22486         * modules/stdint (Makefile.am): Remove stdint.h if
22487         GL_GENERATE_STDINT_H evaluates to false.
22488
22489         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22490         GL_GENERATE_SYSEXITS_H.
22491         * modules/sysexits (Makefile.am): Remove sysexits.h if
22492         GL_GENERATE_SYSEXITS_H evaluates to false.
22493
22494         Reported by Karl Berry and Ralf Wildenhues.
22495
22496 2011-04-05  Bruno Haible  <bruno@clisp.org>
22497
22498         Ensure to rebuild generated .h files when config.status has changed.
22499         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22500         config.status.
22501         * modules/ctype (Makefile.am): Likewise.
22502         * modules/dirent (Makefile.am): Likewise.
22503         * modules/errno (Makefile.am): Likewise.
22504         * modules/fcntl-h (Makefile.am): Likewise.
22505         * modules/float (Makefile.am): Likewise.
22506         * modules/getopt-posix (Makefile.am): Likewise.
22507         * modules/glob (Makefile.am): Likewise.
22508         * modules/iconv-h (Makefile.am): Likewise.
22509         * modules/inttypes (Makefile.am): Likewise.
22510         * modules/langinfo (Makefile.am): Likewise.
22511         * modules/locale (Makefile.am): Likewise.
22512         * modules/math (Makefile.am): Likewise.
22513         * modules/netdb (Makefile.am): Likewise.
22514         * modules/netinet_in (Makefile.am): Likewise.
22515         * modules/poll-h (Makefile.am): Likewise.
22516         * modules/pthread (Makefile.am): Likewise.
22517         * modules/pty (Makefile.am): Likewise.
22518         * modules/sched (Makefile.am): Likewise.
22519         * modules/search (Makefile.am): Likewise.
22520         * modules/selinux-h (Makefile.am): Likewise.
22521         * modules/signal (Makefile.am): Likewise.
22522         * modules/spawn (Makefile.am): Likewise.
22523         * modules/stdarg (Makefile.am): Likewise.
22524         * modules/stdbool (Makefile.am): Likewise.
22525         * modules/stddef (Makefile.am): Likewise.
22526         * modules/stdint (Makefile.am): Likewise.
22527         * modules/stdio (Makefile.am): Likewise.
22528         * modules/stdlib (Makefile.am): Likewise.
22529         * modules/string (Makefile.am): Likewise.
22530         * modules/strings (Makefile.am): Likewise.
22531         * modules/sys_file (Makefile.am): Likewise.
22532         * modules/sys_ioctl (Makefile.am): Likewise.
22533         * modules/sys_select (Makefile.am): Likewise.
22534         * modules/sys_socket (Makefile.am): Likewise.
22535         * modules/sys_stat (Makefile.am): Likewise.
22536         * modules/sys_time (Makefile.am): Likewise.
22537         * modules/sys_times (Makefile.am): Likewise.
22538         * modules/sys_utsname (Makefile.am): Likewise.
22539         * modules/sys_wait (Makefile.am): Likewise.
22540         * modules/sysexits (Makefile.am): Likewise.
22541         * modules/termios (Makefile.am): Likewise.
22542         * modules/time (Makefile.am): Likewise.
22543         * modules/unistd (Makefile.am): Likewise.
22544         * modules/wchar (Makefile.am): Likewise.
22545         * modules/wctype-h (Makefile.am): Likewise.
22546         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22547
22548 2011-04-05  Bruno Haible  <bruno@clisp.org>
22549
22550         pipe2: Relicense under LGPLv2+.
22551         * modules/pipe2 (License): Change to LGPLv2+.
22552         Requested by Eric Blake, for libvirt.
22553
22554 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22555
22556         bootstrap: compute gnulib_extra_files after updating build_aux
22557         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22558         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22559
22560 2011-04-05  Eric Blake  <eblake@redhat.com>
22561
22562         bootstrap: preserve git whitelist item sorting
22563         * build-aux/bootstrap (sort_patterns): New function.
22564         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22565
22566 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22567
22568         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22569         sc_space_tab check.
22570
22571 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22572
22573         areadlink, areadlinkat: rewrite in terms of careadlinkat
22574         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22575         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22576         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22577         (malloc, realloc): Remove #undefs.
22578         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22579         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22580         readlink, ssize_t, stdint, unistd.
22581         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22582         areadlink, stdint.
22583
22584         careadlinkat: new module
22585         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22586         * modules/careadlinkat: New files, written by me with
22587         a review and feedback from Ben Pfaff in
22588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22589
22590 2011-04-01  Bruno Haible  <bruno@clisp.org>
22591
22592         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22593         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22594         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22595         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22596         Reported by Bruce Korb <bruce.korb@gmail.com>.
22597
22598 2011-04-01  Bruno Haible  <bruno@clisp.org>
22599
22600         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22601         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22602         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22603         * modules/wcpcpy (Depends-on): Add extensions.
22604         * modules/wcpncpy (Depends-on): Likewise.
22605         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22606         systems.
22607         * doc/posix-functions/wcpncpy.texi: Likewise.
22608         * doc/posix-functions/wcwidth.texi: Likewise.
22609
22610 2011-03-31  Eric Blake  <eblake@redhat.com>
22611
22612         nonblocking: fix mingw test failures
22613         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22614         non-blocking flag on regular file.
22615         (get_nonblocking_flag): Set errno on invalid fd.
22616         * tests/test-nonblocking.c (main): Avoid test failure on
22617         directories if fchdir is not active.
22618         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22619
22620 2011-03-31  Bruno Haible  <bruno@clisp.org>
22621
22622         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22623         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22624         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22625         Reported by Simon Josefsson <simon@josefsson.org>.
22626
22627 2011-03-31  Bruno Haible  <bruno@clisp.org>
22628         and Eric Blake  <eblake@redhat.com>
22629
22630         nonblocking: new module
22631         * modules/nonblocking: New module.
22632         * modules/nonblocking-tests: Likewise.
22633         * lib/nonblocking.h: New file.
22634         * lib/nonblocking.c: Likewise.
22635         * tests/test-nonblocking.c: New test.
22636         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22637
22638 2011-03-30  Bruno Haible  <bruno@clisp.org>
22639
22640         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22641         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22642         instead of 'printf' format for GCC >= 4.4.
22643         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22644         (fprintf, printf, vfprintf, vprintf): Declare with
22645         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22646         the system's vfprintf() function.
22647         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22648
22649 2011-03-30  Eric Blake  <eblake@redhat.com>
22650
22651         passfd: fix scoping bug
22652         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22653         before sendmsg/recvmsg.
22654
22655         passfd: standardize coding conventions
22656         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22657         can be learned at compile time.
22658         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22659         ifdefs.
22660         (sendfd, recvfd): Follow gnulib code conventions.
22661
22662         passfd: fix incorrect sendmsg arguments
22663         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22664         incorrect msg_controllen value.
22665         * modules/passfd-tests (Depends-on): Check for alarm.
22666         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22667         Reported by Bastien ROUCARIES.
22668
22669 2011-03-30  Bruno Haible  <bruno@clisp.org>
22670
22671         c-strcasestr: Relicense under LGPLv2+.
22672         * modules/c-strcasestr (License): Change to LGPLv2+.
22673         Requested by Eric Blake, for libvirt.
22674
22675 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22676
22677         * users.txt: Add libidn2.  Fix libtasn1 link.
22678
22679 2011-03-30  Jim Meyering  <meyering@redhat.com>
22680
22681         tests: readlink* ("",... fails with EINVAL on newer kernels
22682         readlink and readlinkat have typically failed with ENOENT for
22683         the invalid, empty file name,  "".  However, with the advent
22684         of linux-2.6.39, they fail with EINVAL.
22685         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22686         when operating on the empty file name.
22687         * tests/test-readlink.h (test_readlink): Likewise.
22688
22689 2011-03-29  Bruno Haible  <bruno@clisp.org>
22690
22691         Relicense some modules under LGPLv2+, for libidn2.
22692         * modules/array-mergesort (License): Change to LGPLv2+.
22693         * modules/c-strcaseeq (License): Likewise.
22694         * modules/striconveh (License): Likewise.
22695         * modules/striconveha (License): Likewise.
22696         * modules/uniconv/base (License): Likewise.
22697         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22698         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22699         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22700         * modules/unictype/base (License): Likewise.
22701         * modules/unictype/bidiclass-of (License): Likewise.
22702         * modules/unictype/category-M (License): Likewise.
22703         * modules/unictype/category-none (License): Likewise.
22704         * modules/unictype/category-of (License): Likewise.
22705         * modules/unictype/category-test (License): Likewise.
22706         * modules/unictype/category-test-withtable (License): Likewise.
22707         * modules/unictype/combining-class (License): Likewise.
22708         * modules/unictype/joiningtype-of (License): Likewise.
22709         * modules/unictype/scripts (License): Likewise.
22710         * modules/uninorm/base (License): Likewise.
22711         * modules/uninorm/canonical-decomposition (License): Likewise.
22712         * modules/uninorm/composition (License): Likewise.
22713         * modules/uninorm/decompose-internal (License): Likewise.
22714         * modules/uninorm/decomposition-table (License): Likewise.
22715         * modules/uninorm/nfc (License): Likewise.
22716         * modules/uninorm/nfd (License): Likewise.
22717         * modules/uninorm/u32-normalize (License): Likewise.
22718         * modules/unistr/base (License): Likewise.
22719         * modules/unistr/u32-cpy (License): Likewise.
22720         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22721         * modules/unistr/u32-to-u8 (License): Likewise.
22722         * modules/unistr/u32-uctomb (License): Likewise.
22723         * modules/unistr/u8-check (License): Likewise.
22724         * modules/unistr/u8-mblen (License): Likewise.
22725         * modules/unistr/u8-mbtouc (License): Likewise.
22726         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22727         * modules/unistr/u8-mbtoucr (License): Likewise.
22728         * modules/unistr/u8-prev (License): Likewise.
22729         * modules/unistr/u8-strlen (License): Likewise.
22730         * modules/unistr/u8-to-u32 (License): Likewise.
22731         * modules/unistr/u8-uctomb (License): Likewise.
22732         * modules/unitypes (License): Likewise.
22733         Requested by Simon Josefsson.
22734
22735 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22736
22737         lib-symbol-visibility: Add a notice.
22738         * modules/lib-symbol-visibility (Notice): New field.
22739
22740 2011-03-29  Bruno Haible  <bruno@clisp.org>
22741
22742         getaddrinfo: Doc fix.
22743         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22744         section "fixed in Gnulib".
22745
22746 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22747
22748         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22749         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22750
22751 2011-03-26  Bruno Haible  <bruno@clisp.org>
22752
22753         unictype/property-byname: Reduce the number of load-time relocations.
22754         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22755         (UC_PROPERTY_INDEX_*): New enumeration values.
22756         (uc_property_byname): Convert an index from the lookup table to an
22757         uc_property_t.
22758         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22759         values.
22760
22761 2011-03-26  Bruno Haible  <bruno@clisp.org>
22762
22763         unictype/property-byname: Allow omitted word separators and aliases.
22764         * lib/unictype/pr_byname.gperf: Add property names without word
22765         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22766         for 'space'.
22767
22768 2011-03-26  Bruno Haible  <bruno@clisp.org>
22769
22770         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22771         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22772         also hyphens to space.
22773         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22774         without spaces.
22775         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22776
22777 2011-03-26  Bruno Haible  <bruno@clisp.org>
22778
22779         unictype/joiningtype-byname: Recognize long names as well.
22780         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22781         a long name.
22782         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22783         unictype/joiningtype_byname.h.
22784         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22785         * lib/unictype/joiningtype_byname.gperf: New file.
22786         * modules/unictype/joiningtype-byname (Files): Add
22787         lib/unictype/joiningtype_byname.gperf.
22788         (Depends-on): Add gperf.
22789         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22790         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22791         long names.
22792
22793         Tests for module 'unictype/joiningtype-longname'.
22794         * modules/unictype/joiningtype-longname-tests: New file.
22795         * tests/unictype/test-joiningtype_longname.c: New file.
22796
22797         New module 'unictype/joiningtype-longname'.
22798         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22799         * lib/unictype/joiningtype_longname.c: New file.
22800         * modules/unictype/joiningtype-longname: New file.
22801         * modules/unictype/joiningtype-all (Depends-on): Add
22802         unictype/joiningtype-longname.
22803
22804 2011-03-26  Bruno Haible  <bruno@clisp.org>
22805
22806         unictype/bidiclass-byname: Recognize long names as well.
22807         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22808         name.
22809         * lib/unictype/bidi_byname.c: Include <string.h>,
22810         unictype/bidi_byname.h.
22811         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22812         * lib/unictype/bidi_byname.gperf: New file.
22813         * modules/unictype/bidiclass-byname (Files): Add
22814         lib/unictype/bidi_byname.gperf.
22815         (Depends-on): Add gperf.
22816         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22817         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22818         long names.
22819
22820         Tests for module 'unictype/bidiclass-longname'.
22821         * modules/unictype/bidiclass-longname-tests: New file.
22822         * tests/unictype/test-bidi_longname.c: New file.
22823
22824         New module 'unictype/bidiclass-longname'.
22825         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22826         * lib/unictype/bidi_longname.c: New file.
22827         * modules/unictype/bidiclass-longname: New file.
22828         * modules/unictype/bidiclass-all (Depends-on): Add
22829         unictype/bidiclass-longname.
22830
22831 2011-03-26  Bruno Haible  <bruno@clisp.org>
22832
22833         unictype/bidi*: Rename modules.
22834         * modules/unictype/bidiclass-all: Renamed from
22835         modules/unictype/bidicategory-all.
22836         * modules/unictype/bidiclass-name: Renamed from
22837         modules/unictype/bidiclass-name.
22838         (Description): Update.
22839         * modules/unictype/bidiclass-name-tests: Renamed from
22840         modules/unictype/bidicategory-name-tests.
22841         * modules/unictype/bidiclass-byname: Renamed from
22842         modules/unictype/bidicategory-byname.
22843         (Description): Update.
22844         * modules/unictype/bidiclass-byname-tests: Renamed from
22845         modules/unictype/bidicategory-byname-tests.
22846         * modules/unictype/bidiclass-of: Renamed from
22847         modules/unictype/bidicategory-of.
22848         (Description): Update.
22849         * modules/unictype/bidiclass-of-tests: Renamed from
22850         modules/unictype/bidicategory-of-tests.
22851         * modules/unictype/bidiclass-test: Renamed from
22852         modules/unictype/bidicategory-test.
22853         (Description): Update.
22854         * modules/unictype/bidiclass-test-tests: Renamed from
22855         modules/unictype/bidicategory-test-tests.
22856         * modules/unictype/bidicategory-all: New file, a simple redirection.
22857         * modules/unictype/bidicategory-name: Likewise.
22858         * modules/unictype/bidicategory-byname: Likewise.
22859         * modules/unictype/bidicategory-of: Likewise.
22860         * modules/unictype/bidicategory-test: Likewise.
22861         * modules/unictype/property-bidi-* (Dependencies): Update.
22862         * lib/unictype/bidi_*.c: Update comment.
22863
22864 2011-03-26  Bruno Haible  <bruno@clisp.org>
22865
22866         unictype/bidi*: Rename functions, part 2.
22867         * modules/unictype/bidicategory-name (configure.ac): Update required
22868         libunistring version.
22869         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22870
22871 2011-03-25  Bruno Haible  <bruno@clisp.org>
22872
22873         New module 'unictype/combining-class-all'.
22874         * modules/unictype/combining-class-all: New file.
22875
22876         Tests for module 'unictype/combining-class-byname'.
22877         * modules/unictype/combining-class-byname-tests: New file.
22878         * tests/unictype/test-combiningclass_byname.c: New file.
22879
22880         New module 'unictype/combining-class-byname'.
22881         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22882         * lib/unictype/combiningclass_byname.c: New file.
22883         * lib/unictype/combiningclass_byname.gperf: New file.
22884         * modules/unictype/combining-class-byname: New file.
22885
22886         Tests for module 'unictype/combining-class-longname'.
22887         * modules/unictype/combining-class-longname-tests: New file.
22888         * tests/unictype/test-combiningclass_longname.c: New file.
22889
22890         New module 'unictype/combining-class-longname'.
22891         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22892         * lib/unictype/combiningclass_longname.c: New file.
22893         * modules/unictype/combining-class-longname: New file.
22894
22895         Tests for module 'unictype/combining-class-name'.
22896         * modules/unictype/combining-class-name-tests: New file.
22897         * tests/unictype/test-combiningclass_name.c: New file.
22898
22899         New module 'unictype/combining-class-name'.
22900         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22901         * lib/unictype/combiningclass_name.c: New file.
22902         * modules/unictype/combining-class-name: New file.
22903
22904 2011-03-25  Bruno Haible  <bruno@clisp.org>
22905
22906         unictype/combining-class: Rename source files.
22907         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22908         of unictype/combining.h.
22909         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22910         Update.
22911         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22912         * modules/unictype/combining-class (Description): Fix.
22913         (Files, Makefile.am): Update.
22914         * tests/unictype/test-combiningclass.c: Renamed from
22915         tests/unictype/test-combining.c.
22916         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22917
22918 2011-03-25  Bruno Haible  <bruno@clisp.org>
22919
22920         unictype: Update list of canonical combining classes.
22921         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22922
22923 2011-03-25  Bruno Haible  <bruno@clisp.org>
22924
22925         unictype/category-byname: Recognize long names as well.
22926         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22927         a long name.
22928         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22929         unictype/categ_byname.h.
22930         (UC_CATEGORY_INDEX_*): New enumeration values.
22931         (uc_general_category_byname): Use uc_general_category_lookup and
22932         convert from index to value.
22933         * lib/unictype/categ_byname.gperf: New file.
22934         * modules/unictype/category-byname (Files): Add
22935         lib/unictype/categ_byname.gperf.
22936         (Depends-on): Add gperf.
22937         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22938         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22939         long names.
22940
22941         Tests for module 'unictype/category-longname'.
22942         * modules/unictype/category-longname-tests: New file.
22943         * tests/unictype/test-categ_longname.c: New file.
22944
22945         New module 'unictype/category-longname'.
22946         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22947         * lib/unictype/categ_longname.c: New file.
22948         * modules/unictype/category-longname: New file.
22949         * modules/unictype/category-all (Depends-on): Add it.
22950
22951 2011-03-25  Bruno Haible  <bruno@clisp.org>
22952
22953         Tests for module 'unictype/category-LC'.
22954         * modules/unictype/category-LC-tests: New file.
22955         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22956
22957         New module 'unictype/category-LC'.
22958         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22959         (UC_CATEGORY_LC): New declaration.
22960         (UC_CASED_LETTER): New macro.
22961         * lib/gen-uni-tables.c (is_category_LC): New function.
22962         (output_categories): Also handle category LC.
22963         (UC_CATEGORY_MASK_LC): New enumeration value.
22964         (general_category_byname): Also handle category LC.
22965         * lib/unictype/categ_LC.c: New file.
22966         * lib/unictype/categ_LC.h: New file, automatically generated.
22967         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22968         category LC.
22969         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22970         * modules/unictype/category-LC: New file.
22971         * modules/unictype/category-byname (Depends-on): Add
22972         unictype/category-LC.
22973         * modules/unictype/category-all (Depends-on): Likewise.
22974
22975 2011-03-25  Eric Blake  <eblake@redhat.com>
22976
22977         xmalloc: revert yesterday's regression
22978         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22979         realloc's underlying behavior (allowing allocation of zero-size
22980         objects, especially if malloc-gnu is also in use).
22981
22982 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22983
22984         maint.mk: add missing version to VC-tag
22985         * top/maint.mk: git tag was missing actual tag name; add it.
22986
22987         valgrind: do leak checking, and exit with code 1 on error (not 0)
22988         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22989         to VALGRIND.
22990
22991 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22992
22993         posix-modules: say what it does.
22994         * posix-modules: Add a line to the --help output saying what it does.
22995
22996 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22997
22998         xmalloc: Do not leak if underlying realloc is C99 compatible.
22999         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23000         This avoids a leak on C99-based systems.  See
23001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23002
23003 2011-03-24  Eric Blake  <eblake@redhat.com>
23004
23005         realloc: document portability problem
23006         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23007         passing 0 size to realloc.
23008
23009 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23010
23011         doc: update users.txt
23012         * users.txt: Add cvsps, tmpwatch
23013
23014 2011-03-23  Matt Rice  <ratmice@gmail.com>
23015
23016         doc: update users.txt
23017         * users.txt: Add gdb.
23018
23019 2011-03-23  Jim Meyering  <meyering@redhat.com>
23020
23021         doc: update users.txt
23022         Looking through matches up to the following URL (there are still
23023         several more pages), I found several projects that use gnulib:
23024         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23025         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23026         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23027
23028 2011-03-22  Bruno Haible  <bruno@clisp.org>
23029
23030         unictype/bidi*: Rename functions.
23031         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23032         uc_bidi_class, uc_is_bidi_class): New declarations.
23033         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23034         uc_bidi_category_byname.
23035         (uc_bidi_category_byname): New function.
23036         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23037         u_bidi_category_name.
23038         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23039         (uc_bidi_category_name): New function.
23040         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23041         uc_bidi_category.
23042         (uc_bidi_category): New function.
23043         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23044         uc_is_bidi_category. Invoke uc_bidi_class.
23045         (uc_is_bidi_category): New function.
23046         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23047         instead of uc_bidi_category_byname.
23048         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23049         instead of uc_bidi_category_name.
23050         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23051         uc_bidi_category.
23052         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23053         instead of uc_is_bidi_category.
23054
23055 2011-03-21  Bruno Haible  <bruno@clisp.org>
23056
23057         New module 'unictype/joininggroup-all'.
23058         * modules/unictype/joininggroup-all: New file.
23059
23060         Tests for module 'unictype/joininggroup-of'.
23061         * modules/unictype/joininggroup-of-tests: New file.
23062         * tests/unictype/test-joininggroup_of.c: New file.
23063         * tests/unictype/test-joininggroup_of.h: New file, automatically
23064         generated by gen-uni-tables.
23065
23066         New module 'unictype/joininggroup-of'.
23067         * modules/unictype/joininggroup-of: New file.
23068         * lib/unictype/joininggroup_of.c: New file.
23069         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23070         gen-uni-tables.
23071
23072         Tests for module 'unictype/joininggroup-byname'.
23073         * modules/unictype/joininggroup-byname-tests: New file.
23074         * tests/unictype/test-joininggroup_byname.c: New file.
23075
23076         New module 'unictype/joininggroup-byname'.
23077         * modules/unictype/joininggroup-byname: New file.
23078         * lib/unictype/joininggroup_byname.c: New file.
23079         * lib/unictype/joininggroup_byname.gperf: New file.
23080
23081         Tests for module 'unictype/joininggroup-name'.
23082         * modules/unictype/joininggroup-name-tests: New file.
23083         * tests/unictype/test-joininggroup_name.c: New file.
23084
23085         New module 'unictype/joininggroup-name'.
23086         * modules/unictype/joininggroup-name: New file.
23087         * lib/unictype/joininggroup_name.c: New file.
23088         * lib/unictype/joininggroup_name.h: New file.
23089
23090         New module 'unictype/joiningtype-all'.
23091         * modules/unictype/joiningtype-all: New file.
23092
23093         Tests for module 'unictype/joiningtype-of'.
23094         * modules/unictype/joiningtype-of-tests: New file.
23095         * tests/unictype/test-joiningtype_of.c: New file.
23096         * tests/unictype/test-joiningtype_of.h: New file, automatically
23097         generated by gen-uni-tables.
23098
23099         New module 'unictype/joiningtype-of'.
23100         * modules/unictype/joiningtype-of: New file.
23101         * lib/unictype/joiningtype_of.c: New file.
23102         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23103         gen-uni-tables.
23104
23105         Tests for module 'unictype/joiningtype-byname'.
23106         * modules/unictype/joiningtype-byname-tests: New file.
23107         * tests/unictype/test-joiningtype_byname.c: New file.
23108
23109         New module 'unictype/joiningtype-byname'.
23110         * modules/unictype/joiningtype-byname: New file.
23111         * lib/unictype/joiningtype_byname.c: New file.
23112
23113         Tests for module 'unictype/joiningtype-name'.
23114         * modules/unictype/joiningtype-name-tests: New file.
23115         * tests/unictype/test-joiningtype_name.c: New file.
23116
23117         New module 'unictype/joiningtype-name'.
23118         * modules/unictype/joiningtype-name: New file.
23119         * lib/unictype/joiningtype_name.c: New file.
23120
23121         unictype: Add support for Arabic shaping properties.
23122         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23123         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23124         declarations.
23125         (UC_JOINING_GROUP_*): New enumeration values.
23126         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23127         declarations.
23128         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23129         (unicode_joining_type): New variable.
23130         (UC_JOINING_GROUP_*): New enumeration values.
23131         (unicode_joining_group): New variable.
23132         (fill_arabicshaping, joining_type_as_c_identifier,
23133         output_joining_type_test, output_joining_type,
23134         joining_group_as_c_identifier, output_joining_group_test,
23135         output_joining_group): New functions.
23136         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23137         fill_arabicshaping and output_joining_type_test, output_joining_type,
23138         output_joining_group_test, output_joining_group.
23139         Reported by Simon Josefsson.
23140
23141 2011-03-21  Jim Meyering  <meyering@redhat.com>
23142
23143         strftime: fix a bug in yesterday's change
23144         * lib/strftime.c (add): Accommodate width's initial value of -1.
23145         Otherwise, nstrftime would copy uninitialized data into
23146         the result buffer.
23147
23148 2011-03-21  Jim Meyering  <meyering@redhat.com>
23149
23150         tests: add strftime-tests module
23151         * tests/test-strftime.c: New file.
23152         * modules/strftime-tests: New module.
23153
23154 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23155
23156         strftime: don't assume a byte count fits in 'int'
23157         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23158         found this problem by static analysis, using gcc -Wstrict-overflow
23159         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23160         on an integer overflow having undefined behavior, but it turns out
23161         that the argument is a size, which might not fit in 'int' anyway,
23162
23163 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23164
23165         stdio: don't require ignore_value around fwrite
23166
23167         This patch works around libc bug 11959
23168         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23169         Without this patch, applications must often write
23170         ignore_value (fwrite (...)) even though the ignore_value is
23171         not helpful here.  It's common to write many objects, using
23172         fwrite/printf/etc., and then use ferror to detect output error.
23173
23174         I considered making this patch optional, but decided against it,
23175         because libc is obviously being inconsistent here: there is no
23176         reason libc should insist that user code must inspect fwrite
23177         return's value without also insisting that it inspect printf's,
23178         putchar's, etc.  If user code wants to have a strict style where
23179         all these functions' values are checked (so that ferror need not
23180         be checked), we could add support for that style in a new gnulib
23181         module, but in the meantime it's better to be consistent and to
23182         support common usage.
23183
23184         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23185         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23186         that we are compiling in checking mode, and if not C++, and
23187         if not already wrapping fwrite for some other reason.
23188         (fwrite): #define to rpl_fwrite if the latter is defined.
23189
23190 2011-03-20  Bruno Haible  <bruno@clisp.org>
23191
23192         verror: Fix compilation error introduced on 2011-02-13.
23193         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23194         instead of __attribute__.
23195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23196
23197 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23198             Bruno Haible  <bruno@clisp.org>
23199
23200         socklen: do not depend on sys_socket
23201         While trying to modify Emacs to use gnulib's socklen module,
23202         I discovered a circular dependency: socklen depends on sys_socket
23203         and vice versa.  Emacs can use socklen, but it does not need
23204         sys_socket because it has its own substitute for sys/socket.h.
23205         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23206         gl_TYPE_SOCKLEN_T.
23207         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23208         gl_PREREQ_SYS_H_SOCKET.
23209         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23210         gl_PREREQ_SYS_H_SOCKET.
23211         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23212         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23213         * modules/socklen (Depends-on): Do not depend on sys_socket.
23214         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23215
23216 2011-03-20  Jim Meyering  <meyering@redhat.com>
23217
23218         maint.mk: sort file names *after* new transformation
23219         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23220         prefix would have led to an unwarranted failure in GNU parted.
23221         Sort after that transformation.
23222
23223 2011-03-19  Jim Meyering  <meyering@redhat.com>
23224
23225         maint.mk: fix po-file syntax-check rule
23226         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23227         Patch by Bruno Haible.
23228
23229 2011-03-19  Bruno Haible  <bruno@clisp.org>
23230
23231         socklen: Update comment.
23232         * m4/socklen.m4: Update comment about platforms.
23233
23234 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23235             Bruno Haible  <bruno@clisp.org>
23236
23237         inet_ntop, inet_pton: Simplify.
23238         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23239         documented to provide socklen_t and we already depend on sys_socket.
23240         * modules/inet_pton (Depends-on): Likewise.
23241         * lib/arpa_inet.in.h: Adjust comment.
23242
23243 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23244             Bruno Haible  <bruno@clisp.org>
23245
23246         netdb: Simplify.
23247         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23248         documented to provide socklen_t and we already depend on sys_socket.
23249         * lib/netdb.in.h: Adjust comment.
23250
23251 2011-03-19  Bruno Haible  <bruno@clisp.org>
23252
23253         sys_socket, netdb: Document problem with socklen_t.
23254         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23255         platforms.
23256         * doc/posix-headers/netdb.texi: Likewise.
23257
23258 2011-03-18  Eric Blake  <eblake@redhat.com>
23259
23260         maint.mk: let po check work in VPATH build
23261         * top/maint.mk (po_file): Allow cfg.mk override.
23262         (sc_po_check): Allow VPATH use.
23263         Reported by Jiri Denemark.
23264
23265 2011-03-16  Jim Meyering  <meyering@redhat.com>
23266
23267         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23268         Before, you would have had to create one .x-sc_ file per rule in order
23269         to exempt offending files.  Now, you may instead use a Make variable --
23270         usually defined in cfg.mk -- whose name identifies the affected rule.
23271         * top/maint.mk (_sc_excl): Define.
23272         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23273         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23274
23275 2011-03-13  Bruno Haible  <bruno@clisp.org>
23276
23277         ignore-value tests: Avoid warnings.
23278         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23279         empty for gcc < 3.4.
23280
23281 2011-03-13  Bruno Haible  <bruno@clisp.org>
23282
23283         passfd: Fix link error on Solaris.
23284         * modules/passfd (Description): Correct.
23285         (Depends-on): Add socketlib.
23286         (Link): New section.
23287         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23288
23289 2011-03-13  Bruno Haible  <bruno@clisp.org>
23290
23291         passfd: Fix link error on AIX 5.2.
23292         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23293
23294 2011-03-13  Bruno Haible  <bruno@clisp.org>
23295
23296         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23297         * lib/sys_socket.in.h: Include <stddef.h>.
23298         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23299         CMSG_FIRSTHDR. Remove unused variable.
23300
23301 2011-03-13  Bruno Haible  <bruno@clisp.org>
23302
23303         passfd: Fix compilation error on OpenBSD.
23304         * lib/passfd.c: Include <sys/uio.h>.
23305
23306 2011-03-13  Bruno Haible  <bruno@clisp.org>
23307
23308         passfd test: Fix warnings.
23309         * tests/test-passfd.c: Include <sys/wait.h>.
23310         (main): Fix typo.
23311
23312 2011-03-13  Bruno Haible  <bruno@clisp.org>
23313
23314         passfd module, part 4, tweaks.
23315         * tests/test-passfd.c: Reorder includes.
23316         (main): Fix perror and printf calls.
23317
23318 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23319
23320         passfd module, part 4.
23321         * modules/passfd-tests: New file.
23322         * tests/test-passfd.c: New file.
23323
23324 2011-03-13  Jim Meyering  <meyering@redhat.com>
23325
23326         Makefile: rely on GNU make; derive syntax-check rule names
23327         Rather than requiring that each sc_ rule be listed as a dependent
23328         of "check", use features of GNU make to derive the list.
23329         * Makefile (syntax-check-rules): Define.
23330         (check): Depend on the new variable, not the hard-coded list.
23331
23332 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23333             Bruno Haible  <bruno@clisp.org>
23334
23335         passfd module, part 3.
23336         * lib/passfd.h (recvfd): Add a flags argument.
23337         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23338         (recvfd): Add a flags argument.
23339         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23340         exists.
23341         * modules/passfd (Depends-on): Add cloexec.
23342         Suggested by Eric Blake.
23343
23344 2011-03-13  Bruno Haible  <bruno@clisp.org>
23345
23346         passfd module, part 2, tweaks.
23347         * modules/passfd (Files): Reorder.
23348         (Depends-on): Remove errno.
23349         (Include): Remove <sys/socket.h>, <sys/un.h>.
23350         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23351         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23352         specification header. Include <sys/socket.h> always. Don't include
23353         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23354         (sendfd): Clarify that it sets errno when it fails.
23355         (recvfd): Fix specification.
23356
23357 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23358
23359         passfd module, part 2.
23360         * modules/passfd: New file.
23361         * lib/passfd.h: New file.
23362         * lib/passfd.c: New file.
23363
23364 2011-03-12  Bruno Haible  <bruno@clisp.org>
23365
23366         wcswidth, mbswidth: Avoid integer overflow.
23367         * lib/wcswidth.c: Include <limits.h>.
23368         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23369         * lib/mbswidth.c: Include <limits.h>.
23370         (mbsnwidth): Avoid 'int' overflow.
23371         Reported by Jim Meyering.
23372
23373 2011-03-12  Bruno Haible  <bruno@clisp.org>
23374
23375         futimens, utimensat: Avoid endless recursion on Solaris 10.
23376         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23377         Solaris.
23378         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23379         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23380
23381 2011-03-11  Jim Meyering  <meyering@redhat.com>
23382
23383         maint.mk: relax a regexp to accommodate other formatting styles
23384         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23385         between "ngettext" and the following "(".
23386
23387 2011-03-11  Pádraig Brady <P@draigBrady.com>
23388
23389         maint.mk: suppress a false positive warning
23390         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23391         diagnostics are marked with ngettext.
23392
23393 2011-03-10  Eric Blake  <eblake@redhat.com>
23394
23395         wchar: add explicit dependencies, for Tru64
23396         * modules/mbmemcasecoll (Depends-on): Add wchar.
23397         * modules/mbtowc (Depends-on): Likewise.
23398         * modules/vasnprintf (Depends-on): Likewise.
23399         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23400         * modules/wctomb (Depends-on): Likewise.
23401         Reported by Peter O'Gorman.
23402
23403 2011-03-08  Bruno Haible  <bruno@clisp.org>
23404
23405         passfd module, part 1, tweaks.
23406         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23407         Improve indentation. Improve AC_MSG_CHECKING messages.
23408         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23409         gl_SOCKET_FAMILIES.
23410
23411 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23412
23413         passfd module, part 1.
23414         * m4/afunix.m4: New file.
23415         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23416         sockets.
23417
23418 2011-03-08  Bruno Haible  <bruno@clisp.org>
23419
23420         regex-quote: New API.
23421         * lib/regex-quote.h: Include <stdbool.h>.
23422         (struct regex_quote_spec): New type.
23423         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23424         New declarations.
23425         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23426         'const struct regex_quote_spec *' argument.
23427         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23428         (pcre_special): New constant.
23429         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23430         New functions.
23431         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23432         'const struct regex_quote_spec *' argument.
23433         * modules/regex-quote (Depends-on): Add stdbool.
23434         * tests/test-regex-quote.c (check): Update for new API. Add test for
23435         anchored results.
23436         * NEWS: Mention the API change.
23437         Reported by Reuben Thomas and Eric Blake.
23438
23439 2011-03-06  Bruno Haible  <bruno@clisp.org>
23440
23441         regex-quote: Fix creation of POSIX extended regular expressions.
23442         * lib/regex-quote.c (ere_special): Add grouping and alternation
23443         operators.
23444
23445 2011-03-05  Bruno Haible  <bruno@clisp.org>
23446
23447         doc: Improve doc regarding autopoint vs. gnulib.
23448         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23449         disable autopoint while running autoreconf.
23450         Suggested by Ralf Wildenhues.
23451
23452 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23453
23454         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23455         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23456
23457 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23458
23459         parse-duration: remove xalloc.h dependency
23460         * lib/parse-duration.c (parse_period): handle NULL return from
23461         strdup instead of calling xstrdup().
23462         * modules/parse-duration: remove "xalloc" dependency
23463
23464 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23465
23466         bootstrap: honor m4_base when running aclocal
23467         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23468
23469 2011-03-02  Jim Meyering  <meyering@redhat.com>
23470
23471         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23472         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23473         on request from Matt Booth.
23474
23475 2011-03-01  Eric Blake  <eblake@redhat.com>
23476
23477         test-link: work on Hurd
23478         * tests/test-link.h (test_link): Hurd rejects linking directories
23479         with EISDIR instead of the POSIX-mandated EPERM.
23480
23481 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23482
23483         stdio: simplify by moving files to printf-posix, sigpipe
23484         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23485         since this symbol is needed only if printf is replaced.
23486         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23487         Require gl_ASM_SYMBOL_PREFIX.
23488         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23489         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23490         (Depends-on): Add 'raise'.
23491         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23492         * modules/stdio (Files): Remove lib/stdio-write.c,
23493         m4/asm-underscore.m4.
23494         (Depends-on): Remove 'raise'.
23495
23496         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23497         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23498         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23499         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23500
23501 2011-02-28  Bruno Haible  <bruno@clisp.org>
23502
23503         localcharset: Assume ANSI C behaviour of free().
23504         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23505         calling free().
23506         Suggested by Simon Josefsson <simon@josefsson.org>.
23507
23508 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23509             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23510             Bruno Haible  <bruno@clisp.org>  (tiny change)
23511
23512         On Cygwin, use /proc file system instead of win32 API.
23513         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23514         Win32 file names.
23515         (DllMain): Simplify by removing Cygwin specific code.
23516         (find_shared_library_fullname): Use Linux specific implementation also
23517         for Cygwin.
23518         (get_shared_library_fullname): Update accordingly.
23519         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23520         Win32 file names.
23521         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23522         Cygwin specific code.
23523
23524 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23525             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23526
23527         Fix OpenMP flag detection for various Fortran compilers.
23528         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23529         OpenMP-conditional compilation construct, to force compile
23530         failure with missing OpenMP flag.
23531         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23532
23533 2011-02-25  Eric Blake  <eblake@redhat.com>
23534
23535         strstr: expand test coverage
23536         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23537         compilation.
23538         * tests/test-memmem.c (main): Duplicate tests.
23539         * tests/test-strcasestr.c (main): Likewise.
23540         * tests/test-c-strcasestr.c (main): Likewise.
23541
23542 2011-02-25  Jim Meyering  <meyering@redhat.com>
23543
23544         maint.mk: detect missing-NL-at-EOF, too
23545         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23546         it also detects when a file lacks a newline at EOF.
23547         (require_exactly_one_NL_at_EOF_): Renamed from
23548         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23549         since people may well have .x-sc_... file names tied to the
23550         existing name.  Suggested by Eric Blake.
23551
23552 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23553
23554         dirname: move m4/dos.m4 functionality into lib/dosname.h
23555
23556         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23557         extracts symbols from it, puts them into config.h; but it's much
23558         easier to use the symbols directly.  filename.h already does this,
23559         but it disagrees with dos.m4 in some respects.  This patch
23560         introduces a different include file dosname.h that packages up
23561         dos.m4, and then later we can work on merging filename.h and
23562         dosname.h.  Applications that need only the easy-to-configure
23563         symbols should consider including dosname.h rather than dirname.h.
23564         * NEWS: Mention incompatible changes.
23565         * m4/dos.m4: Remove.
23566         * lib/dosname.h, modules/dosname: New files.
23567         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23568         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23569         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23570         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23571         Include dosname.h, not dirname.h.
23572         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23573         Include dosname.h, for definitions of symbols like ISSLASH
23574         that used to be in config.h.
23575         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23576         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23577         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23578         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23579         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23580         * modules/rmdir (Files): Likewise.
23581         * modules/stat (Files): Likewise.
23582         * modules/unlink (Files): Likewise.
23583         * modules/dirname-lgpl (Depends-on): Add dosname.
23584         * modules/lstat (Depends-on): Likewise.
23585         * modules/openat (Depends-on): Likewise.
23586         * modules/rmdir (Depends-on): Likewise.
23587         * modules/savewd (Depends-on): Likewise.
23588         * modules/stat (Depends-on): Likewise.
23589         * modules/unlink (Depends-on): Likewise.
23590         * modules/openat (Depends-on): Remove dirname-lgpl.
23591         * modules/savewd (Depends-on): Likewise.
23592         * tests/test-dirname.c: Do not use removed symbols like
23593         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23594         the remaining symbols, e.g., ISSLASH ('\\').
23595
23596 2011-02-25  Eric Blake  <eblake@redhat.com>
23597
23598         strstr: revert patches that introduced bug and pessimization
23599         * lib/str-two-way.h: Add another reference.
23600         (two_way_short_needle, two_way_long_needle): Revert changes from
23601         2011-02-24; they pessimize search speed.
23602         (critical_factorization): Partially revert changes from
23603         2010-06-22; they violate the requirement that the left half of the
23604         needle be smaller than the period of the needle.
23605
23606 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23607
23608         filenamecat: remove unnecessary dependency on dirname-lgpl
23609         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23610         is no direct dependency, just an indirect one via filenamecat-lgpl.
23611
23612         remove: remove unnecessary use of m4/dos.m4
23613         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23614         * modules/remove (FILES): Remove m4/dos.m4.
23615
23616         * lib/openat-proc.c: Don't include dirname.h; not needed.
23617
23618         backupfile: remove unnecessary use of m4/dos.m4
23619         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23620         of its symbols are used by the backupfile code.  backupfile.c does
23621         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23622         for the rare case of programs that want all their backup file
23623         names to live within 8+3 limits, and dos.m4 doesn't address that.
23624         * modules/backupfile (Files): Remove m4/dos.m4.
23625
23626 2011-02-24  Jim Meyering  <meyering@redhat.com>
23627
23628         strstr: fix a bug whereby strstr would mistakenly return NULL
23629         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23630         in period calculation.
23631         (two_way_long_needle): Likewise.
23632         The original problem was reported by Mike Stump in
23633         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23634         Ralf Wildenhues provided the short needle and haystack.
23635         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23636         Add a more involved test to trigger the bug in two_way_long_needle.
23637
23638 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23639
23640         gnulib-tool: remove use of bold display in help screen
23641         * gnulib-tool (func_usage): Do not use bold display anymore in the
23642         help screen.  That was just meant to be a temporary emphasis for a
23643         backward-incompatible change.
23644
23645 2011-02-23  Bruno Haible  <bruno@clisp.org>
23646
23647         Fix misindentation of preprocessor directives.
23648         * lib/argp-namefrob.h: Reindent preprocessor directives.
23649         * lib/getopt_int.h (struct _getopt_data): Likewise.
23650         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23651         * lib/vasnprintf.c (decode_long_double): Likewise.
23652         * tests/test-argmatch.c: Insert blank lines, for clarity.
23653         * tests/test-exclude.c: Likewise.
23654
23655 2011-02-22  Bruno Haible  <bruno@clisp.org>
23656
23657         ioctl: Fix for MacOS X in 64-bit mode.
23658         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23659         value.
23660         Suggested by Eric Blake.
23661         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23662
23663 2011-02-22  Jim Meyering  <meyering@redhat.com>
23664
23665         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23666         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23667         in lib/.
23668
23669 2011-02-22  Eric Blake  <eblake@redhat.com>
23670
23671         maint: avoid any CDPATH issue
23672         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23673
23674         maint: adjust cpp indentation for my modules, as well
23675         * Makefile (sc_cpp_indent_check): Add my name.
23676         * lib/fbufmode.c: Filter through cppi.
23677         * lib/fpurge.c: Likewise.
23678         * lib/freadable.c: Likewise.
23679         * lib/freading.c: Likewise.
23680         * lib/fwritable.c: Likewise.
23681         * lib/fwriting.c: Likewise.
23682         * lib/sigaction.c: Likewise.
23683
23684 2011-02-22  Jim Meyering  <meyering@redhat.com>
23685
23686         maint: adjust cpp indentation to reflect nesting depth
23687         I.e., in a block of code that begins with an unnested "#if",
23688         put one space between the "#" in column 1 and following token.
23689         For example,
23690         -#include <sys/vfs.h>
23691         +# include <sys/vfs.h>
23692         Do this only in .c files that are part of a module I maintain.
23693         * lib/linkat.c: Filter through cppi.
23694         * lib/nanosleep.c: Likewise.
23695         * lib/openat.c: Likewise.
23696         * lib/openat-die.c: Likewise.
23697         * lib/dup3.c: Likewise.
23698         * lib/fchownat.c: Likewise.
23699         * lib/flock.c: Likewise.
23700         * lib/fsync.c: Likewise.
23701         * lib/fts.c: Likewise.
23702         * lib/getpass.c: Likewise.
23703         * lib/gettimeofday.c: Likewise.
23704         * lib/userspec.c: Likewise.
23705         * Makefile (sc_cpp_indent_check): New rule, to check this.
23706
23707 2011-02-22  Bruno Haible  <bruno@clisp.org>
23708
23709         New module 'wctomb'.
23710         * lib/stdlib.in.h (wctomb): New declaration.
23711         * lib/wctomb.c: New file.
23712         * lib/wctomb-impl.h: New file.
23713         * m4/wctomb.m4: New file.
23714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23715         REPLACE_WCTOMB.
23716         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23717         REPLACE_WCTOMB.
23718         * modules/wctomb: New file.
23719         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23720         * doc/posix-functions/wctomb.texi: Mention the new module.
23721         * modules/wctob (Depends-on): Add wctomb.
23722
23723 2011-02-22  Bruno Haible  <bruno@clisp.org>
23724
23725         New module 'mbtowc'.
23726         * lib/stdlib.in.h (mbtowc): New declaration.
23727         * lib/mbtowc.c: New file.
23728         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23729         * m4/mbtowc.m4: New file.
23730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23731         REPLACE_MBTOWC.
23732         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23733         REPLACE_MBTOWC.
23734         * modules/mbtowc: New file.
23735         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23736         * doc/posix-functions/mbtowc.texi: Mention the new module.
23737         * modules/btowc (Depends-on): Add mbtowc.
23738
23739 2011-02-22  Bruno Haible  <bruno@clisp.org>
23740
23741         wcrtomb: Add more tests for native Windows platforms.
23742         * tests/test-wcrtomb-w32-1.sh: New file.
23743         * tests/test-wcrtomb-w32-2.sh: New file.
23744         * tests/test-wcrtomb-w32-3.sh: New file.
23745         * tests/test-wcrtomb-w32-4.sh: New file.
23746         * tests/test-wcrtomb-w32-5.sh: New file.
23747         * tests/test-wcrtomb-w32.c: New file.
23748         * modules/wcrtomb-tests (Files): Add them.
23749         (Makefile.am): Arrange to run these tests.
23750         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23751         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23752
23753 2011-02-20  Bruno Haible  <bruno@clisp.org>
23754
23755         wcrtomb: Enhance test.
23756         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23757
23758 2011-02-20  Bruno Haible  <bruno@clisp.org>
23759
23760         mbrtowc: Tiny optimization.
23761         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23762
23763 2011-02-20  Jim Meyering  <meyering@redhat.com>
23764
23765         test-exclude.c: remove unmatched #endif
23766         * tests/test-exclude.c: Remove stray #endif, left over from
23767         the change of a week ago.
23768
23769 2011-02-19  Jim Meyering  <meyering@redhat.com>
23770
23771         git-version-gen: skip "-dirty" check when appropriate
23772         * build-aux/git-version-gen: Don't run any git commands when the
23773         version string comes from .tarball-version.  Prior to this, we
23774         would run git update-index --refresh even from a just-unpacked
23775         tarball directory, and that could affect a .git/ directory in a
23776         parent of the build directory.  Reported by Mike Frysinger.
23777
23778 2011-02-19  Bruno Haible  <bruno@clisp.org>
23779
23780         unictype/property-byname: Reduce the size of the 'data' segment.
23781         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23782
23783 2011-02-19  Bruno Haible  <bruno@clisp.org>
23784
23785         unictype/scripts: Reduce the size of the 'data' segment.
23786         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23787         '%pic'.
23788         * lib/unictype/scripts_byname.gperf: Regenerated.
23789
23790 2011-02-19  Bruno Haible  <bruno@clisp.org>
23791
23792         stdint: Update documentation.
23793         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23794
23795 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23796
23797         stdint: omit redundant check for wchar.h
23798         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23799         always tests whether wchar.h exists, so remove the now-redundant test.
23800
23801 2011-02-18  Bruno Haible  <bruno@clisp.org>
23802
23803         stdint: Cut dependency to module 'wchar'.
23804         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23805         include the necessary prerequisites.
23806         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23807         * modules/stdint (Depends-on): Remove wchar.
23808         (Makefile.am): Substitute HAVE_WCHAR_H.
23809         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23810
23811 2011-02-18  Eric Blake  <eblake@redhat.com>
23812
23813         longlong: skip, rather than fail, on cross-compilation
23814         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23815         when cross-compiling; regression from 2011-02-16.
23816
23817 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23818
23819         * NEWS: Mention 2011-02-08 change to stdlib.
23820
23821 2011-02-17  Bruno Haible  <bruno@clisp.org>
23822
23823         getloadavg: Add comments about platforms.
23824         * m4/getloadavg.m4: Add comment.
23825         * lib/getloadavg.c: Likewise.
23826
23827 2011-02-17  Bruno Haible  <bruno@clisp.org>
23828
23829         getloadavg: Fix link error on Solaris 2.6.
23830         * modules/getloadavg (Link): New section.
23831         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23832         linking test-getloadavg.
23833         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23834         getloadavg.
23835
23836 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23837
23838         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23839         It was 'int', but this doesn't match the IRIX 6.5 manual.
23840         Suggested by Bruno Haible in
23841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23842
23843 2011-02-17  Bruno Haible  <bruno@clisp.org>
23844
23845         havelib: Fix comments.
23846         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23847         change.
23848
23849 2011-02-17  Bruno Haible  <bruno@clisp.org>
23850
23851         havelib: Update config.rpath.
23852         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23853
23854 2011-02-17  Bruno Haible  <bruno@clisp.org>
23855
23856         getloadavg test: Add some plausibility checks.
23857         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23858         is improbable.
23859
23860 2011-02-16  Eric Blake  <eblake@redhat.com>
23861
23862         maintainer-makefile: make syntax-check a no-op from tarballs
23863         * top/maint.mk (no-vc-detected): New rule.
23864         (local-checks-available): Use it to avoid hanging if someone tries
23865         'make syntax-check' from a tarball.  Also append to any non-syntax
23866         checks already defined in cfg.mk.
23867
23868 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23869
23870         longlong: tune, particularly for common case of c99
23871
23872         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23873         or running anything if c99, or if unsigned long long int does not
23874         work.  In either case, we know the answer without further tests.
23875         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23876         it at most once, and use its results for both long long int and
23877         unsigned long long int.  This is more likely to be efficient in
23878         the common case where the program wants to check for both long
23879         long int and unsigned long long int.
23880         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23881         since the answer is already known.
23882
23883 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23884
23885         getloadavg: set errno
23886         * lib/getloadavg.c: Set errno when returning -1.  If no other
23887         error number looks appropriate, set it to ENOSYS if the getloadavg
23888         looks like it can't possibly ever work, ENOTSUP otherwise.
23889         Suggested by Bruno Haible in
23890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23891
23892         getloadavg: trim unused parts and speed up 'configure'
23893         * NEWS: Document this.
23894         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23895         always compiled if getloadavg is absent.
23896         Move test code to ...
23897         * tests/test-getloadavg.c: New file, containing previous
23898         contents of test from lib/getloadavg.c.  It also contains
23899         suggestions by Bruno Haible in
23900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23901         * modules/getloadavg-tests: New file.
23902         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23903         Do tests in the same order as they're needed for getloadavg.c.
23904         Omit setgid-related tests that generate symbols KMEM_GROUP,
23905         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23906         Do only the tests that are needed to see whether the system has
23907         getloadavg, moving the other tests into ...
23908         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23909         NLIST_NAME_UNION; nobody should be using it.  Do not define
23910         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23911         relevant, as the user of this module shouldn't care how getloadavg
23912         is implemented.
23913
23914         getloadavg: omit unused var
23915         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23916
23917 2011-02-15  Jim Meyering  <meyering@redhat.com>
23918
23919         doc: update users.txt
23920         * users.txt: Update iwhd's URL.
23921
23922 2011-02-13  Bruno Haible  <bruno@clisp.org>
23923
23924         Consistent macro naming for macros that use GCC __attribute__.
23925         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23926         _ATTRIBUTE_NONNULL_.
23927         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23928         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23929         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23930         ATTRIBUTE_DEPRECATED.
23931         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23932         ATTRIBUTE_NORETURN.
23933         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23934         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23935         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23936         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23937         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23938         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23939         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23940         ATTRIBUTE_SENTINEL.
23941         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23942         ATTRIBUTE_RETURN_CHECK.
23943         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23944         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23945         ATTRIBUTE_NORETURN.
23946         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23947         Reported by Paul Eggert.
23948
23949 2011-02-13  Bruno Haible  <bruno@clisp.org>
23950
23951         Don't interfere with a program's definition of __attribute__.
23952         * lib/argp.h (__attribute__): Remove definition.
23953         (_GL_ATTRIBUTE_FORMAT): New macro.
23954         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23955         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23956         (_GL_ATTRIBUTE_FORMAT): New macro.
23957         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23958         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23959         GCC 3 or newer.
23960         * lib/error.h (__attribute__): Remove definition.
23961         (_GL_ATTRIBUTE_FORMAT): New macro.
23962         (error, error_at_line): Use it.
23963         * lib/hash.h (__attribute__): Remove definition.
23964         (ATTRIBUTE_WUR): Update definition. Define always.
23965         * lib/openat.h (__attribute__): Remove definition.
23966         (ATTRIBUTE_NORETURN): Update definition. Define always.
23967         * lib/sigpipe-die.h (__attribute__): Remove definition.
23968         (ATTRIBUTE_NORETURN): Update definition. Define always.
23969         * lib/vasnprintf.h (__attribute__): Remove definition.
23970         (_GL_ATTRIBUTE_FORMAT): New macro.
23971         (asnprintf, vasnprintf): Use it.
23972         * lib/xalloc.h (__attribute__): Remove definition.
23973         (ATTRIBUTE_NORETURN): Update definition. Define always.
23974         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23975         * lib/xmemdup0.h (__attribute__): Remove definition.
23976         (ATTRIBUTE_NORETURN): Update definition. Define always.
23977         * lib/xprintf.h (__attribute__): Remove definition.
23978         (_GL_ATTRIBUTE_FORMAT): New macro.
23979         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23980         * lib/xstrtol.h (__attribute__): Remove definition.
23981         (ATTRIBUTE_NORETURN): Update definition. Define always.
23982         * lib/xvasprintf.h (__attribute__): Remove definition.
23983         (_GL_ATTRIBUTE_FORMAT): New macro.
23984         (xasprintf, xvasprintf): Use it.
23985         * tests/test-argmatch.c (__attribute__): Remove definition.
23986         (ATTRIBUTE_NORETURN): Update definition. Define always.
23987         * tests/test-exclude.c (__attribute__): Remove definition.
23988         (ATTRIBUTE_NORETURN): Update definition. Define always.
23989         Reported by Paul Eggert.
23990
23991 2011-02-13  Bruno Haible  <bruno@clisp.org>
23992
23993         mbrtowc: Add more tests for native Windows platforms.
23994         * tests/test-mbrtowc-w32-1.sh: New file.
23995         * tests/test-mbrtowc-w32-2.sh: New file.
23996         * tests/test-mbrtowc-w32-3.sh: New file.
23997         * tests/test-mbrtowc-w32-4.sh: New file.
23998         * tests/test-mbrtowc-w32-5.sh: New file.
23999         * tests/test-mbrtowc-w32.c: New file.
24000         * modules/mbrtowc-tests (Files): Add them.
24001         (Makefile.am): Arrange to run these tests.
24002         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24003         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24004
24005 2011-02-13  Bruno Haible  <bruno@clisp.org>
24006
24007         mbrtowc: Work around native Windows bug.
24008         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24009         guess when no suitable locale for testing was found.
24010         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24011
24012 2011-02-13  Bruno Haible  <bruno@clisp.org>
24013
24014         mbsinit: Work around mingw bug.
24015         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24016         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24017         Windows.
24018         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24019
24020 2011-02-13  Bruno Haible  <bruno@clisp.org>
24021
24022         mbsinit: Don't crash for a NULL argument.
24023         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24024         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24025
24026 2011-02-13  Bruno Haible  <bruno@clisp.org>
24027
24028         Don't interfere with a program's definition of __attribute__.
24029         * lib/stdio.in.h (__attribute__): Remove definition.
24030         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24031         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24032         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24033         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24034         * lib/string.in.h (__attribute__): Remove definition.
24035         Reported by Paul Eggert.
24036
24037 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24038
24039         stdlib: don't get in the way of non-GCC __attribute__
24040         See thread starting at
24041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24042         Revert previous stdlib change, installing the following instead:
24043         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24044         to get in the way of a non-GCC compiler that supports __attribute__.
24045         (_GL_ATTRIBUTE_RETURN): New macro.
24046         (_Exit): Use it instead of __attribute__.
24047
24048 2011-02-12  Bruno Haible  <bruno@clisp.org>
24049
24050         quotearg test: Avoid test failure on mingw.
24051         * tests/test-quotearg.sh: Convert the locale identifier from native
24052         Windows syntax to Unix syntax.
24053
24054 2011-02-12  Bruno Haible  <bruno@clisp.org>
24055
24056         setlocale: Prefer gnulib's override over libintl's override.
24057         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24058         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24059         GNULIB_defined_setlocale is set.
24060
24061 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24062
24063         stdlib: support non-GCC __attribute__
24064
24065         Fix a serious and tricky problem encountered when attempting to
24066         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24067         5.5, but it crashed due to memory corruption on Solaris 10 with
24068         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24069         bits that are otherwise zero.  This tagging is optional inside
24070         Emacs but is preferred and is used when __attribute__ ((__aligned
24071         (8))) works, as it does with both recent-enough GCC and with Sun C
24072         5.11.  However, Sun C 5.11 is not GCC and does not #define
24073         __GNUC__ and __GNUC_MINOR__.
24074
24075         When I added the getloadavg module to Emacs, it brought in
24076         stdlib.in.h, which contained this fragment:
24077
24078            #ifndef __attribute__
24079            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24080            #  define __attribute__(Spec)   /* empty */
24081            # endif
24082            #endif
24083
24084         When files that include <stdlib.h> were compiled with Sun C 5.11,
24085         the above code disabled __attribute__ ((__aligned (8))), which
24086         caused variables to not be properly aligned, which eventually led
24087         to the pointer corruption mentioned above.  (This was a bit hard
24088         to diagnose, unfortunately.)
24089
24090         Several "#define __attribute__(X) /* empty */" code snippets need
24091         to be eradicated from Gnulib to work with non-GCC compilers that
24092         support __attribute__.  The Autoconf way to do this is to test for
24093         each kind of attribute that we want support for, and selectively
24094         enable that in source code.
24095
24096         Fix this problem just for stdlib.h, by adding a test for the
24097         __noreturn__ attribute, and change stdlib.in.h to use that test
24098         when needed.  This technique can be easily generalized to the
24099         other *.in.h files and attributes, and a similar technique can be
24100         used for *.h and *.c files.  This patch is enough to solve the
24101         problem for Emacs + getloadavg, and I thought I'd publish it for
24102         feedback before undertaking further, similar fixes in other
24103         modules.
24104
24105         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24106         because it's not needed for stdlib.h.  It merely substitutes the
24107         value directly into stdlib.h.  We may well need to #define it, or
24108         similar symbols, for other modules, but it's nice to also have an
24109         option to not #define it for applications like Emacs that do not
24110         need it.
24111
24112         * lib/stdlib.in.h (__attribute__): Do not #define.
24113         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24114         be defined only if the _Exit module is also used.
24115         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24117         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24118         platforms.
24119         * modules/_Exit (Files): Add m4/attribute.m4.
24120         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24121         * m4/attribute.m4: New file.
24122
24123 2011-02-12  Bruno Haible  <bruno@clisp.org>
24124
24125         wcsrtombs: Work around bug on native Windows.
24126         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24127         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24128         instead of len.
24129         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24130
24131 2011-02-12  Bruno Haible  <bruno@clisp.org>
24132
24133         mbsrtowcs: Work around bug on native Windows.
24134         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24135         against mingw bug.
24136         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24137
24138 2011-02-12  Bruno Haible  <bruno@clisp.org>
24139
24140         Avoid setlocale bugs in tests.
24141         * modules/btowc (Dependencies): Add setlocale.
24142         * modules/c-strcase (Dependencies): Likewise.
24143         * modules/mbmemcasecmp (Dependencies): Likewise.
24144         * modules/mbmemcasecoll (Dependencies): Likewise.
24145         * modules/mbrtowc (Dependencies): Likewise.
24146         * modules/mbscasecmp (Dependencies): Likewise.
24147         * modules/mbscasestr (Dependencies): Likewise.
24148         * modules/mbschr (Dependencies): Likewise.
24149         * modules/mbscspn (Dependencies): Likewise.
24150         * modules/mbsinit (Dependencies): Likewise.
24151         * modules/mbsncasecmp (Dependencies): Likewise.
24152         * modules/mbsnrtowcs (Dependencies): Likewise.
24153         * modules/mbspbrk (Dependencies): Likewise.
24154         * modules/mbspcasecmp (Dependencies): Likewise.
24155         * modules/mbsrchr (Dependencies): Likewise.
24156         * modules/mbsrtowcs (Dependencies): Likewise.
24157         * modules/mbsspn (Dependencies): Likewise.
24158         * modules/mbsstr (Dependencies): Likewise.
24159         * modules/nl_langinfo (Dependencies): Likewise.
24160         * modules/quotearg (Dependencies): Likewise.
24161         * modules/unicase/locale-language (Dependencies): Likewise.
24162         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24163         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24164         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24165         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24166         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24167         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24168         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24169         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24170         * modules/vasnprintf-posix (Dependencies): Likewise.
24171         * modules/wcrtomb (Dependencies): Likewise.
24172         * modules/wcsnrtombs (Dependencies): Likewise.
24173         * modules/wcsrtombs (Dependencies): Likewise.
24174
24175 2011-02-12  Bruno Haible  <bruno@clisp.org>
24176
24177         setlocale: Workaround native Windows bug.
24178         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24179         succeeds but sets LC_CTYPE to "C", report a failure.
24180         * tests/test-setlocale2.sh: New file.
24181         * tests/test-setlocale2.c: New file.
24182         * modules/setlocale-tests (Files): Add the new files.
24183         (Makefile.am): Enable test-setlocale2.sh test.
24184         * doc/posix-functions/setlocale.texi: Mention workaround.
24185
24186 2011-02-11  Bruno Haible  <bruno@clisp.org>
24187
24188         Tests for module 'setlocale'.
24189         * modules/setlocale-tests: New file.
24190         * tests/test-setlocale1.sh: New file.
24191         * tests/test-setlocale1.c: New file.
24192
24193         New module 'setlocale'.
24194         * lib/locale.in.h (setlocale): New declaration.
24195         * lib/setlocale.c: New file, based on
24196         gettext/gettext-runtime/intl/setlocale.c.
24197         * m4/setlocale.m4: New file.
24198         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24199         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24200         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24201         REPLACE_SETLOCALE.
24202         * modules/setlocale: New file.
24203         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24204         * doc/posix-functions/setlocale.texi: Mention the new module.
24205
24206 2011-02-11  Bruno Haible  <bruno@clisp.org>
24207
24208         Prepare for locale dependent tests on mingw.
24209         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24210         because it has the wrong locale encoding.
24211         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24212         French_France.1252 instead of "fr".
24213         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24214         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24215         because it has the wrong locale encoding.
24216         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24217         native Windows, try Turkish_Turkey.65001.
24218         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24219         Chinese_China.54936.
24220
24221         Prepare for locale dependent tests on mingw.
24222         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24223         differently.
24224         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24225         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24226         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24227         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24228
24229 2011-02-11  Eric Blake  <eblake@redhat.com>
24230
24231         strptime: avoid compiler warnings
24232         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24233         compiler warnings about dead code.
24234         Reported by Daniel P. Berrange.
24235
24236 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24237
24238         doc: update users.txt
24239         * users.txt: Add rcs.
24240
24241 2011-02-10  John W. Eaton  <jwe@gnu.org>
24242
24243         doc: update users.txt
24244         * users.txt: Add octave.
24245
24246 2011-02-10  Jim Meyering  <meyering@redhat.com>
24247
24248         doc: update users.txt
24249         * users.txt: Add iwhd.
24250
24251 2011-02-09  Bruno Haible  <bruno@clisp.org>
24252
24253         gnulib-tool: Make copyright notice adjustment more robust.
24254         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24255         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24256         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24257         License".
24258         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24259
24260 2011-02-06  Bruno Haible  <bruno@clisp.org>
24261
24262         New module 'towctrans'.
24263         * modules/towctrans: New file.
24264         * lib/wctype.in.h (towctrans): New declaration.
24265         * lib/towctrans.c: New file.
24266         * lib/towctrans-impl.h: New file.
24267         * m4/towctrans.m4: New file.
24268         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24269         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24270         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24271         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24272         * doc/posix-functions/towctrans.texi: Mention the new module.
24273
24274 2011-02-06  Bruno Haible  <bruno@clisp.org>
24275
24276         New module 'wctrans'.
24277         * modules/wctrans: New file.
24278         * lib/wctype.in.h (wctrans): New declaration.
24279         * lib/wctrans.c: New file.
24280         * lib/wctrans-impl.h: New file.
24281         * m4/wctrans.m4: New file.
24282         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24283         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24284         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24285         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24286         * doc/posix-functions/wctrans.texi: Mention the new module.
24287
24288 2011-02-06  Bruno Haible  <bruno@clisp.org>
24289
24290         New module 'iswctype'.
24291         * modules/iswctype: New file.
24292         * lib/wctype.in.h (iswctype): New declaration.
24293         * lib/iswctype.c: New file.
24294         * lib/iswctype-impl.h: New file.
24295         * m4/iswctype.m4: New file.
24296         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24297         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24298         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24299         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24300         * doc/posix-functions/iswctype.texi: Mention the new module and the
24301         HP-UX 11.00 problem.
24302
24303 2011-02-06  Bruno Haible  <bruno@clisp.org>
24304
24305         New module 'wctype'.
24306         * modules/wctype: Change to represent the wctype() substitute.
24307         * lib/wctype.in.h (wctype): New declaration.
24308         * lib/wctype.c: New file.
24309         * lib/wctype-impl.h: New file.
24310         * m4/wctype.m4: New file.
24311         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24312         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24313         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24314         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24315         * doc/posix-functions/wctype.texi: Mention the new module and the
24316         HP-UX 11.00 problem.
24317
24318 2011-02-06  Bruno Haible  <bruno@clisp.org>
24319
24320         wctype-h: Ensure wctype_t and wctrans_t are defined.
24321         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24322         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24323         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24324         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24325         HAVE_WCTRANS_T.
24326         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24327
24328 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24329
24330         flock: fix license typo
24331
24332         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24333         omitted.
24334
24335 2011-02-08  Bruno Haible  <bruno@clisp.org>
24336
24337         Split large sed scripts, for HP-UX sed.
24338         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24339         to avoid HP-UX limit of 99 commands, in the near future.
24340         * modules/stdlib (Makefile.am): Likewise.
24341         * modules/unistd (Makefile.am): Likewise.
24342         * modules/wchar (Makefile.am): Likewise.
24343         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24344         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24345         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24346
24347 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24348             Bruno Haible  <bruno@clisp.org>
24349
24350         stdlib: improve random_r modularization
24351         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24352         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24353         you also need the random_r module to get this material right.
24354         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24355         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24356         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24357
24358 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24359
24360         stdlib: don't depend on stdint
24361         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24362         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24363         be independent of whether stdint.h is needed.
24364         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24365         here, instead of ...
24366         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24367         struct random_data should be using the random_r module, not just
24368         the stdlib module (which wouldn't make sense: what package needs
24369         just struct random_data without also needing random_r?).
24370         * modules/stdlib (Depends-on): Remove stdint.
24371
24372         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24373         See the thread rooted at
24374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24375         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24376         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24377         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24378         __VMS)); previously it was always included (via fcntl--.h).
24379         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24380         hand; this is good enough for load averages.  Also, do not use
24381         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24382         flags directly if available and don't bother otherwise.  (Packages
24383         that need the extra reliability should use the modules that define
24384         these flags on older platforms that lack them.)
24385         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24386         fcntl-safer.
24387
24388 2011-02-08  Jim Meyering  <meyering@redhat.com>
24389
24390         di-set.h, ino-map.h: add multiple-inclusion guard
24391         Technically, the guard is required only for ino-map.h, due to its
24392         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24393         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24394         * lib/ino-map.h: Likewise.
24395
24396 2011-02-06  Bruno Haible  <bruno@clisp.org>
24397
24398         iswblank: Ensure declaration on glibc systems.
24399         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24400         * modules/iswblank (Dependencies): Add 'extensions'.
24401         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24402
24403 2011-02-06  Bruno Haible  <bruno@clisp.org>
24404
24405         New module 'iswblank'.
24406         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24407         * modules/iswblank: New file.
24408         * modules/wctype-h (Files): Remove lib/iswblank.c.
24409         (Makefile.am): Substitute GNULIB_ISWBLANK.
24410         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24411         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24412         (gl_WCTYPE_H_DEFAULTS): New macro.
24413         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24414         * modules/iswblank-tests: New file.
24415         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24416         * tests/test-wctype-h.c (main): Remove iswblank tests.
24417         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24418         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24419         of 'wctype-h'.
24420         * NEWS: Mention the change.
24421         * modules/mbchar (Depends-on): Add iswblank.
24422
24423 2011-02-08  Bruno Haible  <bruno@clisp.org>
24424
24425         di-set tests: Refactor.
24426         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24427         unnecessary includes.
24428         (ASSERT): Remove macro.
24429         (main): Make C90 compliant by avoiding variable declaration after
24430         statement.
24431         * modules/di-set-tests (Files): Add tests/macros.h.
24432
24433 2011-02-08  Bruno Haible  <bruno@clisp.org>
24434
24435         ino-map tests: Refactor.
24436         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24437         unnecessary includes.
24438         (ASSERT): Remove macro.
24439         (main): Make C90 compliant by avoiding variable declaration after
24440         statement.
24441         * modules/ino-map-tests (Files): Add tests/macros.h.
24442
24443 2011-02-08  Jim Meyering  <meyering@redhat.com>
24444
24445         di-set: add "const" to a cast
24446         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24447         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24448
24449 2011-02-06  Bruno Haible  <bruno@clisp.org>
24450
24451         Rename module 'wctype' to 'wctype-h'.
24452         * modules/wctype-h: Renamed from modules/wctype.
24453         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24454         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24455         (Files, Depends-on, Makefile.am): Update.
24456         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24457         (Files, Makefile.am): Update.
24458         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24459         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24460         * doc/posix-headers/wctype.texi: Update.
24461         * doc/posix-functions/iswalnum.texi: Update.
24462         * doc/posix-functions/iswalpha.texi: Update.
24463         * doc/posix-functions/iswblank.texi: Update.
24464         * doc/posix-functions/iswcntrl.texi: Update.
24465         * doc/posix-functions/iswdigit.texi: Update.
24466         * doc/posix-functions/iswgraph.texi: Update.
24467         * doc/posix-functions/iswlower.texi: Update.
24468         * doc/posix-functions/iswprint.texi: Update.
24469         * doc/posix-functions/iswpunct.texi: Update.
24470         * doc/posix-functions/iswspace.texi: Update.
24471         * doc/posix-functions/iswupper.texi: Update.
24472         * doc/posix-functions/iswxdigit.texi: Update.
24473         * doc/posix-functions/towlower.texi: Update.
24474         * doc/posix-functions/towupper.texi: Update.
24475         * NEWS: Mention the change.
24476         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24477         * modules/mbchar (Dependencies): Likewise.
24478         * modules/mbswidth (Dependencies): Likewise.
24479         * modules/quotearg (Dependencies): Likewise.
24480         * modules/regex (Dependencies): Likewise.
24481         * modules/wcscasecmp (Dependencies): Likewise.
24482         * modules/wcsncasecmp (Dependencies): Likewise.
24483         * modules/wcwidth (Dependencies): Likewise.
24484
24485 2011-02-06  Bruno Haible  <bruno@clisp.org>
24486
24487         New module 'wcswidth'.
24488         * modules/wcswidth: New file.
24489         * lib/wchar.in.h (wcswidth): New declaration.
24490         * lib/wcswidth.c: New file.
24491         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24492         * m4/wcswidth.m4: New file.
24493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24495         REPLACE_WCSWIDTH.
24496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24497         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24498         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24499         * doc/posix-functions/wcswidth.texi: Mention the new module.
24500
24501 2011-02-06  Bruno Haible  <bruno@clisp.org>
24502
24503         New module 'wcstok'.
24504         * modules/wcstok: New file.
24505         * lib/wchar.in.h (wcstok): New declaration.
24506         * lib/wcstok.c: New file.
24507         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24508         * m4/wcstok.m4: New file.
24509         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24510         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24511         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24512         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24513         * doc/posix-functions/wcstok.texi: Mention the new module.
24514
24515 2011-02-06  Bruno Haible  <bruno@clisp.org>
24516
24517         New module 'wcsstr'.
24518         * modules/wcsstr: New file.
24519         * lib/wchar.in.h (wcsstr): New declaration.
24520         * lib/wcsstr.c: New file.
24521         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24522         * m4/wcsstr.m4: New file.
24523         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24524         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24525         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24526         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24527         * doc/posix-functions/wcsstr.texi: Mention the new module.
24528
24529 2011-02-06  Bruno Haible  <bruno@clisp.org>
24530
24531         New module 'wcspbrk'.
24532         * modules/wcspbrk: New file.
24533         * lib/wchar.in.h (wcspbrk): New declaration.
24534         * lib/wcspbrk.c: New file.
24535         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24536         * m4/wcspbrk.m4: New file.
24537         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24538         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24539         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24540         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24541         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24542
24543 2011-02-06  Bruno Haible  <bruno@clisp.org>
24544
24545         New module 'wcsspn'.
24546         * modules/wcsspn: New file.
24547         * lib/wchar.in.h (wcsspn): New declaration.
24548         * lib/wcsspn.c: New file.
24549         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24550         * m4/wcsspn.m4: New file.
24551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24554         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24555         * doc/posix-functions/wcsspn.texi: Mention the new module.
24556
24557 2011-02-06  Bruno Haible  <bruno@clisp.org>
24558
24559         New module 'wcscspn'.
24560         * modules/wcscspn: New file.
24561         * lib/wchar.in.h (wcscspn): New declaration.
24562         * lib/wcscspn.c: New file.
24563         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24564         * m4/wcscspn.m4: New file.
24565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24567         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24568         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24569         * doc/posix-functions/wcscspn.texi: Mention the new module.
24570
24571 2011-02-06  Bruno Haible  <bruno@clisp.org>
24572
24573         New module 'wcsrchr'.
24574         * modules/wcsrchr: New file.
24575         * lib/wchar.in.h (wcsrchr): New declaration.
24576         * lib/wcsrchr.c: New file.
24577         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24578         * m4/wcsrchr.m4: New file.
24579         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24580         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24581         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24582         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24583         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24584
24585 2011-02-06  Bruno Haible  <bruno@clisp.org>
24586
24587         New module 'wcschr'.
24588         * modules/wcschr: New file.
24589         * lib/wchar.in.h (wcschr): New declaration.
24590         * lib/wcschr.c: New file.
24591         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24592         * m4/wcschr.m4: New file.
24593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24596         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24597         * doc/posix-functions/wcschr.texi: Mention the new module.
24598
24599 2011-02-06  Bruno Haible  <bruno@clisp.org>
24600
24601         New module 'wcsdup'.
24602         * modules/wcsdup: New file.
24603         * lib/wchar.in.h (wcsdup): New declaration.
24604         * lib/wcsdup.c: New file.
24605         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24606         * m4/wcsdup.m4: New file.
24607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24610         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24611         * doc/posix-functions/wcsdup.texi: Mention the new module.
24612
24613 2011-02-06  Bruno Haible  <bruno@clisp.org>
24614
24615         New module 'wcsxfrm'.
24616         * modules/wcsxfrm: New file.
24617         * lib/wchar.in.h (wcsxfrm): New declaration.
24618         * lib/wcsxfrm.c: New file.
24619         * lib/wcsxfrm-impl.h: New file.
24620         * m4/wcsxfrm.m4: New file.
24621         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24622         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24623         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24624         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24625         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24626
24627 2011-02-06  Bruno Haible  <bruno@clisp.org>
24628
24629         New module 'wcscoll'.
24630         * modules/wcscoll: New file.
24631         * lib/wchar.in.h (wcscoll): New declaration.
24632         * lib/wcscoll.c: New file.
24633         * lib/wcscoll-impl.h: New file.
24634         * m4/wcscoll.m4: New file.
24635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24638         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24639         * doc/posix-functions/wcscoll.texi: Mention the new module.
24640
24641 2011-02-06  Bruno Haible  <bruno@clisp.org>
24642
24643         New module 'wcsncasecmp'.
24644         * modules/wcsncasecmp: New file.
24645         * lib/wchar.in.h (wcsncasecmp): New declaration.
24646         * lib/wcsncasecmp.c: New file.
24647         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24648         * m4/wcsncasecmp.m4: New file.
24649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24652         HAVE_WCSNCASECMP.
24653         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24654         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24655
24656 2011-02-06  Bruno Haible  <bruno@clisp.org>
24657
24658         New module 'wcscasecmp'.
24659         * modules/wcscasecmp: New file.
24660         * lib/wchar.in.h (wcscasecmp): New declaration.
24661         * lib/wcscasecmp.c: New file.
24662         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24663         * m4/wcscasecmp.m4: New file.
24664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24667         HAVE_WCSCASECMP.
24668         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24669         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24670
24671 2011-02-05  Bruno Haible  <bruno@clisp.org>
24672
24673         New module 'wcsncmp'.
24674         * modules/wcsncmp: New file.
24675         * lib/wchar.in.h (wcsncmp): New declaration.
24676         * lib/wcsncmp.c: New file.
24677         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24678         * m4/wcsncmp.m4: New file.
24679         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24680         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24681         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24682         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24683         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24684
24685 2011-02-05  Bruno Haible  <bruno@clisp.org>
24686
24687         New module 'wcscmp'.
24688         * modules/wcscmp: New file.
24689         * lib/wchar.in.h (wcscmp): New declaration.
24690         * lib/wcscmp.c: New file.
24691         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24692         * m4/wcscmp.m4: New file.
24693         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24694         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24695         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24696         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24697         * doc/posix-functions/wcscmp.texi: Mention the new module.
24698
24699 2011-02-05  Bruno Haible  <bruno@clisp.org>
24700
24701         New module 'wcsncat'.
24702         * modules/wcsncat: New file.
24703         * lib/wchar.in.h (wcsncat): New declaration.
24704         * lib/wcsncat.c: New file.
24705         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24706         * m4/wcsncat.m4: New file.
24707         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24708         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24709         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24710         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24711         * doc/posix-functions/wcsncat.texi: Mention the new module.
24712
24713 2011-02-05  Bruno Haible  <bruno@clisp.org>
24714
24715         New module 'wcscat'.
24716         * modules/wcscat: New file.
24717         * lib/wchar.in.h (wcscat): New declaration.
24718         * lib/wcscat.c: New file.
24719         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24720         * m4/wcscat.m4: New file.
24721         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24722         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24723         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24724         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24725         * doc/posix-functions/wcscat.texi: Mention the new module.
24726
24727 2011-02-05  Bruno Haible  <bruno@clisp.org>
24728
24729         New module 'wcpncpy'.
24730         * modules/wcpncpy: New file.
24731         * lib/wchar.in.h (wcpncpy): New declaration.
24732         * lib/wcpncpy.c: New file.
24733         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24734         * m4/wcpncpy.m4: New file.
24735         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24736         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24737         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24738         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24739         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24740
24741 2011-02-05  Bruno Haible  <bruno@clisp.org>
24742
24743         New module 'wcsncpy'.
24744         * modules/wcsncpy: New file.
24745         * lib/wchar.in.h (wcsncpy): New declaration.
24746         * lib/wcsncpy.c: New file.
24747         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24748         * m4/wcsncpy.m4: New file.
24749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24751         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24752         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24753         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24754
24755 2011-02-05  Bruno Haible  <bruno@clisp.org>
24756
24757         New module 'wcpcpy'.
24758         * modules/wcpcpy: New file.
24759         * lib/wchar.in.h (wcpcpy): New declaration.
24760         * lib/wcpcpy.c: New file.
24761         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24762         * m4/wcpcpy.m4: New file.
24763         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24764         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24765         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24766         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24767         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24768
24769 2011-02-05  Bruno Haible  <bruno@clisp.org>
24770
24771         New module 'wcscpy'.
24772         * modules/wcscpy: New file.
24773         * lib/wchar.in.h (wcscpy): New declaration.
24774         * lib/wcscpy.c: New file.
24775         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24776         * m4/wcscpy.m4: New file.
24777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24779         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24780         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24781         * doc/posix-functions/wcscpy.texi: Mention the new module.
24782
24783 2011-02-05  Bruno Haible  <bruno@clisp.org>
24784
24785         New module 'wcsnlen'.
24786         * modules/wcsnlen: New file.
24787         * lib/wchar.in.h (wcsnlen): New declaration.
24788         * lib/wcsnlen.c: New file.
24789         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24790         * m4/wcsnlen.m4: New file.
24791         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24792         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24793         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24794         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24795         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24796
24797 2011-02-05  Bruno Haible  <bruno@clisp.org>
24798
24799         New module 'wcslen'.
24800         * modules/wcslen: New file.
24801         * lib/wchar.in.h (wcslen): New declaration.
24802         * lib/wcslen.c: New file.
24803         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24804         * m4/wcslen.m4: New file.
24805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24808         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24809         * doc/posix-functions/wcslen.texi: Mention the new module.
24810
24811 2011-02-05  Bruno Haible  <bruno@clisp.org>
24812
24813         New module 'wmemset'.
24814         * modules/wmemset: New file.
24815         * lib/wchar.in.h (wmemset): New declaration.
24816         * lib/wmemset.c: New file.
24817         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24818         * m4/wmemset.m4: New file.
24819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24821         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24822         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24823         * doc/posix-functions/wmemset.texi: Mention the new module.
24824
24825 2011-02-05  Bruno Haible  <bruno@clisp.org>
24826
24827         New module 'wmemmove'.
24828         * modules/wmemmove: New file.
24829         * lib/wchar.in.h (wmemmove): New declaration.
24830         * lib/wmemmove.c: New file.
24831         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24832         * m4/wmemmove.m4: New file.
24833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24835         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24836         HAVE_WMEMMOVE.
24837         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24838         * doc/posix-functions/wmemmove.texi: Mention the new module.
24839
24840 2011-02-05  Bruno Haible  <bruno@clisp.org>
24841
24842         New module 'wmemcpy'.
24843         * modules/wmemcpy: New file.
24844         * lib/wchar.in.h (wmemcpy): New declaration.
24845         * lib/wmemcpy.c: New file.
24846         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24847         * m4/wmemcpy.m4: New file.
24848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24850         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24851         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24852         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24853
24854 2011-02-05  Bruno Haible  <bruno@clisp.org>
24855
24856         New module 'wmemcmp'.
24857         * modules/wmemcmp: New file.
24858         * lib/wchar.in.h (wmemcmp): New declaration.
24859         * lib/wmemcmp.c: New file.
24860         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24861         * m4/wmemcmp.m4: New file.
24862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24864         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24865         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24866         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24867
24868 2011-02-07  Jim Meyering  <meyering@redhat.com>
24869
24870         di-set, ino-map: new modules, from coreutils
24871         * lib/di-set.c: New file.
24872         * lib/di-set.h: Likewise.
24873         * lib/ino-map.c: Likewise.
24874         * lib/ino-map.h: Likewise.
24875         * modules/di-set: Likewise.
24876         * modules/di-set-tests: Likewise.
24877         * modules/ino-map: Likewise.
24878         * modules/ino-map-tests: Likewise.
24879         * tests/test-di-set.c: Likewise.
24880         * tests/test-ino-map.c: Likewise.
24881
24882 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24883
24884         getloadavg: merge minor changes from Emacs
24885
24886         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24887         (getloadavg): Use memset, not bzero.
24888
24889         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24890         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24891         clash (bug#86).
24892
24893 2010-11-14  Bruno Haible  <bruno@clisp.org>
24894
24895         Allow multiple gnulib generated replacements to coexist.
24896         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24897         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24898         * lib/langinfo.in.h (nl_item): Likewise.
24899         * lib/math.in.h (_NaN, NAN): Likewise.
24900         * lib/netdb.in.h (struct addrinfo): Likewise.
24901         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24902         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24903         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24904         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24905         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24906         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24907         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24908         pthread_mutexattr_init, pthread_mutexattr_settype,
24909         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24910         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24911         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24912         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24913         * lib/sched.in.h (struct sched_param): Likewise.
24914         * lib/se-selinux.in.h (security_class_t, security_context_t,
24915         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24916         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24917         lsetfilecon, fsetfilecon, security_check_context,
24918         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24919         Likewise.
24920         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24921         Likewise.
24922         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24923         _gl_function_taking_int_returning_void_t, union sigval,
24924         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24925         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24926         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24927         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24928         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24929         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24930         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24931         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24932         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24933         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24934         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24935         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24936         socklen_t, rpl_fd_isset): Likewise.
24937         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24938         * lib/sys_time.in.h (struct timeval): Likewise.
24939         * lib/sys_times.in.h (struct tms): Likewise.
24940         * lib/sys_utsname.in.h (struct utsname):
24941         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24942         * lib/unistd.in.h (getpagesize): Likewise.
24943         * lib/wchar.in.h (mbstate_t): Likewise.
24944         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24945         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24946         towlower, towupper): Likewise.
24947         Reported by Sam Steingold <sds@gnu.org>.
24948
24949 2011-02-05  Eric Blake  <eblake@redhat.com>
24950
24951         unsetenv: work around Haiku issues
24952         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24953         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24954
24955 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24956
24957         libposix: avoid calling error() within libposix
24958         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24959         is defined.
24960
24961 2011-02-05  Eric Blake  <eblake@redhat.com>
24962
24963         strerror_r-posix: port to cygwin
24964         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24965         implementation.
24966         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24967         * tests/test-strerror_r.c (main): Fix test.
24968         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24969         issue.
24970
24971 2011-02-05  Bruno Haible  <bruno@clisp.org>
24972
24973         New module 'wmemchr'.
24974         * modules/wmemchr: New file.
24975         * lib/wchar.in.h (wmemchr): New declaration.
24976         * lib/wmemchr.c: New file.
24977         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24978         * m4/wmemchr.m4: New file.
24979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24981         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24982         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24983         * doc/posix-functions/wmemchr.texi: Mention the new module.
24984
24985 2011-02-04  Eric Blake  <eblake@redhat.com>
24986
24987         fdopendir: detect FreeBSD bug
24988         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24989         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24990
24991 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24992
24993         stdbool: do not define HAVE_STDBOOL_H
24994         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24995         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24996         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24997         imported from the latest Autoconf git.  It was motivated by Emacs,
24998         which uses gnulib but does not need HAVE_STDBOOL_H.
24999
25000 2011-02-04  Bruno Haible  <bruno@clisp.org>
25001
25002         wcsnrtombs: Prepare for new module wwcsnrtombs.
25003         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25004         * lib/wcsnrtombs.c: Include it.
25005         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25006
25007         wcsrtombs: Prepare for new module wwcsrtombs.
25008         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25009         * lib/wcsrtombs.c: Include it.
25010         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25011
25012         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25013         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25014         * lib/mbsnrtowcs.c: Include it.
25015         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25016
25017         mbsrtowcs: Prepare for new module mbsrtowwcs.
25018         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25019         * lib/mbsrtowcs.c: Include it.
25020         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25021
25022 2011-02-04  Bruno Haible  <bruno@clisp.org>
25023
25024         vasnprintf: Reduce use of malloc for small format strings.
25025         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25026         (arguments): Add room for the first 7 arguments.
25027         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25028         (char_directives, u8_directives, u16_directives, u32_directives): Add
25029         room for the first 7 directives.
25030         * lib/printf-parse.c: Include <string.h>.
25031         (PRINTF_PARSE): Change memory handling code so that it uses the first
25032         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25033         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25034         Reported by Pádraig Brady <P@draigbrady.com>.
25035
25036 2011-01-31  Eric Blake  <eblake@redhat.com>
25037
25038         dup2: work around Haiku bug
25039         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25040         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25041         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25042         * tests/test-dup2.c (main): Enhance test.
25043
25044 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25045
25046         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25047         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25048         declared by eglibc 2.11.2.
25049         * lib/stdio.in.h: Likewise.
25050
25051 2011-01-31  Eric Blake  <eblake@redhat.com>
25052
25053         ignore-value: add missing test dependency
25054         * tests/test-ignore-value.c: Revert previous change; stdio.h
25055         provides off_t.
25056         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25057
25058 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25059
25060         mktime: clarify long_int width checking
25061         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25062         the top level, to make it clearer that the assumption about
25063         long_int width is being checked.  See
25064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25065
25066 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25067
25068         ignore-value: Fix self-test.
25069         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25070
25071 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25072
25073         TYPE_MAXIMUM: avoid theoretically undefined behavior
25074         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25075         negative number, which the C Standard says has undefined behavior.
25076         In practice this is not a problem, but might as well do it by the book.
25077         Reported by Rich Felker and Eric Blake; see
25078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25079         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25080         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25081         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25082         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25083         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25084         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25085
25086         mktime: #undef mktime before #defining it
25087         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25088
25089         mktime: systematically normalize tm_isdst comparisons
25090         * lib/mktime.c (isdst_differ): New function.
25091         (__mktime_internal): Use it systematically for all isdst comparisons.
25092         This completes the fix for libc BZ #6723, and removes the need for
25093         normalizing tm_isdst.  See
25094         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25095         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25096
25097         mktime: fix some integer overflow issues and sidestep the rest
25098
25099         This was prompted by a bug report by Benjamin Lindner for MinGW
25100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25101         His bug is due to signed integer overflow (0 - INT_MIN), and I
25102         I scanned through mktime.c looking for other integer overflow
25103         problems, fixing all the bugs I found.
25104
25105         Although the C Standard says the resulting code is still not safe
25106         in the presence of integer overflow, in practice it should be good
25107         enough for all real-world two's-complement implementations, except
25108         for debugging environments that deliberately trap on integer
25109         overflow (e.g., gcc -ftrapv).
25110
25111         * lib/mktime.c (WRAPV): New macro.
25112         (SHR): Also check that long_int and time_t shift right in the
25113         usual way, before using the fast-but-unportable method.
25114         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25115         used.  The code already assumed two's complement, so there's
25116         no need to test for alternatives.  All uses removed.
25117         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25118         the C standard.  Problem reported by Rich Felker in
25119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25120         (twos_complement_arithmetic): Also check long_int and time_t.
25121         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25122         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25123         (__mktime_internal): Avoid integer overflow with unary subtraction
25124         in two instances where -1 - X is an adequate replacement for -X,
25125         since the calculations are approximate.
25126
25127 2011-01-29  Eric Blake  <eblake@redhat.com>
25128
25129         mktime: avoid infinite loop
25130         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25131         type; behavior is still undefined but portable to all known targets.
25132         Reported by Rich Felker.
25133
25134 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25135
25136         rename, unlink, same-inode: Relicense.
25137         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25138         * modules/unlink (License): Likewise.
25139         * modules/same-inode (License): Likewise.
25140
25141 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25142
25143         mktime: avoid problems on NetBSD 5 / i386
25144         * lib/mktime.c (long_int): New type.  This works around a problem
25145         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25146         but time_t is 64 bits, and where I expect the existing code is
25147         wrong in some cases.
25148         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25149         (ydhms_diff): Bring back the compile-time check for wide-enough
25150         year and yday.
25151
25152         mktime: fix misspelling in comment
25153         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25154         This merges all recent glibc changes of importance.
25155
25156 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25157
25158         move-if-change: cope with concurrent mv of identical file.
25159         * build-aux/move-if-change (CMPPROG): Accept environment
25160         variable as an override for `cmp'.
25161         (usage): Document CMPPROG.
25162         Adjust comparison to drop stdout.  Cope with failure of mv if
25163         the target file exists and is identical to the source, for
25164         parallel builds.
25165         Report from H.J. Lu against binutils in PR binutils/12283.
25166
25167 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25168
25169         * users.txt: Mention sharutils.
25170
25171 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25172
25173         * users.txt: Mention OATH Toolkit.
25174
25175 2011-01-27  Bruno Haible  <bruno@clisp.org>
25176
25177         Prepare for supporting FreeBSD 10.
25178         * build-aux/config.libpath: Remove handling of freebsd1*.
25179
25180 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25181
25182         Prepare for supporting FreeBSD 10.
25183         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25184         match FreeBSD 10.0.
25185
25186 2011-01-27  Bruno Haible  <bruno@clisp.org>
25187
25188         vma-iter, get-rusage-as: Add OpenBSD support.
25189         * modules/vma-iter (configure.ac): Test for mquery.
25190         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25191         * lib/vma-iter.c: Include <sys/mman.h>.
25192         (vma_iterate): Add an implementation based on mquery().
25193         * lib/resource-ext.h (get_rusage_as): Update comments.
25194         * lib/get-rusage-as.c: Likewise.
25195         * lib/get-rusage-data.c: Likewise.
25196
25197 2011-01-26  Karl Berry  <karl@gnu.org>
25198
25199         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25200         variables to make it easier to override the makeinfo program used.
25201
25202 2011-01-26  Eric Blake  <eblake@redhat.com>
25203
25204         fcntl: work around Haiku F_DUPFD bugs
25205         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25206         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25207         cloexec bit on duplication.
25208         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25209
25210 2011-01-26  Bruno Haible  <bruno@clisp.org>
25211
25212         Enable memory leak tests on AIX.
25213         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25214         * tests/test-fprintf-posix3.c (main): Likewise.
25215
25216 2011-01-26  Bruno Haible  <bruno@clisp.org>
25217
25218         Tests for module 'get-rusage-data'.
25219         * modules/get-rusage-data-tests: New file.
25220         * tests/test-get-rusage-data.c: New file.
25221
25222         New module 'get-rusage-data'.
25223         * lib/resource-ext.h (get_rusage_data): New declaration.
25224         * lib/get-rusage-data.c: New file.
25225         * modules/get-rusage-data: New file.
25226
25227 2011-01-25  Bruno Haible  <bruno@clisp.org>
25228
25229         get-rusage-as: Allow for easier testing.
25230         * lib/resource-ext.h (get_rusage_as): Add comment.
25231         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25232         (main): New function for interactive testing.
25233
25234 2011-01-25  Bruno Haible  <bruno@clisp.org>
25235
25236         vma-iter: Treat Haiku like BeOS.
25237         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25238         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25239
25240 2011-01-25  Eric Blake  <eblake@redhat.com>
25241
25242         c-stack: fix regression on cygwin when libsigsegv is present
25243         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25244
25245 2011-01-24  Bruno Haible  <bruno@clisp.org>
25246
25247         vma-iter: Avoid empty intervals.
25248         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25249         on an empty interval.
25250
25251 2011-01-24  Jim Meyering  <meyering@redhat.com>
25252
25253         u64: remove unnecessary #include
25254         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25255
25256 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25257
25258         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25259         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25260
25261 2011-01-23  Bruno Haible  <bruno@clisp.org>
25262
25263         New module 'vma-iter'.
25264         * lib/vma-iter.h: New file.
25265         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25266         * modules/vma-iter: New file.
25267         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25268         for get_rusage_as_via_iterator.
25269         (vma_iterate_callback): New function.
25270         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25271         * modules/get-rusage-as (Depends-on): Add vma-iter.
25272
25273 2011-01-23  Bruno Haible  <bruno@clisp.org>
25274
25275         uninorm: Tweak includes.
25276         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25277         Reported by Jim Meyering.
25278
25279 2011-01-23  Bruno Haible  <bruno@clisp.org>
25280
25281         get-rusage-as: Improve on NetBSD.
25282         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25283         /proc, like on FreeBSD.
25284
25285 2011-01-23  Jim Meyering  <meyering@redhat.com>
25286
25287         xreadlink.h: remove unnecessary #include
25288         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25289
25290         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25291         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25292
25293 2011-01-23  Bruno Haible  <bruno@clisp.org>
25294
25295         get-rusage-as: Fix bug.
25296         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25297         original limit when aborting the first loop.
25298
25299 2011-01-23  Bruno Haible  <bruno@clisp.org>
25300
25301         wctype: Ensure valid C syntax.
25302         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25303         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25304
25305 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25306
25307         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25309         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25310         as they are needed only for configure's test case.
25311         This removes two unnecessary symbols from config.h.
25312
25313         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25314         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25316         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25317         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25318         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25319         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25320         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25321         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25322         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25323         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25324         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25325         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25326         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25327         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25328         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25329         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25330         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25331
25332 2011-01-21  Eric Blake  <eblake@redhat.com>
25333
25334         maintainer-makefile: work with older git for submodule check
25335         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25336         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25337         Reported by Matthias Bolte.
25338
25339         bootstrap: minor portability fixes
25340         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25341         (usage): Omit leading capital and trailing . on help phrases, per
25342         GNU Coding Standards.
25343         (check_versions, top level): Prefix messages with script name.
25344
25345 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25346
25347         bootstrap: support --no-git option
25348         * build-aux/bootstrap: Add --no-git option, to be used when
25349         --gnulib-srcdir points to the exact desired checkout.
25350
25351 2011-01-21  Eric Blake  <eblake@redhat.com>
25352
25353         strerror_r-posix: work with glibc 2.13
25354         * lib/strerror_r.c (strerror_r): Fix return type.
25355
25356 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25357             Bruno Haible  <bruno@clisp.org>
25358
25359         uN_strstr: New unit tests.
25360         * modules/unistr/u8-strstr-tests: New file.
25361         * modules/unistr/u16-strstr-tests: New file.
25362         * modules/unistr/u32-strstr-tests: New file.
25363         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25364         * tests/unistr/test-u8-strstr.c: New file.
25365         * tests/unistr/test-u16-strstr.c: New file.
25366         * tests/unistr/test-u32-strstr.c: New file.
25367
25368 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25369             Bruno Haible  <bruno@clisp.org>
25370
25371         Make uN_strstr functions O(n) worst-case.
25372         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25373         16-bit and 32-bit unit cases, use the unibyte algorithm from
25374         lib/mbsstr.c.
25375         * lib/unistr/u8-strstr.c: Include <string.h>.
25376         (UNIT_IS_UINT8_T): New macro.
25377         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25378         (U_STRLEN, U_STRNLEN): New macros.
25379         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25380         (U_STRLEN, U_STRNLEN): New macros.
25381         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25382         (configure.ac): Update required libunistring version.
25383         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25384         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25385         malloca.
25386         (configure.ac): Update required libunistring version.
25387         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25388         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25389         malloca.
25390         (configure.ac): Update required libunistring version.
25391
25392 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25393             Bruno Haible  <bruno@clisp.org>
25394
25395         Prepare for faster uN_strstr functions.
25396         * lib/str-kmp.h: Support definable UNITs.
25397         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25398         needle_len argument.
25399         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25400         * lib/mbscasestr.c (mbscasestr): Likewise.
25401
25402 2011-01-21  Pádraig Brady <P@draigBrady.com>
25403
25404         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25405         * tests/test-malloca.c (main): Unset the environment variable
25406         to greatly speed up the test.
25407         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25408         * modules/malloca-tests: Depend on unsetenv.
25409
25410 2011-01-21  Pádraig Brady <P@draigBrady.com>
25411
25412         ignore-value: remove stdint dependency
25413         * lib/ignore-value.h: Remove <stdint.h>
25414         * modules/ignore-value: Remove stdint dependency.
25415
25416 2011-01-21  Jim Meyering  <meyering@redhat.com>
25417
25418         maint.mk: adjust variable name to be consistent with other gl_ vars
25419         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25420         to be lower case.
25421
25422 2011-01-20  Jim Meyering  <meyering@redhat.com>
25423
25424         maint.mk: make "check" depend on public-submodule-commit by default
25425         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25426
25427 2011-01-20  Bruno Haible  <bruno@clisp.org>
25428
25429         mbfile, mbiter: Complete change from 2008-12-21.
25430         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25431         * m4/mbiter.m4 (gl_MBITER): Likewise.
25432
25433 2011-01-20  Jim Meyering  <meyering@redhat.com>
25434
25435         init.sh: insert space between each function name and "()"
25436         * tests/init.sh: Make it a little easier to see that a function's
25437         name is "warn_", and not "warn" when looking at the first part of
25438         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25439
25440 2011-01-20  Jim Meyering  <meyering@redhat.com>
25441
25442         mountlist: clean up code formatting
25443         * lib/mountlist.c (read_file_system_list): Split a long line,
25444         correct bracing style, use NULL in place of "(struct statfs *)0",
25445         don't parenthesize return value, add spaces around "=" and after
25446         ";-in-for-stmt".
25447
25448 2011-01-14  Markus Duft <mduft@gentoo.org>
25449
25450         mountlist: add support for Interix
25451         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25452         Apply statvfs to all entries of /dev/fs.
25453         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25454         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25455
25456 2011-01-20  Jim Meyering  <meyering@redhat.com>
25457
25458         maint.mk: improve the public-submodule-commit rule
25459         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25460         to suppress printing of its commands... unless V=1.
25461         Add git submodule's --quiet option to suppress printing of e.g.,
25462         "Entering gnulib" output.
25463         "cd" into $(srcdir) before running git submodule.
25464
25465 2011-01-20  Bruno Haible  <bruno@clisp.org>
25466
25467         include_next: Fix bug introduced on 2011-01-18.
25468         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25469         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25470         ac_cv_header_... variable if the second argument is not 'check'.
25471         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25472         gl_NEXT_HEADERS_INTERNAL.
25473
25474 2011-01-20  Bruno Haible  <bruno@clisp.org>
25475
25476         Allow the user to avoid the GNULIB_TEST_* macros.
25477         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25478         Suggested by Paul Eggert.
25479
25480 2011-01-14  Jim Meyering  <meyering@redhat.com>
25481
25482         bootstrap: avoid failure when there is no .gitmodules file
25483         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25484         has been assigned to, even when its value is the empty string.
25485         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25486         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25487         Reported by John W. Eaton <jwe@gnu.org>.
25488
25489 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25490
25491         assume <ctype.h>, ..., <time.h> exist
25492         For years gnulib has been assuming the existence of the headers
25493         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25494         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25495         them, since they don't appear to be needed.
25496         * README (Portability guidelines): Document this.
25497         * lib/flock.c: Assume <fcntl.h> exists.
25498         * lib/regex_internal.h: Assume <locale.h> exists.
25499         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25500         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25501         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25502         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25503         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25504         * m4/regex.m4 (gl_REGEX): Likewise.
25505         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25506         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25507         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25508         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25509         * tests/test-argp.c: Likewise.
25510         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25511
25512         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25513         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25514         AA_APPLE_UNIVERSAL_BUILD.  See
25515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25516         * NEWS: Document this.
25517
25518 2011-01-19  Eric Blake  <eblake@redhat.com>
25519
25520         c-stack: assume stack overflow if SA_SIGINFO unsupported
25521         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25522         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25523         sigaction will work.
25524         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25525         behavior match Linux.
25526         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25527
25528         stdbool-tests: accommodate Haiku
25529         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25530
25531         binary-io: fix O_TEXT on Haiku
25532         * modules/binary-io (Depends-on): Add fcntl-h.
25533         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25534         than blindly undefining O_TEXT.
25535         Reported by Scott McCreary.
25536
25537 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25538
25539         include_next: do not check for standard headers like stddef.h
25540
25541         I found this problem when modifying Emacs to use gnulib.
25542         I noticed that it added HAVE_STDDEF_H to config.h, even though
25543         gnulib always assumes <stddef.h> exists as per README and this
25544         symbol is unnecessary.
25545         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25546         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25547         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25548         faster for headers like stddef.h that are known to exist.
25549         (gl_CHECK_NEXT_HEADERS): Use it.
25550         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25551         rather than gl_CHECK_NEXT_HEADERS.
25552         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25553         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25554
25555 2011-01-18  Eric Blake  <eblake@redhat.com>
25556
25557         ansi-c++-opt: skip C++ dependency style if C++ is unused
25558         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25559         tests when we know C++ compilation is not desired.
25560         Reported by Scott McCreary.
25561
25562 2011-01-18  Bruno Haible  <bruno@clisp.org>
25563
25564         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25565         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25566         (main): Perform test also when getrlimit and setrlimit don't exist or
25567         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25568         limiting the address space size using setrlimit, compare the address
25569         space size before and after the the test.
25570         * tests/test-dprintf-posix2.c: Likewise.
25571         * tests/test-fprintf-posix3.sh: Update skip messages.
25572         * tests/test-dprintf-posix2.sh: Likewise.
25573         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25574         * modules/dprintf-posix-tests (Depends-on): Likewise.
25575         Reported by Bruce Korb <bkorb@gnu.org> and
25576         Gary V. Vaughan <gary@gnu.org>.
25577
25578 2011-01-18  Bruno Haible  <bruno@clisp.org>
25579
25580         get-rusage-as: Improvement for Cygwin.
25581         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25582         areas that are merely reserved.
25583
25584 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25585
25586         strftime: remove dependencies on multibyte modules
25587
25588         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25589         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25590         only if __osf__ is defined, and I suspect OSF doesn't need these
25591         other modules.  If my guess is wrong, we'll need to come up with a
25592         variant of strftime that doesn't need the multibyte modules.
25593
25594         I discovered this problem when attempting modify Emacs to use the
25595         strftime module.  With the previous gnulib, this caused Emacs to
25596         need 31 new files, ranging from lib/config.charset to
25597         m4/wint_t.m4.  This was overkill and I expect would be offputting
25598         to the Emacs maintainers.  After this change, only 6 new files are
25599         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25600         stdbool.m4, and tm_gmtoff.m4.
25601
25602         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25603         Suggested by Bruno Haible in
25604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25605         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25606         and do not check for wchar.h.
25607         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25608         (Depends-on): Remove mbrlen, mbsinit, wchar.
25609
25610 2011-01-18  Bruno Haible  <bruno@clisp.org>
25611
25612         Tests for module 'get-rusage-as'.
25613         * modules/get-rusage-as-tests: New file.
25614         * tests/test-get-rusage-as.c: New file.
25615
25616         New module 'get-rusage-as'.
25617         * modules/get-rusage-as: New file.
25618         * lib/resource-ext.h: New file.
25619         * lib/get-rusage-as.c: New file.
25620
25621 2011-01-17  Eric Blake  <eblake@redhat.com>
25622
25623         sigaction: relax license from LGPLv3+ to LGPLv2+
25624         * modules/sigaction (License): Relax to LGPLv2+.
25625
25626 2011-01-14  Bruno Haible  <bruno@clisp.org>
25627
25628         filemode: Make function declarations usable in C++ mode.
25629         * lib/filemode.h: Enclose function declarations in extern "C" block.
25630         Reported by John W. Eaton <jwe@gnu.org>.
25631
25632 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25633
25634         save-cwd: no longer include "xgetcwd.h"
25635         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25636         This avoids a compilation failure in projects that use save-cwd
25637         without also using the xgetcwd module.
25638
25639 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25640
25641         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25642         This is so that a program like Emacs, which needs only dtoastr,
25643         does not have to bother with distributing and compiling ftoastr
25644         and ldtoastr.
25645         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25646         * modules/dtoastr, modules/ldtoastr: New files.
25647         * modules/ftoastr: Now works just for 'float'.
25648         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25649         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25650         dtoastr.c, ldtoastr.c.
25651
25652 2011-01-11  Jim Meyering  <meyering@redhat.com>
25653
25654         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25655         There is no need to work around the lack of the fchdir function,
25656         since gnulib can now provide a replacement when required.
25657         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25658         * modules/save-cwd (Depends-on): Add fchdir.
25659
25660 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25661
25662         openat, save-cwd: avoid xmalloc
25663
25664         This removes a direct (but undocumented) dependency of openat on
25665         xalloc, along with an indirect dependency via save-cwd.  It also
25666         removes a dependency of save-cwd on xgetcwd, and thereby
25667         indirectly on xalloc.  This change causes the openat substitute
25668         to fall back on save_cwd when memory is tight, and for save_cwd to
25669         fail instead of dying when memory is tight, but that's good enough.
25670         Problem and initial idea for fix reported by Bastien Roucaries in
25671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25672
25673         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25674         xalloc.h (for xmalloc).
25675         (openat_proc_name): Use malloc, not xmalloc.
25676         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25677         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25678
25679         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25680         This avoids heap allocation for file names whose lengths are in
25681         the range 512..1023, with the upper bound increasing to at most
25682         4031 depending on the platform's PATH_MAX.  (We do not want
25683         pathmax.h here as it might supply a non-constant PATH_MAX.)
25684         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25685         Perhaps they should be moved to malloca.h?
25686         (OPENAT_BUFFER_SIZE): Use them.
25687
25688 2011-01-10  Bruno Haible  <bruno@clisp.org>
25689
25690         doc: Update users.txt.
25691         * users.txt: Add recutils.
25692
25693 2011-01-09  Karl Berry  <karl@gnu.org>
25694
25695         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25696
25697         * doc/configmake.texi: New file.
25698         * doc/gnulib.texi: Include it.
25699         * modules/configmake: Move documentation from here.
25700
25701 2011-01-09  Bruno Haible  <bruno@clisp.org>
25702
25703         Update to Unicode 6.0.0.
25704         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25705         (get_lbp): Update for Unicode 6.0.0.
25706         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25707         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25708         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25709         U+11001, U+11038..U+11046. Remove U+06DE.
25710         (uc_width): Fix bounds of planes.
25711         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25712         lib/uniwidth/width.c.
25713         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25714         trailing whitespace removed.
25715         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25716         without comments, but with the original copyright notice.
25717         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25718         * lib/unicase/ignorable.h: Likewise.
25719         * lib/unicase/tocasefold.h: Likewise.
25720         * lib/unicase/tolower.h: Likewise.
25721         * lib/unicase/totitle.h: Likewise.
25722         * lib/unicase/toupper.h: Likewise.
25723         * lib/unictype/bidi_of.h: Likewise.
25724         * lib/unictype/blocks.h: Likewise.
25725         * lib/unictype/categ_C.h: Likewise.
25726         * lib/unictype/categ_Cn.h: Likewise.
25727         * lib/unictype/categ_L.h: Likewise.
25728         * lib/unictype/categ_Ll.h: Likewise.
25729         * lib/unictype/categ_Lm.h: Likewise.
25730         * lib/unictype/categ_Lo.h: Likewise.
25731         * lib/unictype/categ_Lu.h: Likewise.
25732         * lib/unictype/categ_M.h: Likewise.
25733         * lib/unictype/categ_Mc.h: Likewise.
25734         * lib/unictype/categ_Me.h: Likewise.
25735         * lib/unictype/categ_Mn.h: Likewise.
25736         * lib/unictype/categ_N.h: Likewise.
25737         * lib/unictype/categ_Nd.h: Likewise.
25738         * lib/unictype/categ_No.h: Likewise.
25739         * lib/unictype/categ_P.h: Likewise.
25740         * lib/unictype/categ_Po.h: Likewise.
25741         * lib/unictype/categ_S.h: Likewise.
25742         * lib/unictype/categ_Sc.h: Likewise.
25743         * lib/unictype/categ_Sk.h: Likewise.
25744         * lib/unictype/categ_Sm.h: Likewise.
25745         * lib/unictype/categ_So.h: Likewise.
25746         * lib/unictype/categ_of.h: Likewise.
25747         * lib/unictype/combining.h: Likewise.
25748         * lib/unictype/ctype_alnum.h: Likewise.
25749         * lib/unictype/ctype_alpha.h: Likewise.
25750         * lib/unictype/ctype_graph.h: Likewise.
25751         * lib/unictype/ctype_lower.h: Likewise.
25752         * lib/unictype/ctype_print.h: Likewise.
25753         * lib/unictype/ctype_punct.h: Likewise.
25754         * lib/unictype/ctype_upper.h: Likewise.
25755         * lib/unictype/decdigit.h: Likewise.
25756         * lib/unictype/digit.h: Likewise.
25757         * lib/unictype/numeric.h: Likewise.
25758         * lib/unictype/pr_alphabetic.h: Likewise.
25759         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25760         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25761         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25762         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25763         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25764         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25765         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25766         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25767         * lib/unictype/pr_case_ignorable.h: Likewise.
25768         * lib/unictype/pr_cased.h: Likewise.
25769         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25770         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25771         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25772         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25773         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25774         * lib/unictype/pr_combining.h: Likewise.
25775         * lib/unictype/pr_composite.h: Likewise.
25776         * lib/unictype/pr_currency_symbol.h: Likewise.
25777         * lib/unictype/pr_decimal_digit.h: Likewise.
25778         * lib/unictype/pr_deprecated.h: Likewise.
25779         * lib/unictype/pr_format_control.h: Likewise.
25780         * lib/unictype/pr_grapheme_base.h: Likewise.
25781         * lib/unictype/pr_grapheme_extend.h: Likewise.
25782         * lib/unictype/pr_grapheme_link.h: Likewise.
25783         * lib/unictype/pr_id_continue.h: Likewise.
25784         * lib/unictype/pr_id_start.h: Likewise.
25785         * lib/unictype/pr_ideographic.h: Likewise.
25786         * lib/unictype/pr_lowercase.h: Likewise.
25787         * lib/unictype/pr_math.h: Likewise.
25788         * lib/unictype/pr_numeric.h: Likewise.
25789         * lib/unictype/pr_other_alphabetic.h: Likewise.
25790         * lib/unictype/pr_other_id_continue.h: Likewise.
25791         * lib/unictype/pr_other_math.h: Likewise.
25792         * lib/unictype/pr_punctuation.h: Likewise.
25793         * lib/unictype/pr_sentence_terminal.h: Likewise.
25794         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25795         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25796         * lib/unictype/pr_unified_ideograph.h: Likewise.
25797         * lib/unictype/pr_uppercase.h: Likewise.
25798         * lib/unictype/pr_xid_continue.h: Likewise.
25799         * lib/unictype/pr_xid_start.h: Likewise.
25800         * lib/unictype/scripts.h: Likewise.
25801         * lib/unictype/scripts_byname.gperf: Likewise.
25802         * lib/unictype/sy_java_ident.h: Likewise.
25803         * lib/unigbrk/gbrkprop.h: Likewise.
25804         * lib/unilbrk/lbrkprop1.h: Likewise.
25805         * lib/unilbrk/lbrkprop2.h: Likewise.
25806         * lib/uninorm/decomposition-table2.h: Likewise.
25807         * lib/uniwbrk/wbrkprop.h: Likewise.
25808         * tests/unicase/test-cased.c: Likewise.
25809         * tests/unicase/test-ignorable.c: Likewise.
25810         * tests/unicase/test-uc_tolower.c: Likewise.
25811         * tests/unicase/test-uc_totitle.c: Likewise.
25812         * tests/unicase/test-uc_toupper.c: Likewise.
25813         * tests/unictype/test-categ_C.c: Likewise.
25814         * tests/unictype/test-categ_Cn.c: Likewise.
25815         * tests/unictype/test-categ_L.c: Likewise.
25816         * tests/unictype/test-categ_Ll.c: Likewise.
25817         * tests/unictype/test-categ_Lm.c: Likewise.
25818         * tests/unictype/test-categ_Lo.c: Likewise.
25819         * tests/unictype/test-categ_Lu.c: Likewise.
25820         * tests/unictype/test-categ_M.c: Likewise.
25821         * tests/unictype/test-categ_Mc.c: Likewise.
25822         * tests/unictype/test-categ_Me.c: Likewise.
25823         * tests/unictype/test-categ_Mn.c: Likewise.
25824         * tests/unictype/test-categ_N.c: Likewise.
25825         * tests/unictype/test-categ_Nd.c: Likewise.
25826         * tests/unictype/test-categ_No.c: Likewise.
25827         * tests/unictype/test-categ_P.c: Likewise.
25828         * tests/unictype/test-categ_Po.c: Likewise.
25829         * tests/unictype/test-categ_S.c: Likewise.
25830         * tests/unictype/test-categ_Sc.c: Likewise.
25831         * tests/unictype/test-categ_Sk.c: Likewise.
25832         * tests/unictype/test-categ_Sm.c: Likewise.
25833         * tests/unictype/test-categ_So.c: Likewise.
25834         * tests/unictype/test-ctype_alnum.c: Likewise.
25835         * tests/unictype/test-ctype_alpha.c: Likewise.
25836         * tests/unictype/test-ctype_graph.c: Likewise.
25837         * tests/unictype/test-ctype_lower.c: Likewise.
25838         * tests/unictype/test-ctype_print.c: Likewise.
25839         * tests/unictype/test-ctype_punct.c: Likewise.
25840         * tests/unictype/test-ctype_upper.c: Likewise.
25841         * tests/unictype/test-decdigit.h: Likewise.
25842         * tests/unictype/test-digit.h: Likewise.
25843         * tests/unictype/test-numeric.h: Likewise.
25844         * tests/unictype/test-pr_alphabetic.c: Likewise.
25845         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25846         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25847         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25848         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25849         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25850         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25851         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25852         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25853         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25854         * tests/unictype/test-pr_cased.c: Likewise.
25855         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25856         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25857         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25858         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25859         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25860         * tests/unictype/test-pr_combining.c: Likewise.
25861         * tests/unictype/test-pr_composite.c: Likewise.
25862         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25863         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25864         * tests/unictype/test-pr_deprecated.c: Likewise.
25865         * tests/unictype/test-pr_format_control.c: Likewise.
25866         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25867         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25868         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25869         * tests/unictype/test-pr_id_continue.c: Likewise.
25870         * tests/unictype/test-pr_id_start.c: Likewise.
25871         * tests/unictype/test-pr_ideographic.c: Likewise.
25872         * tests/unictype/test-pr_lowercase.c: Likewise.
25873         * tests/unictype/test-pr_math.c: Likewise.
25874         * tests/unictype/test-pr_numeric.c: Likewise.
25875         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25876         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25877         * tests/unictype/test-pr_other_math.c: Likewise.
25878         * tests/unictype/test-pr_punctuation.c: Likewise.
25879         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25880         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25881         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25882         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25883         * tests/unictype/test-pr_uppercase.c: Likewise.
25884         * tests/unictype/test-pr_xid_continue.c: Likewise.
25885         * tests/unictype/test-pr_xid_start.c: Likewise.
25886         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25887         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25888         changes.
25889         * lib/unictype/categ_Cc.h: Likewise.
25890         * lib/unictype/categ_Cf.h: Likewise.
25891         * lib/unictype/categ_Co.h: Likewise.
25892         * lib/unictype/categ_Cs.h: Likewise.
25893         * lib/unictype/categ_Lt.h: Likewise.
25894         * lib/unictype/categ_Nl.h: Likewise.
25895         * lib/unictype/categ_Pc.h: Likewise.
25896         * lib/unictype/categ_Pd.h: Likewise.
25897         * lib/unictype/categ_Pe.h: Likewise.
25898         * lib/unictype/categ_Pf.h: Likewise.
25899         * lib/unictype/categ_Pi.h: Likewise.
25900         * lib/unictype/categ_Ps.h: Likewise.
25901         * lib/unictype/categ_Z.h: Likewise.
25902         * lib/unictype/categ_Zl.h: Likewise.
25903         * lib/unictype/categ_Zp.h: Likewise.
25904         * lib/unictype/categ_Zs.h: Likewise.
25905         * lib/unictype/ctype_blank.h: Likewise.
25906         * lib/unictype/ctype_cntrl.h: Likewise.
25907         * lib/unictype/ctype_digit.h: Likewise.
25908         * lib/unictype/ctype_space.h: Likewise.
25909         * lib/unictype/ctype_xdigit.h: Likewise.
25910         * lib/unictype/mirror.h: Likewise.
25911         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25912         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25913         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25914         * lib/unictype/pr_bidi_control.h: Likewise.
25915         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25916         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25917         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25918         * lib/unictype/pr_bidi_pdf.h: Likewise.
25919         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25920         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25921         * lib/unictype/pr_dash.h: Likewise.
25922         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25923         * lib/unictype/pr_diacritic.h: Likewise.
25924         * lib/unictype/pr_extender.h: Likewise.
25925         * lib/unictype/pr_hex_digit.h: Likewise.
25926         * lib/unictype/pr_hyphen.h: Likewise.
25927         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25928         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25929         * lib/unictype/pr_ignorable_control.h: Likewise.
25930         * lib/unictype/pr_iso_control.h: Likewise.
25931         * lib/unictype/pr_join_control.h: Likewise.
25932         * lib/unictype/pr_left_of_pair.h: Likewise.
25933         * lib/unictype/pr_line_separator.h: Likewise.
25934         * lib/unictype/pr_logical_order_exception.h: Likewise.
25935         * lib/unictype/pr_non_break.h: Likewise.
25936         * lib/unictype/pr_not_a_character.h: Likewise.
25937         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25938         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25939         * lib/unictype/pr_other_id_start.h: Likewise.
25940         * lib/unictype/pr_other_lowercase.h: Likewise.
25941         * lib/unictype/pr_other_uppercase.h: Likewise.
25942         * lib/unictype/pr_paired_punctuation.h: Likewise.
25943         * lib/unictype/pr_paragraph_separator.h: Likewise.
25944         * lib/unictype/pr_pattern_syntax.h: Likewise.
25945         * lib/unictype/pr_pattern_white_space.h: Likewise.
25946         * lib/unictype/pr_private_use.h: Likewise.
25947         * lib/unictype/pr_quotation_mark.h: Likewise.
25948         * lib/unictype/pr_radical.h: Likewise.
25949         * lib/unictype/pr_soft_dotted.h: Likewise.
25950         * lib/unictype/pr_space.h: Likewise.
25951         * lib/unictype/pr_titlecase.h: Likewise.
25952         * lib/unictype/pr_variation_selector.h: Likewise.
25953         * lib/unictype/pr_white_space.h: Likewise.
25954         * lib/unictype/pr_zero_width.h: Likewise.
25955         * lib/unictype/sy_c_ident.h: Likewise.
25956         * lib/unictype/sy_c_whitespace.h: Likewise.
25957         * lib/unictype/sy_java_whitespace.h: Likewise.
25958         * lib/uninorm/composition-table.gperf: Likewise.
25959         * lib/uninorm/decomposition-table1.h: Likewise.
25960         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25961         LB8.
25962         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25963         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25964         * modules/unictype/*: Bump version number of expected libunistring
25965         version.
25966
25967 2011-01-09  Bruno Haible  <bruno@clisp.org>
25968
25969         Update to Unicode 5.2.0.
25970         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25971         trailing whitespace removed.
25972
25973 2011-01-09  Bruno Haible  <bruno@clisp.org>
25974
25975         New Unicode character properties, from Unicode 5.2.0.
25976         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25977         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25978         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25979         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25980         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25981         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25982         uc_is_property_cased, uc_is_property_case_ignorable,
25983         uc_is_property_changes_when_lowercased,
25984         uc_is_property_changes_when_uppercased,
25985         uc_is_property_changes_when_titlecased,
25986         uc_is_property_changes_when_casefolded,
25987         uc_is_property_changes_when_casemapped): New declarations.
25988         * lib/unictype/pr_byname.gperf: Add the new properties.
25989         * modules/unictype/property-byname (Depends-on): Depend on the new
25990         properties modules.
25991         * modules/unictype/property-all (Depends-on): Likewise.
25992         * MODULES.html.sh (Unicode string functions): Add
25993         unictype/property-case-ignorable, unictype/property-cased,
25994         unictype/property-changes-when-casefolded,
25995         unictype/property-changes-when-casemapped,
25996         unictype/property-changes-when-lowercased,
25997         unictype/property-changes-when-titlecased,
25998         unictype/property-changes-when-uppercased.
25999
26000         New module 'unictype/property-changes-when-casemapped'.
26001         * modules/unictype/property-changes-when-casemapped: New file.
26002         * lib/unictype/pr_changes_when_casemapped.c: New file.
26003         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26004         generated by gen-uni-tables.
26005         * modules/unictype/property-changes-when-casemapped-tests: New file.
26006         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26007         automatically generated by gen-uni-tables.
26008
26009         New module 'unictype/property-changes-when-casefolded'.
26010         * modules/unictype/property-changes-when-casefolded: New file.
26011         * lib/unictype/pr_changes_when_casefolded.c: New file.
26012         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26013         generated by gen-uni-tables.
26014         * modules/unictype/property-changes-when-casefolded-tests: New file.
26015         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26016         automatically generated by gen-uni-tables.
26017
26018         New module 'unictype/property-changes-when-titlecased'.
26019         * modules/unictype/property-changes-when-titlecased: New file.
26020         * lib/unictype/pr_changes_when_titlecased.c: New file.
26021         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26022         generated by gen-uni-tables.
26023         * modules/unictype/property-changes-when-titlecased-tests: New file.
26024         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26025         automatically generated by gen-uni-tables.
26026
26027         New module 'unictype/property-changes-when-uppercased'.
26028         * modules/unictype/property-changes-when-uppercased: New file.
26029         * lib/unictype/pr_changes_when_uppercased.c: New file.
26030         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26031         generated by gen-uni-tables.
26032         * modules/unictype/property-changes-when-uppercased-tests: New file.
26033         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26034         automatically generated by gen-uni-tables.
26035
26036         New module 'unictype/property-changes-when-lowercased'.
26037         * modules/unictype/property-changes-when-lowercased: New file.
26038         * lib/unictype/pr_changes_when_lowercased.c: New file.
26039         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26040         generated by gen-uni-tables.
26041         * modules/unictype/property-changes-when-lowercased-tests: New file.
26042         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26043         automatically generated by gen-uni-tables.
26044
26045         New module 'unictype/property-case-ignorable'.
26046         * modules/unictype/property-case-ignorable: New file.
26047         * lib/unictype/pr_case_ignorable.c: New file.
26048         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26049         by gen-uni-tables.
26050         * modules/unictype/property-case-ignorable-tests: New file.
26051         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26052         generated by gen-uni-tables.
26053
26054         New module 'unictype/property-cased'.
26055         * modules/unictype/property-cased: New file.
26056         * lib/unictype/pr_cased.c: New file.
26057         * lib/unictype/pr_cased.h: New file, automatically generated by
26058         gen-uni-tables.
26059         * modules/unictype/property-cased-tests: New file.
26060         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26061         gen-uni-tables.
26062
26063 2011-01-09  Bruno Haible  <bruno@clisp.org>
26064
26065         Update to Unicode 5.2.0.
26066         * lib/gen-uni-tables.c (output_predicate, output_category,
26067         output_combclass, output_bidi_category, output_decimal_digit_test,
26068         output_decimal_digit, output_digit_test, output_digit,
26069         output_numeric_test, output_numeric, output_mirror, output_scripts,
26070         output_scripts_byname, output_blocks, output_ident_category): Fix
26071         comment header.
26072         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26073         get_wbp.
26074         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26075         items.
26076         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26077         Changes_When_Lowercased, Changes_When_Uppercased,
26078         Changes_When_Titlecased, Changes_When_Casefolded,
26079         Changes_When_Casemapped.
26080         (is_property_alphabetic, is_property_default_ignorable_code_point):
26081         Update for Unicode 5.2.0.
26082         (is_property_cased, is_property_case_ignorable,
26083         is_property_changes_when_lowercased,
26084         is_property_changes_when_uppercased,
26085         is_property_changes_when_titlecased,
26086         is_property_changes_when_casefolded,
26087         is_property_changes_when_casemapped): New functions.
26088         (output_properties): Output also the properties cased, case_ignorable,
26089         changes_when_lowercased, changes_when_uppercased,
26090         changes_when_titlecased, changes_when_casefolded,
26091         changes_when_casemapped.
26092         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26093         Unicode TR#11 revision 17 -> 19.
26094         (LBP_CP): New enumeration value.
26095         (LBP_*): Adjust values accordingly.
26096         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26097         TR#14 revision 22 -> 24.
26098         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26099         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26100         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26101         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26102         is_WBP_MIDLETTER.
26103         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26104         the code1 and code2 of each composition rule.
26105         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26106         * lib/unicase/ignorable.h: Likewise.
26107         * lib/unicase/tocasefold.h: Likewise.
26108         * lib/unicase/tolower.h: Likewise.
26109         * lib/unicase/totitle.h: Likewise.
26110         * lib/unicase/toupper.h: Likewise.
26111         * lib/unictype/bidi_of.h: Likewise.
26112         * lib/unictype/blocks.h: Likewise.
26113         * lib/unictype/categ_C.h: Likewise.
26114         * lib/unictype/categ_Cf.h: Likewise.
26115         * lib/unictype/categ_Cn.h: Likewise.
26116         * lib/unictype/categ_L.h: Likewise.
26117         * lib/unictype/categ_Ll.h: Likewise.
26118         * lib/unictype/categ_Lm.h: Likewise.
26119         * lib/unictype/categ_Lo.h: Likewise.
26120         * lib/unictype/categ_Lu.h: Likewise.
26121         * lib/unictype/categ_M.h: Likewise.
26122         * lib/unictype/categ_Mc.h: Likewise.
26123         * lib/unictype/categ_Mn.h: Likewise.
26124         * lib/unictype/categ_N.h: Likewise.
26125         * lib/unictype/categ_Nd.h: Likewise.
26126         * lib/unictype/categ_Nl.h: Likewise.
26127         * lib/unictype/categ_No.h: Likewise.
26128         * lib/unictype/categ_P.h: Likewise.
26129         * lib/unictype/categ_Pd.h: Likewise.
26130         * lib/unictype/categ_Po.h: Likewise.
26131         * lib/unictype/categ_S.h: Likewise.
26132         * lib/unictype/categ_Sc.h: Likewise.
26133         * lib/unictype/categ_So.h: Likewise.
26134         * lib/unictype/categ_of.h: Likewise.
26135         * lib/unictype/combining.h: Likewise.
26136         * lib/unictype/ctype_alnum.h: Likewise.
26137         * lib/unictype/ctype_alpha.h: Likewise.
26138         * lib/unictype/ctype_graph.h: Likewise.
26139         * lib/unictype/ctype_lower.h: Likewise.
26140         * lib/unictype/ctype_print.h: Likewise.
26141         * lib/unictype/ctype_punct.h: Likewise.
26142         * lib/unictype/ctype_upper.h: Likewise.
26143         * lib/unictype/decdigit.h: Likewise.
26144         * lib/unictype/digit.h: Likewise.
26145         * lib/unictype/numeric.h: Likewise.
26146         * lib/unictype/pr_alphabetic.h: Likewise.
26147         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26148         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26149         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26150         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26151         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26152         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26153         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26154         * lib/unictype/pr_combining.h: Likewise.
26155         * lib/unictype/pr_composite.h: Likewise.
26156         * lib/unictype/pr_currency_symbol.h: Likewise.
26157         * lib/unictype/pr_dash.h: Likewise.
26158         * lib/unictype/pr_decimal_digit.h: Likewise.
26159         * lib/unictype/pr_deprecated.h: Likewise.
26160         * lib/unictype/pr_diacritic.h: Likewise.
26161         * lib/unictype/pr_extender.h: Likewise.
26162         * lib/unictype/pr_grapheme_base.h: Likewise.
26163         * lib/unictype/pr_grapheme_extend.h: Likewise.
26164         * lib/unictype/pr_grapheme_link.h: Likewise.
26165         * lib/unictype/pr_id_continue.h: Likewise.
26166         * lib/unictype/pr_id_start.h: Likewise.
26167         * lib/unictype/pr_ideographic.h: Likewise.
26168         * lib/unictype/pr_ignorable_control.h: Likewise.
26169         * lib/unictype/pr_logical_order_exception.h: Likewise.
26170         * lib/unictype/pr_lowercase.h: Likewise.
26171         * lib/unictype/pr_numeric.h: Likewise.
26172         * lib/unictype/pr_other_alphabetic.h: Likewise.
26173         * lib/unictype/pr_punctuation.h: Likewise.
26174         * lib/unictype/pr_sentence_terminal.h: Likewise.
26175         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26176         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26177         * lib/unictype/pr_unified_ideograph.h: Likewise.
26178         * lib/unictype/pr_uppercase.h: Likewise.
26179         * lib/unictype/pr_xid_continue.h: Likewise.
26180         * lib/unictype/pr_xid_start.h: Likewise.
26181         * lib/unictype/pr_zero_width.h: Likewise.
26182         * lib/unictype/scripts.h: Likewise.
26183         * lib/unictype/scripts_byname.gperf: Likewise.
26184         * lib/unictype/sy_java_ident.h: Likewise.
26185         * lib/unigbrk/gbrkprop.h: Likewise.
26186         * lib/unilbrk/lbrkprop1.h: Likewise.
26187         * lib/unilbrk/lbrkprop2.h: Likewise.
26188         * lib/unilbrk/lbrktables.h: Likewise.
26189         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26190         LBP_CP. Implement rule LB30.
26191         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26192         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26193         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26194         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26195         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26196         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26197         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26198         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26199         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26200         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26201         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26202         bits instead of 16 bits in the code1 and code2 of each composition
26203         rule.
26204         (uc_composition): Update for Unicode 5.2.0.
26205         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26206         * lib/uninorm/decomposition-table2.h: Likewise.
26207         * lib/uniwbrk/wbrkprop.h: Likewise.
26208         * tests/unicase/test-cased.c: Likewise.
26209         * tests/unicase/test-ignorable.c: Likewise.
26210         * tests/unicase/test-uc_tolower.c: Likewise.
26211         * tests/unicase/test-uc_totitle.c: Likewise.
26212         * tests/unicase/test-uc_toupper.c: Likewise.
26213         * tests/unictype/test-categ_C.c: Likewise.
26214         * tests/unictype/test-categ_Cf.c: Likewise.
26215         * tests/unictype/test-categ_Cn.c: Likewise.
26216         * tests/unictype/test-categ_L.c: Likewise.
26217         * tests/unictype/test-categ_Ll.c: Likewise.
26218         * tests/unictype/test-categ_Lm.c: Likewise.
26219         * tests/unictype/test-categ_Lo.c: Likewise.
26220         * tests/unictype/test-categ_Lu.c: Likewise.
26221         * tests/unictype/test-categ_M.c: Likewise.
26222         * tests/unictype/test-categ_Mc.c: Likewise.
26223         * tests/unictype/test-categ_Mn.c: Likewise.
26224         * tests/unictype/test-categ_N.c: Likewise.
26225         * tests/unictype/test-categ_Nd.c: Likewise.
26226         * tests/unictype/test-categ_Nl.c: Likewise.
26227         * tests/unictype/test-categ_No.c: Likewise.
26228         * tests/unictype/test-categ_P.c: Likewise.
26229         * tests/unictype/test-categ_Pd.c: Likewise.
26230         * tests/unictype/test-categ_Po.c: Likewise.
26231         * tests/unictype/test-categ_S.c: Likewise.
26232         * tests/unictype/test-categ_Sc.c: Likewise.
26233         * tests/unictype/test-categ_So.c: Likewise.
26234         * tests/unictype/test-ctype_alnum.c: Likewise.
26235         * tests/unictype/test-ctype_alpha.c: Likewise.
26236         * tests/unictype/test-ctype_graph.c: Likewise.
26237         * tests/unictype/test-ctype_lower.c: Likewise.
26238         * tests/unictype/test-ctype_print.c: Likewise.
26239         * tests/unictype/test-ctype_punct.c: Likewise.
26240         * tests/unictype/test-ctype_upper.c: Likewise.
26241         * tests/unictype/test-decdigit.h: Likewise.
26242         * tests/unictype/test-digit.h: Likewise.
26243         * tests/unictype/test-numeric.h: Likewise.
26244         * tests/unictype/test-pr_alphabetic.c: Likewise.
26245         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26246         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26247         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26248         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26249         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26250         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26251         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26252         * tests/unictype/test-pr_combining.c: Likewise.
26253         * tests/unictype/test-pr_composite.c: Likewise.
26254         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26255         * tests/unictype/test-pr_dash.c: Likewise.
26256         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26257         * tests/unictype/test-pr_deprecated.c: Likewise.
26258         * tests/unictype/test-pr_diacritic.c: Likewise.
26259         * tests/unictype/test-pr_extender.c: Likewise.
26260         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26261         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26262         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26263         * tests/unictype/test-pr_id_continue.c: Likewise.
26264         * tests/unictype/test-pr_id_start.c: Likewise.
26265         * tests/unictype/test-pr_ideographic.c: Likewise.
26266         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26267         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26268         * tests/unictype/test-pr_lowercase.c: Likewise.
26269         * tests/unictype/test-pr_numeric.c: Likewise.
26270         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26271         * tests/unictype/test-pr_punctuation.c: Likewise.
26272         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26273         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26274         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26275         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26276         * tests/unictype/test-pr_uppercase.c: Likewise.
26277         * tests/unictype/test-pr_xid_continue.c: Likewise.
26278         * tests/unictype/test-pr_xid_start.c: Likewise.
26279         * tests/unictype/test-pr_zero_width.c: Likewise.
26280         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26281         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26282         changed behaviour: line breaking is now disallowed between a letter
26283         or '=' and '('.
26284         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26285         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26286         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26287         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26288         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26289         lib/uniwidth/width.c.
26290         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26291         without comments, but with the original copyright notice.
26292         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26293         changes.
26294         * lib/unictype/categ_Cc.h: Likewise.
26295         * lib/unictype/categ_Co.h: Likewise.
26296         * lib/unictype/categ_Cs.h: Likewise.
26297         * lib/unictype/categ_Lt.h: Likewise.
26298         * lib/unictype/categ_Me.h: Likewise.
26299         * lib/unictype/categ_Pc.h: Likewise.
26300         * lib/unictype/categ_Pe.h: Likewise.
26301         * lib/unictype/categ_Pf.h: Likewise.
26302         * lib/unictype/categ_Pi.h: Likewise.
26303         * lib/unictype/categ_Ps.h: Likewise.
26304         * lib/unictype/categ_Sk.h: Likewise.
26305         * lib/unictype/categ_Sm.h: Likewise.
26306         * lib/unictype/categ_Z.h: Likewise.
26307         * lib/unictype/categ_Zl.h: Likewise.
26308         * lib/unictype/categ_Zp.h: Likewise.
26309         * lib/unictype/categ_Zs.h: Likewise.
26310         * lib/unictype/ctype_blank.h: Likewise.
26311         * lib/unictype/ctype_cntrl.h: Likewise.
26312         * lib/unictype/ctype_digit.h: Likewise.
26313         * lib/unictype/ctype_space.h: Likewise.
26314         * lib/unictype/ctype_xdigit.h: Likewise.
26315         * lib/unictype/mirror.h: Likewise.
26316         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26317         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26318         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26319         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26320         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26321         * lib/unictype/pr_bidi_control.h: Likewise.
26322         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26323         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26324         * lib/unictype/pr_bidi_pdf.h: Likewise.
26325         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26326         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26327         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26328         * lib/unictype/pr_format_control.h: Likewise.
26329         * lib/unictype/pr_hex_digit.h: Likewise.
26330         * lib/unictype/pr_hyphen.h: Likewise.
26331         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26332         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26333         * lib/unictype/pr_iso_control.h: Likewise.
26334         * lib/unictype/pr_join_control.h: Likewise.
26335         * lib/unictype/pr_left_of_pair.h: Likewise.
26336         * lib/unictype/pr_line_separator.h: Likewise.
26337         * lib/unictype/pr_math.h: Likewise.
26338         * lib/unictype/pr_non_break.h: Likewise.
26339         * lib/unictype/pr_not_a_character.h: Likewise.
26340         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26341         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26342         * lib/unictype/pr_other_id_continue.h: Likewise.
26343         * lib/unictype/pr_other_id_start.h: Likewise.
26344         * lib/unictype/pr_other_lowercase.h: Likewise.
26345         * lib/unictype/pr_other_math.h: Likewise.
26346         * lib/unictype/pr_other_uppercase.h: Likewise.
26347         * lib/unictype/pr_paired_punctuation.h: Likewise.
26348         * lib/unictype/pr_paragraph_separator.h: Likewise.
26349         * lib/unictype/pr_pattern_syntax.h: Likewise.
26350         * lib/unictype/pr_pattern_white_space.h: Likewise.
26351         * lib/unictype/pr_private_use.h: Likewise.
26352         * lib/unictype/pr_quotation_mark.h: Likewise.
26353         * lib/unictype/pr_radical.h: Likewise.
26354         * lib/unictype/pr_soft_dotted.h: Likewise.
26355         * lib/unictype/pr_space.h: Likewise.
26356         * lib/unictype/pr_titlecase.h: Likewise.
26357         * lib/unictype/pr_variation_selector.h: Likewise.
26358         * lib/unictype/pr_white_space.h: Likewise.
26359         * lib/unictype/sy_c_ident.h: Likewise.
26360         * lib/unictype/sy_c_whitespace.h: Likewise.
26361         * lib/unictype/sy_java_whitespace.h: Likewise.
26362         * modules/uni*/*: Bump version number of expected libunistring version.
26363         Reported by Simon Josefsson.
26364
26365 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26366
26367         useless-if-before-free: fix typo in --help and make the internal,
26368         automatic version date update process work once again.
26369         --help output contained a NUL character instead of the
26370         backslash-zero that was intended.  Also, the "must lie within
26371         the first 8 lines" line is on line 9, and hence not getting
26372         automatically updated.
26373         * build-aux/useless-if-before-free: Fix the former by adding a
26374         backslash, and the latter by condensing the three lines of what-it-does
26375         to a single line, leaving one line of slack for the future.
26376
26377 2011-01-09  Bruno Haible  <bruno@clisp.org>
26378
26379         uniwidth/width: Fix width of U+1D173..U+1D17A.
26380         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26381         symbolic_width, output_width_property_test): New functions.
26382         (main): Invoke output_nonspacing_property, output_width_property_test.
26383         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26384         U+1D173..U+1D17A.
26385         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26386         1.
26387         * modules/uniwidth/*: Bump version number of expected libunistring
26388         version.
26389         * modules/unilbrk/*: Likewise.
26390
26391 2011-01-08  Bruno Haible  <bruno@clisp.org>
26392
26393         uninorm tests: Preserve copyright of Unicode data file.
26394         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26395         Mention modifications.
26396
26397 2011-01-08  Bruno Haible  <bruno@clisp.org>
26398
26399         gen-uni-tables: Prepare for Unicode 5.2.0.
26400         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26401         (debug_output_lbp, output_lbp): Update.
26402
26403 2011-01-08  Bruno Haible  <bruno@clisp.org>
26404
26405         unilbrk: Clarify gen-uni-tables.c code.
26406         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26407         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26408         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26409
26410 2011-01-07  Bruno Haible  <bruno@clisp.org>
26411
26412         strtod: Restore errno when successfully parsing Infinity or NaN.
26413         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26414         restore the original errno.
26415
26416 2011-01-07  Bruno Haible  <bruno@clisp.org>
26417
26418         remove test: Avoid failure on HP-UX 11.
26419         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26420
26421 2011-01-07  Bruno Haible  <bruno@clisp.org>
26422
26423         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26424         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26425         error code.
26426
26427 2011-01-07  Pádraig Brady <P@draigBrady.com>
26428
26429         ignore-value: fixup comments, and add Eric Blake
26430         as an author since he rewrote the macros.
26431         * lib/ignore-value.h (ignore_value):  State that
26432         we now support aggregates.  Also specify exactly
26433         when the GCC warn_unused_result feature was added.
26434
26435 2011-01-06  Eric Blake  <eblake@redhat.com>
26436
26437         ignore-value: support aggregate types
26438         * lib/ignore-value.h (ignore_value): Provide separate gcc
26439         definition.
26440         * modules/ignore-value-tests: New test module.
26441         * tests/test-ignore-value.c: New test.
26442
26443         maint.mk: improve sc_prohibit_strcmp regex
26444         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26445         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26446         definition of STRNEQ.
26447
26448         signal: work around Haiku issue with SIGBUS
26449         * lib/siglist.h: Add comment.
26450         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26451         strsignal's favoring of SIGSEGV.
26452         * tests/test-signal.c (main): Avoid test failure.
26453         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26454         Reported by Scott McCreary.
26455
26456         maint.mk: add pre-release check to ensure submodule commits are public
26457         * top/maint.mk (public-submodule-commit): New rule.
26458         (submodule-checks): New variable.
26459         (alpha beta stable): Depend on the variable.
26460
26461 2011-01-05  Pádraig Brady <P@draigBrady.com>
26462         and Jim Meyering  <meyering@redhat.com>
26463
26464         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26465         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26466         (ATTRIBUTE_DEPRECATED): Define.
26467         (_ignore_case): New function.
26468         (ignore_value): New macro, to replace the old function.
26469         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26470         * modules/ignore-value (Depends-on): Add stdint.
26471
26472 2011-01-04  Eric Blake  <eblake@redhat.com>
26473
26474         doc: regenerate INSTALL
26475         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26476         @firstparagraphindent support, now that autoconf dropped it.
26477         (INSTALL_PRELUDE): Reinstate old macro.
26478         * doc/install.texi: Resync from autoconf.
26479         * doc/INSTALL: Reflect recent autoconf update.
26480         * doc/INSTALL.ISO: Likewise.
26481         * doc/INSTALL.UTF-8: Likewise.
26482         Reported by Karl Berry.
26483
26484 2011-01-04  Bruce Korb  <address@hidden>
26485
26486         git-version-gen: avoid a sub-shell
26487         * build-aux/git-version-gen: Redirect stderr in `...` via
26488         "exec 2>...", rather than via an added sub-shell.
26489
26490 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26491
26492         git-version-gen: use (...) rather than sh -c '...'
26493         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26494         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26495
26496 2011-01-03  Jim Meyering  <meyering@redhat.com>
26497
26498         git-version-gen: convert leading TABs to spaces
26499         * build-aux/git-version-gen: Expand leading TABs.
26500
26501         git-version-gen: handle failed "git rev-list"
26502         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26503         from git and proceeding as if it had succeeded but printed no SHA1
26504         checksums, suppress the diagnostic and handle the failure.
26505         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26506
26507         git-version-gen: include command name in one more diagnostic
26508         * build-aux/git-version-gen: When the required .tarball-version file
26509         was missing or unreadable, you might see the diagnostic from "cat",
26510         but no trace of the name of the invoking script.  Now, you still see
26511         the diagnostic from cat, but also get one from "git-version-gen: ".
26512         Inspired by a patch from Bruce Korb.
26513
26514         update-copyright: adjust test to match changed code
26515         * tests/test-update-copyright.sh: Change test's expected output
26516         to match new actual output.
26517
26518 2011-01-02  Bruno Haible  <bruno@clisp.org>
26519
26520         getlogin_r: Avoid test failure on HP-UX 11.
26521         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26522         ERANGE when the second argument is zero.
26523         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26524         portability problem.
26525
26526 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26527
26528         * build-aux/update-copyright: doc Simon's changes
26529
26530 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26531
26532         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26533         environment variable.
26534
26535 2011-01-02  Bruno Haible  <bruno@clisp.org>
26536
26537         unigbrk: Avoid gcc warnings.
26538         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26539         unused variable.
26540         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26541         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26542         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26543         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26544         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26545         Change type of first argument to 'const char *'.
26546         (main): Remove unused variable.
26547         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26548         type of first argument to 'const char *'.
26549         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26550         Likewise.
26551         (main): Change type of variable 's'.
26552         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26553         to 'int'.
26554
26555 2011-01-02  Bruno Haible  <bruno@clisp.org>
26556
26557         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26558         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26559         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26560         bug.
26561         * lib/pwrite.c: Undo 2010-12-31 patch.
26562         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26563
26564 2011-01-02  Bruno Haible  <bruno@clisp.org>
26565
26566         pread: Fix test whether it works.
26567         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26568
26569 2011-01-02  Bruno Haible  <bruno@clisp.org>
26570
26571         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26572         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26573         ends in "6". Don't require a specific month name. Try also the locale
26574         names found on HP-UX 11 and Solaris 7.
26575
26576 2011-01-02  Bruno Haible  <bruno@clisp.org>
26577
26578         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26579         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26580         C linkage.
26581         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26582
26583 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26584
26585         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26586         for consistency, since the "cluster" term is not used elsewhere.
26587         * lib/unigbrk.in.h: Update name.
26588         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26589         * lib/unigbrk/u16-grapheme-next.c: Update name.
26590         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26591         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26592         * lib/unigbrk/u32-grapheme-next.c: Update name.
26593         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26594         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26595         * lib/unigbrk/u8-grapheme-next.c: Update name.
26596         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26597         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26598         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26599         Suggested by Bruno Haible.
26600
26601 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26602
26603         Remove module 'u8-grapheme-len' as too redundant with
26604         'u8-grapheme-next'.
26605         * modules/unigbrk/u8-grapheme-len: Delete file.
26606         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26607         * lib/unigbrk.in.h: Remove prototype for deleted function.
26608         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26609         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26610
26611         Remove module 'u16-grapheme-len' as too redundant with
26612         'u16-grapheme-next'.
26613         * modules/unigbrk/u16-grapheme-len: Delete file.
26614         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26615         * lib/unigbrk.in.h: Remove prototype for deleted function.
26616         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26617         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26618
26619         Remove module 'u32-grapheme-len' as too redundant with
26620         'u32-grapheme-next'.
26621         * modules/unigbrk/u32-grapheme-len: Delete file.
26622         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26623         * lib/unigbrk.in.h: Remove prototype for deleted function.
26624         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26625         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26626
26627         Suggested by Bruno Haible.
26628
26629 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26630
26631         * unigbrk.in.h: Fix typo: "ben" => "been".
26632         Reported by Bruno Haible.
26633
26634 2011-01-01  Jim Meyering  <meyering@redhat.com>
26635
26636         maint: update almost all copyright ranges to include 2011
26637         Run the new "make update-copyright" rule.
26638
26639 2011-01-01  Jim Meyering  <meyering@redhat.com>
26640
26641         maint: update-copyright: exempt doc/INSTALL*
26642         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26643         since they are generated.  Suggested by Bruno Haible.
26644
26645 2011-01-01  Jim Meyering  <meyering@redhat.com>
26646
26647         maint: refine the update-copyright rule
26648         * Makefile (update-copyright): Also exclude any file that includes
26649         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26650         code that merely generates the comment.
26651
26652 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26653
26654         New module 'u8-grapheme-len'.
26655         * modules/unigbrk/u8-grapheme-len: New file.
26656         * modules/unigbrk/u8-grapheme-len-tests: New file.
26657         * lib/unigbrk.in.h: Add prototype for new function.
26658         * lib/unigbrk/u8-grapheme-len.c: New file.
26659         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26660
26661         New module 'u16-grapheme-len'.
26662         * modules/unigbrk/u16-grapheme-len: New file.
26663         * modules/unigbrk/u16-grapheme-len-tests: New file.
26664         * lib/unigbrk.in.h: Add prototype for new function.
26665         * lib/unigbrk/u16-grapheme-len.c: New file.
26666         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26667
26668         New module 'u32-grapheme-len'.
26669         * modules/unigbrk/u32-grapheme-len: New file.
26670         * modules/unigbrk/u32-grapheme-len-tests: New file.
26671         * lib/unigbrk.in.h: Add prototype for new function.
26672         * lib/unigbrk/u32-grapheme-len.c: New file.
26673         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26674
26675         New module 'u8-grapheme-next'.
26676         * modules/unigbrk/u8-grapheme-next: New file.
26677         * modules/unigbrk/u8-grapheme-next-tests: New file.
26678         * lib/unigbrk.in.h: Add prototype for new function.
26679         * lib/unigbrk/u8-grapheme-next.c: New file.
26680         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26681
26682         New module 'u16-grapheme-next'.
26683         * modules/unigbrk/u16-grapheme-next: New file.
26684         * modules/unigbrk/u16-grapheme-next-tests: New file.
26685         * lib/unigbrk.in.h: Add prototype for new function.
26686         * lib/unigbrk/u16-grapheme-next.c: New file.
26687         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26688
26689         New module 'u32-grapheme-next'.
26690         * modules/unigbrk/u32-grapheme-next: New file.
26691         * modules/unigbrk/u32-grapheme-next-tests: New file.
26692         * lib/unigbrk.in.h: Add prototype for new function.
26693         * lib/unigbrk/u32-grapheme-next.c: New file.
26694         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26695
26696         New module 'u8-grapheme-prev'.
26697         * modules/unigbrk/u8-grapheme-prev: New file.
26698         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26699         * lib/unigbrk.in.h: Add prototype for new function.
26700         * lib/unigbrk/u8-grapheme-prev.c: New file.
26701         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26702
26703         New module 'u16-grapheme-prev'.
26704         * modules/unigbrk/u16-grapheme-prev: New file.
26705         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26706         * lib/unigbrk.in.h: Add prototype for new function.
26707         * lib/unigbrk/u16-grapheme-prev.c: New file.
26708         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26709
26710         New module 'u32-grapheme-prev'.
26711         * modules/unigbrk/u32-grapheme-prev: New file.
26712         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26713         * lib/unigbrk.in.h: Add prototype for new function.
26714         * lib/unigbrk/u32-grapheme-prev.c: New file.
26715         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26716
26717         New module 'u8-grapheme-breaks'.
26718         * modules/unigbrk/u8-grapheme-breaks: New file.
26719         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26720         * lib/unigbrk.in.h: Add prototype for new function.
26721         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26722         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26723
26724         New module 'u16-grapheme-breaks'.
26725         * modules/unigbrk/u16-grapheme-breaks: New file.
26726         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26727         * lib/unigbrk.in.h: Add prototype for new function.
26728         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26729         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26730
26731         New module 'u32-grapheme-breaks'.
26732         * modules/unigbrk/u32-grapheme-breaks: New file.
26733         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26734         * lib/unigbrk.in.h: Add prototype for new function.
26735         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26736         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26737
26738         New module 'ulc-grapheme-breaks'.
26739         * modules/unigbrk/ulc-grapheme-breaks: New file.
26740         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26741         * m4/locale-ar.m4: New file.
26742         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26743         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26744         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26745
26746 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26747
26748         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26749         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26750         modified how this file was generated before I initially submitted
26751         the module, but failed to regenerate it.  This meant that several
26752         of the level2 entries were wrong.
26753         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26754         Remove the division-by-2 that is folded into the table now that
26755         gbrkprop.h has been regenerated properly.  Now -1 entries are
26756         handled correctly.
26757
26758         New module 'unigbrk/uc-gbrk-prop-tests'.
26759         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26760         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26761         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26762         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26763
26764 2011-01-01  Bruno Haible  <bruno@clisp.org>
26765
26766         Avoid use of hexadecimal escapes.
26767         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26768         instead of hexadecimal escapes.
26769
26770 2011-01-01  Jim Meyering  <meyering@redhat.com>
26771
26772         maint: new rule to update copyright year ranges
26773         * Makefile (update-copyright): New rule.
26774
26775         maint: indent with TABs in Makefile
26776         * Makefile: Expand leading sequences of spaces to TABs
26777
26778         version-etc: update the copyright year it reports
26779         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26780
26781 2010-12-31  Bruno Haible  <bruno@clisp.org>
26782
26783         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26784         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26785         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26786         zero.
26787
26788 2010-12-31  Bruno Haible  <bruno@clisp.org>
26789
26790         pwrite: Work around HP-UX 11.11 bug.
26791         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26792         works and set REPLACE_PWRITE if not.
26793         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26794         function.
26795         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26796
26797 2010-12-31  Bruno Haible  <bruno@clisp.org>
26798
26799         pread: Work around HP-UX 11 bugs.
26800         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26801         and set REPLACE_PREAD if not.
26802         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26803
26804 2010-12-31  Eric Blake  <eblake@redhat.com>
26805
26806         nl_langinfo: fix YESEXPR on Irix 6.5
26807         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26808         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26809         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26810         it.
26811
26812 2010-12-31  Bruno Haible  <bruno@clisp.org>
26813
26814         iconv: Document HP-UX 11 bug.
26815         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26816
26817 2010-12-31  Bruno Haible  <bruno@clisp.org>
26818
26819         ldexpl: Fix link error on HP-UX 11.
26820         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26821         LDEXPL_LIBM, using $ISNANL_LIBM.
26822
26823 2010-12-31  Eric Blake  <eblake@redhat.com>
26824
26825         ftello: avoid compilation failure with SunStudio c89
26826         * lib/ftello.c (ftello): Use lseek, not llseek.
26827
26828         tests: avoid failing coreutils tests on cygwin
26829         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26830         (create_exe_shims_): Return 0 when skipping.
26831
26832 2010-12-31  Bruno Haible  <bruno@clisp.org>
26833
26834         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26835         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26836
26837 2010-12-31  Bruno Haible  <bruno@clisp.org>
26838
26839         waitpid: Fix link error in C++ mode.
26840         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26841
26842 2010-12-31  Bruno Haible  <bruno@clisp.org>
26843
26844         isnan: Use GCC built-ins when possible.
26845         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26846         __builtin_isnan.
26847         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26848         (isnan): Define using GCC built-ins for GCC >= 4.0.
26849
26850 2010-12-31  Bruno Haible  <bruno@clisp.org>
26851
26852         isnand: Fix mistake.
26853         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26854         __builtin_isnand.
26855
26856 2010-12-31  Bruno Haible  <bruno@clisp.org>
26857
26858         open: Avoid C++ error on HP-UX 11.
26859         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26860
26861 2010-12-31  Bruno Haible  <bruno@clisp.org>
26862
26863         time_r: Add missing declarations on HP-UX 11.
26864         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26865         instead of HAVE_LOCALTIME_R.
26866         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26867         HAVE_LOCALTIME_R always.
26868         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26869         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26870         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26871         HAVE_LOCALTIME_R.
26872         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26873         * doc/posix-functions/localtime_r.texi: Likewise.
26874
26875 2010-12-29  Eric Blake  <eblake@redhat.com>
26876
26877         mountlist: tweak previous commit
26878         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26879         Reported by Paul Eggert.
26880
26881         mountlist: fix local drive detection on cygwin
26882         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26883         that works for cygwin.
26884
26885 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26886
26887         ftoastr, snprintf: ftoastr + snprintf module
26888         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26889         since the snprintf module now should be good enough here.
26890         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26891         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26892         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26893         GNULIB_SNPRINTF only for the test directory, and the latter
26894         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26895         seems to suffice by itself.
26896
26897 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26898
26899         alloca: one step towards thread-safety
26900         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26901         need for a static variable.  All callers changed.  This does not
26902         make the alloca replacement thread-safe, but it's one step.
26903
26904         tests: minor indenting change
26905         * tests/init.sh: Sync from coreutils housekeeping patch
26906         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26907         to keep lines within 80 columns.
26908
26909 2010-12-28  Jim Meyering  <meyering@redhat.com>
26910
26911         regex: don't infloop on persistent failing calloc
26912         * lib/regexec.c (build_trtable): Return failure indication upon
26913         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26914         In glibc, this was fixed for version 2.13:
26915         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26916
26917 2010-12-28  Bruno Haible  <bruno@clisp.org>
26918             Paul Eggert <eggert@cs.ucla.edu>
26919
26920         linkat: Make implementation robust against system behaviour variations.
26921         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26922         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26923         way, and to -2 if it needs a generic runtime test.
26924         * lib/linkat.c (solaris_optimized_link_immediate,
26925         solaris_optimized_link_follow): New functions.
26926         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26927         (check_same_link): Use it.
26928
26929 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26930
26931         New module 'unigbrk/base'.
26932         * modules/unigbrk/base: New file.
26933         * lib/unigbrk.in.h: New file.
26934
26935         New module 'unigbrk/uc-gbrk-prop'.
26936         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26937         * modules/unigbrk/uc-gbrk-prop: New file.
26938         * lib/unigbrk/gbrkprop.h: New file.
26939         * lib/unigbrk/uc-gbrk-prop.c: New file.
26940
26941         New module 'unigbrk/uc-is-grapheme-break'.
26942         * modules/unigbrk/uc-is-grapheme-break: New file.
26943         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26944         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26945         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26946         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26947         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26948
26949         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26950
26951 2010-12-27  Bruno Haible  <bruno@clisp.org>
26952
26953         linkat test: Avoid failure on Solaris 11 2010-11.
26954         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26955
26956 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26957
26958         utimens: work around glibc rounding bug on more platforms
26959         * lib/utimens.c (fdutimens): Work around rounding bug even if
26960         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26961         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26962
26963 2010-12-27  Bruno Haible  <bruno@clisp.org>
26964
26965         select tests: Improve comments.
26966         * tests/test-select.c (do_select): Add comments.
26967
26968 2010-12-27  Bruno Haible  <bruno@clisp.org>
26969
26970         select tests: Safer way of handling timeout.
26971         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26972         at every invocation.
26973
26974 2010-12-27  Bruno Haible  <bruno@clisp.org>
26975
26976         select tests: Use 'bool' where appropriate.
26977         * tests/test-select.c (connect_to_socket): Change argument type to
26978         'bool'.
26979
26980 2010-12-27  Bruno Haible  <bruno@clisp.org>
26981
26982         select tests: Use existing modules.
26983         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26984         (configure.ac): Don't test for unistd.h.
26985         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26986         declared in <unistd.h>.
26987
26988 2010-12-27  Bruno Haible  <bruno@clisp.org>
26989
26990         mbrtowc: Work around a Solaris 7 bug.
26991         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26992         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26993         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26994         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26995         MBRTOWC_NULL_ARG1_BUG.
26996         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26997         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26998         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26999         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27000
27001 2010-12-27  Jim Meyering  <meyering@redhat.com>
27002
27003         read-file.c: tweak syntax
27004         * lib/read-file.c (fread_file): Remove space after "*" in function
27005         definitions.
27006
27007 2010-12-27  Bruno Haible  <bruno@clisp.org>
27008
27009         times test: Avoid gcc warnings on OSF/1.
27010         * tests/test-times.c (main): Cast printf arguments from clock_t to
27011         'long int'.
27012
27013 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27014
27015         utimens: work around glibc rounding bug on older Linux kernels
27016         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27017         on Linux with a glibc whose utimes might not work, then work
27018         around a longstanding glibc bug involving rounding rather than
27019         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27020         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27021
27022 2010-12-26  Bruno Haible  <bruno@clisp.org>
27023
27024         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27025         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27026         _GL_CXXALIAS_SYS.
27027         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27028
27029 2010-12-26  Bruno Haible  <bruno@clisp.org>
27030
27031         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27032         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27033         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27034         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27035         looking for the declaration.
27036         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27037         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27038         problem.
27039         * doc/posix-functions/inet_pton.texi: Likewise.
27040
27041 2010-12-26  Bruno Haible  <bruno@clisp.org>
27042
27043         arpa_inet: Use the common idioms with C++ support.
27044         * lib/arpa_inet.in.h: Include c++defs.h.
27045         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27046         support.
27047         * modules/arpa_inet (Depends-on): Add c++defs.
27048         (Makefile.am): Substitute the contents of c++defs.h.
27049         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27050         * modules/arpa_inet-c++-tests: New file.
27051         * tests/test-arpa_inet-c++.cc: New file.
27052
27053 2010-12-25  Bruno Haible  <bruno@clisp.org>
27054
27055         Fix more C++ link errors on Solaris 8.
27056         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27057         $(LIB_EACCESS).
27058         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27059         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27060         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27061         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27062         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27063
27064 2010-12-25  Bruno Haible  <bruno@clisp.org>
27065
27066         printf-posix: Fix link error when a non-GCC compiler is used.
27067         * lib/stdio.in.h (printf): When not using GCC, override printf
27068         correctly.
27069         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27070
27071 2010-12-25  Bruno Haible  <bruno@clisp.org>
27072
27073         strerror_r-posix: Update doc.
27074         * doc/posix-functions/strerror_r.texi: Update doc about the return
27075         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27076
27077 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27078
27079         utimens: simplify the logic of the previous change
27080         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27081         This should not affect whether the test succeeds or fails.
27082
27083         utimens: configure better on hosts with NFS clock skew
27084         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27085         uses the clock of the local host.  It might use the clock of the
27086         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27087         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27088
27089 2010-12-25  Bruno Haible  <bruno@clisp.org>
27090
27091         ptsname test: Avoid failure on Solaris.
27092         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27093         open a pseudo-terminal; don't use BSD-style ptys.
27094         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27095
27096 2010-12-25  Bruno Haible  <bruno@clisp.org>
27097
27098         ptsname: Avoid ERANGE failure on some systems.
27099         * lib/ptsname.c (buffer): Increase size.
27100
27101 2010-12-25  Bruno Haible  <bruno@clisp.org>
27102
27103         rename, renameat: Avoid test failures at NFS mounted locations.
27104         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27105         so that subsequent mkdir calls succeed.
27106
27107 2010-12-25  Bruno Haible  <bruno@clisp.org>
27108
27109         iswblank: Fix C++ link error on Solaris 8.
27110         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27111         _GL_FUNCDECL_SYS.
27112
27113 2010-12-25  Bruno Haible  <bruno@clisp.org>
27114
27115         unistd: Fix C++ link error on Solaris 8.
27116         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27117
27118 2010-12-25  Bruno Haible  <bruno@clisp.org>
27119
27120         readlink doc: Mention an old glibc bug.
27121         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27122
27123 2010-12-25  Bruno Haible  <bruno@clisp.org>
27124
27125         fcntl-h: Fix for use of C++ on glibc systems.
27126         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27127         also on glibc systems in C++ mode.
27128         Reported by Gary V. Vaughan <gary@gnu.org>.
27129
27130 2010-12-25  Bruno Haible  <bruno@clisp.org>
27131
27132         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27133         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27134
27135 2010-12-25  Bruno Haible  <bruno@clisp.org>
27136
27137         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27138         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27139         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27140         test whether truncl works according to ISO C 99 with IEC 60559.
27141         * m4/truncl-ieee.m4: New file.
27142         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27143         m4/signbit.m4.
27144         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27145
27146 2010-12-25  Bruno Haible  <bruno@clisp.org>
27147
27148         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27149         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27150         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27151         test whether ceill works according to ISO C 99 with IEC 60559.
27152         * m4/ceill-ieee.m4: New file.
27153         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27154         m4/signbit.m4.
27155         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27156
27157 2010-12-25  Bruno Haible  <bruno@clisp.org>
27158
27159         Ensure all prerequisites of <wchar.h> are included.
27160         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27161         before <wchar.h>.
27162         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27163         gl_MBRLEN_NUL_RETVAL): Likewise.
27164         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27165         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27166         AC_FUNC_MBRTOWC): Likewise.
27167         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27168         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27169         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27170         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27171         Likewise.
27172         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27173         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27174         (gl_WCHAR_H): Improve comments.
27175         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27176
27177 2010-12-25  Bruno Haible  <bruno@clisp.org>
27178
27179         strtok_r: Fix C syntax error in autoconf macro.
27180         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27181         characters in test program.
27182
27183 2010-12-24  Bruno Haible  <bruno@clisp.org>
27184
27185         ceil, trunc, round: Fix gcc warnings.
27186         * lib/ceil.c (MIN): Undefine before redefining.
27187         * lib/trunc.c (MIN): Likewise.
27188         * lib/round.c (MIN): Likewise.
27189         Include <math.h> first.
27190
27191 2010-12-24  Bruno Haible  <bruno@clisp.org>
27192
27193         select tests: Avoid failures on OSF/1 5.1.
27194         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27195         failure of closing the last socket; it may fail with ECONNRESET.
27196
27197 2010-12-24  Eric Blake  <eblake@redhat.com>
27198
27199         stdint: avoid HP-UX 10.20 preprocessor bug
27200         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27201         than #if.
27202         * tests/test-floor2.c (main): Likewise.
27203         Reported by Peter O'Gorman.
27204
27205         pipe: make obsoletion transition easier
27206         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27207         * modules/pipe (Files): Include revived file.
27208         (Include): Drop reference, to mirror getdate's behavior.
27209
27210 2010-12-24  Bruno Haible  <bruno@clisp.org>
27211
27212         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27213         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27214         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27215         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27216
27217 2010-12-24  Bruno Haible  <bruno@clisp.org>
27218
27219         gethostname: Ensure declaration on NonStop Kernel.
27220         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27221         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27222
27223 2010-12-24  Bruno Haible  <bruno@clisp.org>
27224
27225         sys_select: Ensure all necessary types on NonStop Kernel.
27226         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27227         include <sys/time.h>.
27228         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27229         NonStop Kernel.
27230         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27231
27232 2010-12-24  Bruno Haible  <bruno@clisp.org>
27233
27234         sys_select: Remove unneeded include.
27235         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27236         have <sys/select.h>.
27237
27238 2010-12-24  Bruno Haible  <bruno@clisp.org>
27239
27240         gethostname: Provide a fallback for HOST_NAME_MAX.
27241         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27242         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27243         instead.
27244         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27245
27246 2010-12-24  Bruno Haible  <bruno@clisp.org>
27247
27248         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27249         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27250         (SA_RESTART): Likewise.
27251         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27252
27253 2010-12-24  Bruno Haible  <bruno@clisp.org>
27254
27255         signal: Define NSIG.
27256         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27257         * tests/test-signal.c (nsig): New variable.
27258         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27259
27260 2010-12-24  Bruno Haible  <bruno@clisp.org>
27261
27262         rename, renameat: Avoid test failures on OSF/1 5.1.
27263         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27264         alternative error codes.
27265         * tests/test-renameat.c (main): Likewise.
27266
27267 2010-12-24  Bruno Haible  <bruno@clisp.org>
27268
27269         *printf: Detect large precisions bug on Solaris 10/SPARC.
27270         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27271         by Paul Eggert.
27272         * tests/test-snprintf-posix.h (test_function): Add this test code here
27273         too.
27274         * tests/test-sprintf-posix.h (test_function): Likewise.
27275         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27276         * tests/test-vasprintf-posix.c (test_function): Likewise.
27277         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27278         around by gnulib.
27279         * doc/posix-functions/printf.texi: Likewise.
27280         * doc/posix-functions/snprintf.texi: Likewise.
27281         * doc/posix-functions/sprintf.texi: Likewise.
27282         * doc/posix-functions/vfprintf.texi: Likewise.
27283         * doc/posix-functions/vprintf.texi: Likewise.
27284         * doc/posix-functions/vsnprintf.texi: Likewise.
27285         * doc/posix-functions/vsprintf.texi: Likewise.
27286         * doc/posix-functions/dprintf.texi: Undo last commit.
27287         * doc/posix-functions/vdprintf.texi: Likewise.
27288
27289 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27290
27291         tests: port test-fdutimensat.c to Solaris 8
27292         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27293         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27294         On Solaris 8, it fails with errno == ENOSYS, because there is no
27295         futimens (so it can't use the fd), and there is no lutimens (so it
27296         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27297
27298         vsnprintf: make more consistent with snprintf; doc fixes
27299
27300         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27301         the byte count return problem was promoted from the snprintf-posix
27302         to the snprintf module.
27303         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27304         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27305         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27306         * tests/test-snprintf.c (main): Check the byte count returned.
27307         * tests/test-vsnprintf.c (main): Likewise.
27308
27309 2010-12-23  Eric Blake  <eblake@redhat.com>
27310
27311         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27312         * modules/sigpipe (License): Relax license.
27313
27314 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27315
27316         doc: document Solaris printf bug with large float precisions
27317         * doc/posix-functions/dprintf.texi (dprintf):
27318         * doc/posix-functions/fprintf.texi (fprintf):
27319         * doc/posix-functions/printf.texi (printf):
27320         * doc/posix-functions/snprintf.texi (snprintf):
27321         * doc/posix-functions/sprintf.texi (sprintf):
27322         * doc/posix-functions/vdprintf.texi (vdprintf):
27323         * doc/posix-functions/vfprintf.texi (vfprintf):
27324         * doc/posix-functions/vprintf.texi (vprintf):
27325         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27326         * doc/posix-functions/vsprintf.texi (vsprintf):
27327         Mention that these functions mishandle large floating point
27328         precisions on Solaris 10.  The same bug is also present in Solaris
27329         8, and I assume earlier.  This causes "cd gnulib-tests; make
27330         check" to fail on Solaris 8 (and I assume, later) when building
27331         the latest coreutils, in test-vasprintf-posix's call to
27332         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27333         the wide flavors (e.g., wprintf) so this patch just updates the
27334         documentation for the narrow ones.
27335
27336         test-posixtm.c: add two tests
27337         * tests/test-posixtm.c: Add two tests, to highlight the
27338         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27339         around this bug; this is merely to document it.
27340
27341 2010-12-22  Bruno Haible  <bruno@clisp.org>
27342
27343         getlogin_r: Work around portability problem on OSF/1.
27344         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27345         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27346         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27347         test for a truncated result.
27348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27349         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27350         * modules/getlogin_r (Depends-on): Add memchr.
27351         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27352
27353 2010-12-22  Bruno Haible  <bruno@clisp.org>
27354
27355         ptsname: Avoid test failure on OSF/1 5.1.
27356         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27357         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27358         (same_slave): New function.
27359         (main): Use it to compare ptsname's result with the expected file name.
27360
27361 2010-12-22  Bruno Haible  <bruno@clisp.org>
27362
27363         Port extended stdio modules to HP NonStop Kernel.
27364         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27365         macros.
27366         * lib/fbufmode.c: Update comments.
27367         * lib/fflush.c: Likewise.
27368         * lib/fpurge.c: Likewise.
27369         * lib/freadable.c: Likewise.
27370         * lib/freadahead.c: Likewise.
27371         * lib/freading.c: Likewise.
27372         * lib/freadptr.c: Likewise.
27373         * lib/freadseek.c: Likewise.
27374         * lib/fseeko.c: Likewise.
27375         * lib/fseterr.c: Likewise.
27376         * lib/fwritable.c: Likewise.
27377         * lib/fwriting.c: Likewise.
27378         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27379
27380 2010-12-22  Bruno Haible  <bruno@clisp.org>
27381
27382         ttyname_r: Work around bug on OSF/1 5.1.
27383         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27384         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27385         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27386         present.
27387         * lib/ttyname_r.c (ttyname_r): Update comments.
27388
27389 2010-12-22  Bruno Haible  <bruno@clisp.org>
27390
27391         round: Implement result sign according to IEEE 754.
27392         * lib/round.c (MIN, MINUS_ZERO): New macros.
27393         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27394         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27395         * tests/test-round-ieee.c (main): Likewise.
27396         * tests/test-roundl-ieee.c (main): Likewise.
27397
27398         trunc: Implement result sign according to IEEE 754.
27399         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27400         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27401         * tests/test-trunc2.c: Include minus-zero.h.
27402         (MINUS_ZERO): New macro.
27403         (trunc_reference): Keep in sync with lib/trunc.c.
27404         * tests/test-truncf2.c: Include minus-zero.h.
27405         (MINUS_ZERO): New macro.
27406         (truncf_reference): Keep in sync with lib/trunc.c.
27407         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27408         * tests/test-trunc-ieee.c (main): Likewise.
27409         * tests/test-truncl-ieee.c (main): Likewise.
27410
27411         ceil: Implement result sign according to IEEE 754.
27412         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27413         (FUNC): Return -0.0 for -1 < x < 0.
27414         * tests/test-ceil2.c: Include minus-zero.h.
27415         (MINUS_ZERO): New macro.
27416         (ceil_reference): Keep in sync with lib/ceil.c.
27417         * tests/test-ceilf2.c: Include minus-zero.h.
27418         (MINUS_ZERO): New macro.
27419         (ceilf_reference): Keep in sync with lib/ceil.c.
27420         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27421         * tests/test-ceil-ieee.c (main): Likewise.
27422         * tests/test-ceill-ieee.c (main): Likewise.
27423
27424         floor: Implement result sign according to IEEE 754.
27425         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27426         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27427         * tests/test-floorf2.c (floorf_reference): Likewise.
27428         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27429         * tests/test-floor-ieee.c (main): Likewise.
27430         * tests/test-floorl-ieee.c (main): Likewise.
27431
27432 2010-12-22  Bruno Haible  <bruno@clisp.org>
27433
27434         getaddrinfo: Update doc.
27435         * doc/posix-functions/gai_strerror.texi: Return type is also different
27436         on AIX and HP-UX.
27437
27438 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27439
27440         getaddrinfo, inet_ntop: Update doc for Solaris.
27441         * doc/posix-functions/gai_strerror.texi: Return type is also an
27442         issue on Solaris 9 and earlier.
27443         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27444         on Solaris 10 and earlier.
27445
27446 2010-12-21  Bruno Haible  <bruno@clisp.org>
27447
27448         New module 'roundl-ieee'.
27449         * modules/roundl-ieee: New file.
27450         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27451         test whether roundl works according to ISO C 99 with IEC 60559.
27452         * m4/roundl-ieee.m4: New file.
27453         * modules/roundl-ieee-tests: New file.
27454         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27455         * tests/test-roundl.c (main): Remove signbit tests.
27456         * modules/roundl-tests (Depends-on): Remove signbit.
27457         * doc/posix-functions/roundl.texi: Mention the new module.
27458
27459 2010-12-21  Bruno Haible  <bruno@clisp.org>
27460
27461         New module 'truncl-ieee'.
27462         * modules/truncl-ieee: New file.
27463         * modules/truncl-ieee-tests: New file.
27464         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27465         * tests/test-truncl.c (main): Remove signbit tests.
27466         * modules/truncl-tests (Depends-on): Remove signbit.
27467         * doc/posix-functions/truncl.texi: Mention the new module.
27468
27469 2010-12-21  Bruno Haible  <bruno@clisp.org>
27470
27471         New module 'ceill-ieee'.
27472         * modules/ceill-ieee: New file.
27473         * modules/ceill-ieee-tests: New file.
27474         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27475         * tests/test-ceill.c (main): Remove signbit tests.
27476         * modules/ceill-tests (Depends-on): Remove signbit.
27477         * doc/posix-functions/ceill.texi: Mention the new module.
27478
27479 2010-12-21  Bruno Haible  <bruno@clisp.org>
27480
27481         New module 'floorl-ieee'.
27482         * modules/floorl-ieee: New file.
27483         * modules/floorl-ieee-tests: New file.
27484         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27485         * tests/test-floorl.c (main): Remove signbit tests.
27486         * modules/floorl-tests (Depends-on): Remove signbit.
27487         * doc/posix-functions/floorl.texi: Mention the new module.
27488
27489 2010-12-21  Bruno Haible  <bruno@clisp.org>
27490
27491         New module 'round-ieee'.
27492         * modules/round-ieee: New file.
27493         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27494         whether round works according to ISO C 99 with IEC 60559.
27495         * m4/round-ieee.m4: New file.
27496         * modules/round-ieee-tests: New file.
27497         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27498         * tests/test-round1.c (main): Remove signbit tests.
27499         * modules/round-tests (Depends-on): Remove 'signbit'.
27500         * doc/posix-functions/round.texi: Mention the new module.
27501
27502 2010-12-21  Bruno Haible  <bruno@clisp.org>
27503
27504         New module 'trunc-ieee'.
27505         * modules/trunc-ieee: New file.
27506         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27507         whether trunc works according to ISO C 99 with IEC 60559.
27508         * m4/trunc-ieee.m4: New file.
27509         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27511         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27512         * modules/trunc-ieee-tests: New file.
27513         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27514         * tests/test-trunc1.c (main): Remove signbit tests.
27515         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27516         * doc/posix-functions/trunc.texi: Mention the new module.
27517
27518 2010-12-21  Bruno Haible  <bruno@clisp.org>
27519
27520         New module 'ceil-ieee'.
27521         * modules/ceil-ieee: New file.
27522         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27523         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27524         ISO C 99 with IEC 60559.
27525         * m4/ceil-ieee.m4: New file.
27526         * modules/ceil (Files): Add lib/ceil.c.
27527         (Depends-on): Add 'float'.
27528         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27529         * lib/math.in.h (ceil): New declaration.
27530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27531         REPLACE_CEIL.
27532         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27533         * modules/ceil-ieee-tests: New file.
27534         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27535         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27536         * doc/posix-functions/ceil.texi: Mention the new module.
27537
27538 2010-12-21  Bruno Haible  <bruno@clisp.org>
27539
27540         New module 'floor-ieee'.
27541         * modules/floor-ieee: New file.
27542         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27543         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27544         ISO C 99 with IEC 60559.
27545         * m4/floor-ieee.m4: New file.
27546         * modules/floor (Files): Add lib/floor.c.
27547         (Depends-on): Add 'float'.
27548         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27549         * lib/math.in.h (floor): New declaration.
27550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27551         REPLACE_FLOOR.
27552         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27553         * modules/floor-ieee-tests: New file.
27554         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27555         * tests/test-math-c++.cc: Check the signature of 'floor'.
27556         * doc/posix-functions/floor.texi: Mention the new module.
27557
27558 2010-12-21  Bruno Haible  <bruno@clisp.org>
27559
27560         New module 'roundf-ieee'.
27561         * modules/roundf-ieee: New file.
27562         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27563         test whether roundf works according to ISO C 99 with IEC 60559.
27564         * m4/roundf-ieee.m4: New file.
27565         * modules/roundf-ieee-tests: New file.
27566         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27567         * tests/test-roundf1.c (main): Remove signbit tests.
27568         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27569         * doc/posix-functions/roundf.texi: Mention the new module.
27570
27571 2010-12-21  Bruno Haible  <bruno@clisp.org>
27572
27573         New module 'truncf-ieee'.
27574         * modules/truncf-ieee: New file.
27575         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27576         test whether truncf works according to ISO C 99 with IEC 60559.
27577         * m4/truncf-ieee.m4: New file.
27578         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27580         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27581         * modules/truncf-ieee-tests: New file.
27582         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27583         * tests/test-truncf1.c (main): Remove signbit tests.
27584         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27585         * doc/posix-functions/truncf.texi: Mention the new module.
27586
27587 2010-12-21  Bruno Haible  <bruno@clisp.org>
27588
27589         New module 'ceilf-ieee'.
27590         * modules/ceilf-ieee: New file.
27591         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27592         test whether ceilf works according to ISO C 99 with IEC 60559.
27593         * m4/ceilf-ieee.m4: New file.
27594         * modules/ceilf-ieee-tests: New file.
27595         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27596         * tests/test-ceilf1.c (main): Remove signbit tests.
27597         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27598         * doc/posix-functions/ceilf.texi: Mention the new module.
27599
27600 2010-12-21  Bruno Haible  <bruno@clisp.org>
27601
27602         New module 'floorf-ieee'.
27603         * modules/floorf-ieee: New file.
27604         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27605         test whether floorf works according to ISO C 99 with IEC 60559.
27606         * m4/floorf-ieee.m4: New file.
27607         * modules/floorf-ieee-tests: New file.
27608         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27609         * tests/test-floorf1.c (main): Remove signbit tests.
27610         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27611         * doc/posix-functions/floorf.texi: Mention the new module.
27612
27613 2010-12-21  Bruno Haible  <bruno@clisp.org>
27614
27615         Support for minus zero in autoconf macros.
27616         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27617         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27618         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27619         * tests/minus-zero.h: Update comments.
27620
27621 2010-12-21  Bruno Haible  <bruno@clisp.org>
27622
27623         Tests for module 'ceil'.
27624         * modules/ceil-tests: New file.
27625         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27626         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27627
27628 2010-12-21  Bruno Haible  <bruno@clisp.org>
27629
27630         Tests for module 'floor'.
27631         * modules/floor-tests: New file.
27632         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27633         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27634
27635 2010-12-21  Bruno Haible  <bruno@clisp.org>
27636
27637         math: Fix indentation.
27638         * lib/math.in.h (floorf): Fix indentation.
27639
27640 2010-12-21  Bruno Haible  <bruno@clisp.org>
27641
27642         Fix cross-compilation guesses on Solaris.
27643         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27644         not match "solaris2.10".
27645         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27646         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27647         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27648
27649 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27650
27651         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27652         This fixes a problem observed with the latest coreutils snapshot
27653         that caused a test to fail on Solaris 8.  src/csplit.c's call
27654         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27655         earlier, instead of returning the number of bytes that would have
27656         been generated; this causes csplit to incorrectly report memory
27657         exhaustion.
27658         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27659         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27660         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27661         comments to match.
27662         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27663         Fix typo in matching older versions of Solaris: "solaris2.10"
27664         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27665         only for guessing while cross-compiling.
27666         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27667
27668 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27669
27670         ftoastr: fix comment again
27671         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27672         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27673         Also, simplify example a bit by using flags = 0.
27674
27675 2010-12-20  Bruno Haible  <bruno@clisp.org>
27676
27677         round*, trunc*: Update documentation regarding glibc.
27678         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27679         * doc/posix-functions/round.texi: Likewise.
27680         * doc/posix-functions/roundl.texi: Likewise.
27681         * doc/posix-functions/truncf.texi: Likewise.
27682         * doc/posix-functions/trunc.texi: Likewise.
27683         * doc/posix-functions/truncl.texi: Likewise.
27684
27685 2010-12-20  Bruno Haible  <bruno@clisp.org>
27686
27687         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27688         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27689         * doc/posix-functions/round.texi: Likewise.
27690         * doc/posix-functions/roundl.texi: Likewise.
27691
27692 2010-12-20  Bruno Haible  <bruno@clisp.org>
27693
27694         ttyname_r: Add missing declaration on HP-UX 11.
27695         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27696         HAVE_TTYNAME_R.
27697         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27698         declared. Set HAVE_TTYNAME_R always.
27699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27700         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27701         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27702         HAVE_TTYNAME_R.
27703         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27704
27705 2010-12-20  Bruno Haible  <bruno@clisp.org>
27706
27707         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27708         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27709         * doc/posix-functions/getlogin_r.texi: Likewise.
27710         * tests/test-getlogin.c: Include <errno.h>.
27711         (main): Avoid test failure on HP-UX 11.11.
27712         * tests/test-getlogin_r.c (main): Likewise.
27713
27714 2010-12-20  Bruno Haible  <bruno@clisp.org>
27715
27716         getlogin_r: Add missing declaration on HP-UX 11.
27717         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27718         declared also when it exists as a function.
27719         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27720
27721 2010-12-20  Bruno Haible  <bruno@clisp.org>
27722
27723         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27724         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27725         through wcrtomb.
27726
27727 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27728
27729         ftoastr: fix comment
27730         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27732
27733 2010-12-19  Bruno Haible  <bruno@clisp.org>
27734
27735         isnan: Ensure it is a macro.
27736         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27737         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27738         Solaris.
27739
27740 2010-12-19  Bruno Haible  <bruno@clisp.org>
27741
27742         ldexpl test: Fix link error on OSF/1 5.1.
27743         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27744
27745 2010-12-19  Bruno Haible  <bruno@clisp.org>
27746
27747         wctype: Make it work in C++ mode on OSF/1 5.1.
27748         * lib/wctype.in.h (iswblank): Declare but not define here.
27749         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27750         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27751         * modules/wctype (Files): Add lib/iswblank.c.
27752
27753 2010-12-19  Bruno Haible  <bruno@clisp.org>
27754
27755         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27756         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27757         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27758
27759 2010-12-19  Bruno Haible  <bruno@clisp.org>
27760
27761         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27762         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27763         _POSIX_PII_SOCKET.
27764         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27765         * doc/posix-functions/recvfrom.texi: Likewise.
27766         * doc/posix-functions/send.texi: Likewise.
27767         * doc/posix-functions/sendto.texi: Likewise.
27768
27769 2010-12-19  Bruno Haible  <bruno@clisp.org>
27770
27771         tcgetsid: Add missing declaration on OSF/1 5.1.
27772         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27773         HAVE_TCGETSID.
27774         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27775         Don't set HAVE_TCGETSID.
27776         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27777         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27778         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27779         HAVE_TCGETSID.
27780         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27781
27782 2010-12-19  Bruno Haible  <bruno@clisp.org>
27783
27784         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27785         * lib/stdio.in.h: During the include_next statement, let recursive
27786         includes of this file include only the system header file.
27787
27788 2010-12-19  Bruno Haible  <bruno@clisp.org>
27789
27790         iconv_open: Fix regression from 2010-12-04.
27791         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27792         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27793
27794 2010-12-19  Bruno Haible  <bruno@clisp.org>
27795
27796         stdbool test: Avoid a gcc warning.
27797         * tests/test-stdbool.c (main): Fail if e1 is false.
27798         Reported by Jim Meyering.
27799
27800 2010-12-19  Jim Meyering  <meyering@redhat.com>
27801
27802         setenv: restore to working order
27803         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27804         mistakenly removed.
27805         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27806         HAVE_SETENV.
27807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27808         HAVE_SETENV.
27809
27810 2010-12-19  Bruno Haible  <bruno@clisp.org>
27811
27812         Document some different function declarations on OSF/1 5.1.
27813         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27814         * doc/posix-functions/inet_ntop.texi: Likewise.
27815         * doc/posix-functions/gethostname.texi: Likewise.
27816         * lib/unistd.in.h (gethostname): Update comment.
27817
27818 2010-12-19  Bruno Haible  <bruno@clisp.org>
27819
27820         doc: Mention vasprintf-posix module.
27821         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27822         the 'vasprintf-posix' module.
27823         * doc/glibc-functions/vasprintf.texi: Likewise.
27824
27825 2010-12-19  Bruno Haible  <bruno@clisp.org>
27826
27827         unsetenv: Add missing declaration on OSF/1 5.1.
27828         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27829         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27830         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27832         not HAVE_UNSETENV.
27833         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27834         HAVE_UNSETENV.
27835         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27836
27837 2010-12-19  Bruno Haible  <bruno@clisp.org>
27838
27839         setenv: Add missing declaration on OSF/1 5.1.
27840         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27841         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27842         declared. Don't set HAVE_SETENV.
27843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27844         not HAVE_SETENV.
27845         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27846         HAVE_SETENV.
27847         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27848
27849 2010-12-19  Bruno Haible  <bruno@clisp.org>
27850
27851         nl_langinfo tests: Avoid gcc warning.
27852         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27853
27854 2010-12-19  Bruno Haible  <bruno@clisp.org>
27855
27856         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27857         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27858         _GL_CXXALIAS_SYS.
27859
27860 2010-12-19  Bruno Haible  <bruno@clisp.org>
27861
27862         stdbool: Relax test.
27863         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27864         address to 'bool' work in static initializer, for compilers other than
27865         GCC.
27866
27867 2010-12-19  Bruno Haible  <bruno@clisp.org>
27868
27869         ftello: Add missing declaration on OSF/1 5.1.
27870         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27871         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27873         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27874         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27875
27876 2010-12-19  Bruno Haible  <bruno@clisp.org>
27877
27878         fseeko: Add missing declaration on OSF/1 5.1.
27879         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27880         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27882         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27883         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27884
27885 2010-12-19  Bruno Haible  <bruno@clisp.org>
27886
27887         fchdir: Add missing declaration on OSF/1 5.1.
27888         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27889         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27891         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27892         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27893
27894 2010-12-19  Bruno Haible  <bruno@clisp.org>
27895
27896         relocatable-prog-wrapper: Separate from relocatable-prog.
27897         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27898         uninstall-relocwrapper rule here.
27899         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27900         Reported by Ian Beckwith <ianb@erislabs.net>.
27901
27902 2010-12-19  Bruno Haible  <bruno@clisp.org>
27903
27904         unistr/u8-mbsnlen: Add missing dependency.
27905         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27906         Reported by Ian Beckwith <ianb@erislabs.net>.
27907
27908 2010-12-19  Bruno Haible  <bruno@clisp.org>
27909
27910         iconv: Make it possible again to use this module without 'iconv-h'.
27911         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27912         if it is not defined.
27913         Reported by Ian Beckwith <ianb@erislabs.net>.
27914
27915 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27916
27917         acl: port to Solaris 8 when copying from tmpfs to ufs
27918         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27919         error number.  Problem observed on Solaris 8 with latest
27920         coreutils, with "mv A B", where A is on a tmpfs file system and B
27921         is on a ufs file system.  This caused coreutils' mv/part-symlink
27922         test to fail.
27923
27924         tests: set fail=0 at start
27925         * tests/init.sh (setup_): Move fail=0 initialization here ...
27926         (mktempd_): ... from here, so that tests can rely on fail being
27927         set to 0 initially.  This fixes a problem in coreutils; see:
27928         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27929
27930 2010-12-18  Bruno Haible  <bruno@clisp.org>
27931
27932         memmem-simple: Stylistic changes.
27933         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27934         Fix preprocessor directive indentation.
27935
27936 2010-12-15  Pádraig Brady <P@draigBrady.com>
27937
27938         memmem, memmem-simple: reorganize and expand empty needle check
27939         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27940         functional checks to memmem-simple so that one has a fully functional
27941         memmem by using just this module.
27942         Restrict the performance only check to the memmem module.
27943         Also expand the empty needle check to ensure the correct
27944         pointer is returned, not just a non NULL pointer.
27945         * doc/glibc-functions/memmem.texi: Rearrange the portability
27946         documentation to correlate with the rearranged checks.
27947         Clarify exactly how the memmem and memmem-simple modules
27948         relate to each other.
27949
27950 2010-12-15  Pádraig Brady <P@draigBrady.com>
27951             Bruno Haible  <bruno@clisp.org>
27952
27953         Improve cross-compilation guesses for uClibc.
27954         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27955         that uClibc does not have the glibc bug.
27956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27957         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27958
27959 2010-12-14  Eric Blake  <eblake@redhat.com>
27960
27961         configmake: provide fallbacks for oldest supported autotools
27962         * m4/configmake.m4: New file.
27963         * modules/configmake (Files): Ship it.
27964         (configure.ac): Use it to guarantee fallbacks.
27965
27966 2010-12-13  Pádraig Brady <P@draigBrady.com>
27967
27968         read-file: Improve handling of large files
27969         * lib/read-file.c (fread_file): Minimize realloc()s
27970         for regular files, and better manage sizes around SIZE_MAX.
27971
27972 2010-12-13  Eric Blake  <eblake@redhat.com>
27973
27974         cloexec, fcntl: relax license
27975         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27976         consent from all contributors.
27977         * modules/fcntl (License): Likewise.
27978
27979 2010-12-10  Bruno Haible  <bruno@clisp.org>
27980
27981         Tests for module 'pipe-posix'.
27982         * modules/pipe-posix-tests: New file.
27983         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27984
27985 2010-12-10  Bruno Haible  <bruno@clisp.org>
27986
27987         pipe-posix: Make it work in C++ mode.
27988         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27989         (pipe): Use common idiom, not a macro definition.
27990         * lib/pipe.c: New file.
27991         * m4/pipe.m4: New file.
27992         * modules/pipe-posix (Description): Enhance.
27993         (Files): Add lib/pipe.c, m4/pipe.m4.
27994         (configure.ac): Invoke gl_FUNC_PIPE.
27995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27996         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27997         * tests/test-unistd-c++.cc: Check the signature of pipe.
27998
27999 2010-12-10  Bruno Haible  <bruno@clisp.org>
28000
28001         Rename module 'pipe' to 'spawn-pipe'.
28002         * modules/spawn-pipe: New file, renamed from modules/pipe.
28003         (Files, configure.ac, Makefile.am): Update.
28004         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28005         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28006         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28007         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28008         "spawn-pipe.h" instead of "pipe.h".
28009         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28010         to gl_SPAWN_PIPE.
28011         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28012         (Files, Makefile.am): Update.
28013         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28014         Update.
28015         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28016         Include "spawn-pipe.h" instead of "pipe.h".
28017         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28018         * lib/javacomp.c: Likewise.
28019         * lib/javaversion.c: Likewise.
28020         * lib/pipe-filter-gi.c: Likewise.
28021         * lib/pipe-filter-ii.c: Likewise.
28022         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28023         * modules/javacomp (Depends-on): Likewise.
28024         * modules/javaversion (Depends-on): Likewise.
28025         * modules/pipe-filter-gi (Depends-on): Likewise.
28026         * modules/pipe-filter-ii (Depends-on): Likewise.
28027         * MODULES.html.sh (Executing programs): Update.
28028         * NEWS: Mention the change.
28029
28030 2010-12-10  Eric Blake  <eblake@redhat.com>
28031
28032         pipe-posix: new module
28033         * modules/pipe-posix: New file.
28034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28035         (gl_UNISTD_H): Check for declaration.
28036         * modules/unistd (Makefile.am): Substitute it.
28037         * lib/unistd.in.h (pipe): Provide it for mingw.
28038         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28039         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28040
28041 2010-12-07  Bruno Haible  <bruno@clisp.org>
28042
28043         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28044         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28045         u8_strcmp_gnu.
28046         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28047
28048 2010-12-06  Bruno Haible  <bruno@clisp.org>
28049
28050         Update internal documentation.
28051         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28052
28053 2010-12-04  Bruno Haible  <bruno@clisp.org>
28054
28055         Put more information about failed tests into the test return codes.
28056         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28057         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28058         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28059         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28060         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28061         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28062         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28063         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28064         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28066         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28067         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28068         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28069         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28070         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28071         returns a bit mask.
28072         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28073         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28074         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28075         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28076         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28077         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28080         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28081         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28082         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28083         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28084         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28086         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28087         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28088         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28089         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28090         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28091         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28092         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28093         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28094         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28095         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28096         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28097         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28098         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28099         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28100         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28101         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28102         gl_PRINTF_PRECISION): Likewise.
28103         * m4/regex.m4 (gl_REGEX): Likewise.
28104         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28105         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28106         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28107         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28109         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28110         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28111         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28112         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28113         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28114         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28115         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28116         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28117         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28118         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28119         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28120         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28121         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28123         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28124         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28125         enumerated value.
28126         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28127
28128 2010-12-04  Bruno Haible  <bruno@clisp.org>
28129
28130         Update for Solaris 11 2010-11.
28131         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28132         Express, released in November 2010.
28133
28134 2010-12-04  Bruno Haible  <bruno@clisp.org>
28135
28136         nproc: Relax license.
28137         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28138         and Paul Eggert.
28139         Requested by Ludovic Courtès <ludo@gnu.org>.
28140
28141 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28142
28143         utimecmp: fine-grained src to nearby coarse-grained dest
28144
28145         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28146         and the source is on a file system with higher-resolution time
28147         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28148         not work, and the time stamps are close together, the algorithm to
28149         determine the exact resolution from the read-back mtime was buggy:
28150         it had a "!=" where it should have had an "==".  This bug has been
28151         in the code ever since it was introduced to gnulib.
28152         Problem reported by Dan Jacobson in
28153         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28154
28155 2010-11-30  Bruno Haible  <bruno@clisp.org>
28156
28157         strerror_r-posix: Fix autoconf test.
28158         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28159
28160 2010-11-28  Bruno Haible  <bruno@clisp.org>
28161             Paul Eggert  <eggert@cs.ucla.edu>
28162
28163         Tests for module 'getdomainname'.
28164         * modules/getdomainname-tests: New file.
28165         * tests/test-getdomainname.c: New file, based on
28166         tests/test-gethostname.c.
28167
28168 2010-11-28  Bruno Haible  <bruno@clisp.org>
28169             Paul Eggert  <eggert@cs.ucla.edu>
28170
28171         getdomainname: Use the system function when possible.
28172         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28173         (getdomainname): Replace if needed. Provide the declaration if it is
28174         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28175         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28176         (getdomainname): When the system has getdomainname, call the system
28177         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28178         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28179         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28180         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28181         the function if its second argument is of type 'int' or if it is found
28182         in libnsl.
28183         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28184         <sys/systeminfo.h> and sysinfo().
28185         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28187         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28188         HAVE_GETDOMAINNAME.
28189         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28190         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28191         * doc/glibc-functions/getdomainname.texi: Document the problems with
28192         the getdomainname declaration.
28193
28194 2010-11-28  Bruno Haible  <bruno@clisp.org>
28195
28196         sys_socket: Ensure ss_family field on AIX.
28197         * lib/sys_socket.in.h (ss_family): New macro definition.
28198         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28199         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28200         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28201         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28202         * modules/sys_socket (Makefile.am): Substitute
28203         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28204         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28205
28206 2010-11-27  Bruno Haible  <bruno@clisp.org>
28207
28208         readline: Improve configure output.
28209         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28210         "checking for readline..." result understandable.
28211
28212 2010-11-27  Bruno Haible  <bruno@clisp.org>
28213
28214         *printf-posix: Detect a bug on Solaris 10/x86.
28215         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28216         for floating-point output.
28217         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28218         directive.
28219         * tests/test-snprintf-posix.h (test_function): Likewise.
28220         * tests/test-sprintf-posix.h (test_function): Likewise.
28221         * tests/test-vasprintf-posix.c (test_function): Likewise.
28222         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28223         * doc/posix-functions/printf.texi: Likewise.
28224         * doc/posix-functions/snprintf.texi: Likewise.
28225         * doc/posix-functions/sprintf.texi: Likewise.
28226         * doc/posix-functions/vfprintf.texi: Likewise.
28227         * doc/posix-functions/vprintf.texi: Likewise.
28228         * doc/posix-functions/vsnprintf.texi: Likewise.
28229         * doc/posix-functions/vsprintf.texi: Likewise.
28230         * doc/glibc-functions/obstack_printf.texi: Likewise.
28231         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28232
28233 2010-11-27  Bruno Haible  <bruno@clisp.org>
28234
28235         Fix link error when module libunistring-optional is in use.
28236         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28237         * modules/striconveha-tests (Makefile.am): Likewise.
28238
28239 2010-11-27  Bruno Haible  <bruno@clisp.org>
28240
28241         regex: Mention link dependencies.
28242         * modules/regex (Link): New section.
28243         * modules/rpmatch (Link): Likewise.
28244         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28245
28246 2010-11-27  Bruno Haible  <bruno@clisp.org>
28247
28248         ftoastr: Fix compilation error on Solaris.
28249         * lib/ftoastr.c: Include <config.h>.
28250
28251 2010-11-27  Bruno Haible  <bruno@clisp.org>
28252
28253         getloadavg: Update documentation.
28254         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28255
28256 2010-11-27  Bruno Haible  <bruno@clisp.org>
28257
28258         sys_socket: Fix test whether the functions are declared.
28259         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28260         not <sys/select.h>.
28261
28262 2010-11-27  Bruno Haible  <bruno@clisp.org>
28263
28264         getpass: Make sure to get system declaration on some platforms.
28265         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28266         gl_USE_SYSTEM_EXTENSIONS.
28267         * modules/getpass (Depends-on): Add extensions.
28268
28269 2010-11-26  Bruno Haible  <bruno@clisp.org>
28270
28271         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28272         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28273         'iconv' module is present.
28274         (ICONV_CONST): New macro.
28275         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28276         ICONV_CONST.
28277         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28278         set ICONV_CONST.
28279         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28280         here.
28281         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28282         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28283         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28284         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28285         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28286         present.
28287
28288 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28289
28290         ftoastr: comment fix
28291         * lib/ftoastr.c: "little" -> "little or no" in comment
28292
28293 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28294
28295         stdint: port to GCC 4.3 + OSX + Octave
28296         On this platform, stdint.h is buggy and defines int64_t to long
28297         long int.  The replacement defined it to long int, causing
28298         problems with C++ style name mangling.  Instead, trust the system
28299         definition if INT64_MAX is defined, and likewise for the unsigned
28300         variant.   Problem reported by Jarno Rajahalme in
28301         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28302         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28303         and don't mess with int64_t and INT64_MAX in this case.
28304         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28305
28306 2010-11-24  Bruno Haible  <bruno@clisp.org>
28307
28308         doc: Corrections regarding MacOS X 10.4 and 10.5.
28309         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28310         MacOS X.
28311         Reported by Simon Josefsson.
28312
28313 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28314
28315         Uninstall ".bin" files installed by relocwrapper.
28316         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28317         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28318         unless it is already there.
28319
28320 2010-11-21  Bruno Haible  <bruno@clisp.org>
28321
28322         Update for NetBSD 5.0.
28323         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28324         NetBSD; the test fails on NetBSD 5.0.
28325         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28326         about NetBSD.
28327
28328 2010-11-21  Bruno Haible  <bruno@clisp.org>
28329
28330         Update for HP-UX 11.23 and HP-UX 11.31.
28331         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28332         HP-UX.
28333
28334 2010-11-21  Bruno Haible  <bruno@clisp.org>
28335
28336         Update for MacOS X 10.5.
28337         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28338         MacOS X; the test fails on MacOS X 10.5.8.
28339         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28340         about MacOS X.
28341
28342 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28343
28344         bootstrap: add bootstrap_sync option.
28345         See discussion at
28346         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28347         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28348         * build-aux/bootstrap: Accept --bootstrap-sync to update
28349         bootstrap if it is not identical to the local gnulib's
28350         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28351         enable this by default.  Accept --no-bootstrap-sync to disable
28352         it.
28353
28354 2010-11-20  Bruno Haible  <bruno@clisp.org>
28355
28356         Ensure that <features.h> is included before __GLIBC__ is tested.
28357         * lib/printf-parse.h: Include <features.h>.
28358         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28359         Reported by Mike Frysinger <vapier@gentoo.org>.
28360
28361         Ensure that <features.h> is included before __GLIBC__ is tested.
28362         * lib/wchar.in.h: Include <features.h>.
28363         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28364         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28365         Reported by Mike Frysinger <vapier@gentoo.org>.
28366
28367         Ensure that <features.h> is included before __GLIBC__ is tested.
28368         * lib/arpa_inet.in.h: Include <features.h>.
28369         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28370         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28371         Reported by Mike Frysinger <vapier@gentoo.org>.
28372
28373         Ensure that <features.h> is included before __GLIBC__ is tested.
28374         * build-aux/link-warning.h: Include <features.h>.
28375         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28376         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28377         Reported by Mike Frysinger <vapier@gentoo.org>.
28378
28379         Ensure that <features.h> is included before __GLIBC__ is tested.
28380         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28381         Reported by Mike Frysinger <vapier@gentoo.org>.
28382
28383 2010-11-20  Bruno Haible  <bruno@clisp.org>
28384
28385         memmem: Fix autoconf test.
28386         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28387
28388 2010-11-20  Bruno Haible  <bruno@clisp.org>
28389
28390         Port to uClibc.
28391         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28392         * lib/fcntl.in.h: Likewise.
28393         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28394         * lib/mbrtowc.c (mbrtowc): Likewise.
28395         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28396         * lib/strerror_r.c: Likewise.
28397         * lib/unistr/u8-strnlen.c: Likewise.
28398         * lib/vasnprintf.c (decimal_point_char): Likewise.
28399         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28400         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28401         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28402         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28403         * tests/test-sigaction.c (handler, main): Likewise.
28404         * lib/freading.h: Treat uClibc like a non-glibc platform.
28405         * lib/freading.c: Likewise.
28406         * lib/gettext.h: Likewise.
28407         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28408         Likewise.
28409         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28410         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28411         * lib/propername.c (proper_name_utf8): Likewise.
28412         * lib/spawn.in.h: Likewise.
28413         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28414         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28415         mem_cd_iconveh_internal): Likewise.
28416         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28417         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28418         strstr, strcasestr): Likewise.
28419         * lib/unicodeio.c (unicode_to_mb): Likewise.
28420         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28421         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28422         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28423         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28424         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28425         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28426         * lib/unistr/u8-stpncpy.c: Likewise.
28427         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28428         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28429         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28430         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28431         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28432         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28433         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28434         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28435         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28436         Likewise.
28437         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28438         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28439         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28440         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28441         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28442         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28443         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28444         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28445         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28446         * tests/test-striconveha.c (main): Likewise.
28447         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28448         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28449         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28450         * doc/posix-functions/getline.texi: Likewise.
28451         Reported by Mike Frysinger <vapier@gentoo.org>.
28452
28453 2010-11-20  Bruno Haible  <bruno@clisp.org>
28454
28455         nproc: Fix condition.
28456         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28457         HAVE_PTHREAD_AFFINITY_NP.
28458
28459 2010-11-20  Bruno Haible  <bruno@clisp.org>
28460
28461         Fix a comment.
28462         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28463
28464 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28465
28466         ftoastr: don't assume snprintf
28467         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28468         Implement a subset of snprintf here, by using sprintf safely.
28469         * modules/ftoastr (Depends-on): Remove snprintf.
28470
28471 2010-11-19  Jim Meyering  <meyering@redhat.com>
28472
28473         test-rename.h: fix compilation failure
28474         * tests/test-rename.h (test_rename): Add omitted "}".
28475
28476 2010-11-17  Jim Meyering  <meyering@redhat.com>
28477
28478         maint.mk: add a URL discussing the no-@acronym policy
28479         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28480
28481 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28482
28483         ftoastr: depend on snprintf, improve comments
28484         * lib/ftoastr.c: Also mention Loitsch's draft.
28485         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28486         needed in the current implementation, but it might simplify
28487         speeding up the code later.
28488         * modules/ftoastr: Depend on snprintf; this improves portability.
28489         Suggested by Bruno Haible in the same email.
28490
28491         ftoastr: port to hosts lacking strtof and strtold
28492         Problem reported by Bruno Haible in
28493         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28494         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28495         environment and strtold (and presumably strtof) are not available.
28496         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28497         (configure.ac): Require gl_C99_STRTOLD.
28498
28499 2010-11-18  Bruno Haible  <bruno@clisp.org>
28500
28501         c-strtold: Avoid link error on AIX 7.
28502         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28503         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28504         (gl_C_STRTOLD): Test whether strtold_l exists.
28505         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28506
28507 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28508
28509         intprops: new macro INT_BITS_STRLEN_BOUND
28510         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28511         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28512         not exposed.  Also, it uses a slightly tighter bound than before;
28513         though this makes no practical difference, we might as well be as
28514         tight as we easily can.
28515
28516         ftoastr: new module, for lossless conversion of floats to short strings
28517         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28518         * modules/ftoastr: New files.
28519
28520 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28521
28522         bootstrap: port to Solaris sed
28523         * build-aux/bootstrap (get_version): Port to Solaris sed.
28524         See Ralf Wildenhues's note in
28525         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28526
28527 2010-11-14  Jim Meyering  <meyering@redhat.com>
28528
28529         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28530         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28531         and move definition closer to sole use.
28532
28533 2010-11-13  Jim Meyering  <meyering@redhat.com>
28534
28535         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28536         Now we require at least autoconf-2.59, which means the work-around
28537         is no longer needed.
28538         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28539         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28540         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28541         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28542         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28543
28544 2010-11-13  Bruno Haible  <bruno@clisp.org>
28545
28546         rename, renameat: Avoid test failures at NFS mounted locations.
28547         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28548         functions.
28549         (test_rename): Use assert_nonexistent.
28550         * tests/test-rename.c: Include <dirent.h>.
28551         * tests/test-renameat.c: Likewise.
28552         Reported by Gary V. Vaughan <gary@gnu.org>.
28553
28554         rename, renameat: Document Linux bug with NFS
28555         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28556         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28557         * doc/posix-functions/renameat.texi: Likewise.
28558         Suggested by Eric Blake.
28559
28560 2010-11-13  Bruno Haible  <bruno@clisp.org>
28561
28562         rename test: Add comments.
28563         * tests/test-rename.h (test_rename): Add structure and comments.
28564
28565 2010-11-13  Eric Blake  <eblake@redhat.com>
28566
28567         maintainer-makefile: cover a few more files
28568         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28569         scripts generated within C files, for libvirt.
28570
28571 2010-11-13  Bruno Haible  <bruno@clisp.org>
28572
28573         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28574         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28575         character, return the number of bytes that belong together, not always
28576         1.
28577         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28578         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28579         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28580         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28581         number of bytes of an invalid character.
28582         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28583         (main): Invoke it.
28584         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28585         results.
28586         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28587         malformed byte sequences.
28588         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28589         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28590         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28591         Reported by Ben Pfaff and Paolo Bonzini.
28592
28593 2010-11-13  Bruno Haible  <bruno@clisp.org>
28594
28595         openat: Work around glibc bug with fchownat() and empty file names.
28596         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28597         (gl_FUNC_FCHOWNAT): Invoke it.
28598         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28599         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28600         Reported by Gary V. Vaughan <gary@gnu.org>.
28601
28602 2010-11-13  Bruno Haible  <bruno@clisp.org>
28603
28604         openat: Ensure autoconf macro ordering.
28605         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28606         gl_USE_SYSTEM_EXTENSIONS.
28607         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28608
28609 2010-11-13  Bruno Haible  <bruno@clisp.org>
28610
28611         Update comments.
28612         * lib/unistr/u8-check.c: Update file name in comments.
28613         * lib/unistr/u8-mblen.c: Likewise.
28614         * lib/unistr/u8-prev.c: Likewise.
28615         * lib/unistr/u8-strmblen.c: Likewise.
28616         * lib/unistr/u8-strmbtouc.c: Likewise.
28617
28618 2010-11-13  Jim Meyering  <meyering@redhat.com>
28619
28620         tests: avoid test failure on Solaris 10 due to lack of PATH export
28621         * tests/test-update-copyright.sh: Don't forget to export PATH.
28622
28623         init.sh: ensure that IFS is defined, just in case...
28624         * tests/init.sh (setup_): Ensure that IFS is defined,
28625         so that saving and restoring it works as expected.  This
28626         appears to be useful at least for an old version of dash
28627         from a long time ago (RH 6).  See here for details:
28628         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28629
28630         maint.mk: tighten "test a == b" check
28631         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28632         test to files that contain something like #!/bin/sh.
28633         Without this, coreutils would get two false positives in
28634         the comments of C source files.
28635
28636 2010-11-12  Eric Blake  <eblake@redhat.com>
28637
28638         bootstrap: fix typo in previous attempt
28639         * build-aux/bootstrap (buildreq): Correct the grouping.
28640         Reported by Paul Eggert.
28641
28642         maintainer-makefile: prohibit test x == x
28643         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28644         Based on a report by Matthias Bolte.
28645
28646         bootstrap: allow FreeBSD gzip
28647         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28648         which has no '.' and goes to stderr.
28649         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28650         Reported by Matthias Bolte.
28651
28652         maintainer-makefile: check for i18n setup
28653         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28654         will likely work.
28655
28656 2010-11-12  Bruno Haible  <bruno@clisp.org>
28657
28658         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28659         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28660         * lib/nanosleep.c (nanosleep): Likewise.
28661
28662 2010-11-11  Bruno Haible  <bruno@clisp.org>
28663
28664         fcntl-h: Fix for use of C++ on glibc systems.
28665         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28666         also on glibc systems in C++ mode.
28667         Reported by Gary V. Vaughan <gary@gnu.org>.
28668
28669 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28670
28671         mknod: avoid false failure with dash
28672         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28673
28674 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28675
28676         unlink: Fix "is it should" typo in diagnostic.
28677         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28678         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28679
28680 2010-11-11  Bruno Haible  <bruno@clisp.org>
28681
28682         Tests for module 'strerror_r-posix'.
28683         * modules/strerror_r-posix-tests: New file.
28684         * tests/test-strerror_r.c: New file.
28685         * tests/test-string-c++.cc: Check the signature of strerror_r.
28686
28687         New module 'strerror_r-posix'.
28688         * lib/string.in.h (strerror_r): New declaration.
28689         * lib/strerror_r.c: New file.
28690         * m4/strerror_r.m4: New file.
28691         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28692         of strerror_r.
28693         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28694         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28695         * modules/strerror_r-posix: New file.
28696         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28697         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28698         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28699         portability problems.
28700
28701 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28702
28703         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28704         line is also considered for output. Quoted function name in shell
28705         command, so temporary files for functions like MyClass::operator()
28706         are removed correctly without errors.
28707
28708 2010-11-09  Bruno Haible  <bruno@clisp.org>
28709
28710         * doc/posix-functions/strerror.texi: List more failing platforms.
28711
28712         * doc/posix-functions/strerror.texi: Add a comment.
28713
28714 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28715
28716         fdopendir: fix bug on MacOS X when low on file descriptors
28717
28718         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28719         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28720         All callers changed.
28721         (fdopendir): Invoke save_cwd at the top level, not after using
28722         multiple dup() calls to use up file descriptors.  Then retry
28723         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28724         less than the maximum number of open file descriptors, because
28725         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28726         on Mac OS X 10.6.4 for tar 1.24
28727         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28728         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28729         and for tar 1.25
28730         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28731
28732 2010-11-07  Bruno Haible  <bruno@clisp.org>
28733
28734         vasnprintf: Support I flag on glibc systems.
28735         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28736         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28737         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28738         snprintf function.
28739         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28740         glibc systems.
28741         * tests/test-vasnprintf-posix3.c: New file.
28742         * modules/vasnprintf-posix-tests (Files): Add it.
28743         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28744
28745 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28746
28747         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28748         * MODULES.html.sh: For compiler warnings, use name
28749         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28750
28751 2010-11-05  Eric Blake  <eblake@redhat.com>
28752
28753         ceil, floor: avoid spurious failure with icc
28754         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28755         [denormals-as-zero] when optimizing without -mieee-fp option.
28756         * tests/test-floorf2.c (floorf_reference): Likewise.
28757         * tests/test-ceilf1.c (dummy): New function.
28758         (main): Use it to outsmart icc's optimization.
28759         * tests/test-floorf1.c (dummy, main): Likewise.
28760
28761         tests: require working signbit
28762         * modules/ceilf-tests (Depends-on): Add signbit.
28763         * modules/ceill-tests (Depends-on): Likewise.
28764         * modules/floorf-tests (Depends-on): Likewise.
28765         * modules/floorl-tests (Depends-on): Likewise.
28766         * modules/round-tests (Depends-on): Likewise.
28767         * modules/roundf-tests (Depends-on): Likewise.
28768         * modules/roundl-tests (Depends-on): Likewise.
28769         * modules/trunc-tests (Depends-on): Likewise.
28770         * modules/truncf-tests (Depends-on): Likewise.
28771         * modules/truncl-tests (Depends-on): Likewise.
28772
28773         strtod: work around icc bug
28774         * lib/strtod.c (minus_zero): Define to working value.
28775         (strtod): Use it to avoid icc bug.
28776
28777         copysign: enhance tests
28778         * modules/copysign-tests (Files): Add minus-zero.h.
28779         * tests/test-copysign.c (main): Also test zeros.
28780
28781 2010-11-04  Eric Blake  <eblake@redhat.com>
28782
28783         ceil, floor, round, trunc: enhance tests of -0
28784         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28785         * tests/test-ceill.c (main): Likewise.
28786         * tests/test-floorf1.c (main): Likewise.
28787         * tests/test-floorl.c (main): Likewise.
28788         * tests/test-round1.c (main): Likewise.
28789         * tests/test-roundf1.c (main): Likewise.
28790         * tests/test-roundl.c (main): Likewise.
28791         * tests/test-trunc1.c (main): Likewise.
28792         * tests/test-truncf1.c (main): Likewise.
28793         * tests/test-truncl.c (main): Likewise.
28794
28795 2010-11-04  Eric Blake  <eblake@redhat.com>
28796
28797         frexp, tests: work around ICC bug with -zero
28798         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28799         works with more compilers.
28800         * tests/minus-zero.h: New file.
28801         * modules/ceilf-tests (Files): Include it.
28802         * modules/ceill-tests (Files): Likewise.
28803         * modules/floorf-tests (Files): Likewise.
28804         * modules/floorl-tests (Files): Likewise.
28805         * modules/frexp-nolibm-tests (Files): Likewise.
28806         * modules/frexp-tests (Files): Likewise.
28807         * modules/frexpl-nolibm-tests (Files): Likewise.
28808         * modules/frexpl-tests (Files): Likewise.
28809         * modules/isnan-tests (Files): Likewise.
28810         * modules/isnand-nolibm-tests (Files): Likewise.
28811         * modules/isnand-tests (Files): Likewise.
28812         * modules/isnanf-nolibm-tests (Files): Likewise.
28813         * modules/isnanf-tests (Files): Likewise.
28814         * modules/isnanl-nolibm-tests (Files): Likewise.
28815         * modules/isnanl-tests (Files): Likewise.
28816         * modules/round-tests (Files): Likewise.
28817         * modules/roundf-tests (Files): Likewise.
28818         * modules/roundl-tests (Files): Likewise.
28819         * modules/ldexpl-tests (Files): Likewise.
28820         * modules/signbit-tests (Files): Likewise.
28821         * modules/snprintf-posix-tests (Files): Likewise.
28822         * modules/sprintf-posix-tests (Files): Likewise.
28823         * modules/strtod-tests (Files): Likewise.
28824         * modules/trunc-tests (Files): Likewise.
28825         * modules/truncf-tests (Files): Likewise.
28826         * modules/truncl-tests (Files): Likewise.
28827         * modules/vsnprintf-posix-tests (Files): Likewise.
28828         * modules/vsprintf-posix-tests (Files): Likewise.
28829         * modules/vasnprintf-posix-tests (Files): Likewise.
28830         * modules/vasprintf-posix-tests (Files): Likewise.
28831         * tests/test-ceilf1.c (main): Use it.
28832         * tests/test-ceill.c (main): Likewise.
28833         * tests/test-floorf1.c (main): Likewise.
28834         * tests/test-floorl.c (main): Likewise.
28835         * tests/test-frexp.c (main): Likewise.
28836         * tests/test-frexpl.c (main): Likewise.
28837         * tests/test-isnan.c (main): Likewise.
28838         * tests/test-isnand.h (main): Likewise.
28839         * tests/test-isnanf.h (main): Likewise.
28840         * tests/test-isnanl.h (main): Likewise.
28841         * tests/test-ldexpl.c (main): Likewise.
28842         * tests/test-round.c (main): Likewise.
28843         * tests/test-roundf.c (main): Likewise.
28844         * tests/test-roundl.c (main): Likewise.
28845         * tests/test-signbit.c (test_signbitf, test_signbitd)
28846         (test_signbitl): Likewise.
28847         * tests/test-snprintf-posix.h (test_function): Likewise.
28848         * tests/test-sprintf-posix.h (test_function): Likewise.
28849         * tests/test-strtod.c (main): Likewise.
28850         * tests/test-trunc1.c (main): Likewise.
28851         * tests/test-truncf1.c (main): Likewise.
28852         * tests/test-truncl.c (main): Likewise.
28853
28854         isnanl: work around icc bug
28855         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28856
28857 2010-11-03  Eric Blake  <eblake@redhat.com>
28858
28859         tests: fix compiler warnings
28860         * tests/test-getopt.h (test_getopt): Fix condition.
28861         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28862         * tests/test-pipe2.c (main): Likewise.
28863         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28864
28865         utimens: fix broken m4 test
28866         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28867
28868 2010-10-28  Bruno Haible  <bruno@clisp.org>
28869
28870         posix_spawn*, getdtablesize: Relax license.
28871         * modules/posix_spawn (License): Change to LGPLv2+.
28872         * modules/posix_spawnp (License): Likewise.
28873         * modules/posix_spawn-internal (License): Likewise.
28874         * modules/posix_spawnattr_init (License): Likewise.
28875         * modules/posix_spawnattr_getflags (License): Likewise.
28876         * modules/posix_spawnattr_setflags (License): Likewise.
28877         * modules/posix_spawnattr_getpgroup (License): Likewise.
28878         * modules/posix_spawnattr_setpgroup (License): Likewise.
28879         * modules/posix_spawnattr_getschedparam (License): Likewise.
28880         * modules/posix_spawnattr_setschedparam (License): Likewise.
28881         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28882         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28883         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28884         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28885         * modules/posix_spawnattr_getsigmask (License): Likewise.
28886         * modules/posix_spawnattr_setsigmask (License): Likewise.
28887         * modules/posix_spawnattr_destroy (License): Likewise.
28888         * modules/posix_spawn_file_actions_init (License): Likewise.
28889         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28890         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28891         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28892         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28893         * modules/getdtablesize (License): Likewise.
28894         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28895
28896 2010-10-26  Bruno Haible  <bruno@clisp.org>
28897
28898         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28899         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28900         Cygwin and mingw.
28901         Suggested by Eric Blake.
28902
28903 2010-10-26  Bruno Haible  <bruno@clisp.org>
28904
28905         stdio: Work around compilation error due to renameat() on Solaris 10.
28906         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28907         * lib/renameat.c: Don't include <unistd.h> here.
28908         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28909         Reported by Paul Eggert and Eric Blake.
28910
28911 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28912
28913         renameat: port to Solaris 10, which declares renameat in unistd.h
28914
28915         * lib/renameat.c: Include unistd.h before stdio.h, because
28916         Solaris 10 declares renameat in unistd.h.  Problem encountered
28917         when building GNU tar 1.24 on Solaris 10.
28918
28919 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28920
28921         fdopendir: fix C89 compilation
28922         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28923         compilers.
28924
28925 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28926
28927         inttostr: simplify by removing unnecessary redundancy
28928         * lib/anytostr.c: Don't include verify.h.
28929         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28930         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28931         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28932         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28933         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28934         Likewise.
28935         * modules/inttostr (Depends-on): Remove 'verify'.
28936
28937 2010-10-23  Bruno Haible  <bruno@clisp.org>
28938
28939         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28940         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28941         Reported by Eric Blake.
28942
28943 2010-10-23  Bruno Haible  <bruno@clisp.org>
28944
28945         Tests: Fix LOCALE_JA on MirBSD 10.
28946         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28947         to an UTF-8 locale.
28948         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28949         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28950         Reported by Eric Blake.
28951
28952 2010-10-21  Bruno Haible  <bruno@clisp.org>
28953
28954         nl_langinfo test: Avoid test failure on NetBSD 5.
28955         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28956         Reported by Eric Blake.
28957
28958 2010-10-21  Eric Blake  <eblake@redhat.com>
28959
28960         c-stack: work around libsigsegv 2.8 bug
28961         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28962         overflow on at least PowerPC64.
28963
28964 2010-10-17  Bruno Haible  <bruno@clisp.org>
28965
28966         userspec: Drop redundant file.
28967         * modules/userspec (Files): Remove lib/inttostr.h.
28968
28969 2010-10-17  Bruno Haible  <bruno@clisp.org>
28970
28971         nl_langinfo tests: Silence some warnings.
28972         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28973         Reported by Jim Meyering.
28974
28975 2010-10-17  Bruno Haible  <bruno@clisp.org>
28976
28977         Make use of GCC's attribute __alloc_size__.
28978         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28979         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28980         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28981         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28982         __alloc_size__.
28983         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28984         Suggested by Jim Meyering.
28985
28986 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28987
28988         bootstrap: anchor .gitignore entries.
28989         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28990         with...
28991         (insert_vc_ignore): ... this new function, which prepends `/' to
28992         all .gitignore entries before passing them to
28993         insert_sorted_if_absent.
28994
28995 2010-10-16  Bruno Haible  <bruno@clisp.org>
28996
28997         nextafter: Fix configure check.
28998         * modules/nextafter (configure.ac): Correct expected prototype.
28999
29000 2010-10-16  Bruno Haible  <bruno@clisp.org>
29001
29002         termios: Update documentation.
29003         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29004
29005 2010-10-16  Bruno Haible  <bruno@clisp.org>
29006
29007         tests: Make them compile with TinyCC.
29008         * tests/test-strstr.c (main): Remove parentheses around array
29009         initializer.
29010
29011 2010-10-15  Eric Blake  <eblake@redhat.com>
29012
29013         ignore-value: make header idempotent
29014         * lib/ignore-value.h: Add double-inclusion guards.
29015         Reported by Stefan Berger.
29016
29017 2010-10-15  Jim Meyering  <meyering@redhat.com>
29018
29019         GNUmakefile: handle "stable" target, not "major"
29020         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29021         lists in maint.mk and announce-gen.  Without this, "make stable"
29022         would fail to ensure that $(VERSION) is up to date.
29023
29024 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29025
29026         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29027         & co.
29028
29029 2010-10-14  Bruno Haible  <bruno@clisp.org>
29030
29031         vasnprintf: Don't set errno to 0.
29032         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29033         block that sets it to 0.
29034         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29035
29036 2010-10-14  Bruno Haible  <bruno@clisp.org>
29037
29038         socketlib: Fix.
29039         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29040         gl_PREREQ_SYS_H_WINSOCK2.
29041         Reported by Ian Beckwith <ianb@erislabs.net>.
29042
29043 2010-10-13  Jim Meyering  <meyering@redhat.com>
29044
29045         test-select-stdin.c: avoid warn_unused_result warnings
29046         * tests/test-select-stdin.c: Include "macros.h".
29047         ASSERT that read and fflush succeed.
29048
29049 2010-10-13  Jim Meyering  <meyering@redhat.com>
29050
29051         git-version-gen: do require git-VC'd files in cwd
29052         * build-aux/git-version-gen: Reject a git version string
29053         if there are no commits associated with the current directory.
29054         This avoids an unlikely false-positive (unrelated dir whose parent
29055         repository also contains a tag matching v*), as pointed out
29056         by Giuseppe Scrivano in
29057         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29058
29059 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29060
29061         argv-iter: omit nonconforming declaration
29062         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29063         enum arg_iter_err declaration, which doesn't conform to C99.
29064         Solaris 10 cc warns about this.
29065
29066 2010-10-13  Eric Blake  <eblake@redhat.com>
29067
29068         termios: fix compilation on mingw
29069         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29070         (gl_TERMIOS_H): Adjust it on mingw.
29071         * modules/termios (Makefile.am): Substitute new key.
29072         * lib/termios.in.h (includes): Make include_next conditional.
29073         * doc/posix-headers/termios.texi (termios.h): Update
29074         documentation.
29075         Reported by Daniel P. Berrange.
29076
29077 2010-10-13  Jim Meyering  <meyering@redhat.com>
29078
29079         git-version-gen: don't require that .git/ be in the current dir
29080         * build-aux/git-version-gen: Adjust this script so that it works
29081         when run from any working directory beneath the top-level .git/-
29082         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29083         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29084
29085         test-select: avoid warn_unused_result warnings
29086         * tests/test-select.c: Include "macros.h".
29087         ASSERT that each call to read, write, and pipe succeeds.
29088         While not technically required, also check each "close".
29089         * modules/select-tests (Files): Add tests/macros.h.
29090
29091         test-symlinkat: remove declaration of unused local
29092         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29093
29094         test-inttostr: avoid shadowing warnings
29095         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29096         and use malloc rather than the stack for the same reason as
29097         mentioned in the comment justifying the other allocation.
29098
29099 2010-10-11  Bruno Haible  <bruno@clisp.org>
29100
29101         stdlib: Allow multiple gnulib generated replacements to coexist.
29102         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29103         Reported by Sam Steingold <sds@gnu.org>.
29104
29105 2010-10-11  Jim Meyering  <meyering@redhat.com>
29106
29107         fix a documentation typo
29108         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29109
29110 2010-10-11  Eric Blake  <eblake@redhat.com>
29111
29112         futimens: work around Solaris 11 bug
29113         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29114         * tests/test-futimens.h (test_futimens): Enhance, rather than
29115         weaken test.
29116         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29117
29118 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29119
29120         Indentation.
29121         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29122         higher-level operators more to the left.
29123
29124 2010-10-11  Jim Meyering  <meyering@redhat.com>
29125
29126         test-futimens: avoid unwarranted test failure on Solaris 5.11
29127         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29128         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29129         because it tries to dereference the NULL name argument.
29130
29131 2010-10-11  Bruno Haible  <bruno@clisp.org>
29132
29133         Indentation.
29134         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29135         indentation.
29136
29137 2010-10-11  Jim Meyering  <meyering@redhat.com>
29138
29139         spawn.in.h: make indentation consistent with parentheses
29140         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29141         Make indentation consistent with parentheses.
29142
29143 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29144
29145         Fix mismatched parens in previous commit
29146         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29147         parens.
29148
29149 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29150
29151         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29152
29153         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29154         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29155         * lib/malloca.c: Include "verify.h".
29156         (verify1): Remove, replacing with a verify call.
29157         * lib/relocwrapper.c (verify1): Likewise.
29158         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29159         Likewise.
29160         * modules/malloca (Depends-on): Add 'verify'.
29161         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29162         * modules/vasnprintf (Depends-on): Add 'verify'.
29163         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29164         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29165         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29166         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29167         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29168         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29169         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29170
29171         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29172
29173         Formerly the style was sometimes 2*X - 1, because the C standard
29174         was wrongly thought to disallow ?: in integral constant expressions.
29175         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29176         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29177         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29178         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29179         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29180         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29181         verify that time_t cannot be floating.
29182
29183 2010-10-08  Eric Blake  <eblake@redhat.com>
29184
29185         time: enforce recent POSIX ruling that time_t is integral
29186         * lib/time.in.h (__time_t_must_be_integral): Detect any
29187         problematic systems, allowing the rest of gnulib to assume POSIX.
29188
29189 2010-10-08  Jim Meyering  <meyering@redhat.com>
29190
29191         fdopendir: fix a bug on systems lacking openat and /proc support
29192         OpenBSD 4.7 is one such system.  The most noticeable effect was
29193         failure of any application making nontrivial use of fts: rm, du,
29194         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29195           ./rm: traversal failed: `a': Bad file descriptor
29196         Debugging that, you see that even though FD 6 was closed just
29197         prior to the opendir call in fd_clone_opendir, its resulting
29198         dir->dd_fd was 8, rather than the expected value of 6:
29199
29200         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29201         93                close (fd);
29202         (gdb) n
29203         94                dir = fd_clone_opendir (dupfd);
29204         (gdb) n
29205         95                saved_errno = errno;
29206         (gdb) p dir->dd_fd
29207         $11 = 8
29208
29209         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29210         The problem is that on OpenBSD, fd_clone_opendir has to resort
29211         to using the old-style save/restore CWD mechanism, due to its
29212         lack of openat/proc support, and *that* would steal the FD (6)
29213         that opendir was supposed to use.
29214
29215         The fix is to squirrel away the desired FD so that save_cwd uses a
29216         different one, and then free the dest FD right before calling opendir.
29217         That guarantees opendir will use the required file descriptor.
29218
29219         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29220
29221 2010-10-08  Bruno Haible  <bruno@clisp.org>
29222
29223         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29224         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29225
29226 2010-10-08  Bruno Haible  <bruno@clisp.org>
29227
29228         nanosleep: Make replacement POSIX compliant.
29229         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29230         is out of range.
29231         Reported by Jim Meyering.
29232
29233 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29234
29235         bootstrap: add hook for altering gnulib.mk, for Bison
29236         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29237         the Bison bootstrapping process can rewrite file names and variables
29238         in this file before later parts of 'bootstrap' use the file.
29239         Bison wants to include lib/gnulib.mk from the top-level makefile,
29240         so it needs the file names in this file to be relative to the top
29241         level, not relative to lib; plus it needs variable names to be
29242         rewritten.
29243         (slurp): Use the new function.
29244
29245         bootstrap: reformat for readability
29246         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29247
29248 2010-10-08  Eric Blake  <eblake@redhat.com>
29249
29250         docs: update cygwin progress
29251         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29252         1.7.7.
29253         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29254         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29255         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29256         * doc/posix-functions/carg.texi (carg): Likewise.
29257         * doc/posix-functions/cargf.texi (cargf): Likewise.
29258         * doc/posix-functions/casin.texi (casin): Likewise.
29259         * doc/posix-functions/casinf.texi (casinf): Likewise.
29260         * doc/posix-functions/casinh.texi (casinh): Likewise.
29261         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29262         * doc/posix-functions/catan.texi (catan): Likewise.
29263         * doc/posix-functions/catanf.texi (catanf): Likewise.
29264         * doc/posix-functions/catanh.texi (catanh): Likewise.
29265         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29266         * doc/posix-functions/ccos.texi (ccos): Likewise.
29267         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29268         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29269         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29270         * doc/posix-functions/cexp.texi (cexp): Likewise.
29271         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29272         * doc/posix-functions/cimag.texi (cimag): Likewise.
29273         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29274         * doc/posix-functions/clog.texi (clog): Likewise.
29275         * doc/posix-functions/clogf.texi (clogf): Likewise.
29276         * doc/posix-functions/conj.texi (conj): Likewise.
29277         * doc/posix-functions/conjf.texi (conjf): Likewise.
29278         * doc/posix-functions/cpow.texi (cpow): Likewise.
29279         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29280         * doc/posix-functions/cproj.texi (cproj): Likewise.
29281         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29282         * doc/posix-functions/creal.texi (creal): Likewise.
29283         * doc/posix-functions/crealf.texi (crealf): Likewise.
29284         * doc/posix-functions/csin.texi (csin): Likewise.
29285         * doc/posix-functions/csinf.texi (csinf): Likewise.
29286         * doc/posix-functions/csinh.texi (csinh): Likewise.
29287         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29288         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29289         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29290         * doc/posix-functions/ctan.texi (ctan): Likewise.
29291         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29292         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29293         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29294         * doc/posix-headers/complex.texi (complex.h): Likewise.
29295
29296 2010-10-07  Jim Meyering  <meyering@redhat.com>
29297
29298         parse-datetime: avoid compilation failure on OpenBSD 4.7
29299         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29300         This works around a compilation failure on OpenBSD 4.7:
29301         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29302
29303 2010-10-07  Eric Blake  <eblake@redhat.com>
29304
29305         docs: update cygwin progress
29306         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29307         1.7.6.
29308         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29309         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29310         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29311         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29312         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29313         Likewise.
29314         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29315         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29316         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29317         Likewise.
29318         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29319         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29320         Likewise.
29321         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29322         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29323         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29324         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29325         Likewise.
29326         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29327         Likewise.
29328         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29329
29330         docs: update parse-datetime history
29331         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29332         documentation of this function's history and alternatives.
29333
29334         cygwin: use more robust version check
29335         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29336         exclude an eventual cygwin 1.9.1.
29337         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29339         (gl_FUNC_STRCASESTR): Likewise.
29340         Reported by Bruno Haible.
29341
29342 2010-10-06  Bruno Haible  <bruno@clisp.org>
29343
29344         string, sys_select: Avoid #including large headers unless necessary.
29345         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29346         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29347         OSF/1, BeOS, Haiku.
29348         Reported by Jim Meyering.
29349
29350 2010-10-05  Eric Blake  <eblake@redhat.com>
29351
29352         memmem, strstr, strcasestr: fix bug with long periodic needle
29353         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29354         periodic needle having false positive.
29355         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29356         and cygwin 1.7.7.
29357         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29359         (gl_FUNC_STRCASESTR): Likewise.
29360         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29361         * tests/test-memmem.c (main): Expose the bug.
29362         * tests/test-strcasestr.c (main): Likewise.
29363         * tests/test-strstr.c (main): Likewise.
29364         * tests/test-c-strcasestr.c (main): Likewise.
29365         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29366         * doc/posix-functions/strstr.texi (strstr): Likewise.
29367         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29368         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29369
29370 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29371
29372         parse-datetime: do some more renaming
29373         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29374         parse_datetime, not get_date.  Mention the renaming.
29375         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29376         in comments.
29377         * m4/bison.m4: Likewise.
29378
29379 2010-10-05  Eric Blake  <eblake@redhat.com>
29380
29381         parse-datetime: better name than get_date
29382         * NEWS: Reword the deprecation notice.
29383         * modules/get_date: Rename to modules/parse-datetime.
29384         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29385         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29386         * lib/get_date.y: Rename to lib/parse-datetime.y.
29387         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29388         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29389         * doc/getdate.texi: Provide fallback wrapper.
29390         * lib/getdate.h: Move guts, and wrap...
29391         * lib/parse-datetime.h: ...new file.
29392         * lib/parse-datetime.y (get_date): Rename...
29393         (parse_datetime): ...to this.
29394         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29395         (gl_PARSE_DATETIME): ...to this.
29396         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29397         documentation.
29398         * modules/getdate (Files): Provide fallback docs and header.
29399         (Notice, Depends-on): Update references.
29400         * tests/test-parse-datetime.c: Likewise.
29401         * DEPENDENCIES: Likewise.
29402         * MODULES.html.sh (Date and time <time.h>): Likewise.
29403         * doc/parse-datetime.texi (Date input formats)
29404         (Authors of parse_datetime): Likewise.
29405         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29406         (Include): Likewise.
29407         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29408         * gnulib-tool: Likewise.
29409         * m4/bison.m4 (gl_BISON): Likewise.
29410         Suggested by Bruno Haible.
29411
29412 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29413
29414         more ports to Solaris tr, which needs [] around ranges
29415         * gnulib-tool: Solaris tr needs [] around ranges.
29416         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29417         * tests/test-pipe-filter-gi1.c (main): Likewise.
29418         * tests/test-pipe-filter-ii1.c (main): Likewise.
29419
29420 2010-10-05  Eric Blake  <eblake@redhat.com>
29421
29422         bootstrap: fix Solaris regression
29423         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29424         around ranges.
29425         Reported by Pádraig Brady.
29426
29427         bootstrap: work with pkg-config
29428         * build-aux/bootstrap (check_versions): Also transliterate - in
29429         prerequisite name.
29430         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29431         prerequisites that were already found, to avoid confusion.
29432         Reported by Justin Clift.
29433
29434         faccessat: remove unused wrappers
29435         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29436         presence of these wrappers dragged in -lgen on Solaris.
29437         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29438
29439 2010-10-05  Jim Meyering  <meyering@redhat.com>
29440
29441         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29442         * Makefile (sc_pragma_columns): New syntax-check rule.
29443
29444 2010-10-04  Bruno Haible  <bruno@clisp.org>
29445
29446         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29447         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29448         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29449         Reported by Bruce Korb and Eric Blake.
29450
29451 2010-10-04  Bruno Haible  <bruno@clisp.org>
29452
29453         threadlib: Make option --with-libpth-prefix work.
29454         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29455         use $LIBPTH, not just -lpth.
29456
29457 2010-10-04  Bruno Haible  <bruno@clisp.org>
29458
29459         Avoid line length limitation from HP NonStop system header files.
29460         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29461         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29462         * lib/ctype.in.h: Likewise.
29463         * lib/dirent.in.h: Likewise.
29464         * lib/errno.in.h: Likewise.
29465         * lib/fcntl.in.h: Likewise.
29466         * lib/float.in.h: Likewise.
29467         * lib/getopt.in.h: Likewise.
29468         * lib/iconv.in.h: Likewise.
29469         * lib/inttypes.in.h: Likewise.
29470         * lib/langinfo.in.h: Likewise.
29471         * lib/locale.in.h: Likewise.
29472         * lib/math.in.h: Likewise.
29473         * lib/netdb.in.h: Likewise.
29474         * lib/netinet_in.in.h: Likewise.
29475         * lib/poll.in.h: Likewise.
29476         * lib/pthread.in.h: Likewise.
29477         * lib/pty.in.h: Likewise.
29478         * lib/sched.in.h: Likewise.
29479         * lib/se-selinux.in.h: Likewise.
29480         * lib/search.in.h: Likewise.
29481         * lib/signal.in.h: Likewise.
29482         * lib/spawn.in.h: Likewise.
29483         * lib/stdarg.in.h: Likewise.
29484         * lib/stddef.in.h: Likewise.
29485         * lib/stdint.in.h: Likewise.
29486         * lib/stdio.in.h: Likewise.
29487         * lib/stdlib.in.h: Likewise.
29488         * lib/string.in.h: Likewise.
29489         * lib/strings.in.h: Likewise.
29490         * lib/sys_file.in.h: Likewise.
29491         * lib/sys_ioctl.in.h: Likewise.
29492         * lib/sys_select.in.h: Likewise.
29493         * lib/sys_socket.in.h: Likewise.
29494         * lib/sys_stat.in.h: Likewise.
29495         * lib/sys_time.in.h: Likewise.
29496         * lib/sys_times.in.h: Likewise.
29497         * lib/sys_utsname.in.h: Likewise.
29498         * lib/sys_wait.in.h: Likewise.
29499         * lib/sysexits.in.h: Likewise.
29500         * lib/termios.in.h: Likewise.
29501         * lib/time.in.h: Likewise.
29502         * lib/unistd.in.h: Likewise.
29503         * lib/wchar.in.h: Likewise.
29504         * lib/wctype.in.h: Likewise.
29505         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29506         * modules/ctype (Makefile.am): Likewise.
29507         * modules/dirent (Makefile.am): Likewise.
29508         * modules/errno (Makefile.am): Likewise.
29509         * modules/fcntl-h (Makefile.am): Likewise.
29510         * modules/float (Makefile.am): Likewise.
29511         * modules/getopt-posix (Makefile.am): Likewise.
29512         * modules/iconv-h (Makefile.am): Likewise.
29513         * modules/inttypes (Makefile.am): Likewise.
29514         * modules/langinfo (Makefile.am): Likewise.
29515         * modules/locale (Makefile.am): Likewise.
29516         * modules/math (Makefile.am): Likewise.
29517         * modules/netdb (Makefile.am): Likewise.
29518         * modules/netinet_in (Makefile.am): Likewise.
29519         * modules/poll-h (Makefile.am): Likewise.
29520         * modules/pthread (Makefile.am): Likewise.
29521         * modules/pty (Makefile.am): Likewise.
29522         * modules/sched (Makefile.am): Likewise.
29523         * modules/search (Makefile.am): Likewise.
29524         * modules/selinux-h (Makefile.am): Likewise.
29525         * modules/signal (Makefile.am): Likewise.
29526         * modules/spawn (Makefile.am): Likewise.
29527         * modules/stdarg (Makefile.am): Likewise.
29528         * modules/stddef (Makefile.am): Likewise.
29529         * modules/stdint (Makefile.am): Likewise.
29530         * modules/stdio (Makefile.am): Likewise.
29531         * modules/stdlib (Makefile.am): Likewise.
29532         * modules/string (Makefile.am): Likewise.
29533         * modules/strings (Makefile.am): Likewise.
29534         * modules/sys_file (Makefile.am): Likewise.
29535         * modules/sys_ioctl (Makefile.am): Likewise.
29536         * modules/sys_select (Makefile.am): Likewise.
29537         * modules/sys_socket (Makefile.am): Likewise.
29538         * modules/sys_stat (Makefile.am): Likewise.
29539         * modules/sys_time (Makefile.am): Likewise.
29540         * modules/sys_times (Makefile.am): Likewise.
29541         * modules/sys_utsname (Makefile.am): Likewise.
29542         * modules/sys_wait (Makefile.am): Likewise.
29543         * modules/sysexits (Makefile.am): Likewise.
29544         * modules/termios (Makefile.am): Likewise.
29545         * modules/time (Makefile.am): Likewise.
29546         * modules/unistd (Makefile.am): Likewise.
29547         * modules/wchar (Makefile.am): Likewise.
29548         * modules/wctype (Makefile.am): Likewise.
29549
29550 2010-10-04  Bruno Haible  <bruno@clisp.org>
29551
29552         read-file tests: Avoid a test failure on NonStop Kernel.
29553         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29554         a regular file.
29555         Reported by Joachim Schmitz <schmitz@hp.com>.
29556
29557 2010-10-03  Bruno Haible  <bruno@clisp.org>
29558
29559         gnulib-tool: Fixes for --create-testdir with --libtool.
29560         * gnulib-tool (func_get_automake_snippet): Don't augment
29561         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29562         an executable.
29563         (func_create_testdir): Handle module 'alloca' like func_import.
29564         Reported by Bruce Korb <bruce.korb@gmail.com>.
29565
29566 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29567
29568         Avoid some lines longer than 80 characters.
29569         * lib/stdint.in.h: Break long comment lines.
29570         * lib/math.in.h: Likewise.
29571         (_GL_NUM_UINT_WORDS): New macro, for readability.
29572         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29573         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29574         * lib/stdlib.in.h: Likewise.
29575         * lib/spawn.in.h: Likewise.
29576         * lib/sys_socket.in.h: Update an URL.
29577         * lib/sys_stat.in.h: Break long line.
29578
29579 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29580
29581         Improve pmccabe2html.
29582         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29583         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29584         when the sources change. Remove the line in the HTML about "Used
29585         ranges" (which implied that there might be other unused ranges),
29586         rename "Resume" to "Summary" (easier to understand for more users).
29587         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29588         styles, and some unnecessary blank lines.
29589
29590 2010-10-03  Bruno Haible  <bruno@clisp.org>
29591             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29592
29593         acl: Add support for ACLs on NonStop Kernel.
29594         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29595         Check whether the function aclsort() exists.
29596         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29597         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29598         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29599         (acl_nontrivial [HAVE_ACLSORT]: New function.
29600         (file_has_acl): Implement for NonStop Kernel.
29601         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29602         (qset_acl): Implement for NonStop Kernel.
29603         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29604         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29605         (main): Implement for NonStop Kernel.
29606         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29607         Kernel. Handle this flavor.
29608         * tests/test-set-mode-acl.sh: Likewise.
29609         * tests/test-copy-acl.sh: Likewise.
29610         * tests/test-copy-file.sh: Likewise.
29611
29612 2010-10-03  Bruno Haible  <bruno@clisp.org>
29613
29614         Info about ACLs on NonStop Kernel.
29615         * doc/acl-resources.txt: Add info about NonStop Kernel.
29616         References by Joachim Schmitz <schmitz@hp.com>.
29617
29618 2010-10-02  Bruno Haible  <bruno@clisp.org>
29619
29620         Define missing EDQUOT on NonStop Kernel.
29621         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29622         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29623         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29624         missing.
29625         * doc/posix-headers/errno.texi: Mention the NSK bug.
29626         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29627         Reported by Joachim Schmitz <schmitz@hp.com>.
29628
29629 2010-10-02  Bruno Haible  <bruno@clisp.org>
29630
29631         Update doc for POSIX:2008.
29632         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29633         Update URL of POSIX specification.
29634
29635 2010-10-02  Bruno Haible  <bruno@clisp.org>
29636
29637         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29638         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29639         from gnulib, not from Automake.
29640
29641 2010-10-02  Bruno Haible  <bruno@clisp.org>
29642
29643         New module 'system-posix'.
29644         * modules/system-posix: New file.
29645         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29646         module is present.
29647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29648         GNULIB_SYSTEM_POSIX.
29649         * modules/stdlib (Depends-on): Remove sys_wait.
29650         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29651         * doc/posix-functions/system.texi: Mention the new module.
29652         * doc/posix-headers/stdlib.texi: Likewise.
29653         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29654         define test_sys_wait_macros to a no-op.
29655         Reported by Sam Steingold <sds@gnu.org>.
29656
29657 2010-09-30  Bruno Haible  <bruno@clisp.org>
29658
29659         More renaming from 'getdate' to 'get_date'.
29660         * doc/get_date.texi: Renamed from doc/getdate.texi.
29661         * modules/get_date (Files): Update.
29662         * MODULES.html.sh (Date and time <time.h>): Update.
29663         * DEPENDENCIES: Update.
29664         * gnulib-tool: Update comment.
29665         * m4/bison.m4 (gl_BISON): Likewise.
29666         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29667
29668 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29669
29670         bootstrap: support ACLOCAL_FLAGS during aclocal
29671         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29672         can add additional -I dir for third-party .m4 files.
29673
29674 2010-09-30  Eric Blake  <eblake@redhat.com>
29675
29676         bootstrap: use glibtoolize on MacOS
29677         * build-aux/bootstrap (check_versions): Convert libtool into
29678         libtoolize.
29679         (tool search): Move libtool check earlier, and look for
29680         glibtoolize for MacOS.
29681         (gnulib_tool_options): Auto-add --libtool when appropriate.
29682         Reported by Justin Clift.
29683
29684         poll: fix typo that broke test on MacOS
29685         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29686         Reported by Justin Clift.
29687
29688         getdate: rename to get_date
29689         Note: getdate.h is not renamed, to minimize client impact.
29690         * modules/getdate: Mark obsolete.  Move old contents...
29691         * modules/get_date: ...to new module name.
29692         * modules/getdate-tests: Move...
29693         * modules/get_date-tests: ...here.
29694         * m4/getdate.m4: Move...
29695         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29696         * lib/getdate.y: Move...
29697         * lib/get_date.y: ...here.
29698         * tests/test-getdate.c: Move...
29699         * tests/test-get_date.c: ...here.
29700         * doc/posix-functions/getdate.texi (getdate): Update name.
29701         * NEWS: Mention the change.
29702
29703 2010-09-29  Bruno Haible  <bruno@clisp.org>
29704
29705         Separate the module 'waitpid' from the module 'sys_wait'.
29706         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29707         present.
29708         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29709         gl_MODULE_INDICATOR_FOR_TESTS.
29710         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29711         * modules/sys_wait (Depends-on): Remove waitpid.
29712         (Makefile.am): Substitute GNULIB_WAITPID.
29713         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29714         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29715         signature only if the 'waitpid' module is present.
29716         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29717         * NEWS: Mention the change.
29718         * modules/grantpt (Depends-on): Add waitpid.
29719         * modules/wait-process (Depends-on): Likewise.
29720
29721 2010-09-29  Bruno Haible  <bruno@clisp.org>
29722
29723         More tests for module 'sys_wait'.
29724         * modules/sys_wait-c++-tests: New file.
29725         * tests/test-sys_wait-c++.cc: New file.
29726         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29727         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29728
29729 2010-09-29  Bruno Haible  <bruno@clisp.org>
29730
29731         New module 'waitpid'.
29732         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29733         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29734         Don't include <process.h>.
29735         (waitpid): Declare only, using modern idiom.
29736         * m4/waitpid.m4: New file.
29737         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29738         * modules/waitpid: New file.
29739         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29740         (Makefile.am): Update.
29741         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29742
29743 2010-09-28  Bruno Haible  <bruno@clisp.org>
29744
29745         poll: Assume ANSI C.
29746         * lib/poll.c (poll): Use an ANSI C declaration.
29747
29748 2010-09-28  Bruno Haible  <bruno@clisp.org>
29749
29750         poll-h: Create poll.h on all platforms.
29751         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29752         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29753         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29754         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29755         (gl_REPLACE_POLL_H): Don't set POLL_H.
29756         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29757         * modules/poll-h (Depends-on): Add include_next.
29758         (Makefile.am): Create poll.h unconditionally. Substitute also
29759         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29760
29761 2010-09-28  Bruno Haible  <bruno@clisp.org>
29762
29763         Tests for module 'poll-h'.
29764         * modules/poll-h-c++-tests: New file.
29765         * tests/test-poll-h-c++.cc: New file.
29766
29767         Tests for module 'poll-h'.
29768         * modules/poll-h-tests: New file.
29769         * tests/test-poll-h.c: New file.
29770
29771 2010-09-28  Bruno Haible  <bruno@clisp.org>
29772
29773         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29774         * modules/poll-h (Depends-on): Add 'extensions'.
29775
29776 2010-09-28  Bruno Haible  <bruno@clisp.org>
29777
29778         New module 'poll-h'.
29779         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29780         (poll): Use modern idiom.
29781         * modules/poll-h: New file.
29782         * modules/poll (Files): Remove lib/poll.in.h.
29783         (Depends-on): Add poll-h.
29784         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29785         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29786         * m4/poll_h.m4: New file.
29787         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29788         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29789         and invoke gl_REPLACE_POLL_H.
29790         * lib/poll.c: Use common idiom.
29791         * tests/test-poll.c: Likewise.
29792         * doc/posix-headers/poll.texi: Mention the poll-h module.
29793         Suggested by Eric Blake.
29794
29795 2010-09-26  Bruno Haible  <bruno@clisp.org>
29796
29797         sys_wait: Implement WSTOPSIG.
29798         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29799         Reported by Simon Josefsson.
29800
29801 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29802
29803         stdlib, sys_wait: Avoid compilation error on mingw.
29804         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29805
29806 2010-09-26  Bruno Haible  <bruno@clisp.org>
29807
29808         stdlib tests: Avoid code duplication.
29809         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29810         * modules/sys_wait-tests (Files): Likewise.
29811         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29812         * tests/test-stdlib.c: Include test-sys_wait.h.
29813         (main): Invoke test_sys_wait_macros.
29814         * tests/test-sys_wait.c: Include test-sys_wait.h.
29815         (main): Invoke test_sys_wait_macros.
29816
29817 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29818
29819         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29820         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29821         sure Windows sockets are working before calling getaddrinfo.
29822         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29823         * doc/gnulib.texi (Windows sockets): Fix typo.
29824
29825 2010-09-25  Bruno Haible  <bruno@clisp.org>
29826
29827         Tests for module 'regex-quote'.
29828         * modules/regex-quote-tests: New file.
29829         * tests/test-regex-quote.c: New file.
29830
29831         New module 'regex-quote'.
29832         * lib/regex-quote.h: New file.
29833         * lib/regex-quote.c: New file.
29834         * modules/regex-quote: New file.
29835         Suggested by Reuben Thomas <rrt@sc3d.org>.
29836
29837 2010-09-24  Bruno Haible  <bruno@clisp.org>
29838
29839         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29840         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29841
29842 2010-09-23  Bruno Haible  <bruno@clisp.org>
29843
29844         setenv: Relax license.
29845         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29846         Blake.
29847         Requested by Eric Blake.
29848
29849 2010-09-22  Bruno Haible  <bruno@clisp.org>
29850
29851         termios: Relax license.
29852         * modules/termios (License): Change to LGPLv2+.
29853         Requested by Eric Blake.
29854
29855 2010-09-22  Bruno Haible  <bruno@clisp.org>
29856
29857         threadlib: Allow the package to change the default to 'no'.
29858         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29859         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29860         Reported by Paul Eggert.
29861
29862 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29863             Bruno Haible  <bruno@clisp.org>
29864
29865         Fix endless loop in mbmemcasecoll.
29866         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29867         byte.
29868         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29869
29870 2010-09-22  Bruno Haible  <bruno@clisp.org>
29871
29872         Tests for module 'memcoll'.
29873         * modules/memcoll-tests: New file.
29874         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29875
29876         memcoll, xmemcoll: Clarify size vs. length.
29877         * modules/memcoll.c (memcoll0): Clarify specification.
29878         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29879         passed to collate_error.
29880
29881 2010-09-22  Bruno Haible  <bruno@clisp.org>
29882
29883         Tests for module 'memcasecmp'.
29884         * modules/memcasecmp-tests: New file.
29885         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29886
29887 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29888
29889         * lib/pthread.in.h: Add split double-inclusion guard, and include
29890         system <pthread.h> if there is one.  Use @@-style as in other
29891         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29892         pthread.h doesn't.
29893         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29894         (pthread_mutexattr_settype, pthread_mutex_trylock):
29895         New static inline functions, if there's no system <pthread.h>.
29896         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29897         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29898         Approximate with mutexes if the system lacks spinlocks, as in
29899         MacOS.
29900         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29901         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29902         @@-style.  Check for spinlocks separately.
29903         (gl_PTHREAD_DEFAULTS): New macro.
29904         * modules/pthread: Redo to use a more typical style for in.h files.
29905
29906 2010-09-21  Eric Blake  <eblake@redhat.com>
29907
29908         net_if: enhance tests
29909         * tests/test-net_if.c (main): Move signature checks earlier.
29910         Print failures to stderr.
29911         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29912         Document the bug that we do not yet fix.
29913
29914 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29915
29916         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29917         about gnulib, not GSS.
29918
29919 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29920
29921         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29922         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29923         for Emacs.
29924         * build-aux/pmccabe2html: Make Makefile.am example code more
29925         cut-and-paste friendly.
29926
29927 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29928
29929         * tests/test-net_if.c: New file.
29930         * modules/net_if-tests: New file.
29931
29932 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29933
29934         pthread: add pthread_spin_destroy
29935         * lib/pthread.in.h (pthread_spin_destroy): New function.
29936
29937 2010-09-19  Bruno Haible  <bruno@clisp.org>
29938
29939         gnulib-tool: Fix --help output.
29940         * gnulib-tool (func_usage): Fix help message.
29941         Reported by Reuben Thomas <rrt@sc3d.org>.
29942
29943 2010-09-18  Jim Meyering  <meyering@redhat.com>
29944
29945         maint.mk: avoid unexpanded \n in two diagnostics
29946         * top/maint.mk (sc_prohibit_always_true_header_tests):
29947         Don't use a literal \n in a halt=... assignment.  It would not be
29948         expanded, and the two \n bytes would appear in the diagnostic output
29949         rather than the desired newline.  Use halt=$$(printf ... instead.
29950         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29951
29952 2010-09-18  Bruno Haible  <bruno@clisp.org>
29953
29954         netinet_in: Doc tweak.
29955         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29956         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29957
29958 2010-09-18  Jim Meyering  <meyering@redhat.com>
29959
29960         init.sh: correct an outdated comment
29961         * tests/init.sh (create_exe_shims_):  s/function/alias/
29962
29963         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29964         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29965         a file named "*.exe" is removed between the glob expansion and the
29966         processing of that oddly named file.
29967
29968 2010-09-17  Eric Blake  <eblake@redhat.com>
29969
29970         mirbsd: add some more support
29971         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29972         in BSD family.
29973         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29974         devices as OpenBSD.
29975         * m4/host-os.m4 (mirbsd): Add MirBSD.
29976
29977         tests: fix unportable assumption on sys/wait.h
29978         * tests/test-sys_wait.c (main): Relax test.
29979         * tests/test-stdlib.c (main): Likewise.
29980
29981         init.sh: accommodate directory with no .exes
29982         * tests/init.sh: Accomodate directory containing only scripts.
29983
29984         tests: avoid compiler warning
29985         * tests/test-stdlib.c (main): Use the variable.
29986
29987         fdutimens, fdutimensat: update signature, again
29988         * lib/utimens.h (gl_futimens): Delete, and move signature...
29989         (fdutimens): ...here.
29990         (fdutimensat): Rearrange signature.
29991         (lutimensat): Rename variable for clarity.
29992         * lib/fdutimensat.c (fdutimensat): Update signature.
29993         * lib/utimens.c (fdutimens): Likewise.
29994         (gl_futimens): Delete.
29995         (utimens, lutimens): Update callers.
29996         * lib/futimens.c (futimens): Likewise.
29997         * tests/test-fdutimensat.c: Likewise.
29998         * tests/test-utimens.c: Likewise.
29999         * tests/test-futimens.h: Update comment.
30000         * NEWS: Mention this.
30001         Suggested by Paul Eggert.
30002
30003 2010-09-17  Bruno Haible  <bruno@clisp.org>
30004
30005         Take over the maintenance of some older macros from Autoconf.
30006         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30007         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30008         GNU Autoconf.
30009         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30010         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30011
30012 2010-09-17  Eric Blake  <eblake@redhat.com>
30013
30014         fdutimensat: drop atflag validation
30015         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30016         with valid fd, to close a race scenario where futimens is
30017         unsupported and FILE was replaced by a symlink.
30018         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30019         accordingly.
30020         Suggested by Paul Eggert.
30021
30022 2010-09-16  Bruno Haible  <bruno@clisp.org>
30023
30024         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30025         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30026
30027 2010-09-16  Bruno Haible  <bruno@clisp.org>
30028
30029         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30030         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30031         login_tty exists.
30032         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30033
30034 2010-09-16  Bruno Haible  <bruno@clisp.org>
30035
30036         login_tty: Make the replacement code work on BSD systems.
30037         * lib/login_tty.c: Include <sys/ioctl.h>.
30038         (login_tty): Use ioctl TIOCSCTTY when available.
30039         * modules/login_tty (Depends-on): Add sys_ioctl.
30040         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30041
30042 2010-09-16  Bruno Haible  <bruno@clisp.org>
30043
30044         login_tty: Stricter unit test.
30045         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30046         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30047         and tcgetsid() after login_tty.
30048         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30049
30050 2010-09-16  Bruno Haible  <bruno@clisp.org>
30051
30052         New module 'tcgetsid'.
30053         * lib/tcgetsid.c: New file.
30054         * m4/tcgetsid.m4: New file.
30055         * modules/tcgetsid: New file.
30056         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30057         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30058         GNULIB_TCGETSID, HAVE_TCGETSID.
30059         * lib/termios.in.h: Include <sys/types.h>.
30060         (tcgetsid): New declaration.
30061         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30062         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30063         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30064         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30065
30066 2010-09-16  Bruno Haible  <bruno@clisp.org>
30067
30068         Tests for module 'termios'.
30069         * modules/termios-c++-tests: New file.
30070         * modules/termios-tests: New file.
30071         * tests/test-termios-c++.cc: New file.
30072         * tests/test-termios.c: New file.
30073
30074         New module 'termios'.
30075         * modules/termios: New file.
30076         * lib/termios.in.h: New file.
30077         * m4/termios_h.m4: New file.
30078         * doc/posix-headers/termios.texi: Mention the new module.
30079
30080 2010-09-16  Eric Blake  <eblake@redhat.com>
30081
30082         fdutimensat: add an atflag parameter
30083         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30084         * lib/utimens.h (fdutimensat): Update prototype.
30085         * tests/test-fdutimensat.c: Adjust test to match.
30086         * NEWS: Document the change.
30087         Suggested by Paul Eggert.
30088
30089 2010-09-16  Bruno Haible  <bruno@clisp.org>
30090
30091         Fix typos in comments.
30092         * lib/striconveh.h: Fix typo in comment.
30093         * lib/login_tty.c (login_tty): Likewise.
30094
30095 2010-09-15  Bruno Haible  <bruno@clisp.org>
30096
30097         stdlib: clarify MirBSD WEXITSTATUS bug
30098         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30099         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30100
30101 2010-09-15  Eric Blake  <eblake@redhat.com>
30102
30103         stdlib: work around MirBSD WEXITSTATUS bug
30104         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30105         * modules/stdlib (Depends-on): Add sys_wait.
30106         * tests/test-sys_wait.c (main): Enhance test.
30107         * tests/test-stdlib.c (main): Likewise.
30108         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30109
30110         docs: mention MacOS issue with WEXITSTATUS(constant)
30111         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30112         issue.
30113         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30114
30115         strnlen: add tests
30116         * modules/strnlen-tests: New file.
30117         * tests/test-strnlen.c: Likewise.
30118
30119 2010-09-14  Bruno Haible  <bruno@clisp.org>
30120
30121         unistr/base: Avoid link errors when module 'libunistring' is also used.
30122         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30123         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30124         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30125         Declare also when HAVE_LIBUNISTRING is set.
30126         Reported by Pádraig Brady <P@draigbrady.com>.
30127
30128 2010-09-14  Eric Blake  <eblake@redhat.com>
30129
30130         test-rawmemchr: make more robust
30131         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30132         (Depends-on, configure.ac): Add needed prerequisites to use it.
30133         * modules/memchr-tests (Files, Depends-on, configure.ac):
30134         Likewise, to avoid implicit reliance on memchr module prereqs.
30135         * tests/test-memchr.c (main): Ensure proper masking.
30136         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30137         reads.
30138
30139         memchr: detect glibc Alpha bug
30140         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30141         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30142         Alpha.
30143         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30144         * tests/test-memchr.c (main): Enhance test.
30145         Reported by Nelson H. F. Beebe.
30146
30147 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30148
30149         fts, getcwd, glob: audit for dirfd returning -1
30150         * lib/fts.c (opendir): Remove #define; no longer used.
30151         (opendirat): New arg PDIR_FD.  All callers changed.
30152         (fts_build, _opendir2): Use new opendirat to avoid the need for
30153         dirfd, or for checking whether dirfd returns a negative value.
30154         Don't use opendir; always use openat followed by fdopendir.
30155         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30156         it.
30157         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30158         returns -1 here.
30159         * modules/fts (Depends-on): Remove dirfd.
30160         * modules/getcwd (Depends-on): Likewise.
30161
30162 2010-09-13  Eric Blake  <eblake@redhat.com>
30163
30164         float: fix broken MirBSD header
30165         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30166         * doc/posix-headers/float.texi (float.h): Document it.
30167
30168 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30169
30170         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30171         * lib/fts.c (opendirat): New arg extra_flags.
30172         (__opendir2): Use it to avoid following symlinks when opening
30173         a directory, if symlinks are not supposed to be followed.  See
30174         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30175
30176         fdopendir: preserve argument fd before returning
30177         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30178         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30179         (fdopendir): Use them, arranging for FD to be open to the same
30180         directory that it was when it started.  (It might be temporarily
30181         closed while fdopendir is running, so this not thread- or
30182         signal-safe.)  Be careful to do the right thing even when file
30183         descriptors are scarce and dup fails with errno == EMFILE.  See
30184         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30185
30186 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30187
30188         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30189         * NEWS: Document change.
30190         * m4/regex.m4: Disable test for regoff_t size.
30191
30192 2010-09-13  Jim Meyering  <meyering@redhat.com>
30193
30194         fts: don't operate on an invalid file descriptor after failed dup
30195         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30196         negative file descriptor.
30197
30198 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30199
30200         savedir: add streamsavedir, deprecate fdsavedir
30201         * NEWS: Mention deprecation of fdsavedir.
30202         * lib/savedir.c (streamsavedir): New extern function, whose name
30203         ends in "savedir" to be consistent with the others.  This differs
30204         from savedirstream in that it doesn't close its argument.  The
30205         next version of GNU tar will use this instead of fdsavedir, to
30206         avoid some race conditions and conserve file descriptors.
30207         (savedirstream): Reimplement as a wrapper around streamsavedir.
30208         (fdsavedir): Add a comment deprecating this function.  As far as
30209         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30210         * lib/savedir.h (streamsavedir): New decl.
30211         (fdsavedir): Add a comment deprecating this.
30212
30213 2010-09-10  Bruno Haible  <bruno@clisp.org>
30214
30215         langinfo: Fix last commit.
30216         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30217         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30219
30220 2010-09-10  Bruno Haible  <bruno@clisp.org>
30221
30222         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30223         * lib/progreloc.c (O_EXEC): Define fallback.
30224
30225 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30226
30227         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30228         * NEWS: Document recent changes to fcntl-h.
30229         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30230         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30231         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30232         Similarly for O_SEARCH; this last was already true, but not documented.
30233         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30234         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30235         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30236         Likewise.
30237         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30238         is zero, not whether it is defined.
30239         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30240         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30241         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30242
30243 2010-09-10  Bruno Haible  <bruno@clisp.org>
30244
30245         langinfo, nl_langinfo: Fix for IRIX 5.3.
30246         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30247         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30248         HAVE_LANGINFO_YESEXPR.
30249         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30250         HAVE_LANGINFO_YESEXPR.
30251         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30252         HAVE_LANGINFO_T_FMT_AMPM is 0.
30253         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30254         HAVE_LANGINFO_YESEXPR is 0.
30255         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30256         NOEXPR.
30257         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30258         * doc/posix-functions/nl_langinfo.texi: Likewise.
30259         Reported by Eric Blake.
30260
30261 2010-09-10  Bruno Haible  <bruno@clisp.org>
30262
30263         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30264         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30265         on FreeBSD 8.0 and OpenBSD 4.6.
30266         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30267         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30268         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30269         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30270         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30271         ac_includes_default.
30272         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30273
30274 2010-09-09  Eric Blake  <eblake@redhat.com>
30275
30276         strsignal: work around NetBSD bug
30277         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30278         * lib/string.in.h (includes): Likewise.
30279         * doc/posix-functions/strsignal.texi (strsignal): Document the
30280         bug.
30281         Reported by Nelson H. F. Beebe.
30282
30283         gnulib-tool: work with NetBSD /bin/sh
30284         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30285         (func_get_description, func_get_comment, func_get_status)
30286         (func_get_notice, func_get_applicability, func_get_filelist)
30287         (func_get_dependencies, func_get_autoconf_early_snippet)
30288         (func_get_autoconf_snippet, func_get_automake_snippet)
30289         (func_get_include_directive, func_get_link_directive)
30290         (func_get_license, func_get_maintainer, func_import): Avoid
30291         shell syntax errors from parsing syntax extensions.
30292
30293 2010-09-09  Bruno Haible  <bruno@clisp.org>
30294
30295         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30296         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30297         a reliable way to determine whether the 'alias' command works.
30298
30299 2010-09-08  Jim Meyering  <meyering@redhat.com>
30300
30301         init.sh: penalize a set-x-impaired shell; don't disqualify it
30302         * tests/init.sh: Too many shells corrupt application stderr when
30303         you set -x, so we can't afford to disqualify them, since at least
30304         on Irix-6.5, that would disqualify all bourne shells.
30305         Instead, use a two-pass approach.
30306         On the first pass, try to find a shell that meets the stricter
30307         condition that set -x does not corrupt stderr.
30308         If no shell meets the stricter condition, retest each candidate
30309         shell, but without that extra condition.  Finally, when
30310         VERBOSE=yes is requested and set -x might cause trouble, simply
30311         issue a warning and refrain from enabling debug output.
30312
30313 2010-09-08  Eric Blake  <eblake@redhat.com>
30314
30315         unsetenv: fix OpenBSD bug
30316         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30317         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30318         documentation.
30319         Reported by Jim Meyering.
30320
30321         strtod: work around IRIX 6.5 bug
30322         * lib/strtod.c (strtod): Reparse number on shorter string if
30323         exponent parse was invalid.
30324         * tests/test-strtod.c (main): Add check for "0x1p 2".
30325         Reported by Tom G. Christensen.
30326
30327         getopt: optimize previous patch
30328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30329         empty variable.  Speed up awk script.
30330         Reported by Paolo Bonzini.
30331
30332 2010-09-08  Jim Meyering  <meyering@redhat.com>
30333
30334         test.sh: disqualify shells for which set -x corrupts stderr
30335         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30336         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30337         appear in stderr output.  For example, this command:
30338             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30339         prints "P=1" on those two systems:
30340
30341 2010-09-08  Bruno Haible  <bruno@clisp.org>
30342
30343         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30344         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30345         commands, because some shells ignore redirections when there is an
30346         error in the command lookup.
30347         Reported by Eric Blake.
30348
30349 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30350
30351         * lib/regex.h: Fix a mention of `regex_compile' (should be
30352         `re_compile_pattern').
30353         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30354         (re_set_registers): Correct name of parameter in comment.
30355
30356         * doc/regex.texi: Add documentation for missing syntax flags.
30357         Remove commented-out documentation of defunct syntax option
30358         RE_NO_EMPTY_ALTS.
30359         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30360         Add documentation of re_set_registers.
30361         Document trick to re-use a pattern buffer by setting fastmap manually.
30362         Update documentation of struct re_pattern_buffer per public members.
30363         Uncomment documentation of equivalence class operators and
30364         collating symbol operators, since they are now implemented,
30365         Explain leftmost-longest matching in relation to alternatives.
30366         Tidy documentation of substring matching.
30367         Remove POSIX documentation, which is done better in
30368         glibc, and refer the reader there. Keep BSD API documentation, as
30369         that is not readily available elsewhere.
30370
30371 2010-09-07  Eric Blake  <eblake@redhat.com>
30372
30373         getopt: handle POSIXLY_CORRECT set but not exported
30374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30375         export state of POSIXLY_CORRECT, due to bash set -o posix.
30376         Reported by Dustin J. Mitchell.
30377
30378 2010-09-05  Bruno Haible  <bruno@clisp.org>
30379
30380         gnulib-tool: Highlight the changed options.
30381         * gnulib-tool (func_usage): Display the --import, --add-import,
30382         --remove-import explanations in bold font.
30383
30384 2010-09-06  Karl Berry  <karl@gnu.org>
30385
30386         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30387
30388 2010-09-05  Bruno Haible  <bruno@clisp.org>
30389
30390         uniwidth/width: Update comment.
30391         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30392         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30393
30394 2010-09-05  Bruno Haible  <bruno@clisp.org>
30395
30396         isinf, isnan: Relax license.
30397         * modules/isinf (License): Change from GPL to LGPL, with consent from
30398         Ben Pfaff.
30399         * modules/isnan (License): Likewise.
30400         Requested by Ludovic Courtès.
30401
30402 2010-09-04  Bruno Haible  <bruno@clisp.org>
30403
30404         gnulib-tool: Help migration from --import to --add-import or --update.
30405         * gnulib-tool: Emit a verbose error message when --import is used
30406         without any module name.
30407
30408 2010-09-04  Bruno Haible  <bruno@clisp.org>
30409
30410         Update doc about gnulib-tool.
30411         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30412         'gnulib-tool --update' in more detail.
30413         Reported by Eric Blake.
30414
30415 2010-09-04  Bruno Haible  <bruno@clisp.org>
30416
30417         gnulib-tool: Change --import. New options --add/remove-import.
30418         * gnulib-tool: New options --add-import, --remove-import.
30419         (func_usage): Document them.
30420         (have_associative): Define always.
30421         (func_import): In import mode, don't merge the specified settings with
30422         the cached settings. Implement remove-import mode.
30423         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30424         Explain when to use them versus --import.
30425         (Simple update): Use --add-import instead of --import.
30426         * NEWS: Mention the change.
30427
30428 2010-09-04  Bruno Haible  <bruno@clisp.org>
30429
30430         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30431         separate gnulib.mk.
30432
30433 2010-09-04  Bruno Haible  <bruno@clisp.org>
30434
30435         gnulib-tool: Don't talk about CVS any more.
30436         * gnulib-tool (func_usage, func_import): Write "version control"
30437         instead of CVS.
30438
30439 2010-09-04  Jim Meyering  <meyering@redhat.com>
30440
30441         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30442         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30443         false positives (whose names may be ill-chosen) when searching
30444         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30445         would cause a false-positive.
30446
30447         avoid coreutils "make distcheck" failure
30448         Coreutils tests with an absolute build directory name that contains
30449         a space.  Not quoting this directory name caused a failure.
30450         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30451         * tests/test-vc-list-files-cvs.sh: Likewise.
30452
30453 2010-09-04  Bruno Haible  <bruno@clisp.org>
30454
30455         gnulib-tool: Avoid error when run in a package without Makefile.am.
30456         * gnulib-tool: When collecting the m4dirs in a package that does not
30457         have a Makefile.am, eliminate those directories that contain no
30458         gnulib-cache.m4. Fix expression that counts these directories.
30459
30460 2010-09-04  Bruno Haible  <bruno@clisp.org>
30461
30462         update-copyright test: Improve output when perl is missing or too old.
30463         * tests/test-update-copyright.sh: Move test of Perl version down after
30464         the test whether Perl exists. Provide an explanation relating Perl's
30465         error message to Automake's SKIP: message.
30466
30467 2010-09-04  Bruno Haible  <bruno@clisp.org>
30468
30469         Don't augment PATH in TESTS_ENVIRONMENT.
30470         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30471         set abs_aux_dir instead of augmenting PATH.
30472         * modules/vc-list-files-tests (Makefile.am): Likewise.
30473         * tests/test-update-copyright.sh: Augment PATH here.
30474         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30475         path_prepend_.
30476         * tests/test-vc-list-files-git.sh: Likewise.
30477
30478 2010-09-04  Jim Meyering  <meyering@redhat.com>
30479
30480         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30481         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30482
30483 2010-09-04  Bruno Haible  <bruno@clisp.org>
30484
30485         strdup: Fix compilation error in C++ mode.
30486         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30487         the macro.
30488
30489 2010-09-04  Bruno Haible  <bruno@clisp.org>
30490
30491         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30492         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30493         macro into a function.
30494         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30495
30496 2010-09-04  Bruno Haible  <bruno@clisp.org>
30497
30498         Set PATH_SEPARATOR the same way autoconf does.
30499         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30500         the value of PATH_SEPARATOR the same way autoconf-generated configure
30501         scripts do.
30502         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30503         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30504
30505 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30506
30507         Set PATH_SEPARATOR the same way autoconf does.
30508         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30509         the same way autoconf-generated configure scripts do.
30510         * posix-modules: Likewise.
30511
30512 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30513
30514         hash: fix safe_hasher const typo
30515         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30516         const; otherwise, there is a type error later.
30517
30518 2010-09-02  Jim Meyering  <meyering@redhat.com>
30519
30520         test-update-copyright.sh: require perl 5.8.0
30521         * tests/test-update-copyright.sh: Require 5.8.0,
30522         which Tom G. Christensen has confirmed is adequate,
30523         while 5.6.1 is not.
30524
30525 2010-09-02  Eric Blake  <eblake@redhat.com>
30526
30527         tests: init.sh improvements for re-exec'ing with zsh
30528         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30529         -vx through shell re-exec.
30530         Reported by Tom G. Christensen.
30531
30532         wctype: fix typo in previous commit
30533         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30534         Reported by Ludovic Courtès.
30535
30536 2010-09-02  Jim Meyering  <meyering@redhat.com>
30537
30538         test-update-copyright.sh: skip test if Perl is too old
30539         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30540         Reported by Tom G. Christensen.
30541
30542 2010-09-02  Bruno Haible  <bruno@clisp.org>
30543
30544         wctype: Avoid compilation error on IRIX 6.5.30.
30545         * lib/wctype.in.h (iswblank): Declare with a replacement if
30546         REPLACE_ISWBLANK is set.
30547         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30548         declared. Set REPLACE_ISWBLANK.
30549         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30550         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30551         * doc/posix-headers/wctype.texi: Likewise.
30552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30553
30554 2010-09-01  Bruno Haible  <bruno@clisp.org>
30555
30556         New module 'socketlib'.
30557         * modules/socketlib: New file.
30558         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30559         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30560         * modules/sockets (Depends-on): Add socketlib.
30561         Suggested by Sam Steingold <sds@gnu.org>.
30562
30563 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30564
30565         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30566
30567         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30568         when one needs search access to a directory but not read access.
30569         On systems where it is available, it works in some cases where
30570         O_RDONLY does not, namely on directories that are searchable but
30571         not readable, and which need only to be searchable.  If O_SEARCH
30572         is not available, fall back to the traditional method of using
30573         O_RDONLY.
30574
30575         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30576         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30577         when opening a directory that needs only to be searchable.
30578         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30579         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30580         * lib/openat-proc.c (openat_proc_name): Likewise.
30581         * lib/openat.c (openat_needs_fchdir): Likewise.
30582         * lib/save-cwd.c (save_cwd): Likewise.
30583         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30584
30585 2010-08-28  Bruno Haible  <bruno@clisp.org>
30586
30587         New module 'host-cpu-c-abi'.
30588         * modules/host-cpu-c-abi: New file.
30589         * m4/host-cpu-c-abi.m4: New file, based on part of
30590         clisp/src/m4/general.m4.
30591         Requested by Sam Steingold <sds@gnu.org>.
30592
30593 2010-08-31  Eric Blake  <eblake@redhat.com>
30594         and Jim Meyering  <meyering@redhat.com>
30595
30596         hash: factor, and guard against misbehaving hasher function
30597         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30598         of table->hasher's return value.  Also protect against a hash value
30599         so large that adding it to table->bucket results in a NULL pointer.
30600         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30601         Use it in place of open-coded check-and-abort.
30602
30603 2010-08-30  Bruno Haible  <bruno@clisp.org>
30604
30605         hash: silence spurious clang warning
30606         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30607         Reported by Eric Blake.
30608
30609 2010-08-30  Eric Blake  <eblake@redhat.com>
30610
30611         strstr, memmem, strcasestr: avoid leaked shell message
30612         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30613         FreeBSD.
30614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30615         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30616
30617         tests: silence clang warning
30618         * tests/test-malloca.c (do_allocation): Avoid dead store.
30619
30620 2010-08-29  Bruno Haible  <bruno@clisp.org>
30621
30622         gettext: Fix recent mistake.
30623         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30624
30625 2010-08-29  Bruno Haible  <bruno@clisp.org>
30626
30627         selinux-h: Offer a --without-selinux option.
30628         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30629         --without-selinux was specified, skip all tests and define
30630         HAVE_SELINUX_SELINUX_H to 0.
30631         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30632         set LIB_SELINUX to empty.
30633         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30634         gl_LIBSELINUX. If --without-selinux was specified, replace
30635         selinux/context.h.
30636         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30637
30638 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30639             Bruno Haible  <bruno@clisp.org>
30640
30641         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30642         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30643         of HAVE_REALLOC.
30644         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30645         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30646         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30647         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30648
30649 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30650             Bruno Haible  <bruno@clisp.org>
30651
30652         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30653         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30654         HAVE_CALLOC.
30655         * lib/xmalloc.c: Update accordingly.
30656         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30657         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30658         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30659
30660 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30661             Bruno Haible  <bruno@clisp.org>
30662
30663         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30664         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30665         HAVE_MALLOC.
30666         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30667         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30668         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30669
30670 2010-08-29  Bruno Haible  <bruno@clisp.org>
30671
30672         Update modules list.
30673         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30674         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30675         (String handling <string.h>): Add astrxfrm.
30676         (File system functions): Add readlinkat.
30677
30678 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30679
30680         Tests for module 'realloc-gnu'.
30681         * modules/realloc-gnu-tests: New file.
30682         * tests/test-realloc-gnu.c: New file.
30683
30684         Tests for module 'calloc-gnu'.
30685         * modules/calloc-gnu-tests: New file.
30686         * tests/test-calloc-gnu.c: New file.
30687
30688         Tests for module 'malloc-gnu'.
30689         * modules/malloc-gnu-tests: New file.
30690         * tests/test-malloc-gnu.c: New file.
30691
30692 2010-08-28  Bruno Haible  <bruno@clisp.org>
30693
30694         Rename module 'realloc' -> 'realloc-gnu'.
30695         * modules/realloc-gnu: New file, copied from modules/realloc.
30696         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30697         obsolete.
30698         * modules/mgetgroups (Depends-on): Update.
30699         * doc/posix-functions/realloc.texi: Update.
30700         * NEWS: Mention the change.
30701
30702         Rename module 'calloc' -> 'calloc-gnu'.
30703         * modules/calloc-gnu: New file, copied from modules/calloc.
30704         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30705         obsolete.
30706         * doc/posix-functions/calloc.texi: Update.
30707         * NEWS: Mention the change.
30708
30709         Rename module 'malloc' -> 'malloc-gnu'.
30710         * modules/malloc-gnu: New file, copied from modules/malloc.
30711         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30712         obsolete.
30713         * modules/argp (Depends-on): Update.
30714         * modules/regex (Depends-on): Update.
30715         * doc/posix-functions/malloc.texi: Update.
30716         * NEWS: Mention the change.
30717
30718 2010-08-28  Eric Blake  <eblake@redhat.com>
30719
30720         pread, pwrite: add missing dependency
30721         * modules/pread (Depends-on): Add extensions.
30722         * modules/pwrite (Depends-on): Likewise.
30723
30724 2010-08-28  Bruno Haible  <bruno@clisp.org>
30725
30726         unistr/u*-strchr: Fix tests dependencies.
30727         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30728         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30729         Reported by Ian Beckwith <ianb@erislabs.net>.
30730
30731 2010-08-28  Bruno Haible  <bruno@clisp.org>
30732
30733         read-file: Don't occupy too much unused memory.
30734         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30735
30736 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30737             Eric Blake  <eblake@redhat.com>
30738             Bruno Haible  <bruno@clisp.org>
30739
30740         read-file: Avoid memory reallocations with regular files.
30741         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30742         (fread_file): With regular files, use the remaining length as the
30743         initial buffer size.  Check against overflow.
30744         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30745         sys_stat.
30746
30747 2010-08-28  Bruno Haible  <bruno@clisp.org>
30748
30749         ftello: Relax license.
30750         * modules/ftello (License): Relax to LGPLv2+.
30751         Reported by Eric Blake.
30752
30753 2010-08-28  Bruno Haible  <bruno@clisp.org>
30754
30755         Avoid relocwrapper link errors due to gnulib replacement functions.
30756         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30757         function.
30758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30759
30760 2010-08-28  Bruno Haible  <bruno@clisp.org>
30761
30762         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30763         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30764         defined.
30765         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30766         Suggested by Eric Blake.
30767
30768 2010-08-28  Bruno Haible  <bruno@clisp.org>
30769
30770         sys_socket, netdb: Ensure socklen_t gets defined.
30771         * modules/sys_socket (Depends-on): Add socklen.
30772         * modules/netdb (Depends-on): Likewise.
30773         * modules/getaddrinfo (Depends-on): Remove socklen.
30774         * modules/getsockopt (Depends-on): Likewise.
30775         * modules/setsockopt (Depends-on): Likewise.
30776         * tests/test-sys_socket.c: Check that socklen_t is defined.
30777         * tests/test-netdb.c: Likewise.
30778         * m4/socklen.m4: Update comments.
30779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30780
30781 2010-08-27  Eric Blake  <eblake@redhat.com>
30782
30783         login_tty: add missing dependency
30784         * modules/login_tty (Depends-on): Add pty.
30785
30786 2010-08-26  Eric Blake  <eblake@redhat.com>
30787
30788         lib-symbol-versions: fix m4 quoting
30789         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30790         format for AC_LINK_IFELSE.
30791
30792         glob: fix compile test
30793         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30794
30795         btowc: fix missing file
30796         * modules/btowc (Files): Also ship locale-fr.m4.
30797
30798         lseek: fix link test
30799         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30800         AC_LINK_IFELSE.
30801
30802         include_next: silence autoconf 2.68 warning
30803         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30804         AC_COMPILE_IFELSE as special.
30805         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30806         autoconf < 2.68.
30807
30808         acl: fix compilation test
30809         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30810         AC_COMPILE_IFELSE.
30811
30812 2010-08-26  Bruno Haible  <bruno@clisp.org>
30813
30814         Modernize AC_TRY_RUN invocations.
30815         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30816         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30817         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30818         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30819         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30820         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30821         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30823         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30824         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30825         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30826         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30827         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30828         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30830         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30831         gl_MBRLEN_NUL_RETVAL): Likewise.
30832         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30833         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30834         Likewise.
30835         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30836         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30837         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30838         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30839         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30840         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30841         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30842         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30843         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30844         Likewise.
30845         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30846         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30847         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30848         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30849         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30850         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30851         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30852         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30853         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30855
30856 2010-08-26  Bruno Haible  <bruno@clisp.org>
30857
30858         Modernize AC_TRY_LINK invocations.
30859         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30860         AC_TRY_LINK.
30861         * m4/argp.m4 (gl_ARGP): Likewise.
30862         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30863         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30864         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30865         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30866         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30867         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30868         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30869         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30870         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30871         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30872         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30873         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30874         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30875         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30876         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30877         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30878         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30879         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30880         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30881         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30882         Likewise.
30883         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30884         Likewise.
30885         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30886         Likewise.
30887         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30888         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30889         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30890         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30891         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30892         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30893         * m4/servent.m4 (gl_SERVENT): Likewise.
30894         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30895         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30896         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30897         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30898         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30899         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30900         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30901         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30902         * modules/tsearch-tests (configure.ac): Likewise.
30903
30904 2010-08-26  Bruno Haible  <bruno@clisp.org>
30905
30906         Modernize AC_TRY_COMPILE invocations.
30907         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30908         AC_TRY_COMPILE.
30909         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30910         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30911         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30912         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30913         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30914         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30915         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30916         * m4/lock.m4 (gl_LOCK): Likewise.
30917         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30918         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30919         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30920         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30921         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30922         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30923         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30924         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30925         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30926         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30927         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30928         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30929         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30930         extraneous semicolon.
30931
30932 2010-08-26  Jim Meyering  <meyering@redhat.com>
30933
30934         stat-time: relax license LGPL
30935         * modules/stat-time (License): Change from GPL to LGPL,
30936         with consent from all contributors, for use in libguile.
30937         Requested by Ludovic Courtès.
30938
30939 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30940
30941         poll: return immediately on POLLHUP.
30942         * lib/poll.c (poll): Always set timeout before wait_timeout is
30943         computed.
30944
30945 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30946
30947         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30948         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30949         rmdir ("dir/.//"), unlinkat.
30950
30951 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30952
30953         stdbool: avoid spurious failure with modern xlc
30954         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30955
30956 2010-08-24  Bruno Haible  <bruno@clisp.org>
30957
30958         getloadavg: simplify code
30959         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30960         gl_have_func. Update comments.
30961
30962 2010-08-24  Eric Blake  <eblake@redhat.com>
30963
30964         getloadavg: don't define SVR4 on cygwin
30965         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30966         only define SVR4 when -lkvm is required.
30967         Reported by Yaakov Selkowitz.
30968
30969 2010-08-24  Bruno Haible  <bruno@clisp.org>
30970
30971         priv-set: fix comment
30972         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30973
30974 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30975
30976         priv-set: fix comments
30977         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30978         to match code, as suggested by David Bartley in:
30979         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30980
30981 2010-08-23  Eric Blake  <eblake@redhat.com>
30982
30983         stdbool: avoid rejecting clang
30984         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30985         * tests/test-stdbool.c: Enable more tests if using the system
30986         <stdbool.h> instead of the gnulib replacement.
30987         (main): Move xlc bug test to a runtime test for all compilers.
30988         Reported by Anders Kaseorg.
30989
30990         argz: fix shell quoting issue
30991         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30992         Reported by Charles Wilson.
30993
30994 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30995             Erik Faye-Lund <kusmabite@gmail.com>
30996
30997         poll, select: handle ERROR_BROKEN_PIPE.
30998         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30999         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31000         * lib/select.c (win32_compute_revents): Do not mark a pipe
31001         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31002
31003 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31004
31005         fts: allow compilation with C++
31006         * lib/fts_.h: Specify extern "C" linkage with C++.
31007
31008 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31009
31010         Fix gnulib-tool sed script de-commentation for AIX sed.
31011         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31012         sed.
31013
31014 2010-08-17  Eric Blake  <eblake@redhat.com>
31015
31016         test-stddef: test for (some) offsetof bugs
31017         * tests/test-stddef.c: Enhance test to ensure correct type of
31018         offsetof.
31019         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31020         that we are not fixing at this time.
31021
31022 2010-08-15  Bruno Haible  <bruno@clisp.org>
31023
31024         stpncpy: Allow stpncpy to be defined as a macro.
31025         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31026         if it's already correctly declared.
31027         * lib/string.in.h (stpncpy): Undefine before redefining.
31028         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31029
31030 2010-08-14  Bruno Haible  <bruno@clisp.org>
31031
31032         Rename module 'memxfrm' to 'amemxfrm'.
31033         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31034         (amemxfrm): Renamed from memxfrm.
31035         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31036         (amemxfrm): Renamed from memxfrm.
31037         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31038         * NEWS: Mention the change.
31039         * MODULES.html.sh (String handling <string.h>): Update.
31040         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31041         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31042         * lib/unicase/u16-casexfrm.c: Likewise.
31043         * lib/unicase/u32-casexfrm.c: Likewise.
31044         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31045         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31046         * lib/uninorm/u16-normxfrm.c: Likewise.
31047         * lib/uninorm/u32-normxfrm.c: Likewise.
31048         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31049         memxfrm.
31050         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31051         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31052         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31053         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31054         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31055         Suggested by Paul Eggert.
31056
31057 2010-08-14  Bruno Haible  <bruno@clisp.org>
31058
31059         Tests for module 'astrxfrm'.
31060         * modules/astrxfrm-tests: New file.
31061         * tests/test-astrxfrm.c: New file.
31062
31063         New module 'astrxfrm'.
31064         * lib/astrxfrm.h: New file.
31065         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31066         * modules/astrxfrm: New file.
31067
31068 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31069
31070         regex: Tweak doc.
31071         * doc/regex.texi (Overview): Don't mention regex.c.
31072         (GNU Regular Expression Compiling): Likewise.
31073         (Match-end-of-line Operator): Mention 'not_eol'.
31074
31075 2010-08-14  Brian Gough  <bjg@gnu.org>
31076             Bruno Haible  <bruno@clisp.org>
31077
31078         git-merge-changelog: add doc relating to use with bzr and hg.
31079         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31080
31081 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31082
31083         pthread: fix pthread.h creation for srcdir != builddir
31084         * modules/pthread (Makefile.am): Fix the rule to work also in a
31085         non-srcdir build.
31086
31087 2010-08-13  Karl Berry  <karl@gnu.org>
31088
31089         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31090         * doc/posix-*/*: force line break before @url of POSIX
31091         specifications.
31092         Suggested by Werner Lemberg.
31093
31094 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31095
31096         strtod: fix const diagnostic
31097         * lib/strtod.c (strtod): Don't assign const char * to char *,
31098         as this elicits a warning from GCC when warnings are enabled.
31099
31100 2010-08-10  Pádraig Brady <P@draigbrady.com>
31101         and Eric Blake  <eblake@redhat.com>
31102
31103         copy-acl: ignore ENOTSUP on HP-UX
31104         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31105         so that it is available for HP-UX.
31106         * lib/copy-acl.c (qcopy_acl): Use it.
31107         Reported by Patrick M. Callahan.
31108
31109 2010-08-10  Eric Blake  <eblake@redhat.com>
31110
31111         open, chown: relax license
31112         * modules/open (License): Change to LGPLv2+, with consent by all
31113         authors, for use in augeas.
31114         * modules/chown (License): Likewise.
31115         * modules/lchown (Likewise): Likewise.
31116         Requested by Adam Stokes.
31117
31118 2010-08-09  Karl Berry  <karl@gnu.org>
31119
31120         * build-aux/ar-lib: new file, import from Automake.
31121         * config/srclist.txt: autocheck for updates.
31122
31123 2010-08-09  Eric Blake  <eblake@redhat.com>
31124
31125         readlinkat: adjust client modules
31126         * modules/areadlinkat (Depends-on): Use readlinkat, not
31127         symlinkat.
31128         * modules/areadlinkat-with-size (Depends-on): Likewise.
31129
31130         mknod: be more vocal about danger of running tests as root
31131         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31132         root, since that is just asking for problems.
31133         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31134
31135         readlinkat: split into its own module
31136         * modules/symlinkat: Split readlinkat...
31137         * modules/readlinkat: ...into separate module.
31138         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31139         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31140         * lib/symlinkat.c (readlinkat): Move...
31141         * lib/readlinkat.c: ...into new file.
31142         * modules/symlinkat-tests: Split readlinkat test...
31143         * modules/readlinkat-tests: ...into separate module.
31144         * tests/test-symlinkat.c: Split...
31145         * tests/test-readlinkat.c: ...into new file.
31146         * NEWS: Document the split.
31147         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31148         * lib/unistd.in.h (readlinkat): Likewise.
31149         Suggested by Bruno Haible.
31150
31151 2010-08-08  Bruno Haible  <bruno@clisp.org>
31152
31153         memxfrm: Speed up.
31154         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31155         that usually only one call to strxfrm is necessary for each string
31156         part.
31157         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31158
31159 2010-08-07  Karl Berry  <karl@gnu.org>
31160
31161         * doc/posix-headers/limits.texi,
31162         * doc/posix-functions/malloc.texi,
31163         * doc/posix-functions/strsignal.texi: missing @item.
31164         * doc/ld-version-script.texi: spurious leading i.
31165         * doc/regex.texi (Interval Operators): no commas inside @var.
31166
31167 2010-08-01  Bruno Haible  <bruno@clisp.org>
31168
31169         Integrate the regex documentation.
31170         * doc/gnulib.texi: Define 'cn' index.
31171         (Regular expressions): New a chapter that includes regex.texi and
31172         regexprops-generic.texi.
31173         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31174         syntax.
31175
31176         Whitespace cleanup.
31177         * doc/regex.texi: Remove trailing spaces.
31178
31179         Add regex documentation.
31180         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31181         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31182         Written by Kathy A. Hargreaves and Karl Berry.
31183
31184 2010-08-01  Bruno Haible  <bruno@clisp.org>
31185
31186         link: Update documentation.
31187         * doc/posix-functions/link.texi: Update regarding Solaris.
31188
31189 2010-07-31  Bruno Haible  <bruno@clisp.org>
31190
31191         Update modules list.
31192         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31193         (String handling <string.h>): Add memcmp2, memxfrm.
31194         (Container data structures): Add xlist, xsublist, xoset.
31195         (Core language properties): Add alignof, unused-parameter.
31196         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31197         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31198         (Unibyte characters <ctype.h>): New section.
31199         (String handling <string.h>): New section.
31200         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31201         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31202         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31203         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31204         tan, tanh, tanl, y0, y1, yn.
31205         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31206         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31207         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31208         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31209         unlockpt, vdprintf, vdprintf-posix.
31210         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31211         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31212         xconcat-filename.
31213         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31214         getdtablesize, pipe2, pipe2-safer.
31215         (Security): New section.
31216         (Networking functions): Add accept4.
31217         (Signal handling): Add sigpipe.
31218         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31219         mbmemcasecoll.
31220         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31221         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31222         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31223         pipe-filter-ii.
31224         (Misc): Add argp-version-etc, login_tty, parse-duration.
31225
31226 2010-07-31  Bruno Haible  <bruno@clisp.org>
31227
31228         Improve doc in MODULES.html.
31229         * modules/linkat (Description): Add the word "function".
31230         * modules/mkfifo (Description): Likewise.
31231         * modules/mknod (Description): Likewise.
31232         * modules/remove (Description): Likewise.
31233         * modules/renameat (Description): Likewise.
31234         * modules/stat (Description): Likewise.
31235         * modules/symlink (Description): Likewise.
31236         * modules/unlink (Description): Likewise.
31237
31238 2010-07-31  Bruno Haible  <bruno@clisp.org>
31239
31240         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31241         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31242         option --enable/disable-c++ instead of --enable/disable-cxx.
31243         * NEWS: Mention the change.
31244
31245 2010-07-31  Bruno Haible  <bruno@clisp.org>
31246
31247         readlink, areadlink: Relax test a bit.
31248         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31249         alternative to ENOTDIR.
31250         * tests/test-areadlink.h (test_areadlink): Likewise.
31251         Reported by Rainer Tammer.
31252
31253 2010-07-31  Bruno Haible  <bruno@clisp.org>
31254
31255         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31256         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31257         character, perform the search using U_STRCHR.
31258         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31259         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31260         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31261         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31262         Suggested by Paolo Bonzini.
31263
31264 2010-07-31  Bruno Haible  <bruno@clisp.org>
31265
31266         unistr/u*-strstr: Fix dependencies.
31267         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31268         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31269         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31270
31271 2010-07-31  Bruno Haible  <bruno@clisp.org>
31272
31273         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31274         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31275         the beginning of the loop.
31276         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31277         cases in 'switch' statement.
31278
31279         unistr/u8-strchr: Fix several bugs.
31280         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31281         the string. When not found, return NULL, not a pointer near the end.
31282
31283         More tests for unistr/u8-strchr.
31284         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31285         that the function does not read past the first occurrence of the byte
31286         being searched.
31287         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31288         * tests/unistr/test-u16-strchr.c (main): New function.
31289         * tests/unistr/test-u32-strchr.c (main): New function.
31290
31291 2010-07-31  Bruno Haible  <bruno@clisp.org>
31292
31293         posix-modules: Ignore backup files of documentation files.
31294         * posix-modules: grep only through files named *.texi.
31295
31296 2010-07-31  Bruno Haible  <bruno@clisp.org>
31297
31298         symlinkat: Fix documentation.
31299         * doc/posix-functions/readlinkat.texi: Fix module name.
31300
31301 2010-07-31  Bruno Haible  <bruno@clisp.org>
31302
31303         fchownat: Replace also when chown has the trailing slash bug.
31304         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31305         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31306         introduced on 2010-04-10.
31307         Reported by Rainer Tammer.
31308
31309 2010-07-31  Bruno Haible  <bruno@clisp.org>
31310
31311         linkat: Work around AIX 7.1 bug.
31312         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31313         whether linkat handles trailing slash correctly. If not, replace linkat
31314         and define LINKAT_TRAILING_SLASH_BUG.
31315         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31316         check whether (fd1,file1) points to a directory if file1 or file2 ends
31317         in a slash. Code taken from lib/link.c.
31318         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31319         Reported by Rainer Tammer.
31320
31321 2010-07-31  Bruno Haible  <bruno@clisp.org>
31322
31323         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31324         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31325         This disables an xlc optimization that was causing wrong test results.
31326         Reported by Rainer Tammer.
31327
31328 2010-07-31  Bruno Haible  <bruno@clisp.org>
31329
31330         iconv: Work around AIX 6.1..7.1 bug.
31331         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31332         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31333         cross-compiling, guess no on all versions of AIX.
31334         Reported by Rainer Tammer.
31335
31336 2010-07-31  Bruno Haible  <bruno@clisp.org>
31337
31338         readlink: Relax test a bit.
31339         * tests/test-readlink.h (test_readlink): Allow different errno value
31340         when readlink is called with a file name that ends in / and refers to
31341         a file.
31342         Suggested by Eric Blake.
31343         Reported by Rainer Tammer.
31344
31345 2010-07-31  Bruno Haible  <bruno@clisp.org>
31346
31347         copysign: Does not require -lm on glibc systems.
31348         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31349         gl_COMMON_DOUBLE_MATHFUNC.
31350         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31351
31352 2010-07-31  Bruno Haible  <bruno@clisp.org>
31353
31354         duplocale: Work around AIX 7.1 bug.
31355         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31356         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31357         * lib/duplocale.c (rpl_duplocale): Update comment.
31358         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31359         Reported by Rainer Tammer.
31360
31361 2010-07-30  Bruno Haible  <bruno@clisp.org>
31362
31363         dirfd: Avoid link error on AIX 7.1.
31364         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31365         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31366         exist, set REPLACE_DIRFD.
31367         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31368         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31369         * doc/posix-functions/dirfd.texi: Update.
31370         Reported by Rainer Tammer.
31371
31372 2010-07-30  Eric Blake  <eblake@redhat.com>
31373
31374         strtod: next round of AIX fixes
31375         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31376         exponent.
31377         * tests/test-strtod.c (main): Enhance tests.
31378         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31379         Reported by Rainer Tammer.
31380
31381         futimens: fix configure check
31382         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31383         Reported by Bruno Haible.
31384
31385 2010-07-30  Bruno Haible  <bruno@clisp.org>
31386
31387         getline: Update regarding AIX.
31388         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31389         Reported by Rainer Tammer.
31390
31391 2010-07-30  Bruno Haible  <bruno@clisp.org>
31392
31393         wcwidth: Drop replacement on AIX 7.
31394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31395         AIX 7.
31396         Reported by Rainer Tammer.
31397
31398 2010-07-30  Bruno Haible  <bruno@clisp.org>
31399
31400         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31401         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31402         a 'char *'.
31403         Reported by Rainer Tammer.
31404
31405 2010-07-30  Bruno Haible  <bruno@clisp.org>
31406
31407         unlink: Update regarding AIX.
31408         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31409         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31410         Reported by Rainer Tammer.
31411
31412 2010-07-30  Bruno Haible  <bruno@clisp.org>
31413
31414         symlink: Update regarding AIX.
31415         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31416         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31417         Reported by Rainer Tammer.
31418
31419 2010-07-30  Bruno Haible  <bruno@clisp.org>
31420
31421         strndup: Update regarding AIX.
31422         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31423         AIX 7.
31424         Reported by Rainer Tammer.
31425
31426 2010-07-30  Bruno Haible  <bruno@clisp.org>
31427
31428         stat: Update regarding AIX.
31429         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31430         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31431         Reported by Rainer Tammer.
31432
31433 2010-07-30  Bruno Haible  <bruno@clisp.org>
31434
31435         truncl: Fix autoconf test.
31436         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31437         whether truncl works.
31438         Reported by Rainer Tammer.
31439
31440 2010-07-30  Bruno Haible  <bruno@clisp.org>
31441
31442         round: Update regarding AIX.
31443         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31444         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31445         Reported by Rainer Tammer.
31446
31447 2010-07-30  Bruno Haible  <bruno@clisp.org>
31448
31449         rename: Update regarding AIX.
31450         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31451         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31452         Reported by Rainer Tammer.
31453
31454 2010-07-30  Bruno Haible  <bruno@clisp.org>
31455
31456         printf.m4: Update regarding AIX.
31457         * m4/printf.m4: Update comments regarding AIX.
31458         Reported by Rainer Tammer.
31459
31460 2010-07-30  Bruno Haible  <bruno@clisp.org>
31461
31462         iconv: Update regarding AIX.
31463         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31464         AIX 7.
31465         Reported by Rainer Tammer.
31466
31467 2010-07-30  Bruno Haible  <bruno@clisp.org>
31468
31469         getopt: Update regarding AIX.
31470         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31471         no on AIX.
31472         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31473         Reported by Rainer Tammer.
31474
31475 2010-07-30  Bruno Haible  <bruno@clisp.org>
31476
31477         ldexpl; Update regarding AIX.
31478         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31479         on AIX 7.
31480         Reported by Rainer Tammer.
31481
31482 2010-07-30  Bruno Haible  <bruno@clisp.org>
31483
31484         frexpl: Update regarding AIX.
31485         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31486         on AIX 7.
31487         Reported by Rainer Tammer.
31488
31489 2010-07-30  Bruno Haible  <bruno@clisp.org>
31490
31491         open, fopen: Update regarding AIX.
31492         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31493         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31494         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31495         * doc/posix-functions/fopen.texi: Likewise.
31496         Reported by Rainer Tammer.
31497
31498 2010-07-30  Bruno Haible  <bruno@clisp.org>
31499
31500         chown: Update doc regarding AIX.
31501         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31502         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31503         Reported by Rainer Tammer.
31504
31505 2010-07-30  Eric Blake  <eblake@redhat.com>
31506
31507         strtod: fix bug in replacement function on AIX
31508         * lib/strtod.c (strtod): Special case broken "0x" parse in
31509         underlying strtod.
31510         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31511         * doc/posix-functions/strtod.texi (strtod): Likewise.
31512         Reported by Rainer Tammer.
31513
31514 2010-07-30  Bruno Haible  <bruno@clisp.org>
31515
31516         mbrlen: Fix cross-compilation guess for AIX.
31517         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31518         guess. Leftover from 2008-12-22.
31519
31520 2010-07-30  Bruno Haible  <bruno@clisp.org>
31521
31522         mbrtowc: Fix cross-compilation guess for AIX.
31523         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31524         guess. Leftover from 2008-12-21.
31525
31526 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31527
31528         init.sh: work around trap limitation of some shells
31529         * tests/init.sh (setup_): Move exit trap outside of shell function.
31530
31531 2010-07-29  Eric Blake  <eblake@redhat.com>
31532
31533         strtod: aid debugging
31534         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31535         understanding why strtod is rejected.
31536
31537 2010-07-28  Bruno Haible  <bruno@clisp.org>
31538
31539         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31540         * lib/unistr/u8-chr.c: Include <string.h>.
31541         * tests/unistr/test-u8-chr.c: Likewise.
31542         * tests/unistr/test-u16-chr.c: Likewise.
31543         * tests/unistr/test-u32-chr.c: Likewise.
31544         * tests/unistr/test-u8-strchr.c: Likewise.
31545         * tests/unistr/test-u16-strchr.c: Likewise.
31546         * tests/unistr/test-u32-strchr.c: Likewise.
31547         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31548         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31549         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31550         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31551
31552 2010-07-28  Bruno Haible  <bruno@clisp.org>
31553
31554         Use spaces for indentation, not tabs.
31555         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31556
31557 2010-07-27  Bruno Haible  <bruno@clisp.org>
31558
31559         mbspcasecmp: Fix function specification.
31560         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31561         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31562         Reported by Eric Blake <eblake@redhat.com>.
31563
31564 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31565
31566         timespec: use cast and not conditional, as truncation isn't possible
31567         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31568         instead of a conditional.  Comment about the situation in more detail.
31569         This undoes most of the 2009-10-29 patch.
31570
31571 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31572
31573         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31574         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31575         * lib/unistr/u8-strchr.c: Likewise.
31576         * modules/unistr/u8-chr: Depend on memchr.
31577
31578         unistr/u*-strchr: add tests
31579         * modules/unistr/u8-strchr-tests: New file.
31580         * modules/unistr/u16-strchr-tests: New file.
31581         * modules/unistr/u32-strchr-tests: New file.
31582         * tests/unistr/test-strchr.h: New file.
31583         * tests/unistr/test-u8-strchr.c: New file.
31584         * tests/unistr/test-u16-strchr.c: New file.
31585         * tests/unistr/test-u32-strchr.c: New file.
31586
31587         unistr/u*-chr: test multibyte sequences more
31588         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31589         test vector.
31590         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31591         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31592         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31593
31594         unistr/u*-chr: test multibyte sequences
31595         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31596
31597         unistr/u*-chr: prepare for multibyte tests
31598         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31599         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31600         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31601         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31602         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31603         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31604
31605 2010-07-18  Bruno Haible  <bruno@clisp.org>
31606
31607         unistr/u8-strchr: Optimize non-ASCII argument case.
31608         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31609         because the first byte often matches anyway.
31610         Reported by Pádraig Brady <P@draigbrady.com>.
31611
31612 2010-07-15  Karl Berry  <karl@gnu.org>
31613
31614         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31615
31616 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31617
31618         getcwd: on Solaris, work better if ancestors are inaccessible
31619         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31620         buffer and size, try again with a large buffer.  This works better
31621         on Solaris, since its getcwd succeeds even if the path to the root
31622         is inaccessible, and this is helpful in common cases such as .zfs
31623         hidden directories.  Problem reported by J Chapman Flack in
31624         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31625         Use system getcwd if it's declared, not merely if it's partly
31626         working; use the partly-working test only to avoid needless effort
31627         if the system getcwd fails.
31628         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31629         comment that was already obsolete and is now even more obsolete.
31630         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31631         now might call strdup.
31632
31633 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31634
31635         pthread: Add enough so that coreutils/src/sort.c compiles.
31636         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31637         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31638         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31639         Include <sys/types.h>, in case it defines pthread_t.
31640         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31641         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31642         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31643         (pthread_rwlockattr_t, pthread_spinlock_t):
31644         New typedefs, if HAVE_PTHREAD_T is not defined.
31645         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31646         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31647         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31648         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31649         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31650         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31651         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31652         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31653         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31654         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31655         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31656         New macros.
31657         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31658         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31659         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31660         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31661         (pthread_spin_unlock): New dummy functions.
31662         (pthread_create): Return EAGAIN; don't set errno.
31663         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31664         require AC_C_INLINE.
31665         * modules/pthread (Depends-on): Add sched, time.
31666         (pthread.h): Use AM_V_GEN.
31667
31668 2010-07-13  Bruno Haible  <bruno@clisp.org>
31669
31670         striconveh: Don't malloc memory if the result buffer is sufficient.
31671         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31672         buffer if its size is sufficient.
31673         Reported by Ludovic Courtès <ludo@gnu.org>.
31674
31675 2010-07-13  Bruno Haible  <bruno@clisp.org>
31676
31677         strtod: Add safety check.
31678         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31679
31680 2010-07-12  Bruno Haible  <bruno@clisp.org>
31681
31682         Unify tests that set gl_cv_func_ldexpl_no_libm.
31683         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31684         gl_FUNC_LDEXPL.
31685         (gl_FUNC_LDEXPL): Invoke it.
31686         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31687
31688 2010-07-12  Bruno Haible  <bruno@clisp.org>
31689
31690         Unify tests that set gl_cv_func_ldexp_no_libm.
31691         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31692         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31693         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31694         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31695         * modules/strtod (Files): Add m4/ldexp.m4.
31696
31697 2010-07-12  Bruno Haible  <bruno@clisp.org>
31698
31699         Unify tests that set gl_cv_func_frexpl_no_libm.
31700         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31701         gl_FUNC_FREXPL_NO_LIBM.
31702         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31703         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31704
31705 2010-07-12  Bruno Haible  <bruno@clisp.org>
31706
31707         Unify tests that set gl_cv_func_frexp_no_libm.
31708         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31709         gl_FUNC_FREXP_NO_LIBM.
31710         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31711         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31712
31713 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31714
31715         memcoll: clarify sizes versus lengths, document better, and tweak perf
31716         * lib/memcoll.c (strcoll_loop, memcoll0):
31717         Improve quality of descriptive comments.  Name variables
31718         consistently as to whether they are lengths (which do not include
31719         terminating null) versus sizes (which do).
31720         * lib/xmemcoll.c (xmemcoll0): Likewise.
31721         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31722         returned when s1size == 0; this is easier to compile and saves
31723         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31724
31725 2010-07-12  Bruno Haible  <bruno@clisp.org>
31726
31727         Tests for module '_Exit'.
31728         * modules/_Exit-tests: New file.
31729         * tests/test-_Exit.sh: New file.
31730         * tests/test-_Exit.c: New file.
31731
31732         New module '_Exit'.
31733         * lib/stdlib.in.h (__attribute__): New macro.
31734         (_Exit): New declaration.
31735         * lib/_Exit.c: New file.
31736         * m4/_Exit.m4: New file.
31737         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31738         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31739         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31740         * modules/_Exit: New file.
31741         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31742         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31743
31744 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31745
31746         strtod: make it more-accurate typically, and don't require libm
31747         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31748         Include limits.h.  Don't include string.h.
31749         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31750         (locale_isspace): New function, so that no casts are needed to
31751         check whether *s is a space.
31752         (ldexp): Provide an unused dummy if not available.
31753         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31754         (strtod): Use them.  This implementation prefers to use the
31755         underlying strtod if available, falling back on our own code
31756         only to fix known bugs.  This is more likely to produce an
31757         accurate result.  Also, it avoids the use of libm functions.
31758         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31759         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31760         was absent, but it caused a test failure with coreutils.
31761         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31762         with libm.
31763         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31764         * modules/strtod-tests (Makefile.am): Likewise.
31765
31766 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31767             Bruno Haible  <bruno@clisp.org>
31768
31769         unistr/u8-strchr: Optimize ASCII argument case.
31770         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31771
31772 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31773
31774         (x)memcoll: minor tweaks
31775         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31776         is after the type that it qualifies.
31777         (memcoll0): Likewise.
31778         * lib/memcoll.h (memcoll0): Likewise.
31779         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31780         * lib/xmemcoll.h (xmemcoll0): Likewise.
31781         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31782         differs from memcoll in that the NUL byte is part of the argument.
31783         Omit the abort-checks, as performance is a real issue here.  Plus,
31784         the checks were wrong anyway (an off-by-one error).  Omit local
31785         variable 'diff', as it's a bit clearer that way.
31786         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31787         no longer needed.
31788
31789 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31790
31791         (x)memcoll: speedup when input is known to be NUL delimited
31792         * lib/memcoll.c: Include stdlib.
31793         (memcoll0): New function.
31794         (strcoll_loop): New function, refactored for use in both memcoll
31795         and memcoll0.
31796         * lib/memcoll.h (memcoll0): Add prototype.
31797         * lib/xmemcoll.c (xmemcoll0): New function.
31798         (collate_error): New function, refactored for use in both xmemcoll
31799         and xmemcoll0.
31800         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31801         * m4/memcoll.m4: add inline invocation.
31802
31803 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31804
31805         * build-aux/bootstrap: Remove any local translations
31806         from the translation project synchronization directory,
31807         so that local only translations are not distributed.
31808
31809 2010-07-04  Bruno Haible  <bruno@clisp.org>
31810
31811         fsusage: Clarify which code applies to which platforms.
31812         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31813         platform.
31814         * lib/fsusage.c (get_fs_usage): Likewise.
31815
31816 2010-07-04  Bruno Haible  <bruno@clisp.org>
31817
31818         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31819         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31820         Reported by Martin Lambers <marlam@marlam.de>.
31821
31822 2010-07-04  Jim Meyering  <meyering@redhat.com>
31823
31824         hash: once again explicitly disallow insertion of NULL
31825         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31826         inserting a NULL pointer cannot work with these functions.
31827         Add a comment with details.
31828         This reverts part of the 2010-07-01 commit, 5bef1a35
31829         "hash: extend module to deal with non-pointer keys".
31830
31831 2010-07-01  Bruno Haible  <bruno@clisp.org>
31832
31833         stdbool: Update doc.
31834         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31835         Info from Christian Weisgerber <naddy@mips.inka.de>.
31836
31837 2010-07-01  Jim Meyering  <meyering@redhat.com>
31838
31839         hash: extend module to deal with non-pointer keys
31840         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31841         but that allows insertion of non-pointer entries.
31842         Do not disallow an ENTRY value of NULL.
31843         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31844         * lib/hash.h (hash_insert0): Declare.
31845
31846 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31847
31848         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31849         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31850         not present (i.e. with autoconf 2.59 and when using gettextize, not
31851         gnulib), require AC_GNU_SOURCE instead.
31852
31853 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31854
31855         idpriv-drop: Fix tests.
31856         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31857         not to the test-idpriv-droptemp program.
31858
31859 2010-06-29  Bruno Haible  <bruno@clisp.org>
31860
31861         string: Fix syntax error with g++ 2.96.
31862         * lib/string.in.h (__pure__): Remove definition.
31863         (_GL_ATTRIBUTE_PURE): New macro.
31864         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31865         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31866         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31867
31868 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31869
31870         unitypes: Fix bug introduced on 2010-05-18.
31871         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31872
31873 2010-06-22  Eric Blake  <eblake@redhat.com>
31874
31875         memmem: slight optimization
31876         * lib/str-two-way.h (critical_factorization): Update comments.
31877         Reduce work during factorization phase.
31878         Reported by Carlos Bueno <carlos@bueno.org>.
31879
31880 2010-06-21  Bruno Haible  <bruno@clisp.org>
31881
31882         Fix HAVE_CALLOC_POSIX misnomer.
31883         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31884         !HAVE_CALLOC_POSIX.
31885         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31886         HAVE_CALLOC_POSIX.
31887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31888         instead of HAVE_CALLOC_POSIX.
31889         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31890         HAVE_CALLOC_POSIX.
31891
31892         Use modern idiom for calloc() replacement.
31893         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31894         AC_FUNC_CALLOC.
31895         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31896         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31897         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31898         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31899         (gl_REPLACE_CALLOC): New macro.
31900
31901 2010-06-21  Bruno Haible  <bruno@clisp.org>
31902
31903         Fix HAVE_REALLOC_POSIX misnomer.
31904         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31905         !HAVE_REALLOC_POSIX.
31906         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31907         HAVE_REALLOC_POSIX.
31908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31909         instead of HAVE_REALLOC_POSIX.
31910         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31911         HAVE_REALLOC_POSIX.
31912
31913         Use modern idiom for realloc() replacement.
31914         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31915         AC_FUNC_REALLOC.
31916         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31917         Autoconf's AC_FUNC_REALLOC.
31918         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31919         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31920         (gl_REPLACE_REALLOC): New macro.
31921         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31922
31923 2010-06-21  Bruno Haible  <bruno@clisp.org>
31924
31925         Fix HAVE_MALLOC_POSIX misnomer.
31926         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31927         !HAVE_MALLOC_POSIX.
31928         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31929         HAVE_MALLOC_POSIX.
31930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31931         instead of HAVE_MALLOC_POSIX.
31932         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31933         HAVE_MALLOC_POSIX.
31934
31935         Use modern idiom for malloc() replacement.
31936         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31937         AC_FUNC_MALLOC.
31938         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31939         Autoconf's AC_FUNC_MALLOC.
31940         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31941         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31942         (gl_REPLACE_MALLOC): New macro.
31943         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31944
31945 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31946
31947         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31948         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31949         This macro takes 3 arguments, not 4.
31950
31951 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31952
31953         ipv6: fix detection under mingw
31954         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31955         in6_addr.
31956
31957 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31958
31959         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31960         that strtod() works when cross-compiling to a glibc version known
31961         to work.
31962
31963 2010-06-15  Bruno Haible  <bruno@clisp.org>
31964
31965         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31966
31967 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31968
31969         select: Correct timeout.
31970         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31971
31972 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31973
31974         git-version-gen: init shell var to avoid env var influence
31975         * build-aux/git-version-gen (v): Init shell var to empty.
31976
31977 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31978
31979         priv-set: Don't assume that priv.h exists merely because getppriv does.
31980         See Jan Andersen's bug report about AIX 5L in
31981         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31982         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31983         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31984         * lib/priv-set.h: Likewise.
31985         * tests/test-priv-set.c: Likewise.
31986
31987 2010-06-13  Bruno Haible  <bruno@clisp.org>
31988
31989         relocatable: Make it easier to test whether to install wrappers.
31990         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31991         RELOCATABLE_VIA_WRAPPER.
31992
31993 2010-06-13  Bruno Haible  <bruno@clisp.org>
31994
31995         gnulib-tool: Display specified modules and dependencies differently.
31996         * gnulib-tool (func_show_module_list): New function.
31997         (func_import, func_create_testdir): Invoke it.
31998         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31999
32000 2010-06-13  Bruno Haible  <bruno@clisp.org>
32001
32002         gnulib-tool: Align code of func_import and func_create_testdir.
32003         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32004         specified_modules.
32005
32006 2010-06-12  Jim Meyering  <meyering@redhat.com>
32007
32008         test-inttostr: avoid spurious failure on Solaris 9
32009         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32010         to accept "%ju".  Reported by Bruno Haible.
32011
32012 2010-06-11  Jim Meyering  <meyering@redhat.com>
32013
32014         test-sys_socket: mark variables as used more readably
32015         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32016         as "used" explicitly via (void) statement casts.  This is more
32017         readable than using them in an artificial return expression.
32018         Suggestion from Bruno Haible.
32019
32020 2010-06-11  Bruno Haible  <bruno@clisp.org>
32021
32022         Avoid some more warnings from "gcc -Wwrite-strings".
32023         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32024         to 'const char *'.
32025         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32026         * tests/test-c-strcasestr.c (main): Likewise.
32027         * tests/test-mbscasestr1.c (main): Likewise.
32028         * tests/test-mbscasestr2.c (main): Likewise.
32029         * tests/test-memmem.c (main): Likewise.
32030         * tests/test-strstr.c (main): Likewise.
32031         * tests/test-strcasestr.c (main): Likewise.
32032
32033 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32034
32035         init.sh: change framework_failure_ to fail with status 99, not 1
32036         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32037         automake's parallel-tests rule that this is an unexpected failure,
32038         even if the test is listed in XFAIL_TESTS.
32039
32040 2010-06-11  Jim Meyering  <meyering@redhat.com>
32041
32042         test-inttostr: avoid warnings about 4-6KB literal strings
32043         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32044         Include "macros.h", for its definition of ASSERT.
32045         (CK): s/assert/ASSERT/
32046         * modules/inttostr-tests (Files): Add macros.h.
32047
32048         init.sh: don't use $ME_ or skip_ before they are defined
32049         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32050         their first uses.  Also hoist their companions: warn_, fail_,
32051         framework_failure_, $stderr_fileno.  Prompted by a patch from
32052         Stefano Lattarini.
32053
32054         test-sys_socket: avoid set-but-not-used warnings from gcc
32055         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32056         avoid warning about set-but-not-used variables.
32057
32058         test-xvasprintf: avoid 'const' discard warnings
32059         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32060         "const" when assigning from literal strings.
32061         (test_xasprintf): Add "void" in function argument list to placate
32062         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32063
32064         tests: avoid compilation warnings in argmatch and exclude tests...
32065         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32066         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32067         Since it always exits, declare with the "noreturn" attribute.
32068         * tests/test-argmatch.c: Likewise.
32069
32070         tests: avoid 'const' discard warnings in mbsstr tests
32071         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32072         * tests/test-mbsstr2.c (main): Likewise.
32073
32074         test-verify: avoid warning from gcc's -Wmissing-declarations
32075         * tests/test-verify.c (function): Declare to be static.
32076
32077         test-inttostr.c: include <string.h> for use of strcmp
32078         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32079
32080         test-linkat: avoid failed assertion on "other" architectures
32081         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32082         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32083         sparc: https://bugs.launchpad.net/bugs/591968
32084
32085 2010-06-11  Jim Meyering  <meyering@redhat.com>
32086
32087         printf.m4: avoid autoconf's "Expanded Before Required" warning
32088         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32089         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32090         autoconf warning.
32091
32092 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32093
32094         Replacement header templates are now named with ".in", not "_".
32095         * doc/gnulib-intro.texi: Correct.
32096
32097 2010-06-10  Jim Meyering  <meyering@redhat.com>
32098
32099         inttostr-tests: depend on snprintf, not snprintf-posix
32100         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32101         snprintf-posix, to avoid this aclocal failure:
32102           missing file gnulib-tests/vasnprintf.c
32103           configure.ac:45: error: expected source file, required through \
32104           AC_LIBSOURCES, not found
32105
32106 2010-06-10  Jim Meyering  <meyering@redhat.com>
32107
32108         inttostr: add a new function, inttostr, and tests
32109         The namesake function was not available.  The existence of the
32110         template file, inttostr.c makes its addition nontrivial.
32111         * lib/anytostr.c: Rename from inttostr.c.
32112         (anytostr): Rename from inttostr.
32113         * lib/inttostr.c: New file.
32114         * modules/inttostr (Files): Add anytostr.c.
32115         (Makefile.am): Set lib_SOURCES instead of ...
32116         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32117         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32118         * lib/offtostr.c: Likewise.
32119         * lib/uinttostr.c: Likewise.
32120         * lib/umaxtostr.c: Likewise.
32121         * modules/inttostr-tests: New file.
32122         * tests/test-inttostr.c: New file.  Test these functions.
32123
32124 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32125             Bruno Haible  <bruno@clisp.org>
32126
32127         Add "Extending Gnulib" chapter to manual.
32128         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32129         chapter.
32130         (Extending Gnulib): New chapter.
32131         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32132         chapter.
32133
32134 2010-06-09  Bruno Haible  <bruno@clisp.org>
32135
32136         Avoid relocwrapper link errors due to gnulib replacement functions.
32137         * lib/areadlink.c: Use the system's malloc, realloc functions.
32138         (areadlink): Set errno to ENOMEM explicitly.
32139         * modules/areadlink (Depends-on): Remove malloc-posix.
32140         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32141
32142 2010-06-09  Bruno Haible  <bruno@clisp.org>
32143
32144         Avoid relocwrapper link errors due to gnulib replacement functions.
32145         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32146         * lib/malloca.c: Likewise.
32147         * lib/relocatable.c: Likewise.
32148         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32149         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32150         * lib/setenv.c: Use the system's malloc, realloc functions.
32151         * lib/strerror.c: Use the system's sprintf function.
32152         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32153
32154 2010-06-04  Bruno Haible  <bruno@clisp.org>
32155
32156         Prefer documented low-level autoconf macro names.
32157         * m4/lib-link.m4: Use m4_translit instead of translit.
32158         * m4/environ.m4: Likewise.
32159         * m4/mathfunc.m4: Likewise.
32160         * m4/onceonly.m4: Likewise.
32161         * m4/stdint.m4: Likewise.
32162         Suggested by Eric Blake.
32163
32164 2010-06-04  Martin Lambers  <marlam@marlam.de>
32165             Bruno Haible  <bruno@clisp.org>
32166
32167         havelib: Allow library names with '+' characters.
32168         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32169         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32170
32171 2010-06-09  Bruno Haible  <bruno@clisp.org>
32172
32173         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32174         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32175         realloc failed.
32176
32177 2010-06-08  Peter Simons  <simons@cryp.to>
32178
32179         maint.mk: make the news-check rule more configurable
32180         * top/maint.mk (news-check-lines-spec): New variable.
32181         (news-check): Use "sed -n 1,10p" in place of "head".
32182
32183 2010-06-07  Jim Meyering  <meyering@redhat.com>
32184
32185         do-release-commit-and-tag: fix typo in --help
32186         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32187
32188         regex: avoid new dead-code warning with gcc-4.6.0
32189         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32190         if-block containing a while-loop.  It's been unused for at least
32191         5 years.
32192
32193 2010-06-05  Bruno Haible  <bruno@clisp.org>
32194
32195         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32196         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32197
32198 2010-06-04  Bruno Haible  <bruno@clisp.org>
32199
32200         Update to GNU gettext 0.18.1.
32201         * modules/gettext (configure.ac): Require gettext infrastructure from
32202         version 0.18.1.
32203
32204 2010-06-03  Bruno Haible  <bruno@clisp.org>
32205
32206         Don't use AC_LIBOBJ with file names in subdirectories.
32207         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32208         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32209         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32210         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32211         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32212         gl_LIBUNISTRING_LIBSOURCE.
32213         (Makefile.am): Augment lib_SOURCES here, conditionally.
32214         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32215
32216 2010-06-03  Bruno Haible  <bruno@clisp.org>
32217
32218         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32219         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32220         expansion does not end with a newline.
32221         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32222         unnecessary newline.
32223
32224 2010-06-03  Bruno Haible  <bruno@clisp.org>
32225
32226         Reduce dependencies.
32227         * tests/test-quotearg.h: New file, extracted from
32228         tests/test-quotearg.c.
32229         * tests/test-quotearg-simple.c: New file, extracted from
32230         tests/test-quotearg.c.
32231         * tests/test-quotearg.c: Don't include <ctype.h>.
32232         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32233         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32234         use_quote_double_quotes, use_quotearg_colon): Moved to
32235         tests/test-quotearg.h.
32236         (results_g, flag_results, custom_quotes, custom_results): Moved
32237         to tests/test-quotearg-simple.c.
32238         (main): Moved the part that does not depend on gettext to
32239         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32240         performed.
32241         * modules/quotearg-simple: New file.
32242         * modules/quotearg-simple-tests: New file.
32243         * modules/quotearg (Depends-on): Add quotearg-simple.
32244         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32245         (Files): Add tests/test-quotearg.h.
32246         Reported by Paolo Bonzini.
32247
32248 2010-06-03  Bruno Haible  <bruno@clisp.org>
32249
32250         Reduce dependencies.
32251         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32252
32253 2010-06-03  Bruno Haible  <bruno@clisp.org>
32254
32255         time: Undefine more broken macros.
32256         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32257         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32258         Reported by Eric Blake.
32259
32260 2010-06-03  Bruno Haible  <bruno@clisp.org>
32261
32262         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32263         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32264         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32265         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32266         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32267         Reported by Ludovic Courtès <ludo@gnu.org>.
32268
32269 2010-06-02  Eric Blake  <eblake@redhat.com>
32270
32271         time: work with mingw + pthreads-win32 library
32272         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32273         if timespec is defined only in pthread.h.
32274         * modules/time (Makefile.am): Substitute it.
32275         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32276         <pthread.h>, when needed.
32277         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32278         from the library.
32279
32280 2010-05-31  Bruno Haible  <bruno@clisp.org>
32281
32282         Avoid expanding two macros in the wrong order.
32283         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32284         gl_LIBUNISTRING if it is defined.
32285         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32286         autoconf >= 2.64.
32287         Reported by Ludovic Courtès <ludo@gnu.org>.
32288
32289 2010-05-27  Jim Meyering  <meyering@redhat.com>
32290
32291         maint.mk: also prohibit "#undef" of always-defined symbols
32292         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32293         Allow more than one space before the symbol name.
32294         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32295         the regexp uses alternation.
32296
32297 2010-05-26  Eric Blake  <eblake@redhat.com>
32298
32299         maint.mk: avoid echo -e
32300         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32301         Convert all uses of echo -* to printf.
32302         Reported by Matthias Bolte.
32303
32304 2010-05-25  Bruno Haible  <bruno@clisp.org>
32305
32306         Update to GNU gettext 0.18, part 2.
32307         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32308         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32309
32310 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32311
32312         Add missing include in test-pwrite.c.
32313         * tests/test-pwrite.c: Include string.h, for strcmp.
32314
32315 2010-05-24  Bruno Haible  <bruno@clisp.org>
32316
32317         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32318
32319 2010-05-24  Bruno Haible  <bruno@clisp.org>
32320
32321         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32322         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32323         iconveh_error argument.
32324         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32325         U_STRCONV_TO_LOCALE.
32326         * lib/unistr/u16-strcoll.c: Likewise.
32327         * lib/unistr/u32-strcoll.c: Likewise.
32328         * modules/unistr/u8-strcoll (Depends-on): Add
32329         uniconv/u8-strconv-to-enc, localcharset. Remove
32330         uniconv/u8-strconv-to-locale.
32331         (configure.ac): Bump version number.
32332         * modules/unistr/u16-strcoll (Depends-on): Add
32333         uniconv/u16-strconv-to-enc, localcharset. Remove
32334         uniconv/u16-strconv-to-locale.
32335         (configure.ac): Bump version number.
32336         * modules/unistr/u32-strcoll (Depends-on): Add
32337         uniconv/u32-strconv-to-enc, localcharset. Remove
32338         uniconv/u32-strconv-to-locale.
32339         (configure.ac): Bump version number.
32340
32341 2010-05-24  Bruno Haible  <bruno@clisp.org>
32342
32343         Avoid a test failure on NetBSD 5.0.
32344         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32345         an iconv() bug.
32346
32347 2010-05-24  Bruno Haible  <bruno@clisp.org>
32348
32349         Adjust #include directive style.
32350         * modules/regex (Includes): Recommend to write <regex.h>.
32351
32352 2010-05-24  Bruno Haible  <bruno@clisp.org>
32353
32354         regex: Don't require alloca.
32355         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32356         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32357         only inside if (0).
32358
32359 2010-05-23  Jim Meyering  <meyering@redhat.com>
32360
32361         test-renameat.c: include <sys/stat.h>
32362         * tests/test-renameat.c: Include <sys/stat.h>; required for
32363         definition of S_IS* macros.
32364
32365 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32366
32367         Update maintainer documentation for 'relocatable-prog' module.
32368         * doc/relocatable-maint.texi: Update.
32369         Comments by Bruno Haible.
32370
32371 2010-05-23  Bruno Haible  <bruno@clisp.org>
32372
32373         git-merge-changelog: Enable --split-merged-entry by default.
32374         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32375         (usage): Don't mention this option any more.
32376         Reported by Ralf Wildenhues.
32377
32378 2010-05-23  Jim Meyering  <meyering@redhat.com>
32379
32380         test-pwrite: do not leave behind a test file named "out"
32381         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32382         The trivial-looking use of init.sh is really necessary.
32383         It ensures that the temporary file, "out", is created in
32384         a temporary directory, and removed upon termination.
32385         * tests/test-pwrite.sh: Re-add file.
32386         * modules/pwrite-tests: Reference it.
32387
32388 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32389
32390         Fix output redirection buglet in init.sh.
32391         * tests/init.sh: Fix redirection of stderr.
32392
32393 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32394
32395         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32396
32397 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32398
32399         * modules/valgrind-tests: New file.
32400         * m4/valgrind-tests.m4: New file.
32401         * doc/valgrind-tests.texi: New file.
32402         * doc/gnulib.texi (Running self-tests under valgrind): New
32403         section.
32404
32405 2010-05-19  Bruno Haible  <bruno@clisp.org>
32406
32407         Clean up dead code in recent commit.
32408         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32409         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32410         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32411         Suggested by Paolo Bonzini.
32412
32413 2010-05-19  Bruno Haible  <bruno@clisp.org>
32414
32415         Avoid valgrind error reports from libunistring.
32416         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32417         * modules/libunistring (Files): Add it.
32418         * modules/libunistring-optional (Files): Likewise.
32419
32420 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32421             Bruno Haible  <bruno@clisp.org>
32422
32423         New module 'libunistring-optional'.
32424         * modules/libunistring-optional: New file.
32425         * m4/libunistring-base.m4: New file.
32426         * m4/libunistring-optional.m4: New file.
32427         * lib/unicase.in.h: Renamed from lib/unicase.h.
32428         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32429         * lib/unictype.in.h: Renamed from lib/unictype.h.
32430         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32431         * lib/uniname.in.h: Renamed from lib/uniname.h.
32432         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32433         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32434         * lib/unistr.in.h: Renamed from lib/unistr.h.
32435         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32436         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32437         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32438         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32439         gl_LIBUNISTRING. If the library was found, determine the installed
32440         version and set LIBUNISTRING_VERSION.
32441         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32442         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32443         handle a configuration option --with-included-libunistring.
32444         * modules/libunistring (Files): Add m4/absolute-header.m4.
32445         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32446         Add m4/libunistring-base.m4.
32447         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32448         (Makefile.am): Build unicase.h from unicase.in.h.
32449         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32450         Add m4/libunistring-base.m4.
32451         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32452         (Makefile.am): Build uniconv.h from uniconv.in.h.
32453         * modules/unictype/base (Files): Use unictype.in.h instead of
32454         unictype.h. Add m4/libunistring-base.m4.
32455         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32456         (Makefile.am): Build unictype.h from unictype.in.h.
32457         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32458         Add m4/libunistring-base.m4.
32459         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32460         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32461         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32462         Add m4/libunistring-base.m4.
32463         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32464         (Makefile.am): Build uniname.h from uniname.in.h.
32465         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32466         Add m4/libunistring-base.m4.
32467         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32468         (Makefile.am): Build uninorm.h from uninorm.in.h.
32469         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32470         unistdio.h. Add m4/libunistring-base.m4.
32471         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32472         (Makefile.am): Build unistdio.h from unistdio.in.h.
32473         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32474         Add m4/libunistring-base.m4.
32475         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32476         (Makefile.am): Build unistr.h from unistr.in.h.
32477         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32478         Add m4/libunistring-base.m4.
32479         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32480         (Makefile.am): Build unitypes.h from unitypes.in.h.
32481         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32482         Add m4/libunistring-base.m4.
32483         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32484         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32485         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32486         uniwidth.h. Add m4/libunistring-base.m4.
32487         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32488         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32489         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32490         instead of augmenting lib_SOURCES.
32491         * modules/unicase/empty-suffix-context: Likewise.
32492         * modules/unicase/locale-language: Likewise.
32493         * modules/unicase/tolower: Likewise.
32494         * modules/unicase/totitle: Likewise.
32495         * modules/unicase/toupper: Likewise.
32496         * modules/unicase/u8-casecmp: Likewise.
32497         * modules/unicase/u8-casecoll: Likewise.
32498         * modules/unicase/u8-casefold: Likewise.
32499         * modules/unicase/u8-casexfrm: Likewise.
32500         * modules/unicase/u8-ct-casefold: Likewise.
32501         * modules/unicase/u8-ct-tolower: Likewise.
32502         * modules/unicase/u8-ct-totitle: Likewise.
32503         * modules/unicase/u8-ct-toupper: Likewise.
32504         * modules/unicase/u8-is-cased: Likewise.
32505         * modules/unicase/u8-is-casefolded: Likewise.
32506         * modules/unicase/u8-is-lowercase: Likewise.
32507         * modules/unicase/u8-is-titlecase: Likewise.
32508         * modules/unicase/u8-is-uppercase: Likewise.
32509         * modules/unicase/u8-prefix-context: Likewise.
32510         * modules/unicase/u8-suffix-context: Likewise.
32511         * modules/unicase/u8-tolower: Likewise.
32512         * modules/unicase/u8-totitle: Likewise.
32513         * modules/unicase/u8-toupper: Likewise.
32514         * modules/unicase/u16-casecmp: Likewise.
32515         * modules/unicase/u16-casecoll: Likewise.
32516         * modules/unicase/u16-casefold: Likewise.
32517         * modules/unicase/u16-casexfrm: Likewise.
32518         * modules/unicase/u16-ct-casefold: Likewise.
32519         * modules/unicase/u16-ct-tolower: Likewise.
32520         * modules/unicase/u16-ct-totitle: Likewise.
32521         * modules/unicase/u16-ct-toupper: Likewise.
32522         * modules/unicase/u16-is-cased: Likewise.
32523         * modules/unicase/u16-is-casefolded: Likewise.
32524         * modules/unicase/u16-is-lowercase: Likewise.
32525         * modules/unicase/u16-is-titlecase: Likewise.
32526         * modules/unicase/u16-is-uppercase: Likewise.
32527         * modules/unicase/u16-prefix-context: Likewise.
32528         * modules/unicase/u16-suffix-context: Likewise.
32529         * modules/unicase/u16-tolower: Likewise.
32530         * modules/unicase/u16-totitle: Likewise.
32531         * modules/unicase/u16-toupper: Likewise.
32532         * modules/unicase/u32-casecmp: Likewise.
32533         * modules/unicase/u32-casecoll: Likewise.
32534         * modules/unicase/u32-casefold: Likewise.
32535         * modules/unicase/u32-casexfrm: Likewise.
32536         * modules/unicase/u32-ct-casefold: Likewise.
32537         * modules/unicase/u32-ct-tolower: Likewise.
32538         * modules/unicase/u32-ct-totitle: Likewise.
32539         * modules/unicase/u32-ct-toupper: Likewise.
32540         * modules/unicase/u32-is-cased: Likewise.
32541         * modules/unicase/u32-is-casefolded: Likewise.
32542         * modules/unicase/u32-is-lowercase: Likewise.
32543         * modules/unicase/u32-is-titlecase: Likewise.
32544         * modules/unicase/u32-is-uppercase: Likewise.
32545         * modules/unicase/u32-prefix-context: Likewise.
32546         * modules/unicase/u32-suffix-context: Likewise.
32547         * modules/unicase/u32-tolower: Likewise.
32548         * modules/unicase/u32-totitle: Likewise.
32549         * modules/unicase/u32-toupper: Likewise.
32550         * modules/unicase/ulc-casecmp: Likewise.
32551         * modules/unicase/ulc-casecoll: Likewise.
32552         * modules/unicase/ulc-casexfrm: Likewise.
32553         * modules/uniconv/u8-conv-from-enc: Likewise.
32554         * modules/uniconv/u8-conv-to-enc: Likewise.
32555         * modules/uniconv/u8-strconv-from-enc: Likewise.
32556         * modules/uniconv/u8-strconv-from-locale: Likewise.
32557         * modules/uniconv/u8-strconv-to-enc: Likewise.
32558         * modules/uniconv/u8-strconv-to-locale: Likewise.
32559         * modules/uniconv/u16-conv-from-enc: Likewise.
32560         * modules/uniconv/u16-conv-to-enc: Likewise.
32561         * modules/uniconv/u16-strconv-from-enc: Likewise.
32562         * modules/uniconv/u16-strconv-from-locale: Likewise.
32563         * modules/uniconv/u16-strconv-to-enc: Likewise.
32564         * modules/uniconv/u16-strconv-to-locale: Likewise.
32565         * modules/uniconv/u32-conv-from-enc: Likewise.
32566         * modules/uniconv/u32-conv-to-enc: Likewise.
32567         * modules/uniconv/u32-strconv-from-enc: Likewise.
32568         * modules/uniconv/u32-strconv-from-locale: Likewise.
32569         * modules/uniconv/u32-strconv-to-enc: Likewise.
32570         * modules/uniconv/u32-strconv-to-locale: Likewise.
32571         * modules/unictype/bidicategory-byname: Likewise.
32572         * modules/unictype/bidicategory-name: Likewise.
32573         * modules/unictype/bidicategory-of: Likewise.
32574         * modules/unictype/bidicategory-test: Likewise.
32575         * modules/unictype/block-list: Likewise.
32576         * modules/unictype/block-test: Likewise.
32577         * modules/unictype/category-C: Likewise.
32578         * modules/unictype/category-Cc: Likewise.
32579         * modules/unictype/category-Cf: Likewise.
32580         * modules/unictype/category-Cn: Likewise.
32581         * modules/unictype/category-Co: Likewise.
32582         * modules/unictype/category-Cs: Likewise.
32583         * modules/unictype/category-L: Likewise.
32584         * modules/unictype/category-Ll: Likewise.
32585         * modules/unictype/category-Lm: Likewise.
32586         * modules/unictype/category-Lo: Likewise.
32587         * modules/unictype/category-Lt: Likewise.
32588         * modules/unictype/category-Lu: Likewise.
32589         * modules/unictype/category-M: Likewise.
32590         * modules/unictype/category-Mc: Likewise.
32591         * modules/unictype/category-Me: Likewise.
32592         * modules/unictype/category-Mn: Likewise.
32593         * modules/unictype/category-N: Likewise.
32594         * modules/unictype/category-Nd: Likewise.
32595         * modules/unictype/category-Nl: Likewise.
32596         * modules/unictype/category-No: Likewise.
32597         * modules/unictype/category-P: Likewise.
32598         * modules/unictype/category-Pc: Likewise.
32599         * modules/unictype/category-Pd: Likewise.
32600         * modules/unictype/category-Pe: Likewise.
32601         * modules/unictype/category-Pf: Likewise.
32602         * modules/unictype/category-Pi: Likewise.
32603         * modules/unictype/category-Po: Likewise.
32604         * modules/unictype/category-Ps: Likewise.
32605         * modules/unictype/category-S: Likewise.
32606         * modules/unictype/category-Sc: Likewise.
32607         * modules/unictype/category-Sk: Likewise.
32608         * modules/unictype/category-Sm: Likewise.
32609         * modules/unictype/category-So: Likewise.
32610         * modules/unictype/category-Z: Likewise.
32611         * modules/unictype/category-Zl: Likewise.
32612         * modules/unictype/category-Zp: Likewise.
32613         * modules/unictype/category-Zs: Likewise.
32614         * modules/unictype/category-and: Likewise.
32615         * modules/unictype/category-and-not: Likewise.
32616         * modules/unictype/category-byname: Likewise.
32617         * modules/unictype/category-name: Likewise.
32618         * modules/unictype/category-none: Likewise.
32619         * modules/unictype/category-of: Likewise.
32620         * modules/unictype/category-or: Likewise.
32621         * modules/unictype/category-test: Likewise.
32622         * modules/unictype/combining-class: Likewise.
32623         * modules/unictype/ctype-alnum: Likewise.
32624         * modules/unictype/ctype-alpha: Likewise.
32625         * modules/unictype/ctype-blank: Likewise.
32626         * modules/unictype/ctype-cntrl: Likewise.
32627         * modules/unictype/ctype-digit: Likewise.
32628         * modules/unictype/ctype-graph: Likewise.
32629         * modules/unictype/ctype-lower: Likewise.
32630         * modules/unictype/ctype-print: Likewise.
32631         * modules/unictype/ctype-punct: Likewise.
32632         * modules/unictype/ctype-space: Likewise.
32633         * modules/unictype/ctype-upper: Likewise.
32634         * modules/unictype/ctype-xdigit: Likewise.
32635         * modules/unictype/decimal-digit: Likewise.
32636         * modules/unictype/digit: Likewise.
32637         * modules/unictype/mirror: Likewise.
32638         * modules/unictype/numeric: Likewise.
32639         * modules/unictype/property-alphabetic: Likewise.
32640         * modules/unictype/property-ascii-hex-digit: Likewise.
32641         * modules/unictype/property-bidi-arabic-digit: Likewise.
32642         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32643         * modules/unictype/property-bidi-block-separator: Likewise.
32644         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32645         * modules/unictype/property-bidi-common-separator: Likewise.
32646         * modules/unictype/property-bidi-control: Likewise.
32647         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32648         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32649         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32650         * modules/unictype/property-bidi-european-digit: Likewise.
32651         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32652         * modules/unictype/property-bidi-left-to-right: Likewise.
32653         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32654         * modules/unictype/property-bidi-other-neutral: Likewise.
32655         * modules/unictype/property-bidi-pdf: Likewise.
32656         * modules/unictype/property-bidi-segment-separator: Likewise.
32657         * modules/unictype/property-bidi-whitespace: Likewise.
32658         * modules/unictype/property-byname: Likewise.
32659         * modules/unictype/property-combining: Likewise.
32660         * modules/unictype/property-composite: Likewise.
32661         * modules/unictype/property-currency-symbol: Likewise.
32662         * modules/unictype/property-dash: Likewise.
32663         * modules/unictype/property-decimal-digit: Likewise.
32664         * modules/unictype/property-default-ignorable-code-point: Likewise.
32665         * modules/unictype/property-deprecated: Likewise.
32666         * modules/unictype/property-diacritic: Likewise.
32667         * modules/unictype/property-extender: Likewise.
32668         * modules/unictype/property-format-control: Likewise.
32669         * modules/unictype/property-grapheme-base: Likewise.
32670         * modules/unictype/property-grapheme-extend: Likewise.
32671         * modules/unictype/property-grapheme-link: Likewise.
32672         * modules/unictype/property-hex-digit: Likewise.
32673         * modules/unictype/property-hyphen: Likewise.
32674         * modules/unictype/property-id-continue: Likewise.
32675         * modules/unictype/property-id-start: Likewise.
32676         * modules/unictype/property-ideographic: Likewise.
32677         * modules/unictype/property-ids-binary-operator: Likewise.
32678         * modules/unictype/property-ids-trinary-operator: Likewise.
32679         * modules/unictype/property-ignorable-control: Likewise.
32680         * modules/unictype/property-iso-control: Likewise.
32681         * modules/unictype/property-join-control: Likewise.
32682         * modules/unictype/property-left-of-pair: Likewise.
32683         * modules/unictype/property-line-separator: Likewise.
32684         * modules/unictype/property-logical-order-exception: Likewise.
32685         * modules/unictype/property-lowercase: Likewise.
32686         * modules/unictype/property-math: Likewise.
32687         * modules/unictype/property-non-break: Likewise.
32688         * modules/unictype/property-not-a-character: Likewise.
32689         * modules/unictype/property-numeric: Likewise.
32690         * modules/unictype/property-other-alphabetic: Likewise.
32691         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32692         * modules/unictype/property-other-grapheme-extend: Likewise.
32693         * modules/unictype/property-other-id-continue: Likewise.
32694         * modules/unictype/property-other-id-start: Likewise.
32695         * modules/unictype/property-other-lowercase: Likewise.
32696         * modules/unictype/property-other-math: Likewise.
32697         * modules/unictype/property-other-uppercase: Likewise.
32698         * modules/unictype/property-paired-punctuation: Likewise.
32699         * modules/unictype/property-paragraph-separator: Likewise.
32700         * modules/unictype/property-pattern-syntax: Likewise.
32701         * modules/unictype/property-pattern-white-space: Likewise.
32702         * modules/unictype/property-private-use: Likewise.
32703         * modules/unictype/property-punctuation: Likewise.
32704         * modules/unictype/property-quotation-mark: Likewise.
32705         * modules/unictype/property-radical: Likewise.
32706         * modules/unictype/property-sentence-terminal: Likewise.
32707         * modules/unictype/property-soft-dotted: Likewise.
32708         * modules/unictype/property-space: Likewise.
32709         * modules/unictype/property-terminal-punctuation: Likewise.
32710         * modules/unictype/property-test: Likewise.
32711         * modules/unictype/property-titlecase: Likewise.
32712         * modules/unictype/property-unassigned-code-value: Likewise.
32713         * modules/unictype/property-unified-ideograph: Likewise.
32714         * modules/unictype/property-uppercase: Likewise.
32715         * modules/unictype/property-variation-selector: Likewise.
32716         * modules/unictype/property-white-space: Likewise.
32717         * modules/unictype/property-xid-continue: Likewise.
32718         * modules/unictype/property-xid-start: Likewise.
32719         * modules/unictype/property-zero-width: Likewise.
32720         * modules/unictype/scripts: Likewise.
32721         * modules/unictype/syntax-c-ident: Likewise.
32722         * modules/unictype/syntax-c-whitespace: Likewise.
32723         * modules/unictype/syntax-java-ident: Likewise.
32724         * modules/unictype/syntax-java-whitespace: Likewise.
32725         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32726         * modules/unilbrk/u8-width-linebreaks: Likewise.
32727         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32728         * modules/unilbrk/u16-width-linebreaks: Likewise.
32729         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32730         * modules/unilbrk/u32-width-linebreaks: Likewise.
32731         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32732         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32733         * modules/uniname/uniname: Likewise.
32734         * modules/uninorm/canonical-decomposition: Likewise.
32735         * modules/uninorm/composition: Likewise.
32736         * modules/uninorm/decomposing-form: Likewise.
32737         * modules/uninorm/decomposition: Likewise.
32738         * modules/uninorm/filter: Likewise.
32739         * modules/uninorm/nfc: Likewise.
32740         * modules/uninorm/nfd: Likewise.
32741         * modules/uninorm/nfkc: Likewise.
32742         * modules/uninorm/nfkd: Likewise.
32743         * modules/uninorm/u8-normalize: Likewise.
32744         * modules/uninorm/u8-normcmp: Likewise.
32745         * modules/uninorm/u8-normcoll: Likewise.
32746         * modules/uninorm/u8-normxfrm: Likewise.
32747         * modules/uninorm/u16-normalize: Likewise.
32748         * modules/uninorm/u16-normcmp: Likewise.
32749         * modules/uninorm/u16-normcoll: Likewise.
32750         * modules/uninorm/u16-normxfrm: Likewise.
32751         * modules/uninorm/u32-normalize: Likewise.
32752         * modules/uninorm/u32-normcmp: Likewise.
32753         * modules/uninorm/u32-normcoll: Likewise.
32754         * modules/uninorm/u32-normxfrm: Likewise.
32755         * modules/unistdio/u8-asnprintf: Likewise.
32756         * modules/unistdio/u8-asprintf: Likewise.
32757         * modules/unistdio/u8-snprintf: Likewise.
32758         * modules/unistdio/u8-sprintf: Likewise.
32759         * modules/unistdio/u8-u8-asnprintf: Likewise.
32760         * modules/unistdio/u8-u8-asprintf: Likewise.
32761         * modules/unistdio/u8-u8-snprintf: Likewise.
32762         * modules/unistdio/u8-u8-sprintf: Likewise.
32763         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32764         * modules/unistdio/u8-u8-vasprintf: Likewise.
32765         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32766         * modules/unistdio/u8-u8-vsprintf: Likewise.
32767         * modules/unistdio/u8-vasnprintf: Likewise.
32768         * modules/unistdio/u8-vasprintf: Likewise.
32769         * modules/unistdio/u8-vsnprintf: Likewise.
32770         * modules/unistdio/u8-vsprintf: Likewise.
32771         * modules/unistdio/u16-asnprintf: Likewise.
32772         * modules/unistdio/u16-asprintf: Likewise.
32773         * modules/unistdio/u16-snprintf: Likewise.
32774         * modules/unistdio/u16-sprintf: Likewise.
32775         * modules/unistdio/u16-u16-asnprintf: Likewise.
32776         * modules/unistdio/u16-u16-asprintf: Likewise.
32777         * modules/unistdio/u16-u16-snprintf: Likewise.
32778         * modules/unistdio/u16-u16-sprintf: Likewise.
32779         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32780         * modules/unistdio/u16-u16-vasprintf: Likewise.
32781         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32782         * modules/unistdio/u16-u16-vsprintf: Likewise.
32783         * modules/unistdio/u16-vasnprintf: Likewise.
32784         * modules/unistdio/u16-vasprintf: Likewise.
32785         * modules/unistdio/u16-vsnprintf: Likewise.
32786         * modules/unistdio/u16-vsprintf: Likewise.
32787         * modules/unistdio/u32-asnprintf: Likewise.
32788         * modules/unistdio/u32-asprintf: Likewise.
32789         * modules/unistdio/u32-snprintf: Likewise.
32790         * modules/unistdio/u32-sprintf: Likewise.
32791         * modules/unistdio/u32-u32-asnprintf: Likewise.
32792         * modules/unistdio/u32-u32-asprintf: Likewise.
32793         * modules/unistdio/u32-u32-snprintf: Likewise.
32794         * modules/unistdio/u32-u32-sprintf: Likewise.
32795         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32796         * modules/unistdio/u32-u32-vasprintf: Likewise.
32797         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32798         * modules/unistdio/u32-u32-vsprintf: Likewise.
32799         * modules/unistdio/u32-vasnprintf: Likewise.
32800         * modules/unistdio/u32-vasprintf: Likewise.
32801         * modules/unistdio/u32-vsnprintf: Likewise.
32802         * modules/unistdio/u32-vsprintf: Likewise.
32803         * modules/unistdio/ulc-asnprintf: Likewise.
32804         * modules/unistdio/ulc-asprintf: Likewise.
32805         * modules/unistdio/ulc-fprintf: Likewise.
32806         * modules/unistdio/ulc-snprintf: Likewise.
32807         * modules/unistdio/ulc-sprintf: Likewise.
32808         * modules/unistdio/ulc-vasnprintf: Likewise.
32809         * modules/unistdio/ulc-vasprintf: Likewise.
32810         * modules/unistdio/ulc-vfprintf: Likewise.
32811         * modules/unistdio/ulc-vsnprintf: Likewise.
32812         * modules/unistdio/ulc-vsprintf: Likewise.
32813         * modules/unistr/u8-check: Likewise.
32814         * modules/unistr/u8-chr: Likewise.
32815         * modules/unistr/u8-cmp: Likewise.
32816         * modules/unistr/u8-cmp2: Likewise.
32817         * modules/unistr/u8-cpy: Likewise.
32818         * modules/unistr/u8-cpy-alloc: Likewise.
32819         * modules/unistr/u8-endswith: Likewise.
32820         * modules/unistr/u8-mblen: Likewise.
32821         * modules/unistr/u8-mbsnlen: Likewise.
32822         * modules/unistr/u8-mbtouc: Likewise.
32823         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32824         * modules/unistr/u8-mbtoucr: Likewise.
32825         * modules/unistr/u8-move: Likewise.
32826         * modules/unistr/u8-next: Likewise.
32827         * modules/unistr/u8-prev: Likewise.
32828         * modules/unistr/u8-set: Likewise.
32829         * modules/unistr/u8-startswith: Likewise.
32830         * modules/unistr/u8-stpcpy: Likewise.
32831         * modules/unistr/u8-stpncpy: Likewise.
32832         * modules/unistr/u8-strcat: Likewise.
32833         * modules/unistr/u8-strchr: Likewise.
32834         * modules/unistr/u8-strcmp: Likewise.
32835         * modules/unistr/u8-strcoll: Likewise.
32836         * modules/unistr/u8-strcpy: Likewise.
32837         * modules/unistr/u8-strcspn: Likewise.
32838         * modules/unistr/u8-strdup: Likewise.
32839         * modules/unistr/u8-strlen: Likewise.
32840         * modules/unistr/u8-strmblen: Likewise.
32841         * modules/unistr/u8-strmbtouc: Likewise.
32842         * modules/unistr/u8-strncat: Likewise.
32843         * modules/unistr/u8-strncmp: Likewise.
32844         * modules/unistr/u8-strncpy: Likewise.
32845         * modules/unistr/u8-strnlen: Likewise.
32846         * modules/unistr/u8-strpbrk: Likewise.
32847         * modules/unistr/u8-strrchr: Likewise.
32848         * modules/unistr/u8-strspn: Likewise.
32849         * modules/unistr/u8-strstr: Likewise.
32850         * modules/unistr/u8-strtok: Likewise.
32851         * modules/unistr/u8-to-u16: Likewise.
32852         * modules/unistr/u8-to-u32: Likewise.
32853         * modules/unistr/u8-uctomb: Likewise.
32854         * modules/unistr/u16-check: Likewise.
32855         * modules/unistr/u16-chr: Likewise.
32856         * modules/unistr/u16-cmp: Likewise.
32857         * modules/unistr/u16-cmp2: Likewise.
32858         * modules/unistr/u16-cpy: Likewise.
32859         * modules/unistr/u16-cpy-alloc: Likewise.
32860         * modules/unistr/u16-endswith: Likewise.
32861         * modules/unistr/u16-mblen: Likewise.
32862         * modules/unistr/u16-mbsnlen: Likewise.
32863         * modules/unistr/u16-mbtouc: Likewise.
32864         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32865         * modules/unistr/u16-mbtoucr: Likewise.
32866         * modules/unistr/u16-move: Likewise.
32867         * modules/unistr/u16-next: Likewise.
32868         * modules/unistr/u16-prev: Likewise.
32869         * modules/unistr/u16-set: Likewise.
32870         * modules/unistr/u16-startswith: Likewise.
32871         * modules/unistr/u16-stpcpy: Likewise.
32872         * modules/unistr/u16-stpncpy: Likewise.
32873         * modules/unistr/u16-strcat: Likewise.
32874         * modules/unistr/u16-strchr: Likewise.
32875         * modules/unistr/u16-strcmp: Likewise.
32876         * modules/unistr/u16-strcoll: Likewise.
32877         * modules/unistr/u16-strcpy: Likewise.
32878         * modules/unistr/u16-strcspn: Likewise.
32879         * modules/unistr/u16-strdup: Likewise.
32880         * modules/unistr/u16-strlen: Likewise.
32881         * modules/unistr/u16-strmblen: Likewise.
32882         * modules/unistr/u16-strmbtouc: Likewise.
32883         * modules/unistr/u16-strncat: Likewise.
32884         * modules/unistr/u16-strncmp: Likewise.
32885         * modules/unistr/u16-strncpy: Likewise.
32886         * modules/unistr/u16-strnlen: Likewise.
32887         * modules/unistr/u16-strpbrk: Likewise.
32888         * modules/unistr/u16-strrchr: Likewise.
32889         * modules/unistr/u16-strspn: Likewise.
32890         * modules/unistr/u16-strstr: Likewise.
32891         * modules/unistr/u16-strtok: Likewise.
32892         * modules/unistr/u16-to-u32: Likewise.
32893         * modules/unistr/u16-to-u8: Likewise.
32894         * modules/unistr/u16-uctomb: Likewise.
32895         * modules/unistr/u32-check: Likewise.
32896         * modules/unistr/u32-chr: Likewise.
32897         * modules/unistr/u32-cmp: Likewise.
32898         * modules/unistr/u32-cmp2: Likewise.
32899         * modules/unistr/u32-cpy: Likewise.
32900         * modules/unistr/u32-cpy-alloc: Likewise.
32901         * modules/unistr/u32-endswith: Likewise.
32902         * modules/unistr/u32-mblen: Likewise.
32903         * modules/unistr/u32-mbsnlen: Likewise.
32904         * modules/unistr/u32-mbtouc: Likewise.
32905         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32906         * modules/unistr/u32-mbtoucr: Likewise.
32907         * modules/unistr/u32-move: Likewise.
32908         * modules/unistr/u32-next: Likewise.
32909         * modules/unistr/u32-prev: Likewise.
32910         * modules/unistr/u32-set: Likewise.
32911         * modules/unistr/u32-startswith: Likewise.
32912         * modules/unistr/u32-stpcpy: Likewise.
32913         * modules/unistr/u32-stpncpy: Likewise.
32914         * modules/unistr/u32-strcat: Likewise.
32915         * modules/unistr/u32-strchr: Likewise.
32916         * modules/unistr/u32-strcmp: Likewise.
32917         * modules/unistr/u32-strcoll: Likewise.
32918         * modules/unistr/u32-strcpy: Likewise.
32919         * modules/unistr/u32-strcspn: Likewise.
32920         * modules/unistr/u32-strdup: Likewise.
32921         * modules/unistr/u32-strlen: Likewise.
32922         * modules/unistr/u32-strmblen: Likewise.
32923         * modules/unistr/u32-strmbtouc: Likewise.
32924         * modules/unistr/u32-strncat: Likewise.
32925         * modules/unistr/u32-strncmp: Likewise.
32926         * modules/unistr/u32-strncpy: Likewise.
32927         * modules/unistr/u32-strnlen: Likewise.
32928         * modules/unistr/u32-strpbrk: Likewise.
32929         * modules/unistr/u32-strrchr: Likewise.
32930         * modules/unistr/u32-strspn: Likewise.
32931         * modules/unistr/u32-strstr: Likewise.
32932         * modules/unistr/u32-strtok: Likewise.
32933         * modules/unistr/u32-to-u16: Likewise.
32934         * modules/unistr/u32-to-u8: Likewise.
32935         * modules/unistr/u32-uctomb: Likewise.
32936         * modules/uniwbrk/u8-wordbreaks: Likewise.
32937         * modules/uniwbrk/u16-wordbreaks: Likewise.
32938         * modules/uniwbrk/u32-wordbreaks: Likewise.
32939         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32940         * modules/uniwbrk/wordbreak-property: Likewise.
32941         * modules/uniwidth/u8-strwidth: Likewise.
32942         * modules/uniwidth/u8-width: Likewise.
32943         * modules/uniwidth/u16-strwidth: Likewise.
32944         * modules/uniwidth/u16-width: Likewise.
32945         * modules/uniwidth/u32-strwidth: Likewise.
32946         * modules/uniwidth/u32-width: Likewise.
32947         * modules/uniwidth/width: Likewise.
32948         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32949         with $(LIBUNISTRING).
32950         * modules/unicase/ignorable-tests: Likewise.
32951         * modules/unicase/locale-language-tests: Likewise.
32952         * modules/unicase/tolower-tests: Likewise.
32953         * modules/unicase/totitle-tests: Likewise.
32954         * modules/unicase/toupper-tests: Likewise.
32955         * modules/unicase/u8-casecmp-tests: Likewise.
32956         * modules/unicase/u8-casecoll-tests: Likewise.
32957         * modules/unicase/u8-casefold-tests: Likewise.
32958         * modules/unicase/u8-is-cased-tests: Likewise.
32959         * modules/unicase/u8-is-casefolded-tests: Likewise.
32960         * modules/unicase/u8-is-lowercase-tests: Likewise.
32961         * modules/unicase/u8-is-titlecase-tests: Likewise.
32962         * modules/unicase/u8-is-uppercase-tests: Likewise.
32963         * modules/unicase/u8-tolower-tests: Likewise.
32964         * modules/unicase/u8-totitle-tests: Likewise.
32965         * modules/unicase/u8-toupper-tests: Likewise.
32966         * modules/unicase/u16-casecmp-tests: Likewise.
32967         * modules/unicase/u16-casecoll-tests: Likewise.
32968         * modules/unicase/u16-casefold-tests: Likewise.
32969         * modules/unicase/u16-is-cased-tests: Likewise.
32970         * modules/unicase/u16-is-casefolded-tests: Likewise.
32971         * modules/unicase/u16-is-lowercase-tests: Likewise.
32972         * modules/unicase/u16-is-titlecase-tests: Likewise.
32973         * modules/unicase/u16-is-uppercase-tests: Likewise.
32974         * modules/unicase/u16-tolower-tests: Likewise.
32975         * modules/unicase/u16-totitle-tests: Likewise.
32976         * modules/unicase/u16-toupper-tests: Likewise.
32977         * modules/unicase/u32-casecmp-tests: Likewise.
32978         * modules/unicase/u32-casecoll-tests: Likewise.
32979         * modules/unicase/u32-casefold-tests: Likewise.
32980         * modules/unicase/u32-is-cased-tests: Likewise.
32981         * modules/unicase/u32-is-casefolded-tests: Likewise.
32982         * modules/unicase/u32-is-lowercase-tests: Likewise.
32983         * modules/unicase/u32-is-titlecase-tests: Likewise.
32984         * modules/unicase/u32-is-uppercase-tests: Likewise.
32985         * modules/unicase/u32-tolower-tests: Likewise.
32986         * modules/unicase/u32-totitle-tests: Likewise.
32987         * modules/unicase/u32-toupper-tests: Likewise.
32988         * modules/unicase/ulc-casecmp-tests: Likewise.
32989         * modules/unicase/ulc-casecoll-tests: Likewise.
32990         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32991         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32992         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32993         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32994         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32995         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32996         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32997         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32998         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32999         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33000         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33001         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33002         * modules/unictype/bidicategory-byname-tests: Likewise.
33003         * modules/unictype/bidicategory-name-tests: Likewise.
33004         * modules/unictype/bidicategory-of-tests: Likewise.
33005         * modules/unictype/bidicategory-test-tests: Likewise.
33006         * modules/unictype/block-list-tests: Likewise.
33007         * modules/unictype/block-of-tests: Likewise.
33008         * modules/unictype/block-test-tests: Likewise.
33009         * modules/unictype/category-C-tests: Likewise.
33010         * modules/unictype/category-Cc-tests: Likewise.
33011         * modules/unictype/category-Cf-tests: Likewise.
33012         * modules/unictype/category-Cn-tests: Likewise.
33013         * modules/unictype/category-Co-tests: Likewise.
33014         * modules/unictype/category-Cs-tests: Likewise.
33015         * modules/unictype/category-L-tests: Likewise.
33016         * modules/unictype/category-Ll-tests: Likewise.
33017         * modules/unictype/category-Lm-tests: Likewise.
33018         * modules/unictype/category-Lo-tests: Likewise.
33019         * modules/unictype/category-Lt-tests: Likewise.
33020         * modules/unictype/category-Lu-tests: Likewise.
33021         * modules/unictype/category-M-tests: Likewise.
33022         * modules/unictype/category-Mc-tests: Likewise.
33023         * modules/unictype/category-Me-tests: Likewise.
33024         * modules/unictype/category-Mn-tests: Likewise.
33025         * modules/unictype/category-N-tests: Likewise.
33026         * modules/unictype/category-Nd-tests: Likewise.
33027         * modules/unictype/category-Nl-tests: Likewise.
33028         * modules/unictype/category-No-tests: Likewise.
33029         * modules/unictype/category-P-tests: Likewise.
33030         * modules/unictype/category-Pc-tests: Likewise.
33031         * modules/unictype/category-Pd-tests: Likewise.
33032         * modules/unictype/category-Pe-tests: Likewise.
33033         * modules/unictype/category-Pf-tests: Likewise.
33034         * modules/unictype/category-Pi-tests: Likewise.
33035         * modules/unictype/category-Po-tests: Likewise.
33036         * modules/unictype/category-Ps-tests: Likewise.
33037         * modules/unictype/category-S-tests: Likewise.
33038         * modules/unictype/category-Sc-tests: Likewise.
33039         * modules/unictype/category-Sk-tests: Likewise.
33040         * modules/unictype/category-Sm-tests: Likewise.
33041         * modules/unictype/category-So-tests: Likewise.
33042         * modules/unictype/category-Z-tests: Likewise.
33043         * modules/unictype/category-Zl-tests: Likewise.
33044         * modules/unictype/category-Zp-tests: Likewise.
33045         * modules/unictype/category-Zs-tests: Likewise.
33046         * modules/unictype/category-and-not-tests: Likewise.
33047         * modules/unictype/category-and-tests: Likewise.
33048         * modules/unictype/category-byname-tests: Likewise.
33049         * modules/unictype/category-name-tests: Likewise.
33050         * modules/unictype/category-none-tests: Likewise.
33051         * modules/unictype/category-of-tests: Likewise.
33052         * modules/unictype/category-or-tests: Likewise.
33053         * modules/unictype/category-test-withtable-tests: Likewise.
33054         * modules/unictype/combining-class-tests: Likewise.
33055         * modules/unictype/ctype-alnum-tests: Likewise.
33056         * modules/unictype/ctype-alpha-tests: Likewise.
33057         * modules/unictype/ctype-blank-tests: Likewise.
33058         * modules/unictype/ctype-cntrl-tests: Likewise.
33059         * modules/unictype/ctype-digit-tests: Likewise.
33060         * modules/unictype/ctype-graph-tests: Likewise.
33061         * modules/unictype/ctype-lower-tests: Likewise.
33062         * modules/unictype/ctype-print-tests: Likewise.
33063         * modules/unictype/ctype-punct-tests: Likewise.
33064         * modules/unictype/ctype-space-tests: Likewise.
33065         * modules/unictype/ctype-upper-tests: Likewise.
33066         * modules/unictype/ctype-xdigit-tests: Likewise.
33067         * modules/unictype/decimal-digit-tests: Likewise.
33068         * modules/unictype/digit-tests: Likewise.
33069         * modules/unictype/mirror-tests: Likewise.
33070         * modules/unictype/numeric-tests: Likewise.
33071         * modules/unictype/property-alphabetic-tests: Likewise.
33072         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33073         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33074         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33075         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33076         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33077         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33078         * modules/unictype/property-bidi-control-tests: Likewise.
33079         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33080         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33081         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33082         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33083         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33084         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33085         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33086         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33087         * modules/unictype/property-bidi-pdf-tests: Likewise.
33088         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33089         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33090         * modules/unictype/property-byname-tests: Likewise.
33091         * modules/unictype/property-combining-tests: Likewise.
33092         * modules/unictype/property-composite-tests: Likewise.
33093         * modules/unictype/property-currency-symbol-tests: Likewise.
33094         * modules/unictype/property-dash-tests: Likewise.
33095         * modules/unictype/property-decimal-digit-tests: Likewise.
33096         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33097         * modules/unictype/property-deprecated-tests: Likewise.
33098         * modules/unictype/property-diacritic-tests: Likewise.
33099         * modules/unictype/property-extender-tests: Likewise.
33100         * modules/unictype/property-format-control-tests: Likewise.
33101         * modules/unictype/property-grapheme-base-tests: Likewise.
33102         * modules/unictype/property-grapheme-extend-tests: Likewise.
33103         * modules/unictype/property-grapheme-link-tests: Likewise.
33104         * modules/unictype/property-hex-digit-tests: Likewise.
33105         * modules/unictype/property-hyphen-tests: Likewise.
33106         * modules/unictype/property-id-continue-tests: Likewise.
33107         * modules/unictype/property-id-start-tests: Likewise.
33108         * modules/unictype/property-ideographic-tests: Likewise.
33109         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33110         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33111         * modules/unictype/property-ignorable-control-tests: Likewise.
33112         * modules/unictype/property-iso-control-tests: Likewise.
33113         * modules/unictype/property-join-control-tests: Likewise.
33114         * modules/unictype/property-left-of-pair-tests: Likewise.
33115         * modules/unictype/property-line-separator-tests: Likewise.
33116         * modules/unictype/property-logical-order-exception-tests: Likewise.
33117         * modules/unictype/property-lowercase-tests: Likewise.
33118         * modules/unictype/property-math-tests: Likewise.
33119         * modules/unictype/property-non-break-tests: Likewise.
33120         * modules/unictype/property-not-a-character-tests: Likewise.
33121         * modules/unictype/property-numeric-tests: Likewise.
33122         * modules/unictype/property-other-alphabetic-tests: Likewise.
33123         * modules/unictype/property-other-default-ignorable-code-point-tests:
33124         Likewise.
33125         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33126         * modules/unictype/property-other-id-continue-tests: Likewise.
33127         * modules/unictype/property-other-id-start-tests: Likewise.
33128         * modules/unictype/property-other-lowercase-tests: Likewise.
33129         * modules/unictype/property-other-math-tests: Likewise.
33130         * modules/unictype/property-other-uppercase-tests: Likewise.
33131         * modules/unictype/property-paired-punctuation-tests: Likewise.
33132         * modules/unictype/property-paragraph-separator-tests: Likewise.
33133         * modules/unictype/property-pattern-syntax-tests: Likewise.
33134         * modules/unictype/property-pattern-white-space-tests: Likewise.
33135         * modules/unictype/property-private-use-tests: Likewise.
33136         * modules/unictype/property-punctuation-tests: Likewise.
33137         * modules/unictype/property-quotation-mark-tests: Likewise.
33138         * modules/unictype/property-radical-tests: Likewise.
33139         * modules/unictype/property-sentence-terminal-tests: Likewise.
33140         * modules/unictype/property-soft-dotted-tests: Likewise.
33141         * modules/unictype/property-space-tests: Likewise.
33142         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33143         * modules/unictype/property-test-tests: Likewise.
33144         * modules/unictype/property-titlecase-tests: Likewise.
33145         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33146         * modules/unictype/property-unified-ideograph-tests: Likewise.
33147         * modules/unictype/property-uppercase-tests: Likewise.
33148         * modules/unictype/property-variation-selector-tests: Likewise.
33149         * modules/unictype/property-white-space-tests: Likewise.
33150         * modules/unictype/property-xid-continue-tests: Likewise.
33151         * modules/unictype/property-xid-start-tests: Likewise.
33152         * modules/unictype/property-zero-width-tests: Likewise.
33153         * modules/unictype/scripts-tests: Likewise.
33154         * modules/unictype/syntax-c-ident-tests: Likewise.
33155         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33156         * modules/unictype/syntax-java-ident-tests: Likewise.
33157         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33158         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33159         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33160         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33161         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33162         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33163         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33164         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33165         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33166         * modules/uniname/uniname-tests: Likewise.
33167         * modules/uninorm/canonical-decomposition-tests: Likewise.
33168         * modules/uninorm/compat-decomposition-tests: Likewise.
33169         * modules/uninorm/composition-tests: Likewise.
33170         * modules/uninorm/decomposing-form-tests: Likewise.
33171         * modules/uninorm/decomposition-tests: Likewise.
33172         * modules/uninorm/filter-tests: Likewise.
33173         * modules/uninorm/nfc-tests: Likewise.
33174         * modules/uninorm/nfd-tests: Likewise.
33175         * modules/uninorm/nfkc-tests: Likewise.
33176         * modules/uninorm/nfkd-tests: Likewise.
33177         * modules/uninorm/u8-normcmp-tests: Likewise.
33178         * modules/uninorm/u8-normcoll-tests: Likewise.
33179         * modules/uninorm/u16-normcmp-tests: Likewise.
33180         * modules/uninorm/u16-normcoll-tests: Likewise.
33181         * modules/uninorm/u32-normcmp-tests: Likewise.
33182         * modules/uninorm/u32-normcoll-tests: Likewise.
33183         * modules/unistdio/u8-asnprintf-tests: Likewise.
33184         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33185         * modules/unistdio/u8-vasprintf-tests: Likewise.
33186         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33187         * modules/unistdio/u8-vsprintf-tests: Likewise.
33188         * modules/unistdio/u16-asnprintf-tests: Likewise.
33189         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33190         * modules/unistdio/u16-vasprintf-tests: Likewise.
33191         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33192         * modules/unistdio/u16-vsprintf-tests: Likewise.
33193         * modules/unistdio/u32-asnprintf-tests: Likewise.
33194         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33195         * modules/unistdio/u32-vasprintf-tests: Likewise.
33196         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33197         * modules/unistdio/u32-vsprintf-tests: Likewise.
33198         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33199         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33200         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33201         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33202         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33203         * modules/unistr/u8-check-tests: Likewise.
33204         * modules/unistr/u8-chr-tests: Likewise.
33205         * modules/unistr/u8-cmp-tests: Likewise.
33206         * modules/unistr/u8-cmp2-tests: Likewise.
33207         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33208         * modules/unistr/u8-cpy-tests: Likewise.
33209         * modules/unistr/u8-mblen-tests: Likewise.
33210         * modules/unistr/u8-mbsnlen-tests: Likewise.
33211         * modules/unistr/u8-mbtouc-tests: Likewise.
33212         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33213         * modules/unistr/u8-mbtoucr-tests: Likewise.
33214         * modules/unistr/u8-move-tests: Likewise.
33215         * modules/unistr/u8-next-tests: Likewise.
33216         * modules/unistr/u8-prev-tests: Likewise.
33217         * modules/unistr/u8-set-tests: Likewise.
33218         * modules/unistr/u8-stpcpy-tests: Likewise.
33219         * modules/unistr/u8-stpncpy-tests: Likewise.
33220         * modules/unistr/u8-strcat-tests: Likewise.
33221         * modules/unistr/u8-strcmp-tests: Likewise.
33222         * modules/unistr/u8-strcoll-tests: Likewise.
33223         * modules/unistr/u8-strcpy-tests: Likewise.
33224         * modules/unistr/u8-strdup-tests: Likewise.
33225         * modules/unistr/u8-strlen-tests: Likewise.
33226         * modules/unistr/u8-strmblen-tests: Likewise.
33227         * modules/unistr/u8-strmbtouc-tests: Likewise.
33228         * modules/unistr/u8-strncat-tests: Likewise.
33229         * modules/unistr/u8-strncmp-tests: Likewise.
33230         * modules/unistr/u8-strncpy-tests: Likewise.
33231         * modules/unistr/u8-strnlen-tests: Likewise.
33232         * modules/unistr/u8-to-u16-tests: Likewise.
33233         * modules/unistr/u8-to-u32-tests: Likewise.
33234         * modules/unistr/u8-uctomb-tests: Likewise.
33235         * modules/unistr/u16-check-tests: Likewise.
33236         * modules/unistr/u16-chr-tests: Likewise.
33237         * modules/unistr/u16-cmp-tests: Likewise.
33238         * modules/unistr/u16-cmp2-tests: Likewise.
33239         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33240         * modules/unistr/u16-cpy-tests: Likewise.
33241         * modules/unistr/u16-mblen-tests: Likewise.
33242         * modules/unistr/u16-mbsnlen-tests: Likewise.
33243         * modules/unistr/u16-mbtouc-tests: Likewise.
33244         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33245         * modules/unistr/u16-mbtoucr-tests: Likewise.
33246         * modules/unistr/u16-move-tests: Likewise.
33247         * modules/unistr/u16-next-tests: Likewise.
33248         * modules/unistr/u16-prev-tests: Likewise.
33249         * modules/unistr/u16-set-tests: Likewise.
33250         * modules/unistr/u16-stpcpy-tests: Likewise.
33251         * modules/unistr/u16-stpncpy-tests: Likewise.
33252         * modules/unistr/u16-strcat-tests: Likewise.
33253         * modules/unistr/u16-strcmp-tests: Likewise.
33254         * modules/unistr/u16-strcoll-tests: Likewise.
33255         * modules/unistr/u16-strcpy-tests: Likewise.
33256         * modules/unistr/u16-strdup-tests: Likewise.
33257         * modules/unistr/u16-strlen-tests: Likewise.
33258         * modules/unistr/u16-strmblen-tests: Likewise.
33259         * modules/unistr/u16-strmbtouc-tests: Likewise.
33260         * modules/unistr/u16-strncat-tests: Likewise.
33261         * modules/unistr/u16-strncmp-tests: Likewise.
33262         * modules/unistr/u16-strncpy-tests: Likewise.
33263         * modules/unistr/u16-strnlen-tests: Likewise.
33264         * modules/unistr/u16-to-u32-tests: Likewise.
33265         * modules/unistr/u16-to-u8-tests: Likewise.
33266         * modules/unistr/u16-uctomb-tests: Likewise.
33267         * modules/unistr/u32-check-tests: Likewise.
33268         * modules/unistr/u32-chr-tests: Likewise.
33269         * modules/unistr/u32-cmp-tests: Likewise.
33270         * modules/unistr/u32-cmp2-tests: Likewise.
33271         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33272         * modules/unistr/u32-cpy-tests: Likewise.
33273         * modules/unistr/u32-mblen-tests: Likewise.
33274         * modules/unistr/u32-mbsnlen-tests: Likewise.
33275         * modules/unistr/u32-mbtouc-tests: Likewise.
33276         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33277         * modules/unistr/u32-mbtoucr-tests: Likewise.
33278         * modules/unistr/u32-move-tests: Likewise.
33279         * modules/unistr/u32-next-tests: Likewise.
33280         * modules/unistr/u32-prev-tests: Likewise.
33281         * modules/unistr/u32-set-tests: Likewise.
33282         * modules/unistr/u32-stpcpy-tests: Likewise.
33283         * modules/unistr/u32-stpncpy-tests: Likewise.
33284         * modules/unistr/u32-strcat-tests: Likewise.
33285         * modules/unistr/u32-strcmp-tests: Likewise.
33286         * modules/unistr/u32-strcoll-tests: Likewise.
33287         * modules/unistr/u32-strcpy-tests: Likewise.
33288         * modules/unistr/u32-strdup-tests: Likewise.
33289         * modules/unistr/u32-strlen-tests: Likewise.
33290         * modules/unistr/u32-strmblen-tests: Likewise.
33291         * modules/unistr/u32-strmbtouc-tests: Likewise.
33292         * modules/unistr/u32-strncat-tests: Likewise.
33293         * modules/unistr/u32-strncmp-tests: Likewise.
33294         * modules/unistr/u32-strncpy-tests: Likewise.
33295         * modules/unistr/u32-strnlen-tests: Likewise.
33296         * modules/unistr/u32-to-u16-tests: Likewise.
33297         * modules/unistr/u32-to-u8-tests: Likewise.
33298         * modules/unistr/u32-uctomb-tests: Likewise.
33299         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33300         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33301         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33302         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33303         * modules/uniwidth/u8-strwidth-tests: Likewise.
33304         * modules/uniwidth/u8-width-tests: Likewise.
33305         * modules/uniwidth/u16-strwidth-tests: Likewise.
33306         * modules/uniwidth/u16-width-tests: Likewise.
33307         * modules/uniwidth/u32-strwidth-tests: Likewise.
33308         * modules/uniwidth/u32-width-tests: Likewise.
33309         * modules/uniwidth/width-tests: Likewise.
33310
33311 2010-05-18  Richard Jones  <rjones@redhat.com>
33312
33313         doc: users.txt: list hivex
33314         * users.txt: Add hivex.
33315
33316 2010-05-18  Richard Jones  <rjones@redhat.com>
33317
33318         doc: users.txt: list febootstrap
33319         * users.txt: Add febootstrap.
33320
33321 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33322
33323         bootstrap: fix an error when gnulib is not used as a git submodule
33324         * build-aux/bootstrap (gnulib_path): If its length is zero then
33325         assign "gnulib" to it.
33326         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33327
33328 2010-05-16  Bruno Haible  <bruno@clisp.org>
33329
33330         Avoid autoconf warnings about AM_ICONV.
33331         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33332         2.64.
33333
33334 2010-05-16  Bruno Haible  <bruno@clisp.org>
33335
33336         absolute-header: Make the macro usable in more situations.
33337         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33338         from gl_ABSOLUTE_HEADER.
33339         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33340
33341 2010-05-16  James Youngman  <jay@gnu.org>
33342
33343         doc: update users.txt
33344         * users.txt: Add CSSC.
33345
33346 2010-05-16  Jim Meyering  <meyering@redhat.com>
33347
33348         init.sh: fix an error in the previous change; add more comments
33349         * tests/init.sh: Compare exit code in loop against 9, not 2.
33350         Patch by Bruno Haible.
33351         Make the two tests more similar by adding an empty "then" clause.
33352         Add comments.
33353
33354         init.sh: avoid unnecessary shell re-exec
33355         * tests/init.sh: Improve the re-exec-required check to first test the
33356         current shell.  If it passes the test, do not search for a shell that
33357         does pass, and do not re-exec.  This test is particularly contorted to
33358         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33359         of $(...) evokes a syntax error and causes immediate shell exit with
33360         status 2.  Bruno Haible reported that the re-exec made it impossible
33361         to single-step through any init.sh-using script.
33362
33363 2010-05-16  Bruno Haible  <bruno@clisp.org>
33364
33365         Fix collision between gnulib's and libintl's printf replacements.
33366         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33367         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33368         (printf): When using GNU C, map the __printf__ function to rpl_printf
33369         via __asm__. When not using GNU C, define rpl_printf instead of
33370         __printf__.
33371         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33372         commit.
33373         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33374         commit.
33375         * m4/asm-underscore.m4: New file.
33376         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33377         * modules/stdio (Files): Add m4/asm-underscore.m4.
33378         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33379         Reported by Ben Pfaff.
33380
33381 2010-05-16  Bruno Haible  <bruno@clisp.org>
33382
33383         verify: Avoid skipping the test on openSUSE 11.0.
33384         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33385
33386 2010-05-13  Bruno Haible  <bruno@clisp.org>
33387
33388         Avoid useless warnings from G++.
33389         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33390         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33391         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33392
33393 2010-05-11  Jim Meyering  <meyering@redhat.com>
33394
33395         maint.mk: tweak preceding change
33396         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33397         regexps tighter by anchoring at EOL, and make the new group "shy"
33398         for slightly decreased overhead.
33399
33400 2010-05-11  Eric Blake  <eblake@redhat.com>
33401
33402         maint.mk: gnulib doesn't guarantee NSIG
33403         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33404
33405 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33406
33407         test-pwrite.c: Remove unused variable declaration.
33408         * tests/test-pwrite.c (main): Remove read_buf declaration.
33409
33410         Remove useless test-pwrite.sh file.
33411         * tests/test-pwrite.sh: Delete file.
33412         * modules/pwrite-tests: Remove references.
33413         Reported by Bruno Haible.
33414
33415 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33416
33417         init.sh: fix a typo
33418         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33419
33420 2010-05-10  Jim Meyering  <meyering@redhat.com>
33421
33422         maint.mk: avoid using a temporary file in the always-defined-macros check
33423         * top/maint.mk (.re-defmac): Remove rule.
33424         (gl_trap_): Remove definition.
33425         (sc_prohibit_always-defined_macros): Rewrite not to create and
33426         depend on a temporary file.  Instead, depend on GNU grep's ability
33427         to read a list of regular expressions from stdin when given "-f -".
33428
33429 2010-05-09  Bruno Haible  <bruno@clisp.org>
33430
33431         Update to GNU gettext 0.18, part 1.
33432         * m4/gettext.m4: Update to GNU gettext 0.18.
33433         * m4/intl.m4: Likewise.
33434         * m4/po.m4: Likewise.
33435         * modules/gettext (Files): Add m4/fcntl-o.m4.
33436         (configure.ac): Require gettext infrastructure from version 0.18.
33437
33438 2010-05-09  Jim Meyering  <meyering@redhat.com>
33439
33440         init.sh: enable MALLOC_PERTURB_
33441         * tests/init.sh: Enable glibc's malloc-perturbing option.
33442
33443         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33444         With my recent change in init.sh from the two-line form:
33445             -#   : ${srcdir=.}
33446             -#   . "$srcdir/init.sh"; path_prepend_ .
33447             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33448         I noticed that using the one-line form would cause this test
33449         to fail with a false-positive, or to stop working altogether,
33450         depending on whether help-version changed or all the tests did.
33451         * top/maint.mk (_hv_regex): Remove this definition.
33452         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33453         (_hv_regex_strong): Use a stronger regex to check for conformance.
33454         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33455         Give a separate diagnostic for lack of conforming use.
33456
33457         maint.mk: prohibit definition of symbols defined by gnulib
33458         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33459         definition of symbols defined by gnulib.
33460
33461 2010-05-09  Bruno Haible  <bruno@clisp.org>
33462
33463         acl: Avoid test failure on Cygwin-hosted mingw.
33464         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33465
33466 2010-05-09  Bruno Haible  <bruno@clisp.org>
33467
33468         error: Use system's fcntl function.
33469         * lib/error.c (fcntl): Undefine.
33470
33471 2010-05-09  Jim Meyering  <meyering@redhat.com>
33472
33473         verify: adjust formatting to be more consistent
33474         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33475         argument-list '('s, and after one comma.
33476
33477 2010-05-09  Bruno Haible  <bruno@clisp.org>
33478
33479         error: More reliable output on mingw.
33480         * lib/error.c: Include <windows.h>.
33481         (is_open): New function.
33482         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33483         defined.
33484
33485 2010-05-09  Bruno Haible  <bruno@clisp.org>
33486
33487         vasnprintf: Fix syntax errors in libintl build on mingw.
33488         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33489         pad_ourselves and prec_ourselves after use.
33490
33491 2010-05-08  Bruno Haible  <bruno@clisp.org>
33492
33493         * lib/config.charset: Update comments for Cygwin 1.7.
33494         * lib/localcharset.c: Likewise.
33495
33496 2010-05-07  Jim Meyering  <meyering@redhat.com>
33497
33498         init.sh: improve comments
33499         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33500         . "${srcdir=.}/init.sh"; path_prepend_ .
33501         Add a note about path_prepend_ and the alternative of using
33502         TESTS_ENVIRONMENT.
33503
33504 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33505
33506         exclude: Unescape hashed patterns in wildcard mode.
33507         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33508         to the hash list.
33509         * tests/test-exclude8.sh: New test case.
33510         * modules/exclude-tests: Add new test.
33511
33512 2010-05-05  Eric Blake  <eblake@redhat.com>
33513
33514         verify: automate tests
33515         * modules/verify-tests: New module.
33516         * tests/test-verify.sh: New file.
33517         * tests/test-verify.c: Guard each negative test with a unique id.
33518         Also avoid warning about unused left hand of comma expressions.
33519
33520 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33521
33522         Further improvements to verify.h, suggested by Eric Blake.
33523         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33524         the GL_* versions, to avoid collision with OpenGL.
33525         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33526         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33527         than testing merely whether it's defined.
33528
33529         Modify verify.h to pacify gcc -Wredundant_decls.
33530         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33531         These use the prefix "GL_" since they're likely to be useful elsewhere.
33532         We may need to break them out into a different .h file.
33533         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33534         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33535         of verify_function__.
33536
33537 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33538
33539         Tests for module pwrite.
33540         * modules/pwrite-tests: New file.
33541         * tests/test-pwrite.sh: New file.
33542         * tests/test-pwrite.c: New file.
33543
33544         New module pwrite.
33545         * lib/unistd.in.h (pwrite): New declaration.
33546         * lib/pwrite.c: New file, from glibc with modifications.
33547         * m4/pwrite.m4: New file.
33548         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33549         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33550         REPLACE_PWRITE.
33551         * modules/pwrite: New file.
33552         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33553         REPLACE_PWRITE.
33554         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33555         * doc/posix-functions/pwrite.texi: Mention the new module.
33556
33557 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33558
33559         pread: Update documentation.
33560         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33561
33562 2010-05-04  Eric Blake  <eblake@redhat.com>
33563
33564         docs: update cygwin progress
33565         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33566         this bug.
33567         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33568         Added in cygwin 1.7.2.
33569         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33570         Likewise.
33571         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33572         Likewise.
33573         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33574         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33575         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33576         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33577         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33578         Mention nproc module.
33579         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33580         bug in cygwin 1.7.5 addition.
33581         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33582         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33583         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33584         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33585         1.7.5.
33586         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33587         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33588         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33589         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33590         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33591         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33592         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33593         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33594         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33595         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33596         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33597         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33598         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33599         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33600         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33601         Likewise.
33602         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33603         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33604         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33605         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33606         Likewise.
33607         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33608         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33609         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33610         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33611         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33612         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33613         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33614         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33615         Likewise.
33616         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33617         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33618         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33619         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33620         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33621         Likewise.
33622         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33623         Likewise.
33624         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33625         Likewise.
33626         * doc/glibc-functions/xdrrec_endofrecord.texi
33627         (xdrrec_endofrecord): Likewise.
33628         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33629         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33630         Likewise.
33631         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33632         Likewise.
33633
33634 2010-05-04  Jim Meyering  <meyering@redhat.com>
33635
33636         gendocs.sh: make its "-s FILE" option more useful
33637         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33638         $PACKAGE to reflect the probably-different basename of "FILE".
33639
33640 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33641
33642         bootstrap: don't ignore download_po_files failure
33643         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33644         failure.
33645
33646 2010-05-03  Jim Meyering  <meyering@redhat.com>
33647
33648         maint.mk: allow to pass options to gendocs.sh
33649         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33650         (gendocs_options_): New overridable variable.
33651
33652         gnu-web-doc-update: don't ignore configure or build failure
33653         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33654
33655         announce-gen: backslash-escape '@'s in --help output
33656         * build-aux/announce-gen: Fix syntax errors.
33657
33658         maint.mk, announce-gen: allow project-specific announcement mail headers
33659         * top/maint.mk (translation_project_): Define default.
33660         (announcement_Cc_, announcement_mail_headers_): Likewise.
33661         (announcement): Invoke announce-gen with new --mail-headers option.
33662         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33663
33664         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33665         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33666         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33667         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33668         line in the "err2" output file when running "make check" in verbose
33669         mode (i.e., with set -x enabled).
33670
33671 2010-05-03  Bruno Haible  <bruno@clisp.org>
33672
33673         wctob: Fix for weird platforms.
33674         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33675         argument value.
33676
33677 2010-05-03  Jim Meyering  <meyering@redhat.com>
33678
33679         maint.mk: prohibit unwarranted use of <strings.h>
33680         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33681         strings.h in a file that does not also use strcasecmp, strncasecmp,
33682         ffs or ffsll.
33683
33684         maint.mk: remove obsolete comments
33685         * top/maint.mk: Remove stale, commented-out rules.
33686
33687 2010-05-02  Bruno Haible  <bruno@clisp.org>
33688
33689         wcwidth: Declare also when it's aliased.
33690         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33691         macro.
33692
33693 2010-05-02  Bruno Haible  <bruno@clisp.org>
33694
33695         Fix regression from 2010-04-25.
33696         * gnulib-tool (func_modules_transitive_closure): Check the status of
33697         all modules, not only of the tests that are of the form foo-tests where
33698         foo is a module.
33699
33700 2010-05-02  Bruno Haible  <bruno@clisp.org>
33701
33702         wctob: Work around nasty Cygwin 1.7.2 bug.
33703         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33704         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33705
33706 2010-05-01  Bruno Haible  <bruno@clisp.org>
33707
33708         fpurge: Sharper test.
33709         * tests/test-fpurge.c (main): Add one more ftell check.
33710         * modules/fpurge-tests (Depends-on): Add ftell.
33711         Suggested by Eric Blake.
33712
33713 2010-05-01  Bruno Haible  <bruno@clisp.org>
33714
33715         ftello: Another test.
33716         * tests/test-ftello3.c: New file.
33717         * modules/ftello-tests (Files): Add it.
33718         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33719         MOSTLYCLEANFILES.
33720
33721         ftell: Another test.
33722         * tests/test-ftell3.c: New file.
33723         * modules/ftell-tests (Files): Add it.
33724         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33725         MOSTLYCLEANFILES.
33726
33727 2010-05-01  Bruno Haible  <bruno@clisp.org>
33728
33729         ftell, ftello: Work around Solaris bug.
33730         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33731         * lib/ftello.c: Include stdio-impl.h.
33732         (ftello): On Solaris, when _IOWRT is set, compute the result without
33733         looking at _IOREAD.
33734         * modules/ftello (Files): Add lib/stdio-impl.h.
33735         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33736         * doc/posix-functions/ftello.texi: Likewise.
33737         Reported by Eric Blake.
33738
33739 2010-05-01  Bruno Haible  <bruno@clisp.org>
33740
33741         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33742         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33743         the _IOWRT flag is also set.
33744
33745 2010-05-01  Bruno Haible  <bruno@clisp.org>
33746
33747         Fix doc about a HP-UX stdio bug.
33748         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33749         * doc/posix-functions/ftello.texi: Likewise.
33750
33751 2010-05-01  Bruno Haible  <bruno@clisp.org>
33752
33753         lseek test: Fix failure on Solaris.
33754         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33755         output.
33756
33757 2010-04-30  Jim Meyering  <meyering@redhat.com>
33758
33759         bootstrap: don't ignore failure to generate po*/Makevars
33760         * build-aux/bootstrap (with_gettext): Don't ignore failure
33761         to create po/Makevars or runtime-po/Makevars.
33762
33763 2010-04-29  Eric Blake  <eblake@redhat.com>
33764
33765         headers: relax license to LGPLv2+
33766         * modules/fcntl-h (License): Relax license.
33767         * modules/getopt-posix (License): Likewise.
33768         * modules/locale (License): Likewise.
33769         * modules/math (License): Likewise.
33770         * modules/pty (License): Likewise.
33771         * modules/sched (License): Likewise.
33772         * modules/search (License): Likewise.
33773         * modules/spawn (License): Likewise.
33774         * modules/stdarg (License): Likewise.
33775         * modules/sysexits (License): Likewise.
33776
33777 2010-04-29  Jim Meyering  <meyering@redhat.com>
33778
33779         inttypes: relax license to LGPLv2+
33780         * modules/inttypes (License): Relax license.
33781
33782 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33783
33784         * top/maint.mk (indent): Run twice to produce idempotent results.
33785
33786 2010-04-28  Bruno Haible  <bruno@clisp.org>
33787
33788         getdate: Generate getdate.c in the source directory.
33789         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33790         MOSTLYCLEANFILES.
33791         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33792
33793 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33794
33795         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33796         is not declared as a const *; avoid warnings in that case.
33797
33798 2010-04-28  Eric Blake  <eblake@redhat.com>
33799
33800         canonicalize-lgpl: avoid compiler warning
33801         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33802         declaration' / 'extraneous semicolon' warning with some compilers.
33803         Reported by Andreas Gruenbacher.
33804
33805 2010-04-28  Jim Meyering  <meyering@redhat.com>
33806
33807         init.sh: ensure a more reliable exit status when exiting via trap
33808         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33809         Inspired by patches from Dmitry V. Levin.
33810         Also trap on signal 3 (SIGQUIT).
33811
33812 2010-04-27  Bruno Haible  <bruno@clisp.org>
33813
33814         Update doc about utimes().
33815         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33816         'utimens' module.
33817         Reported by Andreas Gruenbacher <agruen@suse.de>.
33818
33819 2010-04-27  Eric Blake  <eblake@redhat.com>
33820
33821         full-read, full-write: relax license
33822         * modules/full-read (License): Drop to LGPLv2+.
33823         * modules/full-write (License): Likewise.
33824         * modules/safe-read (License): Likewise.
33825         * modules/safe-write (License): Likewise.
33826
33827         pthread: mention library for linking
33828         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33829
33830 2010-04-27  Jim Meyering  <meyering@redhat.com>
33831
33832         maint.mk: fix a bug introduced in last change
33833         * top/maint.mk (gl_assured_headers_): Now that all names are on
33834         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33835         is not anchored to end of word, it should be adequate.
33836
33837         maint.mk: avoid side-effect in latest syntax-check
33838         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33839         to run commands via $(shell...), and hence to incur cost only when
33840         the new rule is actually run.
33841
33842         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33843         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33844         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33845         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33846         (gl_assured_headers_, az_, AZ_): Define.
33847         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33848
33849 2010-04-26  Jim Meyering  <jim@meyering.net>
33850             Bruno Haible  <bruno@clisp.org>
33851
33852         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33853         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33854         Prompted by an exchange with Gilles Espinasse.
33855
33856 2010-04-26  Jim Meyering  <meyering@redhat.com>
33857
33858         git-version-gen: aesthetic tweak
33859         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33860         so that the command remains on a single line.
33861
33862 2010-04-26  Eric Blake  <eblake@redhat.com>
33863
33864         git-version-gen: allow use on EBCDIC hosts
33865         * build-aux/git-version-gen (dirty): Use literal rather than tying
33866         ourselves to ascii.
33867         Reported by Steve Goetze.
33868
33869 2010-04-25  Bruno Haible  <bruno@clisp.org>
33870
33871         netdb: Add support for GNULIB_POSIXCHECK.
33872         * lib/netdb.in.h: Include warn-on-use.h.
33873         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33874         functions are used when GNULIB_POSIXCHECK is defined and the
33875         getaddrinfo module is not in use.
33876         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33877         freeaddrinfo, gai_strerror, getnameinfo are declared.
33878         * modules/netdb (Depends-on): Add warn-on-use.
33879         (Makefile.am): Include warn-on-use.h in netdb.h.
33880
33881 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33882
33883         build: avoid "make check" failure without .git/ directory
33884         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33885         there is no .git/ directory.
33886
33887 2010-04-25  Bruno Haible  <bruno@clisp.org>
33888
33889         ptsname: Fix misuse of ttyname_r.
33890         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33891         of errno.
33892
33893 2010-04-25  Bruno Haible  <bruno@clisp.org>
33894
33895         ttyname_r: Make it work on Solaris 10.
33896         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33897         if the system function has the POSIX declaration. Test whether the
33898         function fails if the buffer is less than 128 bytes large.
33899         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33900         system's ttyname_r function. Provide a reasonably large buffer.
33901         * modules/ttyname_r (Depends-on): Add extensions.
33902         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33903
33904 2010-04-25  Bruno Haible  <bruno@clisp.org>
33905
33906         Use the 'extensions' module for some more functions on Solaris.
33907         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33908         module.
33909         * doc/posix-functions/ctime_r.texi: Likewise.
33910         * doc/posix-functions/getgrgid_r.texi: Likewise.
33911         * doc/posix-functions/getgrnam_r.texi: Likewise.
33912         * doc/posix-functions/getpwnam_r.texi: Likewise.
33913         * doc/posix-functions/getpwuid_r.texi: Likewise.
33914         * doc/posix-functions/readdir_r.texi: Likewise.
33915         * doc/posix-functions/sigwait.texi: Likewise.
33916         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33917         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33918
33919 2010-04-25  Bruno Haible  <bruno@clisp.org>
33920
33921         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33922         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33923         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33924         * lib/ttyname_r.c: Include <limits.h>.
33925         (ttyname_r): Define using the system's ttyname_r function, if it exists
33926         and not on Solaris.
33927         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33928         set.
33929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33930         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33931         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33932         Reported by Simon Josefsson.
33933
33934 2010-04-25  Bruno Haible  <bruno@clisp.org>
33935
33936         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33937         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33938         * doc/posix-functions/ctime_r.texi: Likewise.
33939         * doc/posix-functions/getgrgid_r.texi: Likewise.
33940         * doc/posix-functions/getgrnam_r.texi: Likewise.
33941         * doc/posix-functions/getlogin_r.texi: Likewise.
33942         * doc/posix-functions/getpwnam_r.texi: Likewise.
33943         * doc/posix-functions/getpwuid_r.texi: Likewise.
33944         * doc/posix-functions/readdir_r.texi: Likewise.
33945         * doc/posix-functions/sigwait.texi: Likewise.
33946         * doc/posix-functions/ttyname_r.texi: Likewise.
33947         Reported by Simon Josefsson.
33948
33949 2010-04-25  Bruno Haible  <bruno@clisp.org>
33950
33951         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33952         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33953         also to --create-testdir.
33954         (func_acceptable): Don't consider the status of *-tests modules here.
33955         (func_modules_transitive_closure): Consider it here, before including a
33956         test module.
33957         (func_import, func_create_testdir): Set inc_all_direct_tests,
33958         inc_all_indirect_tests.
33959         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33960         --create-testdir and --create-megatestdir.
33961
33962 2010-04-25  Bruno Haible  <bruno@clisp.org>
33963
33964         gnulib-tool: Add --without-*-tests options.
33965         * gnulib-tool (func_usage): Document the --without-*-tests options.
33966         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33967         excl_unportable_tests): New variables.
33968         Fail if they are specified with --import or --update.
33969         (func_acceptable): Respect the excl_*_tests variables.
33970         (func_import): Set the excl_*_tests variables to empty.
33971
33972 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33973             Bruno Haible  <bruno@clisp.org>
33974
33975         Work around a MacOS X 10.4 bug with openpty.
33976         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33977         * tests/test-openpty.c (main): Close the master side explicitly.
33978
33979 2010-04-25  Bruno Haible  <bruno@clisp.org>
33980
33981         strnlen: Fix a C++ test error on MacOS X and Solaris.
33982         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33983         the function is not declared.
33984         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33985         Simon Josefsson.
33986
33987 2010-04-24  Bruno Haible  <bruno@clisp.org>
33988
33989         Avoid a gcc warning.
33990         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33991         of correct type for %08lx directive.
33992         Reported by Eric Blake.
33993
33994 2010-04-24  Bruno Haible  <bruno@clisp.org>
33995
33996         vasnprintf: Correct errno value in case of out-of-memory.
33997         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33998         or sprintf. Use the errno value from SNPRINTF or sprintf.
33999         Reported by Ian Beckwith <ianb@erislabs.net>.
34000
34001 2010-04-24  Bruno Haible  <bruno@clisp.org>
34002
34003         ansi-c++-opt: Find correct compiler when cross-compiling.
34004         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34005         AC_CHECK_PROGS.
34006         Reported by Simon Josefsson.
34007
34008 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34009
34010         vc-list-files: Add support for subversion
34011         * build-aux/vc-list-files: Use "svn list" to generate the list of
34012         files controlled by subversion.
34013
34014 2010-04-23  Jim Meyering  <meyering@redhat.com>
34015
34016         vc-list-files tests: convert to use init.sh
34017         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34018         path_prepend_.
34019         Use Exit, not exit.
34020         Use skip_ rather than open coding it.
34021         Remove trap set-up and compare definitions.
34022         * tests/test-vc-list-files-git.sh: Likewise.
34023         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34024
34025 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34026
34027         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34028         backup files.
34029
34030 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34031
34032         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34033
34034 2010-04-20  Eric Blake  <eblake@redhat.com>
34035
34036         tests: be robust to ignored SIGPIPE
34037         * tests/test-select-in.sh: Consume all output.
34038         * tests/test-lseek.sh: Check correct exit status, while avoiding
34039         EPIPE.
34040
34041 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34042             Bruno Haible  <bruno@clisp.org>
34043
34044         visibility: Don't use -fvisibility if it leads to a warning.
34045         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34046         yes, don't pretend that visibility works if it leads to a warning.
34047         Reported by Mike Gran <spk121@yahoo.com>.
34048
34049 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34050
34051         * build-aux/bootstrap: Use "git -h" for testing for supported options
34052         instead of "git --help".  The short-form option only shows a summary,
34053         and doesn't layout the full man page.  Grep for the full option name
34054         in the summary, too.
34055
34056 2010-04-19  Bruno Haible  <bruno@clisp.org>
34057
34058         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34059         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34060         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34061         mention of RELOCATABLE_STRIP.
34062         Reported by Sylvain Beucler <beuc@beuc.net>.
34063
34064 2010-04-19  Bruno Haible  <bruno@clisp.org>
34065
34066         * lib/diffseq.h: Fix typo in comment.
34067         Reported by Eric Blake.
34068
34069 2010-04-19  Bruno Haible  <bruno@clisp.org>
34070
34071         ioctl: Move autoconf macro to a .m4 file.
34072         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34073         * modules/ioctl (Files): Add it.
34074         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34075         Reported by Ian Beckwith <ianb@erislabs.net>.
34076
34077 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34078             Bruno Haible  <bruno@clisp.org>
34079
34080         diffseq: Accommodate use-case with abstract arrays.
34081         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34082         is not defined.
34083         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34084         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34085
34086 2010-04-18  Bruno Haible  <bruno@clisp.org>
34087
34088         * doc/posix-headers/stdbool.texi: More precise wording.
34089
34090 2010-04-17  Jim Meyering  <meyering@redhat.com>
34091
34092         maint.mk: use gnu-style indentation in an embedded perl script
34093         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34094         Rename variable: s/two/last_two_bytes/
34095
34096 2010-04-16  Eric Blake  <eblake@redhat.com>
34097
34098         test-stdbool: skip test that fails with Solaris CC
34099         * tests/test-stdbool.c (f): Skip test that causes compilation
34100         error under buggy C++ compiler.
34101         * lib/stdbool.in.h: Document the limitation.
34102         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34103
34104         setenv: allow compilation with C++
34105         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34106         register keyword.
34107
34108         stdint: allow test to pass with C++
34109         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34110
34111         getopt: allow compilation with C++
34112         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34113         struct.
34114         * lib/getopt.c (_getopt_internal_r): Use correct type.
34115         Reported by Dagobert Michelson, via Joel E. Denny.
34116
34117 2010-04-16  Bruno Haible  <bruno@clisp.org>
34118
34119         Override netdb.h always.
34120         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34121         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34122         Reported by Ludovic Courtès <ludo@gnu.org>.
34123
34124 2010-04-15  Bruno Haible  <bruno@clisp.org>
34125
34126         openpty: Fix mistake from 2010-03-21.
34127         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34128         Reported by Simon Josefsson.
34129
34130 2010-04-15  Eric Blake  <eblake@redhat.com>
34131
34132         test-forkpty: fix expected signature
34133         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34134         Reported by Simon Josefsson.
34135
34136 2010-04-15  Jim Meyering  <meyering@redhat.com>
34137
34138         maint.mk: texinfo_suffix_re_: correct the default regexp
34139         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34140
34141         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34142         make it configurable via texinfo_suffix_re_.
34143
34144 2010-04-14  Eric Blake  <eblake@redhat.com>
34145
34146         strtok_r: relax license to LGPLv2+
34147         * modules/strtok_r (License): Relax license.
34148         Reported by Matthias Bolte.
34149
34150 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34151
34152         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34153         version 1.4.4 by default instead of requiring the libgcrypt
34154         version used during build.  This makes it possible to use the
34155         application with older but still binary compatible libgcrypt
34156         versions.
34157
34158 2010-04-13  Eric Blake  <eblake@redhat.com>
34159
34160         getopt-gnu: match recent glibc fixes and posix ruling
34161         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34162         '+' handling, when requesting extensions.
34163         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34164         'W;' handling.
34165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34166         * doc/posix-functions/getopt.texi (getopt): Document this.
34167         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34168         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34169         Likewise.
34170
34171         getopt: merge bug fixes from glibc
34172         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34173         diagnostics.  Honor '+:' correctly.  Reject ';'.
34174
34175         getopt-posix: detect MacOS bug
34176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34177         optind when missing a required argument.
34178         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34179         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34180         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34181         Likewise.
34182
34183         getopt-posix: avoid spurious failure on Solaris
34184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34185         an indicator that setting optind=1 is sufficient for reset.
34186
34187         getopt-posix: avoid spurious failure on FreeBSD
34188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34189         in POSIX mode, since the m4 test uses it.
34190
34191         gnulib-tool: silence warning on BSD sh
34192         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34193
34194 2010-04-13  Jim Meyering  <meyering@redhat.com>
34195
34196         doc: users.txt: GNU patch now uses gnulib
34197         * users.txt: Add patch.
34198
34199 2010-04-12  Jim Meyering  <meyering@redhat.com>
34200
34201         maint.mk: generate more concise timing data for syntax-check rules
34202         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34203         " done" from each line that reports a syntax-check test duration.
34204
34205 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34206
34207         git-version-gen: use "git update-index..." rather than "git status"
34208         * build-aux/git-version-gen: Use git update-index --refresh, not
34209         "git status".  With some versions of git, "git status" would fail
34210         to update the index and result in an unwarranted "-dirty" suffix.
34211
34212 2010-04-11  Jim Meyering  <meyering@redhat.com>
34213
34214         openat: correct formatting (no semantic change)
34215         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34216         Suggested by Bruno Haible.
34217
34218 2010-04-11  Bruno Haible  <bruno@clisp.org>
34219
34220         Stricter declaration checking in testdirs.
34221         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34222         If for_tests is true, augment AM_CPPFLAGS to define
34223         GNULIB_STRICT_CHECKING.
34224         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34225         GNULIB_STRICT_CHECKING is defined, verify that the function is
34226         declared.
34227
34228 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34229             Bruno Haible  <bruno@clisp.org>
34230
34231         libunistring: Improve configure output.
34232         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34233         Don't say "consider installing GNU libunistring" when checking again
34234         with libiconv.
34235
34236 2010-04-11  Bruno Haible  <bruno@clisp.org>
34237
34238         libunistring: Correct value of $LTLIBUNISTRING.
34239         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34240         correct the value of $LTLIBUNISTRING.
34241
34242 2010-04-11  Bruno Haible  <bruno@clisp.org>
34243
34244         havelib: Add static libraries to LIBS in the right order.
34245         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34246         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34247
34248 2010-04-11  Bruno Haible  <bruno@clisp.org>
34249
34250         libunistring: Detect libunistring also when it depends on libiconv.
34251         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34252         the second AC_LIB_HAVE_LINKFLAGS invocation.
34253
34254 2010-04-11  James Youngman  <jay@gnu.org>
34255
34256         close-stream: declare local scalars to be "const"
34257         * lib/close-stream.c (close_stream): Make boolean variables const
34258         to document the fact that we set but do not change them.
34259
34260 2010-04-11  Bruno Haible  <bruno@clisp.org>
34261
34262         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34263
34264 2010-04-11  Jim Meyering  <meyering@redhat.com>
34265
34266         maint.mk: don't include dist-check.mk
34267         * top/maint.mk: Remove bogus include directive.
34268
34269         maint.mk: improve empty-line-at-EOF check
34270         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34271         solution, rather than tail+Perl-based one.  The latter would read
34272         a few kilobytes from the end of each file, and did not handle empty
34273         files properly.
34274
34275         maint.mk: print the elapsed time for each syntax-check rule
34276         * top/maint.mk (sc_m_rules_): Save start time in a file.
34277         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34278         (local-check): Interpose the .z rules
34279
34280 2010-04-11  Jim Meyering  <meyering@redhat.com>
34281
34282         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34283         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34284         empty file with one that ends in an empty line.
34285
34286 2010-04-10  Bruno Haible  <bruno@clisp.org>
34287
34288         mkdir: Make it work on mingw64.
34289         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34290         * lib/mkdir.c: Update comment.
34291         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
34292
34293 2010-04-10  Bruno Haible  <bruno@clisp.org>
34294
34295         Don't override improved macro from newer autoconf.
34296         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34297         autoconf >= 2.62.
34298         Reported by Joel E. Denny <jdenny@clemson.edu>.
34299
34300 2010-04-10  Jim Meyering  <meyering@redhat.com>
34301
34302         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34303         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34304
34305         maint.mk: correct a diagnostic
34306         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34307         in diagnostic; now use $prohibit.
34308
34309 2010-04-10  Bruno Haible  <address@hidden>
34310
34311         fchownat: Fix a C++ test error on Solaris 8.
34312         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34313         the function does not exist.
34314
34315 2010-04-10  Bruno Haible  <bruno@clisp.org>
34316
34317         vasnprintf: Add more tests.
34318         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34319         (test_function): Test converting an invalid wide string.
34320
34321         vasnprintf: Correct handling of unconvertible wide string arguments.
34322         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34323         VASNPRINTF.
34324         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34325         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34326         smaller than the expected maximum need for the directive. Set errno to
34327         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34328         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34330         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34331         * modules/vasnprintf (Files): Add m4/printf.m4.
34332         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34333
34334 2010-04-10  Bruno Haible  <bruno@clisp.org>
34335
34336         vasnprintf: Fix crash in %ls directive.
34337         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34338         string is passed as argument to %ls, with no precision and no width.
34339         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34340
34341 2010-04-10  Bruno Haible  <bruno@clisp.org>
34342
34343         vasnprintf: Fix multiple test failures on mingw.
34344         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34345         _snprintf, or snwprintf, not _snwprintf.
34346
34347 2010-04-10  Bruno Haible  <bruno@clisp.org>
34348
34349         write: Fix a C++ test error on mingw.
34350         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34351
34352 2010-04-10  Bruno Haible  <bruno@clisp.org>
34353
34354         vasnprintf test: Reduce code duplication.
34355         * tests/test-vasnprintf.c (test_function): New function, extracted from
34356         test_vasnprintf.
34357         (test_vasnprintf, test_asnprintf): Invoke it.
34358
34359 2010-04-10  Bruno Haible  <bruno@clisp.org>
34360
34361         strnlen: Fix warning in C++ mode on MacOS X.
34362         * lib/string.in.h (strnlen): Use the modern idiom.
34363         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34364         defining strnlen as a macro already in <config.h>.
34365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34366         REPLACE_STRNLEN.
34367         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34368         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34369
34370 2010-04-08  James Youngman  <jay@gnu.org>
34371
34372         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34373         the example.
34374
34375 2010-04-09  Jim Meyering  <meyering@redhat.com>
34376
34377         maint.mk: print better diagnostic when there is no $(_hv_file)
34378         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34379         announce that when $(_hv_file) (aka help-version) does not exist.
34380
34381         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34382         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34383         not try to interpret its random input bytes.  Jarno Rajahalme reported
34384         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34385         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34386         (mktempd_): Likewise, just in case.
34387
34388         ftruncate: add two years to projected module removal date: 2012
34389         * m4/ftruncate.m4: Adjust comments.
34390
34391         ftruncate: mark module as obsolete; even MinGW provides it, now
34392         * modules/ftruncate (Status): Obsolete.
34393         (Notice): Say that.
34394         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34395         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34396
34397 2010-04-08  Bruno Haible  <bruno@clisp.org>
34398
34399         Fix side effects from tests-related modules.
34400         * modules/dprintf-posix (Comment): New section.
34401         * modules/fprintf-posix (Comment): Likewise.
34402         * modules/obstack-printf-posix (Comment): Likewise.
34403         * modules/printf-posix (Comment): Likewise.
34404         * modules/snprintf-posix (Comment): Likewise.
34405         * modules/sprintf-posix (Comment): Likewise.
34406         * modules/vasnprintf-posix (Comment): Likewise.
34407         * modules/vasprintf-posix (Comment): Likewise.
34408         * modules/vdprintf-posix (Comment): Likewise.
34409         * modules/vfprintf-posix (Comment): Likewise.
34410         * modules/vprintf-posix (Comment): Likewise.
34411         * modules/vsnprintf-posix (Comment): Likewise.
34412         * modules/vsprintf-posix (Comment): Likewise.
34413         * modules/xprintf-posix (Comment): Likewise.
34414         * modules/xvasprintf-posix (Comment): Likewise.
34415         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34416         * modules/floorf-tests (Depends-on): Likewise.
34417         * modules/round-tests (Depends-on): Likewise.
34418         * modules/roundf-tests (Depends-on): Likewise.
34419         * modules/trunc-tests (Depends-on): Likewise.
34420         * modules/truncf-tests (Depends-on): Likewise.
34421         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34422         'fprintf-posix' module is not present.
34423         * tests/test-floorf2.c (check): Likewise.
34424         * tests/test-trunc2.c (check): Likewise.
34425         * tests/test-truncf2.c (check): Likewise.
34426         * tests/test-round2.c (equal): Likewise.
34427         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34428
34429 2010-04-07  Karl Berry  <karl@gnu.org>
34430
34431         * config/srclist.txt,
34432         * config/srclistvars.sh,
34433         * config/srclist-update: doc fixes.
34434
34435 2010-04-07  Jim Meyering  <meyering@redhat.com>
34436
34437         maint.mk: add a PATH crosschecking syntax-check rule
34438         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34439         Useful if you use a test like the one in help-version (coreutils,
34440         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34441         printed by prog --version.
34442
34443 2010-04-06  Bruno Haible  <bruno@clisp.org>
34444
34445         Fix link error on mingw.
34446         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34447         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34448
34449 2010-04-06  Bruno Haible  <bruno@clisp.org>
34450
34451         Assume rmdir exists.
34452         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34453
34454 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34455
34456         doc: update users.txt
34457         * users.txt: Add gcal.
34458
34459 2010-04-06  Jim Meyering  <meyering@redhat.com>
34460
34461         init.sh: simply unset TMPDIR rather than risking env -i
34462         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34463         although it probably works fine on all Unix-based systems, some
34464         systems (Cygwin?) cannot tolerate a totally cleared environment.
34465         Suggestion from Eric Blake.
34466
34467 2010-04-06  Jim Meyering  <meyering@redhat.com>
34468
34469         init.sh: portability fix: use env's POSIX-specified -i option not -u
34470         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34471         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34472
34473 2010-04-05  Bruno Haible  <bruno@clisp.org>
34474
34475         btowc: Work around Cygwin 1.7.2 bug.
34476         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34477         does not map NUL to 0.
34478         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34479
34480 2010-04-05  Bruno Haible  <bruno@clisp.org>
34481
34482         Make the multithread modules work on Cygwin 1.7.2.
34483         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34484         imported symbols can be declared weak, so that it returns "no" on
34485         Cygwin 1.7.2.
34486
34487 2010-04-05  Bruno Haible  <bruno@clisp.org>
34488
34489         Use the module 'strncat'.
34490         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34491
34492         Tests for module 'strncat'.
34493         * modules/strncat-tests: New file.
34494         * tests/test-strncat.c: New file.
34495
34496         New module 'strncat'.
34497         * lib/string.in.h (strncat): New declaration.
34498         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34499         * m4/strncat.m4: New file, based on m4/memchr.m4.
34500         * modules/strncat: New file.
34501         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34502         is declared.
34503         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34504         REPLACE_STRNCAT.
34505         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34506         REPLACE_STRNCAT.
34507         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34508         module.
34509         * tests/test-string-c++.cc: Check signature of strncat.
34510
34511 2010-04-05  Jim Meyering  <meyering@redhat.com>
34512
34513         xstrtoumax-tests: convert to use init.sh
34514         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34515         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34516         Use Exit, not exit.
34517         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34518
34519         xstrtoimax-tests: convert to use init.sh
34520         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34521         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34522         Use Exit, not exit.
34523         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34524
34525 2010-04-05  Bruno Haible  <bruno@clisp.org>
34526
34527         sys_socket: Avoid #define replacements in C++ mode.
34528         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34529         warning to the function if possible, rather than #defining the symbol
34530         to a dysfunctional alias.
34531
34532 2010-04-05  Bruno Haible  <bruno@clisp.org>
34533
34534         fseeko: Fix C++ test error on mingw.
34535         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34536         gl_FUNC_FSEEKO.
34537         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34538         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34539         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34540         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34541
34542 2010-04-05  Bruno Haible  <bruno@clisp.org>
34543
34544         duplocale: Improve test output.
34545         * tests/test-duplocale.c (main): Print reason for skipped test.
34546
34547 2010-04-05  Bruno Haible  <bruno@clisp.org>
34548
34549         Assume rmdir exists.
34550         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34551         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34552
34553 2010-04-05  Bruno Haible  <bruno@clisp.org>
34554
34555         Fix link error on Solaris 8 with cc.
34556         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34557
34558 2010-04-05  Bruno Haible  <bruno@clisp.org>
34559
34560         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34561         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34562
34563 2010-04-05  Bruno Haible  <bruno@clisp.org>
34564
34565         vasprintf: Update documentation.
34566         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34567
34568 2010-04-05  Bruno Haible  <bruno@clisp.org>
34569
34570         ptsname: Improve test.
34571         * tests/test-ptsname.c (main): Also try the various master names of BSD
34572         systems.
34573
34574 2010-04-05  Bruno Haible  <bruno@clisp.org>
34575
34576         memchr: Avoid a possible C++ test error.
34577         * lib/string.in.h (memchr): Provide declaration if function is missing.
34578         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34579         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34581         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34582
34583 2010-04-05  Bruno Haible  <bruno@clisp.org>
34584
34585         strtok_r: Improve idiom.
34586         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34587         AC_LIBOBJ is used.
34588
34589 2010-04-05  Bruno Haible  <bruno@clisp.org>
34590
34591         strdup: Improve idiom.
34592         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34593         AC_LIBOBJ is used.
34594         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34595         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34596         when AC_LIBOBJ is used.
34597
34598 2010-04-05  Bruno Haible  <bruno@clisp.org>
34599
34600         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34601         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34602         don't set REPLACE_MBSINIT to 1.
34603         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34604         don't set REPLACE_MBRTOWC to 1.
34605         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34606         exist, don't set REPLACE_MBSRTOWCS to 1.
34607         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34608         exist, don't set REPLACE_MBSNRTOWCS to 1.
34609         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34610         don't set REPLACE_WCRTOMB to 1.
34611         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34612         exist, don't set REPLACE_WCSRTOMBS to 1.
34613         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34614         exist, don't set REPLACE_WCSNRTOMBS to 1.
34615
34616 2010-04-05  Bruno Haible  <bruno@clisp.org>
34617
34618         ldexpl: Improve idiom.
34619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34620         make sure to set HAVE_DECL_LDEXPL to 0.
34621
34622 2010-04-05  Jim Meyering  <meyering@redhat.com>
34623
34624         xstrtol-tests: convert to use init.sh
34625         * modules/xstrtol-tests (Files): Add tests/init.sh.
34626         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34627         Use Exit, not exit.
34628         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34629
34630         atexit-tests: convert to use init.sh
34631         * modules/atexit-tests (Files): Add tests/init.sh.
34632         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34633         Use Exit, not exit.
34634         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34635
34636         init.sh: fix typo
34637         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34638
34639         init.sh: make it easier for a test script to write to the tty, ...
34640         when using automake's parallel-tests mode.
34641         * tests/init.sh (stderr_fileno_): Define overridable variable.
34642         (warn_): New function, to use it.
34643         (fail_, skip_, framework_failure_): Use warn_.
34644
34645 2010-04-04  Bruno Haible  <bruno@clisp.org>
34646
34647         btowc: Avoid warning.
34648         * lib/btowc.c: Include <stdlib.h>.
34649         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34650
34651 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34652             Bruno Haible  <bruno@clisp.org>
34653
34654         wchar: Port to NetBSD 1.5.
34655         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34656         * lib/wctype.in.h (WEOF): Likewise.
34657
34658 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34659             Bruno Haible  <bruno@clisp.org>
34660
34661         Port extended stdio to NetBSD 1.5.
34662         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34663         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34664         older.
34665
34666 2010-04-04  Bruno Haible  <bruno@clisp.org>
34667
34668         string: Remove unused substitution.
34669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34670         HAVE_DECL_STRERROR.
34671         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34672
34673 2010-04-04  Bruno Haible  <bruno@clisp.org>
34674
34675         strtod: Avoid a possible C++ test error.
34676         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34677         set REPLACE_STRTOD.
34678
34679 2010-04-04  Bruno Haible  <bruno@clisp.org>
34680
34681         strerror: Update documentation.
34682         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34683
34684 2010-04-04  Bruno Haible  <bruno@clisp.org>
34685
34686         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34687         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34688         _GL_CXXALIAS_SYS_CAST.
34689
34690 2010-04-04  Bruno Haible  <bruno@clisp.org>
34691
34692         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34693         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34694         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34695         REPLACE_FREXPL to 1.
34696         * doc/posix-functions/frexpl.texi: Update documentation.
34697
34698 2010-04-04  Bruno Haible  <bruno@clisp.org>
34699
34700         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34701         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34702
34703 2010-04-04  Bruno Haible  <bruno@clisp.org>
34704
34705         Implement nanosleep for native Windows.
34706         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34707
34708 2010-04-04  Bruno Haible  <bruno@clisp.org>
34709
34710         math: Fix some C++ test errors on Solaris 8.
34711         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34712
34713 2010-04-04  Bruno Haible  <bruno@clisp.org>
34714
34715         math: Fix some C++ test errors on Cygwin.
34716         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34717         truncl): Provide declaration if the system does not have it.
34718         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34719         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34720         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34721         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34722         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34723         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34724         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34725         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34726         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34727         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34728         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34729         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34730         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34731         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34732         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34733         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34735         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34736         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34737         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34738         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34739         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34740
34741 2010-04-04  Bruno Haible  <bruno@clisp.org>
34742
34743         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34744         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34745         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34746         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34747         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34748         * m4/isinf.m4 (gl_ISINF): Likewise.
34749         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34750
34751 2010-04-04  Bruno Haible  <bruno@clisp.org>
34752
34753         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34754         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34755
34756 2010-04-04  Bruno Haible  <bruno@clisp.org>
34757
34758         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34759         * modules/tmpfile (configure.ac): Update.
34760
34761         tmpfile: Fix C++ test error on mingw.
34762         * lib/stdio.in.h (tmpfile): New declaration.
34763         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34764         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34765         * modules/tmpfile (Depends-on): Add stdio.
34766         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34767         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34768         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34769         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34770         REPLACE_TMPFILE.
34771         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34772
34773 2010-04-04  Bruno Haible  <bruno@clisp.org>
34774
34775         ioctl: Fix C++ test error on mingw.
34776         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34777         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34778         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34779
34780 2010-04-03  Bruno Haible  <bruno@clisp.org>
34781
34782         wcwidth: Fix C++ test error on mingw.
34783         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34785         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34786
34787 2010-04-03  Bruno Haible  <bruno@clisp.org>
34788
34789         nanosleep: Fix C++ test error on mingw.
34790         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34791         * lib/time.in.h (nanosleep): Use modern idiom.
34792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34793         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34794         REPLACE_NANOSLEEP to 1.
34795         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34796         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34797
34798 2010-04-03  Bruno Haible  <bruno@clisp.org>
34799
34800         strptime: Fix C++ test error on mingw.
34801         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34802         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34803         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34804         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34805         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34806         not REPLACE_STRPTIME.
34807         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34808         REPLACE_STRPTIME.
34809
34810 2010-04-03  Bruno Haible  <bruno@clisp.org>
34811
34812         timegm: Fix C++ test error on mingw.
34813         * lib/time.in.h (timegm): Use modern idiom.
34814         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34815         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34816         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34817         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34818
34819 2010-04-03  Bruno Haible  <bruno@clisp.org>
34820
34821         timegm: Assume declaration if function exists.
34822         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34823         if it exists. Don't clobber ac_cv_func_timegm.
34824
34825 2010-04-03  Bruno Haible  <bruno@clisp.org>
34826
34827         time_r: Fix C++ test error on mingw.
34828         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34829         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34830         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34831         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34832         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34833
34834 2010-04-03  Bruno Haible  <bruno@clisp.org>
34835
34836         time_r: Minor updates.
34837         * modules/time_r (Description): Mention the provided functions.
34838         * lib/time_r.c: Don't include <string.h>.
34839         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34840         * doc/posix-functions/localtime_r.texi: Likewise.
34841
34842 2010-04-03  Bruno Haible  <bruno@clisp.org>
34843
34844         time: Fix regression introduced on 2010-03-08.
34845         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34846         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34847
34848 2010-04-03  Jim Meyering  <meyering@redhat.com>
34849
34850         maint.mk: don't silently disable project-specific syntax-check rules
34851         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34852         that they need to convert their project-specific syntax-check rules
34853         to use the new _sc_search_regexp.
34854
34855 2010-04-03  Bruno Haible  <bruno@clisp.org>
34856
34857         fchdir: Fix regression introduced on 2010-03-08.
34858         * lib/unistd.in.h (fchdir): Fix declaration.
34859         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34861         REPLACE_FCHDIR.
34862         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34863         REPLACE_FCHDIR.
34864
34865 2010-04-03  Bruno Haible  <bruno@clisp.org>
34866
34867         getpagesize: Fix C++ test error on mingw.
34868         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34869         system does not declare the function.
34870         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34871         declared.
34872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34873         HAVE_DECL_GETPAGESIZE.
34874         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34875
34876 2010-04-03  Bruno Haible  <bruno@clisp.org>
34877
34878         stdio: Make C++ tests work on mingw.
34879         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34880         does not declare the function.
34881
34882 2010-04-03  Bruno Haible  <bruno@clisp.org>
34883
34884         ftello: Fix C++ test error on mingw.
34885         * lib/stdio.in.h (ftello): Use modern idiom.
34886         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34887         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34888         is missing and that it needs to be replaced.
34889         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34891         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34892
34893 2010-04-03  Bruno Haible  <bruno@clisp.org>
34894
34895         fseeko: Fix C++ test error on mingw.
34896         * lib/stdio.in.h (fseeko): Use modern idiom.
34897         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34898         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34899         is missing and that it needs to be replaced.
34900         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34902         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34903
34904 2010-04-03  Bruno Haible  <bruno@clisp.org>
34905
34906         mkstemp: Fix C++ test error on mingw.
34907         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34908         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34909         function is missing and that it needs to be replaced.
34910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34911         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34912
34913 2010-04-03  Bruno Haible  <bruno@clisp.org>
34914
34915         stpncpy: Fix C++ test error on mingw.
34916         * lib/string.in.h (stpncpy): Use modern idiom.
34917         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34918         function is missing and that it needs to be replaced.
34919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34920         REPLACE_STPNCPY.
34921         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34922
34923 2010-04-03  Bruno Haible  <bruno@clisp.org>
34924
34925         sys_stat: Fix C++ test error on mingw.
34926         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34927         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34928
34929 2010-04-03  Bruno Haible  <bruno@clisp.org>
34930
34931         pty: Update doc.
34932         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34933
34934 2010-04-03  Bruno Haible  <bruno@clisp.org>
34935
34936         unistd: Fix C++ test error on mingw.
34937         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34938
34939 2010-04-03  Bruno Haible  <bruno@clisp.org>
34940
34941         Update doc regarding mingw.
34942         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34943         * doc/glibc-functions/login_tty.texi: Likewise.
34944         * doc/glibc-functions/forkpty.texi: Likewise.
34945
34946 2010-04-03  Bruno Haible  <bruno@clisp.org>
34947
34948         stdlib: Avoid compilation failure of c-strtold on mingw.
34949         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34950
34951 2010-04-03  Bruno Haible  <bruno@clisp.org>
34952
34953         locale: Make C++ tests work on Cygwin and mingw.
34954         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34955         cannot provide the function.
34956         Reported by Simon Josefsson.
34957
34958 2010-04-03  Bruno Haible  <bruno@clisp.org>
34959
34960         localename: Port to MacOS X 10.6.
34961         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34962         memory layout of the locales in MacOS X 10.6 as well.
34963         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34964
34965 2010-04-02  Bruno Haible  <bruno@clisp.org>
34966
34967         gnulib-tool: Ensure that long-running tests are executed last.
34968         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34969         running tests after the one for the other tests.
34970
34971 2010-04-02  Bruno Haible  <bruno@clisp.org>
34972
34973         gnulib-tool: Ensure the tests in the main directory are executed first.
34974         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34975         start with the current directory.
34976
34977 2010-04-02  Bruno Haible  <bruno@clisp.org>
34978
34979         Tests for module 'havelib', moved here from GNU gettext.
34980         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34981         modifications.
34982         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34983         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34984         with modifications.
34985         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34986         modifications.
34987         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34988         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34989         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34990         with modifications.
34991         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34992         with modifications.
34993         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34994         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34995         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34996         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34997         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34998         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34999         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35000         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35001         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35002         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35003         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35004         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35005         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35006         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35007         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35008         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35009         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35010         with modifications.
35011         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35012         with modifications.
35013         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35014         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35015         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35016         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35017         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35018         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35019         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35020         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35021         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35022         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35023         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35024         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35025         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35026         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35027         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35028         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35029         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35030         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35031         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35032         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35033         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35034         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35035         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35036         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35037         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35038         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35039         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35040         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35041         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35042         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35043         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35044         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35045         * tests/havelib/rpathx/rpathx.c: New file, from
35046         gettext/autoconf-lib-link.
35047         * tests/havelib/rpathx/Makefile.am: New file, from
35048         gettext/autoconf-lib-link.
35049         * tests/havelib/rpathx/configure.ac: New file, from
35050         gettext/autoconf-lib-link with modifications.
35051         * tests/havelib/rpathy/rpathy.c: New file, from
35052         gettext/autoconf-lib-link.
35053         * tests/havelib/rpathy/Makefile.am: New file, from
35054         gettext/autoconf-lib-link.
35055         * tests/havelib/rpathy/configure.ac: New file, from
35056         gettext/autoconf-lib-link with modifications.
35057         * tests/havelib/rpathz/rpathz.c: New file, from
35058         gettext/autoconf-lib-link.
35059         * tests/havelib/rpathz/Makefile.am: New file, from
35060         gettext/autoconf-lib-link.
35061         * tests/havelib/rpathz/configure.ac: New file, from
35062         gettext/autoconf-lib-link with modifications.
35063         * tests/havelib/rpathlx/usex.c: New file, from
35064         gettext/autoconf-lib-link.
35065         * tests/havelib/rpathlx/Makefile.am: New file, from
35066         gettext/autoconf-lib-link.
35067         * tests/havelib/rpathlx/configure.ac: New file, from
35068         gettext/autoconf-lib-link with modifications.
35069         * tests/havelib/rpathly/usey.c: New file, from
35070         gettext/autoconf-lib-link.
35071         * tests/havelib/rpathly/Makefile.am: New file, from
35072         gettext/autoconf-lib-link.
35073         * tests/havelib/rpathly/configure.ac: New file, from
35074         gettext/autoconf-lib-link with modifications.
35075         * tests/havelib/rpathlz/usez.c: New file, from
35076         gettext/autoconf-lib-link.
35077         * tests/havelib/rpathlz/Makefile.am: New file, from
35078         gettext/autoconf-lib-link.
35079         * tests/havelib/rpathlz/configure.ac: New file, from
35080         gettext/autoconf-lib-link with modifications.
35081         * tests/havelib/rpathlyx/usey.c: New file, from
35082         gettext/autoconf-lib-link.
35083         * tests/havelib/rpathlyx/Makefile.am: New file, from
35084         gettext/autoconf-lib-link.
35085         * tests/havelib/rpathlyx/configure.ac: New file, from
35086         gettext/autoconf-lib-link with modifications.
35087         * tests/havelib/rpathlzyx/usez.c: New file, from
35088         gettext/autoconf-lib-link.
35089         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35090         gettext/autoconf-lib-link.
35091         * tests/havelib/rpathlzyx/configure.ac: New file, from
35092         gettext/autoconf-lib-link with modifications.
35093         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35094         with modifications.
35095
35096 2010-04-02  Bruno Haible  <bruno@clisp.org>
35097
35098         gnulib-tool: Create distributed built sources also for the tests.
35099         * gnulib-tool (func_create_testdir): Also generate distributed built
35100         sources in the tests directory.
35101
35102 2010-04-02  Bruno Haible  <bruno@clisp.org>
35103
35104         gnulib-tool: Obey user's environment variables.
35105         * gnulib-tool (func_create_testdir): When creating built sources,
35106         respect the environment variables for autoconf, automake, etc. given by
35107         the user.
35108
35109 2010-04-02  Bruno Haible  <bruno@clisp.org>
35110
35111         gnulib-tool: Provide the value of --m4-base to modules.
35112         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35113         of gl_m4_base.
35114
35115 2010-04-02  Eric Blake  <eblake@redhat.com>
35116
35117         maint.mk: fix some fallout
35118         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35119         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35120
35121 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35122
35123         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35124         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35125         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35126         (sc_cast_of_x_alloc_return_value): Likewise.
35127         (sc_cast_of_alloca_return_value): Likewise.
35128         (sc_space_tab): Likewise.
35129         (sc_prohibit_atoi_atof): Likewise.
35130         (sc_prohibit_magic_number_exit): Likewise.
35131         (sc_error_exit_success): Likewise.
35132         (sc_file_system): Likewise.
35133         (sc_prohibit_have_config_h): Likewise.
35134         (sc_require_config_h): Likewise.
35135         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35136         (sc_obsolete_symbols): Likewise.
35137         (sc_changelog): Likewise.
35138         (sc_program_name): Likewise.
35139         (sc_the_the): Likewise.
35140         (sc_trailing_blank): Likewise.
35141         (sc_two_space_separator_in_usage): Likewise.
35142         (sc_useless_cpp_parens): Likewise.
35143         (sc_GPL_version): Likewise.
35144         (sc_GFDL_version): Likewise.
35145         (sc_texinfo_acronym): Likewise.
35146         (sc_prohibit_cvs_keyword): Likewise.
35147         (sc_prohibit_stat_st_blocks): Likewise.
35148         (sc_prohibit_S_IS_definition): Likewise.
35149         (sc_redundant_const): Likewise.
35150         (sc_makefile_TAB_only_indentation): Likewise.
35151         (sc_m4_quote_check): Likewise.
35152         (sc_makefile_path_separator_check): Likewise.
35153         (sc_copyright_check): Likewise.
35154         (sc_Wundef_boolean): Likewise.
35155         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35156
35157         maint.mk: match 0 or more whitespace-before-function-call '('
35158         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35159         that have zero or two-and-more spaces between the function name
35160         and the open parenthesis.
35161         (sc_error_message_warn_fatal): Likewise.
35162         (sc_error_message_uppercase): Likewise.
35163         (sc_error_message_period): Likewise.
35164
35165 2010-03-31  Eric Blake  <eblake@redhat.com>
35166
35167         maint.mk: check for [ as well as test
35168         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35169         Based on a libvirt report by Matthias Bolte.
35170
35171         gnumakefile: don't squelch _version output
35172         * top/GNUmakefile (_version): Create one-shot dependency rather
35173         than using $(shell) when version must be regenerated.
35174         (_autoreconf): Run verbosely, by default.
35175
35176         sys_time: avoid compiler warnings
35177         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35178         unconditional, fixing regression from 2010-03-29.
35179         Reported by Simon Josefsson.
35180
35181 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35182
35183         maint.mk: s/_header_without_use/_sc_header_without_use/
35184         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35185         (sc_prohibit_assert_without_use): Use the new name.
35186         (sc_prohibit_close_stream_without_use): Likewise.
35187         (sc_prohibit_getopt_without_use): Likewise.
35188         (sc_prohibit_quotearg_without_use): Likewise.
35189         (sc_prohibit_quote_without_use): Likewise.
35190         (sc_prohibit_long_options_without_use): Likewise.
35191         (sc_prohibit_inttostr_without_use): Likewise.
35192         (sc_prohibit_ignore_value_without_use): Likewise.
35193         (sc_prohibit_error_without_use): Likewise.
35194         (sc_prohibit_xalloc_without_use): Likewise.
35195         (sc_prohibit_hash_without_use): Likewise.
35196         (sc_prohibit_hash_pjw_without_use): Likewise.
35197         (sc_prohibit_safe_read_without_use): Likewise.
35198         (sc_prohibit_argmatch_without_use): Likewise.
35199         (sc_prohibit_canonicalize_without_use): Likewise.
35200         (sc_prohibit_root_dev_ino_without_use): Likewise.
35201         (sc_prohibit_openat_without_use): Likewise.
35202         (sc_prohibit_c_ctype_without_use): Likewise.
35203         (sc_prohibit_signal_without_use): Likewise.
35204         (sc_prohibit_intprops_without_use): Likewise.
35205
35206 2010-03-30  Eric Blake  <eblake@redhat.com>
35207
35208         maint: improve module indicators
35209         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35210         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35211         columns, and avoid extra macro expansion.
35212
35213         fdopendir: work around FreeBSD bug
35214         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35215         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35216         * modules/dirent (Makefile.am): Substitute it.
35217         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35218         declaration.
35219         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35220         fix.
35221         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35222
35223 2010-03-29  Bruno Haible  <bruno@clisp.org>
35224
35225         Emit #pragma system_header after the inclusion guard, not before.
35226         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35227         guard that spans the entire file, not before. This enables an
35228         optimization in GCC's preprocessor.
35229         * lib/ctype.in.h: Likewise.
35230         * lib/dirent.in.h: Likewise.
35231         * lib/errno.in.h: Likewise.
35232         * lib/float.in.h: Likewise.
35233         * lib/getopt.in.h: Likewise.
35234         * lib/iconv.in.h: Likewise.
35235         * lib/langinfo.in.h: Likewise.
35236         * lib/locale.in.h: Likewise.
35237         * lib/math.in.h: Likewise.
35238         * lib/netdb.in.h: Likewise.
35239         * lib/netinet_in.in.h: Likewise.
35240         * lib/pty.in.h: Likewise.
35241         * lib/sched.in.h: Likewise.
35242         * lib/se-selinux.in.h: Likewise.
35243         * lib/search.in.h: Likewise.
35244         * lib/spawn.in.h: Likewise.
35245         * lib/stdarg.in.h: Likewise.
35246         * lib/stdint.in.h: Likewise.
35247         * lib/string.in.h: Likewise.
35248         * lib/strings.in.h: Likewise.
35249         * lib/sys_file.in.h: Likewise.
35250         * lib/sys_ioctl.in.h: Likewise.
35251         * lib/sys_time.in.h: Likewise.
35252         * lib/sys_times.in.h: Likewise.
35253         * lib/sys_utsname.in.h: Likewise.
35254         * lib/sys_wait.in.h: Likewise.
35255         * lib/sysexits.in.h: Likewise.
35256         * lib/wctype.in.h: Likewise.
35257
35258 2010-03-28  James Youngman  <jay@gnu.org>
35259
35260         save-cwd: don't leak a file descriptor when the caller execs.
35261         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35262         saved file descriptor.
35263         * modules/save-cwd (Depends-on): Depend on cloexec.
35264
35265 2010-03-29  Bruno Haible  <bruno@clisp.org>
35266
35267         Remove vestiges of fts-lgpl module.
35268         * lib/fts_.h: Assume GNULIB_FTS is 1.
35269         * lib/fts.c: Likewise.
35270         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35271
35272 2010-03-28  Bruno Haible  <bruno@clisp.org>
35273
35274         Fix definition of tests witness macro.
35275         * gnulib-tool (func_import): Fix definition of witness macro.
35276
35277 2010-03-28  Bruno Haible  <bruno@clisp.org>
35278
35279         Fix ioctl's protoype on glibc systems.
35280         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35281         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35282         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35283         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35284         signature. If not, arrange to replace the ioctl function.
35285         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35286         REPLACE_IOCTL.
35287         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35288         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35289         Reported by Ludovic Courtès <ludo@gnu.org>.
35290
35291 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35292
35293         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35294         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35295         made it so grep -r --include=GLOB* ... did not work.
35296
35297 2010-03-26  Jim Meyering  <meyering@redhat.com>
35298             Eric Blake  <eblake@redhat.com>
35299
35300         maint.mk: prohibit use of test's -o and -a operators
35301         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35302
35303 2010-03-28  Bruno Haible  <bruno@clisp.org>
35304
35305         Remove unused GNULIB_XYZ macro definitions.
35306         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35307         invocation.
35308
35309 2010-03-28  Bruno Haible  <bruno@clisp.org>
35310
35311         Mark privileged tests modules.
35312         * modules/idpriv-drop-tests (Status): New section.
35313         * modules/idpriv-droptemp-tests (Status): New section.
35314
35315 2010-03-28  Bruno Haible  <bruno@clisp.org>
35316
35317         Split C++ tests into separate tests modules.
35318         * modules/dirent-c++-tests: New file, extracted from
35319         modules/dirent-tests.
35320         * modules/dirent-tests: Depend on it.
35321         * modules/fcntl-h-c++-tests: New file, extracted from
35322         modules/fcntl-h-tests.
35323         * modules/fcntl-h-tests: Depend on it.
35324         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35325         * modules/glob-tests: Depend on it.
35326         * modules/iconv-h-c++-tests: New file, extracted from
35327         modules/iconv-h-tests.
35328         * modules/iconv-h-tests: Depend on it.
35329         * modules/langinfo-c++-tests: New file, extracted from
35330         modules/langinfo-tests.
35331         * modules/langinfo-tests: Depend on it.
35332         * modules/locale-c++-tests: New file, extracted from
35333         modules/locale-tests.
35334         * modules/locale-tests: Depend on it.
35335         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35336         * modules/math-tests: Depend on it.
35337         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35338         * modules/pty-tests: Depend on it.
35339         * modules/search-c++-tests: New file, extracted from
35340         modules/search-tests.
35341         * modules/search-tests: Depend on it.
35342         * modules/signal-c++-tests: New file, extracted from
35343         modules/signal-tests.
35344         * modules/signal-tests: Depend on it.
35345         * modules/spawn-c++-tests: New file, extracted from
35346         modules/spawn-tests.
35347         * modules/spawn-tests: Depend on it.
35348         * modules/stdio-c++-tests: New file, extracted from
35349         modules/stdio-tests.
35350         * modules/stdio-tests: Depend on it.
35351         * modules/stdlib-c++-tests: New file, extracted from
35352         modules/stdlib-tests.
35353         * modules/stdlib-tests: Depend on it.
35354         * modules/string-c++-tests: New file, extracted from
35355         modules/string-tests.
35356         * modules/string-tests: Depend on it.
35357         * modules/sys_ioctl-c++-tests: New file, extracted from
35358         modules/sys_ioctl-tests.
35359         * modules/sys_ioctl-tests: Depend on it.
35360         * modules/sys_select-c++-tests: New file, extracted from
35361         modules/sys_select-tests.
35362         * modules/sys_select-tests: Depend on it.
35363         * modules/sys_socket-c++-tests: New file, extracted from
35364         modules/sys_socket-tests.
35365         * modules/sys_socket-tests: Depend on it.
35366         * modules/sys_stat-c++-tests: New file, extracted from
35367         modules/sys_stat-tests.
35368         * modules/sys_stat-tests: Depend on it.
35369         * modules/sys_time-c++-tests: New file, extracted from
35370         modules/sys_time-tests.
35371         * modules/sys_time-tests: Depend on it.
35372         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35373         * modules/time-tests: Depend on it.
35374         * modules/unistd-c++-tests: New file, extracted from
35375         modules/unistd-tests.
35376         * modules/unistd-tests: Depend on it.
35377         * modules/wchar-c++-tests: New file, extracted from
35378         modules/wchar-tests.
35379         * modules/wchar-tests: Depend on it.
35380         * modules/wctype-c++-tests: New file, extracted from
35381         modules/wctype-tests.
35382         * modules/wctype-tests: Depend on it.
35383         Reported by Simon Josefsson.
35384
35385 2010-03-28  Bruno Haible  <bruno@clisp.org>
35386
35387         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35388         * gnulib-tool (func_exists_module): New function, extracted from
35389         func_verify_module.
35390         (func_verify_module): Use it.
35391         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35392         'foo' only if 'foo' exists.
35393         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35394         module.
35395
35396 2010-03-28  Bruno Haible  <bruno@clisp.org>
35397
35398         gnulib-tool: Add support for special categories of tests.
35399         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35400         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35401         (func_usage): Document them.
35402         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35403         inc_unportable_tests, inc_all_tests): New variables.
35404         (func_acceptable): Consider these variables.
35405         (func_modules_transitive_closure): Make it work when the 'Status' field
35406         consists of multiple words.
35407         (func_import): Store and restore the values of inc_cxx_tests,
35408         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35409         inc_all_tests in gnulib-comp.m4.
35410         (func_create_testdir): Set inc_all_tests to true.
35411         * doc/gnulib.texi (Extra tests modules): New section.
35412         Suggested by Jim Meyering.
35413
35414 2010-03-28  Bruno Haible  <bruno@clisp.org>
35415
35416         ansi-c++-opt: Allow turning off the C++ build by default.
35417         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35418         gl_CXX_CHOICE_DEFAULT_NO is defined.
35419         Requested by Eric Blake.
35420
35421 2010-03-28  Bruno Haible  <bruno@clisp.org>
35422
35423         unistd: Avoid #define replacements in C++ mode.
35424         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35425         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35426         setsockopt, shutdown, select): In C++, attach a warning to the function
35427         if possible, rather than #defining the symbol to a dysfunctional alias.
35428         Reported by John W. Eaton <jwe@gnu.org>.
35429
35430 2010-03-28  Bruno Haible  <bruno@clisp.org>
35431
35432         Fix link errors on mingw.
35433         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35434         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35435         $(LIBSOCKET).
35436         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35437         $(LIBSOCKET).
35438
35439 2010-03-28  Bruno Haible  <bruno@clisp.org>
35440             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35441
35442         lib-ignore: Determine different options for different compilers.
35443         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35444         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35445         Add comments.
35446         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35447         * NEWS: Mention the change.
35448
35449 2010-03-27  Bruno Haible  <bruno@clisp.org>
35450
35451         Remove unused GNULIB_XYZ macro definitions.
35452         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35453         * modules/fseek (configure.ac): Likewise.
35454         * modules/ioctl (configure.ac): Likewise.
35455         * modules/open (configure.ac): Likewise.
35456         * modules/stdlib-safer (configure.ac): Likewise.
35457
35458 2010-03-27  Bruno Haible  <bruno@clisp.org>
35459
35460         Add a remark about certain modules.
35461         * modules/malloc (Comment): New section.
35462         * modules/realloc (Comment): Likewise.
35463         * modules/sigpipe (Comment): Likewise.
35464
35465 2010-03-27  Bruno Haible  <bruno@clisp.org>
35466
35467         Resolve conflict between the two kinds of module indicators.
35468         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35469         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35470         * modules/canonicalize (configure.ac): Invoke
35471         gl_MODULE_INDICATOR_FOR_TESTS.
35472         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35473         GNULIB_XYZ.
35474         * tests/test-dirent-c++.cc: Likewise.
35475         * tests/test-dirent-safer.c: Likewise.
35476         * tests/test-dup2.c: Likewise.
35477         * tests/test-fchdir.c: Likewise.
35478         * tests/test-fcntl-h-c++.cc: Likewise.
35479         * tests/test-getopt.c: Likewise.
35480         * tests/test-getopt.h: Likewise.
35481         * tests/test-langinfo-c++.cc: Likewise.
35482         * tests/test-locale-c++.cc: Likewise.
35483         * tests/test-math-c++.cc: Likewise.
35484         * tests/test-pty-c++.cc: Likewise.
35485         * tests/test-search-c++.cc: Likewise.
35486         * tests/test-signal-c++.cc: Likewise.
35487         * tests/test-spawn-c++.cc: Likewise.
35488         * tests/test-stdio-c++.cc: Likewise.
35489         * tests/test-stdlib-c++.cc: Likewise.
35490         * tests/test-string-c++.cc: Likewise.
35491         * tests/test-sys_ioctl-c++.cc: Likewise.
35492         * tests/test-sys_select-c++.cc: Likewise.
35493         * tests/test-sys_socket-c++.cc: Likewise.
35494         * tests/test-sys_stat-c++.cc: Likewise.
35495         * tests/test-sys_time-c++.cc: Likewise.
35496         * tests/test-time-c++.cc: Likewise.
35497         * tests/test-unistd-c++.cc: Likewise.
35498         * tests/test-wchar-c++.cc: Likewise.
35499         * tests/uninorm/test-u8-nfc.c: Likewise.
35500         * tests/uninorm/test-u8-nfd.c: Likewise.
35501         * tests/uninorm/test-u8-nfkc.c: Likewise.
35502         * tests/uninorm/test-u8-nfkd.c: Likewise.
35503         * tests/uninorm/test-u16-nfc.c: Likewise.
35504         * tests/uninorm/test-u16-nfd.c: Likewise.
35505         * tests/uninorm/test-u16-nfkc.c: Likewise.
35506         * tests/uninorm/test-u16-nfkd.c: Likewise.
35507         * tests/uninorm/test-u32-nfc.c: Likewise.
35508         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35509         * tests/uninorm/test-u32-nfd.c: Likewise.
35510         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35511         * tests/uninorm/test-u32-nfkc.c: Likewise.
35512         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35513         * tests/uninorm/test-u32-nfkd.c: Likewise.
35514         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35515         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35516
35517 2010-03-27  Bruno Haible  <bruno@clisp.org>
35518
35519         Distinguish two kinds of module indicators.
35520         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35521         gl_MODULE_INDICATOR.
35522         (gl_MODULE_INDICATOR): New macro.
35523         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35524         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35525         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35526         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35527         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35528         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35529         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35530         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35531         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35532         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35533         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35534         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35536         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35537         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35538         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35539         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35540         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35541         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35542         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35543         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35544         * modules/cloexec (configure.ac): Likewise.
35545         * modules/getopt-gnu (configure.ac): Likewise.
35546         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35547         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35548         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35549         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35550
35551 2010-03-27  Bruno Haible  <bruno@clisp.org>
35552
35553         New module description field 'Comment'.
35554         * gnulib-tool: New option --extract-comment.
35555         (func_usage): Document it.
35556         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35557         (func_get_comment): New function.
35558         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35559
35560 2010-03-27  Bruno Haible  <bruno@clisp.org>
35561
35562         Addendum to 2010-02-07 commit.
35563         * gnulib-tool (func_usage): Document --extract-applicability option.
35564
35565 2010-03-27  Bruno Haible  <bruno@clisp.org>
35566
35567         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35568         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35569         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35570         rather than link errors.
35571
35572 2010-03-27  Bruno Haible  <bruno@clisp.org>
35573
35574         Avoid side effects from tests-related modules on the compilation of lib.
35575         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35576         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35577         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35578         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35579         macro.
35580         (func_import): Define a witness macro. Assign it a value that depends
35581         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35582         tests-related modules.
35583         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35584         Reported by Jim Meyering.
35585
35586 2010-03-27  Bruno Haible  <bruno@clisp.org>
35587
35588         Factorize common .m4 code.
35589         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35590         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35591         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35592         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35593         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35594         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35595         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35596         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35597         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35598         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35599         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35600         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35601         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35602         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35603         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35604         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35605         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35606         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35607         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35608         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35609         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35610         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35611         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35612         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35613         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35614         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35615         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35616         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35617         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35618         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35619         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35620         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35621
35622 2010-03-27  Bruno Haible  <bruno@clisp.org>
35623
35624         Fix a compilation error on Cygwin with g++ >= 4.3.
35625         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35626         if it is undefined or if we alias it to chmod.
35627         (lstat): Don't warn about the use of this function if it is undefined
35628         or if we alias it to stat.
35629         Reported by Simon Josefsson.
35630
35631 2010-03-27  Bruno Haible  <bruno@clisp.org>
35632
35633         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35634         * modules/getlogin (configure.ac): Update.
35635
35636         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35637         * modules/getlogin_r (configure.ac): Update.
35638
35639         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35640         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35641         * modules/inet_ntop (configure.ac): Update.
35642
35643         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35644         * modules/inet_pton (configure.ac): Update.
35645
35646         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35647         * modules/mbslen (configure.ac): Update.
35648
35649         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35650         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35651         * modules/forkpty (configure.ac): Update.
35652         * modules/openpty (configure.ac): Update.
35653
35654 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35655
35656         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35657         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35658
35659 2010-03-25  Eric Blake  <eblake@redhat.com>
35660
35661         maint: use pragma consistently across replacement headers
35662         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35663         * lib/dirent.in.h (system_header): Likewise.
35664         * lib/errno.in.h (system_header): Likewise.
35665         * lib/float.in.h (system_header): Likewise.
35666         * lib/getopt.in.h (system_header): Likewise.
35667         * lib/iconv.in.h (system_header): Likewise.
35668         * lib/inttypes.in.h (system_header): Likewise.
35669         * lib/langinfo.in.h (system_header): Likewise.
35670         * lib/locale.in.h (system_header): Likewise.
35671         * lib/math.in.h (system_header): Likewise.
35672         * lib/netdb.in.h (system_header): Likewise.
35673         * lib/netinet_in.in.h (system_header): Likewise.
35674         * lib/pty.in.h (system_header): Likewise.
35675         * lib/sched.in.h (system_header): Likewise.
35676         * lib/se-selinux.in.h (system_header): Likewise.
35677         * lib/search.in.h (system_header): Likewise.
35678         * lib/spawn.in.h (system_header): Likewise.
35679         * lib/stdarg.in.h (system_header): Likewise.
35680         * lib/stdint.in.h (system_header): Likewise.
35681         * lib/string.in.h (system_header): Likewise.
35682         * lib/strings.in.h (system_header): Likewise.
35683         * lib/sys_file.in.h (system_header): Likewise.
35684         * lib/sys_ioctl.in.h (system_header): Likewise.
35685         * lib/sys_socket.in.h (system_header): Likewise.
35686         * lib/sys_times.in.h (system_header): Likewise.
35687         * lib/sys_utsname.in.h (system_header): Likewise.
35688         * lib/sys_wait.in.h (system_header): Likewise.
35689         * lib/sysexits.in.h (system_header): Likewise.
35690         * lib/unistd.in.h (system_header): Likewise.
35691         * lib/wctype.in.h (system_header): Likewise.
35692
35693         arpa/inet: fix mingw compilation warning
35694         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35695         Reported by Matthew Bolte.
35696
35697 2010-03-25  Bruno Haible  <bruno@clisp.org>
35698
35699         Avoid collision between gnulib wrapper and libintl wrapper.
35700         * lib/printf.c (printf): Don't define if a printf wrapper is already
35701         defined in intl/printf.c.
35702         Reported by Michel Boaventura <michel@michelboaventura.com>.
35703
35704 2010-03-25  Bruno Haible  <bruno@clisp.org>
35705
35706         Use ANSI C.
35707         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35708
35709 2010-03-25  Bruno Haible  <bruno@clisp.org>
35710
35711         Minor formatting changes.
35712         * lib/acosl.c: Insert space before function argument list.
35713         * lib/argz.c: Likewise.
35714         * lib/asinl.c: Likewise.
35715         * lib/expl.c: Likewise.
35716         * lib/gen-uni-tables.c: Likewise.
35717         * lib/gettext.h: Likewise.
35718         * lib/glthread/lock.h: Likewise.
35719         * lib/tanl.c: Likewise.
35720         * lib/uniname/uniname.c: Likewise.
35721         * tests/test-idpriv-drop.c: Likewise.
35722         * tests/test-idpriv-droptemp.c: Likewise.
35723         * tests/test-lock.c: Likewise.
35724         * tests/test-tls.c: Likewise.
35725         * lib/argp-help.c: Insert space before function-like macro argument
35726         list.
35727         * lib/memcmp.c: Likewise.
35728         * tests/test-base64.c: Likewise.
35729         * lib/localename.c: Insert space before sizeof's argument list.
35730         * lib/safe-alloc.h: Likewise.
35731         * lib/file-set.h: Insert space before macro argument list.
35732         * tests/test-argp.c: Likewise.
35733         * lib/argp-namefrob.h: Insert space before function parameter list.
35734         * lib/getaddrinfo.c: Likewise.
35735         * lib/netdb.in.h: Likewise.
35736         * lib/parse-duration.h: Likewise.
35737         * lib/parse-duration.c: Likewise.
35738         * lib/poll.c: Likewise.
35739         * lib/select.c: Likewise.
35740         * lib/trim.h: Likewise.
35741         * tests/test-usleep.c: Likewise.
35742         * lib/ldexpl.c: Insert space before function parameter list and before
35743         function argument list.
35744         * lib/logl.c: Likewise.
35745         * lib/sqrtl.c: Likewise.
35746         * lib/trim.c: Likewise.
35747         * lib/cosl.c: Use GNU style indentation. Insert space before function
35748         argument list.
35749         * lib/sinl.c: Likewise.
35750         * lib/tsearch.c: Insert space after 'for'.
35751         Reported by Jim Meyering.
35752
35753 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35754
35755         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35756         config header before grepping, as it's not present before
35757         autoreconf/configure are run.  Reported by Simon Josefsson.
35758
35759 2010-03-23  Bruno Haible  <bruno@clisp.org>
35760
35761         pt_chown: Make it work with automake < 1.11.
35762         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35763         Reported by Simon Josefsson.
35764
35765 2010-03-23  Bruno Haible  <bruno@clisp.org>
35766
35767         pt_chown: Don't depend on GPLed modules.
35768         * lib/pt_chown.c: Don't include idpriv.h.
35769         (main): Don't drop privileges.
35770         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35771         Reported by Simon Josefsson.
35772
35773 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35774
35775         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35776         suggestions from karl@freefriends.org (Karl Berry).
35777
35778 2010-03-22  Eric Blake  <eblake@redhat.com>
35779
35780         gethostname: further tweaks
35781         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35782         are overriding gethostname.
35783         Suggested by Bruno Haible.
35784
35785 2010-03-21  Bruno Haible  <bruno@clisp.org>
35786
35787         Fix comments.
35788         * lib/forkpty.c (rpl_forkpty): Fix comment.
35789         * lib/openpty.c (rpl_openpty): Likewise.
35790         Reported by Eric Blake.
35791
35792 2010-03-22  Eric Blake  <eblake@redhat.com>
35793
35794         gethostname: fix build on mingw
35795         * lib/unistd.in.h (includes): Work around fact that mingw
35796         <winsock2.h> re-includes <unistd.h>, by avoiding any
35797         redeclarations if we are being included by <winsock2.h>.
35798         Reported by Matthias Bolte.
35799
35800 2010-03-21  Bruno Haible  <bruno@clisp.org>
35801
35802         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35803         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35804         modifications.
35805         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35806         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35807         provide the replacement.
35808         * modules/forkpty (Depends-on): Add openpty, login_tty.
35809         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35810         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35811         * doc/glibc-functions/forkpty.texi: More supported platforms.
35812         * config/srclist.txt: Add forkpty.c (commented).
35813
35814 2010-03-21  Bruno Haible  <bruno@clisp.org>
35815
35816         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35817         (Makefile.am): Verify that PTY_LIB is defined.
35818
35819         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35820
35821 2010-03-21  Bruno Haible  <bruno@clisp.org>
35822
35823         Tests for module 'login_tty'.
35824         * modules/login_tty-tests: New file.
35825         * tests/test-login_tty.c: New file.
35826
35827         New module 'login_tty'.
35828         * lib/login_tty.c: New file.
35829         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35830         * modules/login_tty: New file.
35831         * doc/glibc-functions/login_tty.texi: Mention the new module.
35832
35833 2010-03-21  Bruno Haible  <bruno@clisp.org>
35834
35835         login_tty: Documentation.
35836         * doc/glibc-functions/login_tty.texi: New file.
35837         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35838
35839 2010-03-21  Bruno Haible  <bruno@clisp.org>
35840
35841         pty: Consistent macro naming.
35842         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35843         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35844         * modules/pty (configure.ac): Update.
35845
35846 2010-03-21  Bruno Haible  <bruno@clisp.org>
35847
35848         Tests for openpty: Make stricter.
35849         * tests/test-openpty.c (main): Add test of canonical processing and
35850         erase.
35851         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35852
35853         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35854         * lib/openpty.c (openpty): New replacement function.
35855         * lib/pty.in.h: Include <termios.h>.
35856         (openpty): Update declaration. Add comments.
35857         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35858         is not declared, arrange to provide the replacement. Check for _getpty
35859         and posix_openpt.
35860         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35861         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35862         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35863         * modules/pty-tests (test_pty_c___LDADD): New variable.
35864         * doc/glibc-functions/openpty.texi: More supported platforms.
35865
35866 2010-03-21  Bruno Haible  <bruno@clisp.org>
35867
35868         setenv: Tweaks.
35869         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35870         the test program.
35871         * doc/posix-functions/setenv.texi: Update platforms list.
35872
35873 2010-03-21  Bruno Haible  <bruno@clisp.org>
35874
35875         New module 'unlockpt'.
35876         * lib/unlockpt.c: New file, from glibc with modifications.
35877         * m4/unlockpt.m4: New file.
35878         * modules/unlockpt: New file.
35879         * lib/stdlib.in.h (unlockpt): New declaration.
35880         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35881         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35882         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35883         HAVE_UNLOCKPT.
35884         * doc/posix-functions/unlockpt.texi: Mention the new module.
35885         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35886         * config/srclist.txt: Add unlockpt.c (commented).
35887
35888 2010-03-21  Jim Meyering  <meyering@redhat.com>
35889
35890         maint.mk: prohibit inclusion of "intprops.h" without use
35891         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35892
35893 2010-03-21  Bruno Haible  <bruno@clisp.org>
35894
35895         New module 'grantpt'.
35896         * lib/grantpt.c: New file, from glibc with modifications.
35897         * m4/grantpt.m4: New file.
35898         * modules/grantpt: New file.
35899         * lib/stdlib.in.h (grantpt): New declaration.
35900         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35901         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35902         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35903         HAVE_GRANTPT.
35904         * doc/posix-functions/grantpt.texi: Mention the new module.
35905         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35906         * config/srclist.txt: Add grantpt.c (commented).
35907
35908 2010-03-21  Bruno Haible  <bruno@clisp.org>
35909
35910         New module 'pt_chown'.
35911         * lib/pt_chown.c: New file, from glibc with modifications.
35912         * lib/pty-private.h: New file, from glibc with modifications.
35913         * modules/pt_chown: New file.
35914         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35915
35916 2010-03-21  Bruno Haible  <bruno@clisp.org>
35917
35918         Tests for module 'ptsname'.
35919         * modules/ptsname-tests: New file.
35920         * tests/test-ptsname.c: New file.
35921
35922         New module 'ptsname'.
35923         * lib/ptsname.c: New file, from glibc with modifications.
35924         * m4/ptsname.m4: New file.
35925         * modules/ptsname: New file.
35926         * lib/stdlib.in.h (ptsname): New declaration.
35927         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35928         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35929         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35930         HAVE_PTSNAME.
35931         * doc/posix-functions/ptsname.texi: Mention the new module.
35932         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35933         * config/srclist.txt: Add ptsname.c (commented).
35934
35935 2010-03-21  Bruno Haible  <bruno@clisp.org>
35936
35937         Tests for module 'ttyname_r'.
35938         * modules/ttyname_r-tests: New file.
35939         * tests/test-ttyname_r.c: New file.
35940
35941         New module 'ttyname_r'.
35942         * lib/ttyname_r.c: New file.
35943         * m4/ttyname_r.m4: New file.
35944         * modules/ttyname_r: New file.
35945         * lib/unistd.in.h (ttyname_r): New declaration.
35946         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35947         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35948         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35949         HAVE_TTYNAME_R.
35950         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35951         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35952
35953 2010-03-20  Bruno Haible  <bruno@clisp.org>
35954
35955         signal: Undefine macro definitions in C++ mode.
35956         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35957         sigfillset): Undefine macro definitions from the system header in C++
35958         mode.
35959         Reported by John W. Eaton <jwe@gnu.org>.
35960
35961 2010-03-20  Bruno Haible  <bruno@clisp.org>
35962
35963         Ensure no #include statements inside extern "C" { ... }.
35964         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35965         contain #include statements.
35966         * lib/time.in.h: Likewise.
35967
35968 2010-03-20  Bruno Haible  <bruno@clisp.org>
35969
35970         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35971         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35972         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35973         Reported by John W. Eaton <jwe@gnu.org>.
35974
35975 2010-03-20  Bruno Haible  <bruno@clisp.org>
35976
35977         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35978         Reported by Jim Meyering.
35979
35980 2010-03-20  Bruno Haible  <bruno@clisp.org>
35981
35982         pipe: Set errno upon failure.
35983         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35984         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35985         errno value in error message.
35986
35987 2010-03-20  Bruno Haible  <bruno@clisp.org>
35988             Jim Meyering  <meyering@redhat.com>
35989
35990         lchown: Avoid "unused variable" warning.
35991         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35992
35993 2010-03-20  Bruno Haible  <bruno@clisp.org>
35994
35995         Work around unlink() bug on MacOS X 10.5.6.
35996         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35997         attempting to unlink a parent directory.
35998         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35999         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36000         activate for the replacement function.
36001         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36002
36003 2010-03-20  Bruno Haible  <bruno@clisp.org>
36004
36005         Fix link errors on Solaris 8.
36006         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36007         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36008
36009 2010-03-19  Jim Meyering  <meyering@redhat.com>
36010
36011         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36012         The _LIBC implementation of build_range_exp correctly honors the
36013         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36014         However, the non-_LIBC implementation would ignore that syntax-bit
36015         flag and return REG_ERANGE unconditionally.
36016         This change makes it honor that flag.
36017         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36018         Make two pointer parameters "const".
36019         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36020         (parse_bracket_exp): Update caller.
36021
36022         regex.m4: correct the reversed range endpoint ([b-a]) test
36023         * m4/regex.m4: When requiring that [b-a] evoke failure,
36024         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36025         test pass once again for x86-based systems.
36026
36027 2010-03-19  Bruno Haible  <bruno@clisp.org>
36028
36029         scandir: Fix link error on Solaris 8.
36030         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36031         macros.
36032
36033 2010-03-19  Bruno Haible  <bruno@clisp.org>
36034
36035         getusershell: Fix documentation.
36036         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36037         module.
36038         * doc/glibc-functions/setusershell.texi: Likewise.
36039
36040         getusershell: Provide declaration, missing on Solaris 9.
36041         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36042         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36043         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36044         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36046         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36047         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36048         HAVE_GETUSERSHELL.
36049         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36050
36051 2010-03-19  Bruno Haible  <bruno@clisp.org>
36052
36053         wctype: Provide iswblank function.
36054         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36055         exists and is fine.
36056         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36057         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36058         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36059         * doc/posix-functions/iswblank.texi: Update.
36060
36061 2010-03-19  Bruno Haible  <bruno@clisp.org>
36062
36063         Tests of module 'pty' in C++ mode.
36064         * modules/pty-tests: New file.
36065         * tests/test-pty-c++.cc: New file.
36066         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36067
36068 2010-03-19  Eric Blake  <eblake@redhat.com>
36069
36070         logb: fix documentation
36071         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36072         1.5 declaration bug.
36073
36074         forkpty, openpty: prefer glibc's const-safe prototype
36075         * lib/forkpty.c (rpl_forkpty): New file.
36076         * lib/openpty.c (rpl_openpty): Likewise.
36077         * modules/forkpty (Files): Distribute it.
36078         * modules/openpty (Files): Likewise.
36079         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36080         check...
36081         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36082         replacement for for non-const BSD signature.
36083         * modules/pty (Makefile.am): Substitute witnesses.
36084         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36085         * tests/test-forkpty.c: Update signature check.
36086         * tests/test-openpty.c: Likewise.
36087         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36088         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36089
36090         forkpty, openpty: split functions into new modules
36091         * modules/pty (Makefile.am): Substitute new witnesses.
36092         (Libraries): Move library detection...
36093         * modules/forkpty: ...into new module.
36094         * modules/openpty: Another new module.
36095         * modules/pty-tests: Rename and split...
36096         * modules/forkpty-tests: ...to this...
36097         * modules/openpty-tests: ...and this.
36098         * tests/test-pty.c: Rename and split...
36099         * tests/test-forkpty.c: ...to this...
36100         * tests/test-openpty.c: ...and this.
36101         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36102         (gl_PTY): Split library searching...
36103         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36104         (gl_FORKPTY, gl_OPENPTY): New macros.
36105         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36106         * NEWS: Mention the split.
36107         * MODULES.html.sh (Misc): Document the modules.
36108         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36109         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36110
36111         pty: improve replacement header
36112         * lib/pty.in.h: New file.
36113         * modules/pty (Files): Ship it.
36114         (Makefile.am): Always build replacement.
36115         * m4/pty.m4: Rename...
36116         * m4/pty_h.m4: ...to this.
36117         (gl_PTY): Modernize setting of witness macros; update check of
36118         forkpty to take proper advantage of cache.
36119         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36120
36121         getopt: avoid compiler warning
36122         * lib/getopt.c (attribute_hidden): Remove unused macro.
36123
36124 2010-03-18  Bruno Haible  <bruno@clisp.org>
36125
36126         Fix link errors on Solaris 8.
36127         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36128         * modules/search-tests (test_search_c___LDADD): Likewise.
36129         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36130         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36131         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36132         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36133         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36134         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36135         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36136
36137 2010-03-18  Bruno Haible  <bruno@clisp.org>
36138
36139         Fix bug introduced on 2010-03-14.
36140         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36141         (gl_SPAWN_H): Require it.
36142         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36143         Reported by Simon Josefsson.
36144
36145 2010-03-18  Bruno Haible  <bruno@clisp.org>
36146
36147         Fix typo introduced on 2009-12-31.
36148         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36149         posix_spawn_file_actions_adddup2.
36150
36151 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36152         and Eric Blake  <eblake@redhat.com>
36153
36154         test-vc-list-files-git: make more robust
36155         * tests/test-vc-list-files-git.sh: Unset problematic environment
36156         variables.  Chain commands together.
36157
36158 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36159
36160         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36161         `AC_CHECK_DECL' invocation.
36162
36163 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36164
36165         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36166         appears before executable statements. Suggested by Petr Sumbera
36167         <Petr.Sumbera@Sun.COM>.
36168
36169 2010-03-14  Bruno Haible  <bruno@clisp.org>
36170
36171         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36172         portability problems. Instead use a simpler test.
36173         (main): Check that invalid arguments are rejected only on Linux.
36174
36175 2010-03-14  Bruno Haible  <bruno@clisp.org>
36176
36177         Fix bug introduced on 2009-12-31.
36178         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36179         gl_PREREQ_SYS_H_WINSOCK2 always.
36180         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36181         SYS_SOCKET_H variable.
36182         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36183         Update comments.
36184         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36185         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36186         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36187         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36188         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36189
36190 2010-03-14  Bruno Haible  <bruno@clisp.org>
36191
36192         Fix values returned by sinl, cosl.
36193         * lib/trigl.h: Add specification comments.
36194         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36195         that combines the values from the precomputed table with the values of
36196         the Chebyshev polynomials.
36197
36198 2010-03-14  Bruno Haible  <bruno@clisp.org>
36199
36200         Fix compilation error when modules 'posix_spawn[p]' are not used.
36201         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36202         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36203
36204 2010-03-14  Bruno Haible  <bruno@clisp.org>
36205
36206         Fix compilation error on mingw when module 'time_r' is not used.
36207         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36208         is 1.
36209         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36210         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36211         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36212         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36213
36214 2010-03-14  Bruno Haible  <bruno@clisp.org>
36215
36216         Fix compilation error with Sun C.
36217         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36218         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36219         instead of GCC specific ULONG_LONG_MAX.
36220         * lib/xstrtoll.c: Likewise.
36221         * lib/xstrtoull.c: Likewise.
36222
36223 2010-03-13  Bruno Haible  <bruno@clisp.org>
36224
36225         Allow the user to disable C++ code and tests.
36226         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36227         (gl_PROG_ANSI_CXX): Require it.
36228
36229 2010-03-13  Bruno Haible  <bruno@clisp.org>
36230
36231         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36232         cases.
36233
36234 2010-03-13  Bruno Haible  <bruno@clisp.org>
36235
36236         Test that gnulib does not break the standard C++ headers.
36237         * tests/test-locale-c++2.cc: New file.
36238         * modules/locale-tests (Files): Add it.
36239         (Makefile.am): Compile it for test-locale-c++.
36240         * tests/test-math-c++2.cc: New file.
36241         * modules/math-tests (Files): Add it.
36242         (Makefile.am): Compile it for test-math-c++.
36243         * tests/test-signal-c++2.cc: New file.
36244         * modules/signal-tests (Files): Add it.
36245         (Makefile.am): Compile it for test-signal-c++.
36246         * tests/test-stdio-c++2.cc: New file.
36247         * modules/stdio-tests (Files): Add it.
36248         (Makefile.am): Compile it for test-stdio-c++.
36249         * tests/test-stdlib-c++2.cc: New file.
36250         * modules/stdlib-tests (Files): Add it.
36251         (Makefile.am): Compile it for test-stdlib-c++.
36252         * tests/test-string-c++2.cc: New file.
36253         * modules/string-tests (Files): Add it.
36254         (Makefile.am): Compile it for test-string-c++.
36255         * tests/test-time-c++2.cc: New file.
36256         * modules/time-tests (Files): Add it.
36257         (Makefile.am): Compile it for test-time-c++.
36258         Reported by John W. Eaton <jwe@gnu.org>.
36259
36260 2010-03-13  Bruno Haible  <bruno@clisp.org>
36261
36262         * gnulib-tool (func_usage): Clarify which options are available for
36263         --create-testdir and --create-megatestdir.
36264
36265 2010-03-13  Bruno Haible  <bruno@clisp.org>
36266
36267         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36268         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36269         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36270         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36271         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36272         when appropriate.
36273         Reported by Jim Meyering.
36274
36275 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36276
36277         * gnulib-tool (func_import): Explain origin of code.
36278
36279 2010-03-12  Bruno Haible  <bruno@clisp.org>
36280
36281         Fix problem with automake's definition of CXXLINK.
36282         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36283         Reported by Simon Josefsson and Ludovic Courtès.
36284
36285 2010-03-12  Bruno Haible  <bruno@clisp.org>
36286
36287         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36288         stable releases.
36289
36290 2010-03-11  Bruno Haible  <bruno@clisp.org>
36291
36292         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36293         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36294         whether the system provides one variant or multiple variants of the
36295         function.
36296         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36297         C++ compilers.
36298         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36299         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36300         Reported by Jim Meyering.
36301
36302 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36303
36304         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36305
36306 2010-03-08  Bruno Haible  <bruno@clisp.org>
36307
36308         gnulib-tool: Add support for --libtool in --create-testdir.
36309         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36310         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36311
36312 2010-03-08  Eric Blake  <eblake@redhat.com>
36313
36314         gnulib-tool.texi: mention possibility of git submodule
36315         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36316         submodules.
36317         * doc/.gitignore: Ignore another generated file.
36318
36319 2010-03-08  Karl Berry  <karl@gnu.org>
36320
36321         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36322         of committing gnulib files while skipping others.
36323
36324 2010-03-07  Bruno Haible  <bruno@clisp.org>
36325
36326         Tests of module 'wctype' in C++ mode.
36327         * tests/test-wctype-c++.cc: New file.
36328         * modules/wctype-tests (Files): Add it and tests/signature.h.
36329         (Depends-on): Add ansi-c++-opt.
36330         (Makefile.am): Arrange to compile and run test-wctype-c++.
36331
36332         Tests of module 'wchar' in C++ mode.
36333         * tests/test-wchar-c++.cc: New file.
36334         * modules/wchar-tests (Files): Add it and tests/signature.h.
36335         (Depends-on): Add ansi-c++-opt.
36336         (Makefile.am): Arrange to compile and run test-wchar-c++.
36337         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36338         gl_MODULE_INDICATOR.
36339
36340         Tests of module 'unistd' in C++ mode.
36341         * tests/test-unistd-c++.cc: New file.
36342         * modules/unistd-tests (Files): Add it and tests/signature.h.
36343         (Depends-on): Add ansi-c++-opt.
36344         (Makefile.am): Arrange to compile and run test-unistd-c++.
36345         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36346         gl_MODULE_INDICATOR.
36347
36348         Tests of module 'time' in C++ mode.
36349         * tests/test-time-c++.cc: New file.
36350         * modules/time-tests (Files): Add it and tests/signature.h.
36351         (Depends-on): Add ansi-c++-opt.
36352         (Makefile.am): Arrange to compile and run test-time-c++.
36353         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36354
36355         Tests of module 'sys_time' in C++ mode.
36356         * tests/test-sys_time-c++.cc: New file.
36357         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36358         (Depends-on): Add ansi-c++-opt.
36359         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36360         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36361         gl_MODULE_INDICATOR.
36362
36363         Tests of module 'sys_stat' in C++ mode.
36364         * tests/test-sys_stat-c++.cc: New file.
36365         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36366         (Depends-on): Add ansi-c++-opt.
36367         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36368         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36369         gl_MODULE_INDICATOR.
36370
36371         Tests of module 'sys_socket' in C++ mode.
36372         * tests/test-sys_socket-c++.cc: New file.
36373         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36374         (Depends-on): Add ansi-c++-opt.
36375         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36376         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36377         gl_MODULE_INDICATOR.
36378
36379         Tests of module 'sys_select' in C++ mode.
36380         * tests/test-sys_select-c++.cc: New file.
36381         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36382         (Depends-on): Add ansi-c++-opt.
36383         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36384         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36385         gl_MODULE_INDICATOR.
36386
36387         Tests of module 'sys_ioctl' in C++ mode.
36388         * tests/test-sys_ioctl-c++.cc: New file.
36389         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36390         (Depends-on): Add ansi-c++-opt.
36391         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36392         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36393         gl_MODULE_INDICATOR.
36394
36395         Tests of module 'string' in C++ mode.
36396         * tests/test-string-c++.cc: New file.
36397         * modules/string-tests (Files): Add it and tests/signature.h.
36398         (Depends-on): Add ansi-c++-opt.
36399         (Makefile.am): Arrange to compile and run test-string-c++.
36400         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36401         gl_MODULE_INDICATOR.
36402
36403         Tests of module 'stdlib' in C++ mode.
36404         * tests/test-stdlib-c++.cc: New file.
36405         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36406         (Depends-on): Add ansi-c++-opt.
36407         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36408         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36409         gl_MODULE_INDICATOR.
36410
36411         Tests of module 'stdio' in C++ mode.
36412         * tests/test-stdio-c++.cc: New file.
36413         * modules/stdio-tests (Files): Add it and tests/signature.h.
36414         (Depends-on): Add ansi-c++-opt.
36415         (Makefile.am): Arrange to compile and run test-stdio-c++.
36416         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36417         gl_MODULE_INDICATOR.
36418
36419         Tests of module 'spawn' in C++ mode.
36420         * tests/test-spawn-c++.cc: New file.
36421         * modules/spawn-tests (Files): Add it and tests/signature.h.
36422         (Depends-on): Add ansi-c++-opt.
36423         (Makefile.am): Arrange to compile and run test-spawn-c++.
36424         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36425         gl_MODULE_INDICATOR.
36426
36427         Tests of module 'signal' in C++ mode.
36428         * tests/test-signal-c++.cc: New file.
36429         * modules/signal-tests (Files): Add it and tests/signature.h.
36430         (Depends-on): Add ansi-c++-opt.
36431         (Makefile.am): Arrange to compile and run test-signal-c++.
36432         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36433         gl_MODULE_INDICATOR.
36434
36435         Tests of module 'search' in C++ mode.
36436         * tests/test-search-c++.cc: New file.
36437         * modules/search-tests (Files): Add it and tests/signature.h.
36438         (Depends-on): Add ansi-c++-opt.
36439         (Makefile.am): Arrange to compile and run test-search-c++.
36440         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36441         gl_MODULE_INDICATOR.
36442
36443         Tests of module 'math' in C++ mode.
36444         * tests/test-math-c++.cc: New file.
36445         * modules/math-tests (Files): Add it and tests/signature.h.
36446         (Depends-on): Add ansi-c++-opt.
36447         (Makefile.am): Arrange to compile and run test-math-c++.
36448         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36449
36450         Tests of module 'locale' in C++ mode.
36451         * tests/test-locale-c++.cc: New file.
36452         * modules/locale-tests (Files): Add it and tests/signature.h.
36453         (Depends-on): Add ansi-c++-opt.
36454         (Makefile.am): Arrange to compile and run test-locale-c++.
36455         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36456         gl_MODULE_INDICATOR.
36457
36458         Tests of module 'langinfo' in C++ mode.
36459         * tests/test-langinfo-c++.cc: New file.
36460         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36461         (Depends-on): Add ansi-c++-opt.
36462         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36463         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36464         gl_MODULE_INDICATOR.
36465
36466         Tests of module 'iconv-h' in C++ mode.
36467         * tests/test-iconv-h-c++.cc: New file.
36468         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36469         (Depends-on): Add ansi-c++-opt.
36470         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36471
36472         Tests of module 'glob' in C++ mode.
36473         * tests/test-glob-c++.cc: New file.
36474         * modules/glob-tests (Files): Add it.
36475         (Depends-on): Add ansi-c++-opt.
36476         (Makefile.am): Arrange to compile and run test-glob-c++.
36477
36478         Tests of module 'fcntl-h' in C++ mode.
36479         * tests/test-fcntl-h-c++.cc: New file.
36480         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36481         (Depends-on): Add ansi-c++-opt.
36482         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36483         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36484         gl_MODULE_INDICATOR.
36485
36486         Tests of module 'dirent' in C++ mode.
36487         * tests/test-dirent-c++.cc: New file.
36488         * modules/dirent-tests (Files): Add it and tests/signature.h.
36489         (Depends-on): Add ansi-c++-opt.
36490         (Makefile.am): Arrange to compile and run test-dirent-c++.
36491         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36492         gl_MODULE_INDICATOR.
36493
36494         New module 'ansi-c++-opt'.
36495         * modules/ansi-c++-opt: New file.
36496         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36497
36498         Document C++ namespace mode.
36499         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36500
36501         wctype: Avoid #define replacements in C++ mode.
36502         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36503         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36504         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36505         In C++, define a namespaced alias symbol.
36506         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36507         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36508         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36509         rule.
36510
36511         wchar: Avoid #define replacements in C++ mode.
36512         * lib/wchar.in.h: Include c++defs.h.
36513         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36514         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36515         symbol.
36516         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36517         * modules/wchar (Depends-on): Add c++defs.
36518         (Makefile.am): Update wchar.h rule.
36519
36520         unistd: Avoid #define replacements in C++ mode.
36521         * lib/unistd.in.h: Include c++defs.h.
36522         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36523         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36524         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36525         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36526         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36527         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36528         symbol.
36529         (environ): Update.
36530         * modules/unistd (Depends-on): Add c++defs.
36531         (Makefile.am): Update unistd.h rule.
36532
36533         time: Avoid #define replacements in C++ mode.
36534         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36535         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36536         define a namespaced alias symbol.
36537         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36538         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36539         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36540         * modules/time (Depends-on): Add c++defs, warn-on-use.
36541         (Makefile.am): Update time.h rule.
36542         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36543         * modules/nanosleep (configure.ac): Likewise.
36544         * modules/strptime (configure.ac): Likewise.
36545         * modules/timegm (configure.ac): Likewise.
36546
36547         sys_time: Avoid #define replacements in C++ mode.
36548         * lib/sys_time.in.h: Include c++defs.h.
36549         (gettimeofday): In C++, define a namespaced alias symbol.
36550         * modules/sys_time (Depends-on): Add c++defs.
36551         (Makefile.am): Update sys/time.h rule.
36552
36553         sys_stat: Avoid #define replacements in C++ mode.
36554         * lib/sys_stat.in.h: Include c++defs.h.
36555         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36556         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36557         namespaced alias symbol.
36558         In C++, define a namespaced alias symbol.
36559         * modules/sys_stat (Depends-on): Add c++defs.
36560         (Makefile.am): Update sys/stat.h rule.
36561
36562         sys_socket: Avoid #define replacements in C++ mode.
36563         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36564         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36565         definitions also when the system has a <sys/socket.h>.
36566         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36567         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36568         In C++, define a namespaced alias symbol.
36569         * modules/sys_socket (Depends-on): Add c++defs.
36570         (Makefile.am): Update sys/socket.h rule.
36571
36572         sys_select: Avoid #define replacements in C++ mode.
36573         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36574         definitions also when the system has a <sys/select.h>.
36575         (select): In C++, define a namespaced alias symbol.
36576         * modules/sys_select (Depends-on): Add c++defs.
36577         (Makefile.am): Update sys/select.h rule.
36578
36579         sys_ioctl: Avoid #define replacements in C++ mode.
36580         * lib/sys_ioctl.in.h: Include c++defs.h.
36581         (ioctl): In C++, define a namespaced alias symbol.
36582         * modules/sys_ioctl (Depends-on): Add c++defs.
36583         (Makefile.am): Update sys/ioctl.h rule.
36584
36585         string: Avoid #define replacements in C++ mode.
36586         * lib/string.in.h: Include c++defs.h.
36587         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36588         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36589         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36590         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36591         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36592         * modules/string (Depends-on): Add c++defs.
36593         (Makefile.am): Update string.h rule.
36594
36595         stdlib: Avoid #define replacements in C++ mode.
36596         * lib/stdlib.in.h: Include c++defs.h.
36597         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36598         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36599         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36600         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36601         symbol.
36602         * modules/stdlib (Depends-on): Add c++defs.
36603         (Makefile.am): Update stdlib.h rule.
36604
36605         stdio: Avoid #define replacements in C++ mode.
36606         * lib/stdio.in.h: Include c++defs.h.
36607         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36608         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36609         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36610         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36611         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36612         namespaced alias symbol.
36613         * modules/stdio (Depends-on): Add c++defs.
36614         (Makefile.am): Update stdio.h rule.
36615
36616         spawn: Avoid #define replacements in C++ mode.
36617         * lib/spawn.in.h: Include c++defs.h.
36618         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36619         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36620         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36621         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36622         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36623         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36624         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36625         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36626         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36627         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36628         In C++, define a namespaced alias symbol.
36629         * modules/spawn (Depends-on): Add c++defs.
36630         (Makefile.am): Update spawn.h rule.
36631
36632         signal: Avoid #define replacements in C++ mode.
36633         * lib/signal.in.h: Include c++defs.h.
36634         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36635         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36636         namespaced alias symbol.
36637         * modules/signal (Depends-on): Add c++defs.
36638         (Makefile.am): Update signal.h rule.
36639
36640         search: Avoid #define replacements in C++ mode.
36641         * lib/search.in.h: Include c++defs.h.
36642         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36643         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36644         symbol.
36645         * modules/search (Depends-on): Add c++defs.
36646         (Makefile.am): Update search.h rule.
36647
36648         math: Avoid #define replacements in C++ mode.
36649         * lib/math.in.h: Include c++defs.h.
36650         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36651         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36652         trunc, truncl): In C++, define a namespaced alias symbol.
36653         * modules/math (Depends-on): Add c++defs.
36654         (Makefile.am): Update math.h rule.
36655
36656         locale: Avoid #define replacements in C++ mode.
36657         * lib/locale.in.h: Include c++defs.h.
36658         (duplocale): In C++, define a namespaced alias symbol.
36659         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36660         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36661         * modules/locale (Depends-on): Add c++defs.
36662         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36663
36664         langinfo: Avoid #define replacements in C++ mode.
36665         * lib/langinfo.in.h: Include c++defs.h.
36666         (nl_langinfo): In C++, define a namespaced alias symbol.
36667         * modules/langinfo (Depends-on): Add c++defs.
36668         (Makefile.am): Update langinfo.h rule.
36669
36670         iconv-h: Avoid #define replacements in C++ mode.
36671         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36672         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36673         symbol.
36674         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36675         whenever iconv is present.
36676         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36677         (Makefile.am): Update iconv.h rule.
36678
36679         glob: Avoid #define replacements in C++ mode.
36680         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36681         (_gl_glob_errfunc_fn): New type.
36682         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36683         symbol.
36684         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36685         (Makefile.am): Update glob.h rule.
36686
36687         fcntl-h: Avoid #define replacements in C++ mode.
36688         * lib/fcntl.in.h: Include c++defs.h.
36689         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36690         * modules/fcntl-h (Depends-on): Add c++defs.
36691         (Makefile.am): Update fcntl.h rule.
36692
36693         dirent: Avoid #define replacements in C++ mode.
36694         * lib/dirent.in.h: Include c++defs.h.
36695         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36696         namespaced alias symbol.
36697         (dirfd): Update declaration.
36698         * modules/dirent (Depends-on): Add c++defs.
36699         (Makefile.am): Update dirent.h rule.
36700
36701         ctype: Make it usable in C++ code.
36702         * lib/ctype.in.h: Include c++defs.h.
36703         (isblank): Declare as extern "C".
36704         * modules/ctype (Depends-on): Add c++defs.
36705         (Makefile.am): Update ctype.h rule.
36706
36707         New module 'c++defs'.
36708         * modules/c++defs: New file.
36709         * build-aux/c++defs.h: New file.
36710         Reported by John W. Eaton <jwe@gnu.org>.
36711
36712 2010-03-07  Bruno Haible  <bruno@clisp.org>
36713
36714         logb: Provide missing declaration for Cygwin.
36715         * lib/math.in.h (logb): New declaration.
36716         * m4/logb.m4: New file.
36717         * modules/logb (Files): Add m4/logb.m4.
36718         (Depends-on): Add math.
36719         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36720         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36722         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36723         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36724
36725 2010-03-07  Bruno Haible  <bruno@clisp.org>
36726
36727         Fix test-cond link error.
36728         * tests/test-cond.c: Include <stdio.h>.
36729
36730 2010-03-07  Bruno Haible  <bruno@clisp.org>
36731
36732         Fix test-dirent-safer link error.
36733         * modules/dirent-safer-tests (Makefile.am): Define
36734         test_dirent_safer_LDADD.
36735
36736 2010-03-07  Bruno Haible  <bruno@clisp.org>
36737
36738         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36739         among default module list.
36740
36741 2010-03-07  Bruno Haible  <bruno@clisp.org>
36742
36743         Fix link error on platforms with GNU libiconv.
36744         * modules/unistr/u8-strcoll-tests (Makefile): Define
36745         test_u8_strcoll_LDADD.
36746         * modules/unistr/u16-strcoll-tests (Makefile): Define
36747         test_u16_strcoll_LDADD.
36748         * modules/unistr/u32-strcoll-tests (Makefile): Define
36749         test_u32_strcoll_LDADD.
36750
36751 2010-03-07  Bruno Haible  <bruno@clisp.org>
36752
36753         Use POSIX declarations for socket functions.
36754         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36755         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36756         rpl_sendto): Change declaration to match POSIX.
36757         * lib/connect.c (rpl_connect): Likewise.
36758         * lib/accept.c (rpl_accept): Likewise.
36759         * lib/bind.c (rpl_bind): Likewise.
36760         * lib/getpeername.c (rpl_getpeername): Likewise.
36761         * lib/getsockname.c (rpl_getsockname): Likewise.
36762         * lib/recv.c (rpl_recv): Likewise.
36763         * lib/send.c (rpl_send): Likewise.
36764         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36765         * lib/sendto.c (rpl_sendto): Likewise.
36766
36767 2010-03-06  Bruno Haible  <bruno@clisp.org>
36768
36769         Clarify access, euidaccess, faccessat.
36770         * doc/posix-functions/faccessat.texi: Mention security problem under
36771         "Other problems", not "Portability problems".
36772         * doc/posix-functions/access.texi: Likewise. Mention a related security
36773         problem.
36774         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36775         * lib/euidaccess.c: Add comments about platforms.
36776         * lib/unistd.in.h (access, euidaccess): Add warnings.
36777
36778 2010-03-07  Bruno Haible  <bruno@clisp.org>
36779
36780         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36781         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36782         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36783         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36784         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36785         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36786         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36787         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36788         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36789         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36790         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36791         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36792         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36793         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36794         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36795         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36796         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36797         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36798         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36799         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36800         Likewise.
36801         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36802         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36803         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36804         Likewise.
36805         * tests/test-spawn.c (main): Make it work when
36806         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36807
36808 2010-03-07  Bruno Haible  <bruno@clisp.org>
36809
36810         Fix incorrect Makefile.am generation in German locale.
36811         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36812         Execute sed command with character range in C locale.
36813
36814 2010-03-06  Bruno Haible  <bruno@clisp.org>
36815
36816         Tests for module 'iconv-h'.
36817         * modules/iconv-h-tests: New file.
36818         * tests/test-iconv-h.c: New file.
36819
36820         New module 'iconv-h'.
36821         * modules/iconv-h: New file.
36822         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36823         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36824         (configure.ac): Remove gl_ICONV_H.
36825         (Makefile.am): Remove rule for iconv.h.
36826
36827 2010-03-06  Bruno Haible  <bruno@clisp.org>
36828
36829         More consistent naming of *.m4 files.
36830         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36831         * modules/wctype (Files): Update.
36832
36833         More consistent naming of *.m4 files.
36834         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36835         * modules/wchar (Files): Update.
36836
36837 2010-03-06  Jim Meyering  <meyering@redhat.com>
36838
36839         euidaccess: relax license to LGPLv2+
36840         * modules/euidaccess (License): Relax to LGPLv2+.
36841
36842 2010-03-06  Bruno Haible  <bruno@clisp.org>
36843
36844         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36845         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36846         (Makefile.am): Augment lib_SOURCES instead.
36847
36848 2010-03-04  Jim Meyering  <meyering@redhat.com>
36849
36850         utime: remove obsolete module
36851         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36852         unnecessary for years, and has been marked as obsolete for 10 months.
36853         * modules/utime: Remove file.
36854         * lib/utime.c: Remove file.
36855         * m4/utime.m4: Remove file.
36856         * m4/utimes-null.m4: Remove file.
36857         * doc/posix-functions/utime.texi (utime): Remove reference to
36858         the module.  Move the sole "fixed by gnulib" item into the
36859         "problems not fixed by Gnulib" list.
36860         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36861
36862 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36863
36864         * modules/exit (License): Relax license to LGPLv2+.
36865         (Status): Mark as obsolete.
36866         * NEWS: Mention deprecated 'exit' module.
36867         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36868         of now obsolete 'exit'.
36869
36870 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36871
36872         fts-lgpl: remove unused module
36873         * modules/fts-lgpl: Remove.
36874         * MODULES.html.sh (func_all_modules): Adjust.
36875         * check-module (find_included_lib_files): Adjust.
36876         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36877
36878 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36879
36880         copy-acl: enhance Solaris ACL error handling
36881         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36882         * lib/set-mode-acl.c (qset_acl): Likewise.
36883
36884 2010-03-02  Bruno Haible  <bruno@clisp.org>
36885
36886         spawn: Don't override the system defined values on FreeBSD 8.
36887         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36888         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36889         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36890         if HAVE_POSIX_SPAWN is 1.
36891         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36892
36893 2010-03-01  Bruno Haible  <bruno@clisp.org>
36894
36895         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36896         regarding Automake.
36897
36898 2010-02-25  Bruno Haible  <bruno@clisp.org>
36899
36900         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36901         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36902         setting, not afterwards.
36903         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36904
36905 2010-02-24  Eric Blake  <eblake@redhat.com>
36906
36907         bootstrap, git-version-gen: use timestamp
36908         * build-aux/git-version-gen (scriptversion): Force UTC.
36909         * build-aux/bootstrap (scriptversion): New variable.
36910
36911         bootstrap: allow older git
36912         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36913         older than 1.6.4.  Requested by the libvirt project.
36914
36915 2010-02-23  Eric Blake  <eblake@redhat.com>
36916
36917         warn-on-use: work with old autoconf
36918         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36919         AS_VAR semantics of autoconf 2.60.
36920         Reported by Bruno Haible.
36921
36922         bootstrap: improve some comments
36923         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36924         clarification comments.
36925
36926         gettimeofday: provide correct function
36927         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36928         when replacement is declared, otherwise provide gettimeofday.
36929         Reported by Michael Goffioul.
36930
36931 2010-02-23  Jim Meyering  <meyering@redhat.com>
36932
36933         lib-ignore: relax license to "unlimited", not LGPLv2+
36934         * modules/lib-ignore (License): Relax to "unlimited".
36935
36936 2010-02-23  Jim Meyering  <meyering@redhat.com>
36937
36938         lib-ignore: relax license to LGPLv2+
36939         * modules/lib-ignore (License): Relax to LGPLv2+.
36940
36941 2010-02-22  Eric Blake  <eblake@redhat.com>
36942
36943         lseek: avoid bash 3.2 broken pipe bug
36944         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36945         warning from bash 3.2.
36946         Reported by Ben Pfaff, with analysis from Bruno Haible.
36947
36948         bootstrap: support non-FSF copyright holder
36949         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36950         bootstrap.conf override of COPYRIGHT_HOLDER.
36951         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36952
36953         bootstrap: interoperate with gettext 0.14.1
36954         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36955
36956         bootstrap: allow for alternate submodule location
36957         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36958         hardcoding submodule location.
36959         (gnulib_mk): Allow direct use of Makefile.am.
36960
36961         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36962         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36963         rather than reconfiguring where the submodule points.
36964
36965         gettimeofday: restore support for platforms that lack function
36966         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36967         replacement if function is missing.
36968         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36969         * modules/sys_time (Makefile.am): Substitute it.
36970         * lib/sys_time.in.h (gettimeofday): Check it.
36971         Reported by Michael Goffioul.
36972
36973 2010-02-21  Bruno Haible  <bruno@clisp.org>
36974
36975         * lib/stdio.in.h (obstack_printf): Fix typo.
36976
36977 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36978
36979         vc-list-files: use bzr ls's -R option
36980         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36981         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36982
36983 2010-02-21  Jim Meyering  <meyering@redhat.com>
36984
36985         init.sh: fix EXEEXT shims to work also for names like test-prog
36986         * tests/init.sh: Re-exec a better shell, when needed.
36987         If the current shell lacks support for posix $(...), an init.sh-using
36988         test will now try to find a shell that supports that.  If EXEEXT is
36989         nonempty, we also require support for hyphen-in-alias-name and shell
36990         substitutions like ${var#glob}.  Failure to find such a shell results
36991         in a skipped test.
36992
36993 2010-02-21  Bruno Haible  <bruno@clisp.org>
36994
36995         Really work around around "broken pipe" error message from bash 3.2.
36996         * gnulib-tool (func_reset_sigpipe): Remove function.
36997         (echo): In bash 3.2, define to a function that uses printf.
36998         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36999
37000 2010-02-20  Bruno Haible  <bruno@clisp.org>
37001
37002         Restore support for automake 1.9.6 with autoconf 2.61.
37003         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37004         Reported by James Youngman <jay@gnu.org>.
37005
37006 2010-02-20  Bruno Haible  <bruno@clisp.org>
37007
37008         Improve *printf warning condition.
37009         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37010         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37011         and the function is overridden due to SIGPIPE emulation.
37012
37013 2010-02-20  Bruno Haible  <bruno@clisp.org>
37014
37015         * lib/stdio.in.h: Tweak comments.
37016
37017 2010-02-19  Bruno Haible  <bruno@clisp.org>
37018
37019         Make it easier to find modules. New gnulib-tool option '--find'.
37020         * gnulib-tool: New option --find.
37021         (func_usage): Document it.
37022         (func_sanitize_modulelist): New function, extracted from
37023         func_all_modules.
37024         (func_all_modules): Invoke it.
37025         * doc/gnulib-tool.texi (Which modules?): New node.
37026
37027 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37028
37029         * lib/sys_select.in.h: Provide select replacement even if
37030         sys/select.h exists on a system, for Interix.
37031
37032 2010-02-18  Jim Meyering  <meyering@redhat.com>
37033
37034         init.sh: don't use $(...) just yet
37035         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37036         to accommodate e.g., Solaris' /bin/sh.
37037
37038 2010-02-17  Bruno Haible  <bruno@clisp.org>
37039
37040         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37041         Reported by Ludovic Courtès <ludo@gnu.org>.
37042
37043 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37044
37045         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37046         linking with -lintl.
37047
37048 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37049
37050         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37051         if not provided by the system's netdb.h.  Reported by
37052         ludo@gnu.org (Ludovic Courtès).
37053
37054 2010-02-15  Jim Meyering  <meyering@redhat.com>
37055
37056         init.sh: improve portability and efficiency
37057         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37058         "dummy" in a for loop.
37059         Use '!', not '^' to select the complement of a character set used
37060         in a "case" statement.
37061         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37062         Suggestions from Eric Blake.
37063
37064         init.sh: automatically accommodate programs with the .exe suffix
37065         Automatically arrange for an invocation of "prog" to execute the
37066         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37067         may use the simpler "prog", yet still work when built on a system
37068         that requires specifying the added suffix.
37069         Do this by constructing a function named "prog" that invokes
37070         "prog.exe" for each .exe file in selected directories.
37071         * tests/init.sh (find_exe_basenames_): New function.
37072         (create_exe_shim_functions_): New function.
37073         (path_prepend_): Use it.
37074
37075         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37076         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37077         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37078
37079 2010-02-14  Jim Meyering  <meyering@redhat.com>
37080
37081         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37082         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37083         (sc_prohibit_hash_pjw_without_use): New rule.
37084
37085         maint.mk: allow the default upload destination dir to be overridden
37086         * top/maint.mk (upload_dest_dir_): Define with a default that
37087         preserves the status quo.
37088         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37089         Reported by Peter Simons.
37090
37091         maint.mk: prohibit inclusion of "hash.h" without_use
37092         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37093
37094 2010-02-10  Jim Meyering  <meyering@redhat.com>
37095
37096         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37097         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37098
37099 2010-02-09  Eric Blake  <ebb9@byu.net>
37100         and Bruno Haible  <bruno@clisp.org>
37101
37102         obstack-printf-posix: ensure declaration
37103         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37104         extracted from gl_FUNC_OBSTACK_PRINTF.
37105         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37106         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37107         Likewise.
37108         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37109         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37110         0.
37111
37112 2010-02-08  Bruno Haible  <bruno@clisp.org>
37113
37114         gnulib-tool: Fix typo in 2010-02-07 commit.
37115         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37116         Reported by Eric Blake.
37117
37118 2010-02-07  Bruno Haible  <bruno@clisp.org>
37119
37120         gnulib-tool: Fix up caching patches.
37121         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37122         option --no-cache. Use associative arrays when supported by the shell.
37123         (sed_comments): New variable.
37124         (modcache): Renamed from do_cache.
37125         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37126         abbreviate unnecessarily.
37127         (have_associative): New variable.
37128         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37129         way also for ksh and zsh.
37130         (func_init_sed_convert_to_cache_statements): New function, extracted
37131         from func_cache_lookup_module. Add support for associative arrays.
37132         Don't set the c_MODULE_cached variable here. Ignore all lines before
37133         the first field header. Remove only the final newline, not all trailing
37134         newlines. Support empty fields correctly. Limit the use of 'eval' to
37135         assignments.
37136         (func_get_description, func_get_status, func_get_notice,
37137         func_get_applicability, func_get_filelist, func_get_dependencies,
37138         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37139         func_get_automake_snippet, func_get_include_directive,
37140         func_get_link_directive, func_get_license, func_get_maintainer):
37141         Update documentation. List the unoptimized code first. Add support for
37142         associative arrays. Limit the use of 'eval' to assignments.
37143         (func_get_applicability): Undo stylistic pessimisations.
37144         (func_get_automake_snippet, func_get_include_directive): Reduce code
37145         duplication.
37146         (func_modules_transitive_closure, func_modules_add_dummy,
37147         func_modules_notice, func_modules_to_filelist, func_add_file,
37148         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37149         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37150         func_create_testdir, func_create_megatestdir): Update documentation.
37151
37152 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37153
37154         * gnulib-tool (func_cache_lookup_module): Store the module name
37155         belonging to the cache variable; error out if two different
37156         module names map to the same cache variable name.
37157
37158 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37159
37160         gnulib-tool: Make caching optional.
37161         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37162         Update matching short versions of --no-changelog.
37163         (func_usage): Update.
37164         (sed_extract_cache_prog): Renamed from ...
37165         (sed_extract_prog): ... this; revert to old extraction script.
37166         (func_get_description, func_get_status)
37167         (func_get_notice, func_get_applicability, func_get_filelist)
37168         (func_get_dependencies, func_get_autoconf_early_snippet)
37169         (func_get_autoconf_snippet, func_get_automake_snippet)
37170         (func_get_include_directive, func_get_link_directive)
37171         (func_get_license, func_get_maintainer): If $do_cache is false,
37172         use old, non-caching extraction scripts.
37173         Suggestion by Bruno Haible.
37174
37175 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37176
37177         gnulib-tool: cache module metainformation.
37178         * gnulib-tool (sed_extract_prog): Match newline before each
37179         header, and rewrite header to a shell variable suffix.
37180         (func_cache_var, func_cache_lookup_module): New functions,
37181         to turn a module name into a cache variable prefix, and to
37182         look up and cache module metainformation.
37183         (func_get_description, func_get_status)
37184         (func_get_notice, func_get_applicability, func_get_filelist)
37185         (func_get_dependencies, func_get_autoconf_early_snippet)
37186         (func_get_autoconf_snippet, func_get_automake_snippet)
37187         (func_get_include_directive, func_get_link_directive)
37188         (func_get_license, func_get_maintainer): Use
37189         func_cache_lookup_module.
37190
37191 2010-02-07  Bruno Haible  <bruno@clisp.org>
37192
37193         fnctl: Fix missing dependency.
37194         * modules/fcntl (Depends-on): Add getdtablesize.
37195         Reported by John W. Eaton <jwe@gnu.org>.
37196
37197 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37198
37199         Argp: fix recognition of short alias options.
37200
37201         * lib/argp-parse.c (convert_options): Fix improper use of
37202         `|' between character values.
37203         * tests/test-argp.c (group1_option): New alias option
37204         --read (-r).
37205         (group1_parser): Special handling for 'r'.
37206         (test15): New test case.
37207         (test_fun): Add test15.
37208         * tests/test-argp-2.sh: Update expected --help and --usage
37209         outputs.
37210
37211 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37212
37213         * tests/test-argp.c: Fix indentation.
37214
37215 2010-02-04  Eric Blake  <ebb9@byu.net>
37216
37217         gettimeofday: expose type of second argument
37218         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37219         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37220         * tests/test-gettimeofday.c: Use it to silence warning.
37221         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37222         the issue.
37223
37224 2010-02-03  Jim Meyering  <meyering@redhat.com>
37225
37226         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37227         * lib/regcomp.c (TYPE_SIGNED): Define.
37228         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37229
37230         regcomp.c: avoid a new -Wshadow warning
37231         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37232
37233 2010-02-01  Jim Meyering  <meyering@redhat.com>
37234
37235         removing useless parentheses in cpp #define directives
37236         For motivation, see commit c0221df4, "define STREQ(a,b)
37237         consistently, removing useless parentheses"
37238         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37239         * lib/mountlist.c (MNT_IGNORE): Likewise.
37240         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37241
37242 2010-02-01  Eric Blake  <ebb9@byu.net>
37243
37244         sys_time: use link-warning
37245         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37246         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37247         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37248         * modules/sys_time (Depends-on): Add warn-on-use.
37249         (Makefile.am): Always build replacement.
37250         (configure.ac): Update substitutions.
37251         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37252         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37253         bother with SYS_TIME_H.
37254         * modules/gettimeofday (configure.ac): Declare indicator.
37255         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37256         in use.
37257
37258         closein-tests: silence compiler warning
37259         * tests/test-closein.c (main): Ignore fread result.
37260         * modules/closein-tests (Depends-on): Add ignore-value.
37261
37262         tests: silence warning about system return
37263         * tests/test-areadlink-with-size.c (main): Ignore system result.
37264         * tests/test-areadlink.c (main): Likewise.
37265         * tests/test-areadlinkat-with-size.c (main): Likewise.
37266         * tests/test-areadlinkat.c (main): Likewise.
37267         * tests/test-canonicalize-lgpl.c (main): Likewise.
37268         * tests/test-canonicalize.c (main): Likewise.
37269         * tests/test-chown.c (main): Likewise.
37270         * tests/test-fchownat.c (main): Likewise.
37271         * tests/test-fdutimensat.c (main): Likewise.
37272         * tests/test-fstatat.c (main): Likewise.
37273         * tests/test-futimens.c (main): Likewise.
37274         * tests/test-lchown.c (main): Likewise.
37275         * tests/test-link.c (main): Likewise.
37276         * tests/test-linkat.c (main): Likewise.
37277         * tests/test-lstat.c (main): Likewise.
37278         * tests/test-mkdir.c (main): Likewise.
37279         * tests/test-mkdirat.c (main): Likewise.
37280         * tests/test-mkfifo.c (main): Likewise.
37281         * tests/test-mkfifoat.c (main): Likewise.
37282         * tests/test-mknod.c (main): Likewise.
37283         * tests/test-readlink.c (main): Likewise.
37284         * tests/test-remove.c (main): Likewise.
37285         * tests/test-rename.c (main): Likewise.
37286         * tests/test-renameat.c (main): Likewise.
37287         * tests/test-rmdir.c (main): Likewise.
37288         * tests/test-symlink.c (main): Likewise.
37289         * tests/test-symlinkat.c (main): Likewise.
37290         * tests/test-unlink.c (main): Likewise.
37291         * tests/test-unlinkat.c (main): Likewise.
37292         * tests/test-utimens.c (main): Likewise.
37293         * tests/test-utimensat.c (main): Likewise.
37294         * modules/areadlink-tests (Depends-on): Add ignore-value.
37295         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37296         * modules/areadlinkat-tests (Depends-on): Likewise.
37297         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37298         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37299         * modules/canonicalize-tests (Depends-on): Likewise.
37300         * modules/chown-tests (Depends-on): Likewise.
37301         * modules/fdutimensat-tests (Depends-on): Likewise.
37302         * modules/futimens-tests (Depends-on): Likewise.
37303         * modules/lchown-tests (Depends-on): Likewise.
37304         * modules/link-tests (Depends-on): Likewise.
37305         * modules/linkat-tests (Depends-on): Likewise.
37306         * modules/lstat-tests (Depends-on): Likewise.
37307         * modules/mkdir-tests (Depends-on): Likewise.
37308         * modules/mkfifo-tests (Depends-on): Likewise.
37309         * modules/mkfifoat-tests (Depends-on): Likewise.
37310         * modules/mknod-tests (Depends-on): Likewise.
37311         * modules/openat-tests (Depends-on): Likewise.
37312         * modules/readlink-tests (Depends-on): Likewise.
37313         * modules/remove-tests (Depends-on): Likewise.
37314         * modules/rename-tests (Depends-on): Likewise.
37315         * modules/renameat-tests (Depends-on): Likewise.
37316         * modules/rmdir-tests (Depends-on): Likewise.
37317         * modules/symlink-tests (Depends-on): Likewise.
37318         * modules/symlinkat-tests (Depends-on): Likewise.
37319         * modules/unlink-tests (Depends-on): Likewise.
37320         * modules/utimens-tests (Depends-on): Likewise.
37321         * modules/utimensat-tests (Depends-on): Likewise.
37322
37323 2010-01-31  Bruno Haible  <bruno@clisp.org>
37324
37325         Perform the same test for many <math.h> functions.
37326         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37327         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37328         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37329         of gl_MATHFUNC.
37330         * modules/acos (configure.ac): Likewise.
37331         * modules/asin (configure.ac): Likewise.
37332         * modules/atan (configure.ac): Likewise.
37333         * modules/atan2 (configure.ac): Likewise.
37334         * modules/cbrt (configure.ac): Likewise.
37335         * modules/copysign (configure.ac): Likewise.
37336         * modules/cos (configure.ac): Likewise.
37337         * modules/cosh (configure.ac): Likewise.
37338         * modules/erf (configure.ac): Likewise.
37339         * modules/erfc (configure.ac): Likewise.
37340         * modules/exp (configure.ac): Likewise.
37341         * modules/fmod (configure.ac): Likewise.
37342         * modules/hypot (configure.ac): Likewise.
37343         * modules/j0 (configure.ac): Likewise.
37344         * modules/j1 (configure.ac): Likewise.
37345         * modules/jn (configure.ac): Likewise.
37346         * modules/lgamma (configure.ac): Likewise.
37347         * modules/log (configure.ac): Likewise.
37348         * modules/log10 (configure.ac): Likewise.
37349         * modules/log1p (configure.ac): Likewise.
37350         * modules/pow (configure.ac): Likewise.
37351         * modules/remainder (configure.ac): Likewise.
37352         * modules/sin (configure.ac): Likewise.
37353         * modules/sinh (configure.ac): Likewise.
37354         * modules/tan (configure.ac): Likewise.
37355         * modules/tanh (configure.ac): Likewise.
37356         * modules/y0 (configure.ac): Likewise.
37357         * modules/y1 (configure.ac): Likewise.
37358         * modules/yn (configure.ac): Likewise.
37359         Suggested by Paolo Bonzini.
37360
37361 2010-01-31  Bruno Haible  <bruno@clisp.org>
37362
37363         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37364
37365 2010-01-31  Bruno Haible  <bruno@clisp.org>
37366
37367         Work around getdelim() bug on FreeBSD 8.0.
37368         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37369         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37370         not work.
37371         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37372         is 1.
37373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37374         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37375         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37376         a non-zero size.
37377         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37378
37379 2010-01-31  Bruno Haible  <bruno@clisp.org>
37380
37381         Work around getline() bug on FreeBSD 8.0.
37382         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37383         and a non-zero size.
37384         * tests/test-getline.c (main): Likewise.
37385         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37386         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37387
37388 2010-01-28  Eric Blake  <ebb9@byu.net>
37389
37390         regex: fix build failure
37391         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37392         platforms.
37393
37394 2010-01-28  Jim Meyering  <meyering@redhat.com>
37395
37396         regex: do not ignore memory allocation failure
37397         * lib/regex_internal.c (create_cd_newstate): Detect
37398         re_node_set_init_copy failure.   Extracted from glibc commit
37399         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37400
37401         regex: sync more white-space changes from libc
37402         * lib/regex_internal.c: White-space only changes.
37403         * lib/regexec.c: Likewise.
37404
37405         regex: add many uses of __attribute_warn_unused_result__
37406         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37407         * lib/regexec.c: Likewise.
37408         Extracted from a messy glibc commit.
37409
37410         regcomp.c: spelling and merge-artifact from glibc
37411         * lib/regcomp.c: Merge remainder of glibc's
37412         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37413
37414         regcomp.c: sync white-space changes from glibc
37415         * lib/regcomp.c: Merge to accommodate white space
37416         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37417
37418         regcomp.c: do not ignore internal return values
37419         * lib/regcomp.c: Do not ignore internal return values.
37420         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37421         but without its white-space changes and spelling fixes.
37422
37423         regex_internal.h: define __attribute_warn_unused_result__
37424         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37425
37426         maint: add a syntax-check rule to check for vulnerable Makefile.in
37427         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37428
37429 2010-01-27  Jim Meyering  <meyering@redhat.com>
37430
37431         ncftpput-ftp: clean up spaces
37432         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37433         Remove trailing blanks.
37434
37435 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37436
37437         * build-aux/git-version-gen: Fix copyright statement.
37438         * build-aux/gnupload: Likewise.
37439         * tests/test-arcfour.c: Likewise.
37440         * tests/test-arctwo.c: Likewise.
37441         * tests/test-count-one-bits.c: Likewise.
37442         * tests/test-crc.c: Likewise.
37443         * tests/test-des.c: Likewise.
37444         * tests/test-gc-arcfour.c: Likewise.
37445         * tests/test-gc-arctwo.c: Likewise.
37446         * tests/test-gc-des.c: Likewise.
37447         * tests/test-gc-hmac-md5.c: Likewise.
37448         * tests/test-gc-hmac-sha1.c: Likewise.
37449         * tests/test-gc-md2.c: Likewise.
37450         * tests/test-gc-md4.c: Likewise.
37451         * tests/test-gc-md5.c: Likewise.
37452         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37453         * tests/test-gc-rijndael.c: Likewise.
37454         * tests/test-gc-sha1.c: Likewise.
37455         * tests/test-gc.c: Likewise.
37456         * tests/test-gethostname.c: Likewise.
37457         * tests/test-gettimeofday.c: Likewise.
37458         * tests/test-hash.c: Likewise.
37459         * tests/test-hmac-md5.c: Likewise.
37460         * tests/test-hmac-sha1.c: Likewise.
37461         * tests/test-md2.c: Likewise.
37462         * tests/test-md4.c: Likewise.
37463         * tests/test-md5.c: Likewise.
37464         * tests/test-memchr.c: Likewise.
37465         * tests/test-memchr2.c: Likewise.
37466         * tests/test-memcmp.c: Likewise.
37467         * tests/test-memmem.c: Likewise.
37468         * tests/test-memrchr.c: Likewise.
37469         * tests/test-rawmemchr.c: Likewise.
37470         * tests/test-read-file.c: Likewise.
37471         * tests/test-rijndael.c: Likewise.
37472         * tests/test-sockets.c: Likewise.
37473         * tests/test-strchrnul.c: Likewise.
37474         * tests/test-strstr.c: Likewise.
37475         * tests/test-strtod.c: Likewise.
37476         * build-aux/ncftpput-ftp: Likewise.
37477
37478 2010-01-26  Eric Blake  <ebb9@byu.net>
37479
37480         ignore-value: update recommended header name
37481         * modules/ignore-value (Include): Only use <> for headers that
37482         exist in glibc.
37483
37484 2010-01-26  Jim Meyering  <meyering@redhat.com>
37485
37486         test-userspec.c: avoid compiler warnings
37487         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37488         and "initialization discards qualifiers..." warnings.
37489         Put the first "uid" in its own scope, and make char* members "const".
37490
37491 2010-01-25  Bruno Haible  <bruno@clisp.org>
37492
37493         gnulib-tool: Make warning diagnostics consistent.
37494         * gnulib-tool (func_warning): New function.
37495         Use it everywhere where gnulib-tool produces output to stderr and it is
37496         not a fatal error.
37497
37498 2010-01-25  Bruno Haible  <bruno@clisp.org>
37499
37500         Fix test dependencies.
37501         * modules/xstrtol-tests (Depends-on): Add inttypes.
37502         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37503
37504 2010-01-25 Pádraig Brady <P@draigBrady.com>
37505
37506         syntax-check: detect incorrect boolean macro values in config.h
37507         * modules/maintainer-makefile (configure.ac): Parameterize the location
37508         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37509         The logic is from Eric Blake and the location indicated by Jim Meyering.
37510         Note the more natural CONFIG_HEADER name is prohibited by automake
37511         for backwards compatibility reasons.
37512         * top/maint.mk (sc_Wundef_boolean): New rule.
37513
37514 2010-01-25  Jim Meyering  <meyering@redhat.com>
37515
37516         bootstrap: detect MacOS 10.6's shasum, too
37517         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37518         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37519
37520 2010-01-23  Jim Meyering  <meyering@redhat.com>
37521
37522         xstrtoll: new module
37523         * modules/xstrtoll: New file.
37524         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37525         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37526         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37527         ./configure fails if you use this module and lack "long long".
37528         * modules/xstrtoll-tests: New module.
37529         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37530         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37531         new init.sh-based test framework.
37532
37533 2010-01-24  Bruno Haible  <bruno@clisp.org>
37534
37535         Tests for module 'yn'.
37536         * modules/yn-tests: New file.
37537         * tests/test-yn.c: New file.
37538
37539         Tests for module 'y1'.
37540         * modules/y1-tests: New file.
37541         * tests/test-y1.c: New file.
37542
37543         Tests for module 'y0'.
37544         * modules/y0-tests: New file.
37545         * tests/test-y0.c: New file.
37546
37547         Tests for module 'tanh'.
37548         * modules/tanh-tests: New file.
37549         * tests/test-tanh.c: New file.
37550
37551         Tests for module 'tan'.
37552         * modules/tan-tests: New file.
37553         * tests/test-tan.c: New file.
37554
37555         Tests for module 'sqrt'.
37556         * modules/sqrt-tests: New file.
37557         * tests/test-sqrt.c: New file.
37558
37559         Tests for module 'sinh'.
37560         * modules/sinh-tests: New file.
37561         * tests/test-sinh.c: New file.
37562
37563         Tests for module 'sin'.
37564         * modules/sin-tests: New file.
37565         * tests/test-sin.c: New file.
37566
37567         Tests for module 'rint'.
37568         * modules/rint-tests: New file.
37569         * tests/test-rint.c: New file.
37570
37571         Tests for module 'remainder'.
37572         * modules/remainder-tests: New file.
37573         * tests/test-remainder.c: New file.
37574
37575         Tests for module 'pow'.
37576         * modules/pow-tests: New file.
37577         * tests/test-pow.c: New file.
37578
37579         Tests for module 'nextafter'.
37580         * modules/nextafter-tests: New file.
37581         * tests/test-nextafter.c: New file.
37582
37583         Tests for module 'modf'.
37584         * modules/modf-tests: New file.
37585         * tests/test-modf.c: New file.
37586
37587         Tests for module 'logb'.
37588         * modules/logb-tests: New file.
37589         * tests/test-logb.c: New file.
37590
37591         Tests for module 'log1p'.
37592         * modules/log1p-tests: New file.
37593         * tests/test-log1p.c: New file.
37594
37595         Tests for module 'log10'.
37596         * modules/log10-tests: New file.
37597         * tests/test-log10.c: New file.
37598
37599         Tests for module 'log'.
37600         * modules/log-tests: New file.
37601         * tests/test-log.c: New file.
37602
37603         Tests for module 'lgamma'.
37604         * modules/lgamma-tests: New file.
37605         * tests/test-lgamma.c: New file.
37606
37607         Tests for module 'ldexp'.
37608         * modules/ldexp-tests: New file.
37609         * tests/test-ldexp.c: New file.
37610
37611         Tests for module 'jn'.
37612         * modules/jn-tests: New file.
37613         * tests/test-jn.c: New file.
37614
37615         Tests for module 'j1'.
37616         * modules/j1-tests: New file.
37617         * tests/test-j1.c: New file.
37618
37619         Tests for module 'j0'.
37620         * modules/j0-tests: New file.
37621         * tests/test-j0.c: New file.
37622
37623         Tests for module 'hypot'.
37624         * modules/hypot-tests: New file.
37625         * tests/test-hypot.c: New file.
37626
37627         Tests for module 'fmod'.
37628         * modules/fmod-tests: New file.
37629         * tests/test-fmod.c: New file.
37630
37631         Tests for module 'fabs'.
37632         * modules/fabs-tests: New file.
37633         * tests/test-fabs.c: New file.
37634
37635         Tests for module 'exp'.
37636         * modules/exp-tests: New file.
37637         * tests/test-exp.c: New file.
37638
37639         Tests for module 'erfc'.
37640         * modules/erfc-tests: New file.
37641         * tests/test-erfc.c: New file.
37642
37643         Tests for module 'erf'.
37644         * modules/erf-tests: New file.
37645         * tests/test-erf.c: New file.
37646
37647         Tests for module 'cosh'.
37648         * modules/cosh-tests: New file.
37649         * tests/test-cosh.c: New file.
37650
37651         Tests for module 'cos'.
37652         * modules/cos-tests: New file.
37653         * tests/test-cos.c: New file.
37654
37655         Tests for module 'copysign'.
37656         * modules/copysign-tests: New file.
37657         * tests/test-copysign.c: New file.
37658
37659         Tests for module 'cbrt'.
37660         * modules/cbrt-tests: New file.
37661         * tests/test-cbrt.c: New file.
37662
37663         Tests for module 'atan2'.
37664         * modules/atan2-tests: New file.
37665         * tests/test-atan2.c: New file.
37666
37667         Tests for module 'atan'.
37668         * modules/atan-tests: New file.
37669         * tests/test-atan.c: New file.
37670
37671         Tests for module 'asin'.
37672         * modules/asin-tests: New file.
37673         * tests/test-asin.c: New file.
37674
37675         Tests for module 'acos'.
37676         * modules/acos-tests: New file.
37677         * tests/test-acos.c: New file.
37678
37679 2010-01-24  Bruno Haible  <bruno@clisp.org>
37680
37681         Fix tests for common <math.h> functions.
37682         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37683         code snippet that references the function pointer, rather than merely
37684         calling the function. Substitute the FUNC_LIBM variable.
37685         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37686         * modules/acos (configure.ac): Likewise.
37687         * modules/asin (configure.ac): Likewise.
37688         * modules/atan (configure.ac): Likewise.
37689         * modules/atan2 (configure.ac): Likewise.
37690         * modules/cbrt (configure.ac): Likewise.
37691         * modules/copysign (configure.ac): Likewise.
37692         * modules/cos (configure.ac): Likewise.
37693         * modules/cosh (configure.ac): Likewise.
37694         * modules/erf (configure.ac): Likewise.
37695         * modules/erfc (configure.ac): Likewise.
37696         * modules/exp (configure.ac): Likewise.
37697         * modules/fabs (configure.ac): Likewise.
37698         * modules/fmod (configure.ac): Likewise.
37699         * modules/hypot (configure.ac): Likewise.
37700         * modules/j0 (configure.ac): Likewise.
37701         * modules/j1 (configure.ac): Likewise.
37702         * modules/jn (configure.ac): Likewise.
37703         * modules/ldexp (configure.ac): Likewise.
37704         * modules/lgamma (configure.ac): Likewise.
37705         * modules/log (configure.ac): Likewise.
37706         * modules/log10 (configure.ac): Likewise.
37707         * modules/log1p (configure.ac): Likewise.
37708         * modules/logb (configure.ac): Likewise.
37709         * modules/modf (configure.ac): Likewise.
37710         * modules/nextafter (configure.ac): Likewise.
37711         * modules/pow (configure.ac): Likewise.
37712         * modules/remainder (configure.ac): Likewise.
37713         * modules/rint (configure.ac): Likewise.
37714         * modules/sin (configure.ac): Likewise.
37715         * modules/sinh (configure.ac): Likewise.
37716         * modules/tan (configure.ac): Likewise.
37717         * modules/tanh (configure.ac): Likewise.
37718         * modules/y0 (configure.ac): Likewise.
37719         * modules/y1 (configure.ac): Likewise.
37720         * modules/yn (configure.ac): Likewise.
37721
37722 2010-01-24  Bruno Haible  <bruno@clisp.org>
37723
37724         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37725         * tests/test-acosl.c (x): New variable.
37726         (main): Store argument in x and fetch it from x.
37727         * tests/test-asinl.c (x): New variable.
37728         (main): Store argument in x and fetch it from x.
37729         * tests/test-atanl.c (x): New variable.
37730         (main): Store argument in x and fetch it from x.
37731         * tests/test-cosl.c (x): New variable.
37732         (main): Store argument in x and fetch it from x.
37733         * tests/test-expl.c (x): New variable.
37734         (main): Store argument in x and fetch it from x.
37735         * tests/test-logl.c (x): New variable.
37736         (main): Store argument in x and fetch it from x.
37737         * tests/test-sinl.c (x): New variable.
37738         (main): Store argument in x and fetch it from x.
37739         * tests/test-sqrtl.c (x): New variable.
37740         (main): Store argument in x and fetch it from x.
37741         * tests/test-tanl.c (x): New variable.
37742         (main): Store argument in x and fetch it from x.
37743
37744 2010-01-24  Bruno Haible  <bruno@clisp.org>
37745
37746         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37747         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37748         assignments to the initial TESTS_ENVIRONMENT.
37749         * doc/gnulib.texi (Unit test modules): Document it.
37750         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37751         TESTS_ENVIRONMENT.
37752         * modules/btowc-tests (Makefile.am): Likewise.
37753         * modules/c-stack-tests (Makefile.am): Likewise.
37754         * modules/c-strcase-tests (Makefile.am): Likewise.
37755         * modules/copy-file-tests (Makefile.am): Likewise.
37756         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37757         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37758         * modules/mbrtowc-tests (Makefile.am): Likewise.
37759         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37760         * modules/mbscasestr-tests (Makefile.am): Likewise.
37761         * modules/mbschr-tests (Makefile.am): Likewise.
37762         * modules/mbscspn-tests (Makefile.am): Likewise.
37763         * modules/mbsinit-tests (Makefile.am): Likewise.
37764         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37765         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37766         * modules/mbspbrk-tests (Makefile.am): Likewise.
37767         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37768         * modules/mbsrchr-tests (Makefile.am): Likewise.
37769         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37770         * modules/mbsspn-tests (Makefile.am): Likewise.
37771         * modules/mbsstr-tests (Makefile.am): Likewise.
37772         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37773         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37774         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37775         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37776         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37777         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37778         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37779         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37780         * modules/wcrtomb-tests (Makefile.am): Likewise.
37781         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37782         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37783         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37784         assignments from TESTS_ENVIRONMENT.
37785         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37786         augmentation.
37787         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37788         * modules/atexit-tests (Makefile.am): Likewise.
37789         * modules/binary-io-tests (Makefile.am): Likewise.
37790         * modules/closein-tests (Makefile.am): Likewise.
37791         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37792         * modules/exclude-tests (Makefile.am): Likewise.
37793         * modules/fflush-tests (Makefile.am): Likewise.
37794         * modules/fpending-tests (Makefile.am): Likewise.
37795         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37796         * modules/freadahead-tests (Makefile.am): Likewise.
37797         * modules/freadptr-tests (Makefile.am): Likewise.
37798         * modules/freadseek-tests (Makefile.am): Likewise.
37799         * modules/fseek-tests (Makefile.am): Likewise.
37800         * modules/fseeko-tests (Makefile.am): Likewise.
37801         * modules/ftell-tests (Makefile.am): Likewise.
37802         * modules/ftello-tests (Makefile.am): Likewise.
37803         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37804         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37805         * modules/lseek-tests (Makefile.am): Likewise.
37806         * modules/parse-duration-tests (Makefile.am): Likewise.
37807         * modules/perror-tests (Makefile.am): Likewise.
37808         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37809         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37810         * modules/pipe-tests (Makefile.am): Likewise.
37811         * modules/pread-tests (Makefile.am): Likewise.
37812         * modules/printf-posix-tests (Makefile.am): Likewise.
37813         * modules/select-tests (Makefile.am): Likewise.
37814         * modules/sigpipe-tests (Makefile.am): Likewise.
37815         * modules/tsearch-tests (Makefile.am): Likewise.
37816         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37817         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37818         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37819         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37820         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37821         * modules/version-etc-tests (Makefile.am): Likewise.
37822         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37823         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37824         * modules/xalloc-die-tests (Makefile.am): Likewise.
37825         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37826         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37827         * modules/xstrtol-tests (Makefile.am): Likewise.
37828         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37829         * modules/yesno-tests (Makefile.am): Likewise.
37830         Suggested by Jim Meyering.
37831
37832 2010-01-24  Bruno Haible  <bruno@clisp.org>
37833
37834         More documentation.
37835         * doc/gnulib.texi (Writing modules): New chapter.
37836         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37837         the new chapter.
37838
37839 2010-01-24  Jim Meyering  <meyering@redhat.com>
37840
37841         maint.mk: do not prepend "./" after filtering
37842         * top/maint.mk (_prepend_srcdir_prefix): New variable
37843         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37844         "./" when $(srcdir) is ".".
37845
37846         define STREQ(a,b) consistently, removing useless parentheses
37847         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37848         since the only risk is that "a" or "b" contains an unparenthesized
37849         comma, but if either did that, STREQ would have 3 or more arguments.
37850         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37851         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37852         * lib/hash-triple.c (STREQ): Likewise.
37853         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37854         * lib/getugroups.c (STREQ): Likewise.
37855
37856 2010-01-23  Jim Meyering  <meyering@redhat.com>
37857
37858         maint.mk: fix syntax-check in a non-srcdir build directory
37859         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37860         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37861
37862 2010-01-22  Jim Meyering  <meyering@redhat.com>
37863
37864         userspec: add unit tests
37865         * tests/test-userspec.c: New file.
37866         * modules/userspec-tests: Likewise.
37867
37868 2010-01-21  Jim Meyering  <meyering@redhat.com>
37869
37870         maint.mk: handle source file names containing "." robustly
37871         * top/maint.mk (_dot_escaped_srcdir): Define.
37872         (VC_LIST): Use it in LHS of sed substitution.
37873
37874 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37875
37876         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37877         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37878         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37879         from a non-srcdir build.
37880
37881 2010-01-20  Eric Blake  <ebb9@byu.net>
37882
37883         warn-on-use: use instead of link-warning
37884         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37885         * modules/unistd (Depends-on, Makefile.am): Likewise.
37886         * modules/arpa_inet (Depends-on): Replace link-warning with
37887         warn-on-use.
37888         (Makefile.am): Update rules accordingly.
37889         * modules/ctype (Depends-on, Makefile.am): Likewise.
37890         * modules/dirent (Depends-on, Makefile.am): Likewise.
37891         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37892         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37893         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37894         * modules/locale (Depends-on, Makefile.am): Likewise.
37895         * modules/math (Depends-on, Makefile.am): Likewise.
37896         * modules/search (Depends-on, Makefile.am): Likewise.
37897         * modules/signal (Depends-on, Makefile.am): Likewise.
37898         * modules/spawn (Depends-on, Makefile.am): Likewise.
37899         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37900         * modules/string (Depends-on, Makefile.am): Likewise.
37901         * modules/strings (Depends-on, Makefile.am): Likewise.
37902         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37903         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37904         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37905         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37906         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37907         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37908         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37909         * modules/wchar (Depends-on, Makefile.am): Likewise.
37910         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37911         should be poisoned.
37912         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37913         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37914         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37915         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37916         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37917         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37918         * m4/math_h.m4 (gl_MATH_H): Likewise.
37919         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37920         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37921         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37922         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37923         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37924         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37925         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37926         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37927         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37928         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37929         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37930         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37931         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37932         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37933         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37934         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37935         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37936         GL_LINK_WARNING.
37937         * lib/ctype.in.h: Likewise.
37938         * lib/dirent.in.h: Likewise.
37939         * lib/fcntl.in.h: Likewise.
37940         * lib/inttypes.in.h: Likewise.
37941         * lib/langinfo.in.h: Likewise.
37942         * lib/locale.in.h: Likewise.
37943         * lib/math.in.h: Likewise.
37944         * lib/search.in.h: Likewise.
37945         * lib/signal.in.h: Likewise.
37946         * lib/spawn.in.h: Likewise.
37947         * lib/stdio.in.h: Likewise.
37948         * lib/stdlib.in.h: Likewise.
37949         * lib/string.in.h: Likewise.
37950         * lib/strings.in.h: Likewise.
37951         * lib/sys_file.in.h: Likewise.
37952         * lib/sys_ioctl.in.h: Likewise.
37953         * lib/sys_select.in.h: Likewise.
37954         * lib/sys_socket.in.h: Likewise.
37955         * lib/sys_stat.in.h: Likewise.
37956         * lib/sys_times.in.h: Likewise.
37957         * lib/sys_utsname.in.h: Likewise.
37958         * lib/unistd.in.h: Likewise.
37959         * lib/wchar.in.h: Likewise.
37960
37961 2010-01-20  Bruno Haible  <bruno@clisp.org>
37962
37963         Avoid duplicate -lm.
37964         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37965         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37967         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37968         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37969         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37970         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37971         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37972         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37973         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37974         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37975         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37976         Reported by Paolo Bonzini.
37977
37978 2010-01-19  Bruno Haible  <bruno@clisp.org>
37979
37980         langinfo, nl_langinfo: Relicense under LGPLv2+.
37981         * modules/langinfo (License): Change to LGPLv2+.
37982         * modules/nl_langinfo (License): Likewise.
37983         Patch by David Lutterkort <lutter@redhat.com>.
37984
37985 2010-01-19  Bruno Haible  <bruno@clisp.org>
37986
37987         Avoid compilation error with cc on OSF/1 5.1.
37988         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37989         statement, not before.
37990         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37991
37992 2010-01-18  Bruno Haible  <bruno@clisp.org>
37993
37994         Avoid a link error due to the __printf__ symbol.
37995         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37996         and 2.6.x.
37997         (__format__, __printf__): Remove definitions.
37998         * lib/argp-fmtstream.h: Likewise.
37999         * lib/argp.h: Likewise.
38000         * lib/error.h: Likewise.
38001         * lib/vasnprintf.h: Likewise.
38002         * lib/xprintf.h: Likewise.
38003         * lib/xvasprintf.h: Likewise.
38004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38005
38006 2010-01-18  Bruno Haible  <bruno@clisp.org>
38007
38008         Tests for module 'tanl'.
38009         * modules/tanl-tests: New file.
38010         * tests/test-tanl.c: New file.
38011
38012         Tests for module 'sqrtl'.
38013         * modules/sqrtl-tests: New file.
38014         * tests/test-sqrtl.c: New file.
38015
38016         Tests for module 'sinl'.
38017         * modules/sinl-tests: New file.
38018         * tests/test-sinl.c: New file.
38019
38020         Tests for module 'logl'.
38021         * modules/logl-tests: New file.
38022         * tests/test-logl.c: New file.
38023
38024         Tests for module 'expl'.
38025         * modules/expl-tests: New file.
38026         * tests/test-expl.c: New file.
38027
38028         Tests for module 'cosl'.
38029         * modules/cosl-tests: New file.
38030         * tests/test-cosl.c: New file.
38031
38032         Tests for module 'atanl'.
38033         * modules/atanl-tests: New file.
38034         * tests/test-atanl.c: New file.
38035
38036         Tests for module 'asinl'.
38037         * modules/asinl-tests: New file.
38038         * tests/test-asinl.c: New file.
38039
38040         Tests for module 'acosl'.
38041         * modules/acosl-tests: New file.
38042         * tests/test-acosl.c: New file.
38043
38044         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38045         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38046         tanl): Use the standard gnulib idiom.
38047         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38048         * lib/sinl.c: Likewise.
38049         * lib/tanl.c: Don't include trigl.c.
38050         (kernel_tanl): Make static.
38051         * lib/sincosl.c: Include trigl.h first.
38052         * lib/trigl.c: Likewise.
38053         * m4/acosl.m4: New file.
38054         * m4/asinl.m4: New file.
38055         * m4/atanl.m4: New file.
38056         * m4/cosl.m4: New file.
38057         * m4/expl.m4: New file.
38058         * m4/logl.m4: New file.
38059         * m4/sinl.m4: New file.
38060         * m4/sqrtl.m4: New file.
38061         * m4/tanl.m4: New file.
38062         * m4/mathl.m4: Remove file.
38063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38064         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38065         Don't initialize GNULIB_MATHL.
38066         * modules/acosl: New file.
38067         * modules/asinl: New file.
38068         * modules/atanl: New file.
38069         * modules/cosl: New file.
38070         * modules/expl: New file.
38071         * modules/logl: New file.
38072         * modules/sinl: New file.
38073         * modules/sqrtl: New file.
38074         * modules/tanl: New file.
38075         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38076         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38077         substitute GNULIB_MATHL.
38078         * modules/mathl: Rewritten.
38079         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38080         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38081         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38082         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38083         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38084         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38085         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38086         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38087         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38088
38089 2010-01-18  Bruno Haible  <bruno@clisp.org>
38090
38091         sqrt: Make gl_FUNC_SQRT requirable.
38092         * m4/sqrt.m4: New file.
38093         * modules/sqrt (Files): Add it.
38094         (configure.ac): Invoke gl_FUNC_SQRT.
38095
38096 2010-01-18  Bruno Haible  <bruno@clisp.org>
38097
38098         New modules for common <math.h> functions.
38099         * m4/mathfunc.m4: New file.
38100         * modules/acos: New file.
38101         * modules/asin: New file.
38102         * modules/atan: New file.
38103         * modules/atan2: New file.
38104         * modules/cbrt: New file.
38105         * modules/copysign: New file.
38106         * modules/cos: New file.
38107         * modules/cosh: New file.
38108         * modules/erf: New file.
38109         * modules/erfc: New file.
38110         * modules/exp: New file.
38111         * modules/fabs: New file.
38112         * modules/fmod: New file.
38113         * modules/hypot: New file.
38114         * modules/j0: New file.
38115         * modules/j1: New file.
38116         * modules/jn: New file.
38117         * modules/ldexp: New file.
38118         * modules/lgamma: New file.
38119         * modules/log: New file.
38120         * modules/log10: New file.
38121         * modules/log1p: New file.
38122         * modules/logb: New file.
38123         * modules/modf: New file.
38124         * modules/nextafter: New file.
38125         * modules/pow: New file.
38126         * modules/remainder: New file.
38127         * modules/rint: New file.
38128         * modules/sin: New file.
38129         * modules/sinh: New file.
38130         * modules/sqrt: New file.
38131         * modules/tan: New file.
38132         * modules/tanh: New file.
38133         * modules/y0: New file.
38134         * modules/y1: New file.
38135         * modules/yn: New file.
38136         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38137         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38138         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38139         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38140         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38141         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38142         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38143         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38144         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38145         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38146         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38147         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38148         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38149         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38150         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38151         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38152         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38153         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38154         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38155         * doc/posix-functions/log.texi: Mention the 'log' module.
38156         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38157         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38158         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38159         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38160         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38161         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38162         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38163         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38164         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38165         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38166         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38167         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38168         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38169         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38170         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38171         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38172
38173 2010-01-18  Jim Meyering  <meyering@redhat.com>
38174
38175         ignore-value: relax license to LGPLv2+
38176         * modules/ignore-value (License): Relax to LGPLv2+.
38177
38178         getdate: don't leak when TZ contains two or more '"'s
38179         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38180         double quote in TZ after the first one.
38181
38182         readtokens: do not leak internal token_lengths buffer
38183         * lib/readtokens.c (readtokens): Free the local, lengths,
38184         when the supplied "token_lengths" parameter is NULL.
38185
38186 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38187
38188         Fix a couple of missing LIBTHREAD link failures on AIX.
38189         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38190         $(LIBTHREAD).
38191         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38192
38193         Link test-poll against INET_PTON_LIB.
38194         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38195         for inet_pton on Solaris 10.
38196
38197 2010-01-17  Bruno Haible  <bruno@clisp.org>
38198
38199         unistdio/*-sprintf: Fix typo in module description.
38200         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38201         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38202         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38203         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38204         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38205         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38206         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38208
38209 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38210
38211         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38212         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38213         variables in shell case patterns, for AIX and HP-UX ksh.
38214
38215         Split large sed scripts, for HP-UX sed.
38216         * modules/stdio: Split sed scripts around 50 sed commands,
38217         to avoid HP-UX limit of 99 commands, in the near future.
38218         * modules/string: Likewise.
38219         * modules/unistd: Likewise.
38220
38221         gnulib-tool: avoid writing in the current directory.
38222         * gnulib-tool (func_emit_lib_Makefile_am)
38223         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38224         not in the current directory, so concurrent gnulib-tool
38225         instances do not interfere.
38226
38227 2010-01-16  Jim Meyering  <meyering@redhat.com>
38228
38229         doc: update users.txt
38230         * users.txt: Add grep.
38231         (diffutils, gzip): Update URLs.
38232
38233 2010-01-12  Bruno Haible  <bruno@clisp.org>
38234
38235         posix_spawn: Avoid test failure on Cygwin.
38236         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38237         characters.
38238         Reported by Simon Josefsson.
38239
38240 2010-01-12  Bruno Haible  <bruno@clisp.org>
38241
38242         * tests/test-cond.c (main): When skipping the test, show the reason.
38243
38244 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38245
38246         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38247
38248 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38249
38250         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38251         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38252
38253 2010-01-12  Eric Blake  <ebb9@byu.net>
38254
38255         build: guarantee AS_VAR_IF
38256         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38257         (gl_AS_VAR_IF): Move...
38258         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38259         Reported by Simon Josefsson.
38260
38261 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38262
38263         * lib/stdio.in.h: Fix typo.
38264
38265 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38266
38267         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38268         libgpg-error.
38269
38270 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38271
38272         * tests/test-xalloc-die.sh: Use $EXEEXT.
38273
38274 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38275             Bruno Haible  <bruno@clisp.org>
38276
38277         getlogin, getlogin_r: Avoid test failure.
38278         * tests/test-getlogin.c: Include <stdio.h>.
38279         (main): Skip the test when the function fails because stdin is not a
38280         tty.
38281         * tests/test-getlogin_r.c: Include <stdio.h>.
38282         (main): Skip the test when the function fails because stdin is not a
38283         tty.
38284
38285 2010-01-11  Eric Blake  <ebb9@byu.net>
38286
38287         tests: avoid more large file warnings
38288         * tests/test-fflush.c: Avoid warning about ftell use.
38289         * tests/test-fseek.c: Avoid warning about fseek use.
38290
38291 2010-01-10  Bruno Haible  <bruno@clisp.org>
38292
38293         nproc: Work better on Linux when /proc and /sys are not mounted.
38294         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38295         as lower bound when, on glibc/Linux systems,
38296         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38297         Suggested by Pádraig Brady <P@draigbrady.com>.
38298         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38299
38300         nproc: Refactor.
38301         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38302         extracted from num_processors.
38303         (num_processors): Call it.
38304
38305 2010-01-11  Jim Meyering  <meyering@redhat.com>
38306
38307         utimecmp: avoid new warning from upcoming gcc-4.5.0
38308         * lib/utimecmp.c (BILLION): Define using #define rather than an
38309         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38310
38311 2010-01-11  Eric Blake  <ebb9@byu.net>
38312
38313         math: add portability warnings for classification macros
38314         * modules/math (Depends-on): Add warn-on-use.
38315         (Makefile.am): Provide new substitutions.
38316         * m4/math_h.m4 (gl_MATH_H): Require inline.
38317         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38318         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38319         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38320         implement warnings.
38321
38322         unistd: warn on use of environ without module
38323         * modules/unistd (Depends-on): Add warn-on-use.
38324         (Makefile.am): Provide new substitutions.
38325         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38326         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38327
38328         stdio: warn on suspicious uses
38329         * modules/stdio (Depends-on): Add warn-on-use.
38330         (Makefile.am): Provide new substitutions.
38331         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38332         fseeko.
38333         * lib/stdio.in.h (gets): Always warn on use.
38334         (fseek, ftell): Adjust when warnings are issued, and honor
38335         _GL_NO_LARGE_FILES as a way to silence the warning.
38336         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38337         any warning about large file offsets.
38338         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38339         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38340         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38341         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38342         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38343         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38344         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38345         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38346
38347         warn-on-use: new module
38348         * modules/warn-on-use: New file.
38349         * build-aux/warn-on-use.h: Likewise.
38350         * m4/warn-on-use.m4: Likewise.
38351         * MODULES.html.sh (Support for building): Mention it.
38352
38353 2010-01-10  Bruno Haible  <bruno@clisp.org>
38354
38355         Tests for module 'unistr/u32-strdup'.
38356         * modules/unistr/u32-strdup-tests: New file.
38357         * tests/unistr/test-u32-strdup.c: New file.
38358
38359         Tests for module 'unistr/u16-strdup'.
38360         * modules/unistr/u16-strdup-tests: New file.
38361         * tests/unistr/test-u16-strdup.c: New file.
38362
38363         Tests for module 'unistr/u8-strdup'.
38364         * modules/unistr/u8-strdup-tests: New file.
38365         * tests/unistr/test-u8-strdup.c: New file.
38366         * tests/unistr/test-strdup.h: New file.
38367
38368         Tests for module 'unistr/u32-strncmp'.
38369         * modules/unistr/u32-strncmp-tests: New file.
38370         * tests/unistr/test-u32-strncmp.c: New file.
38371
38372         Tests for module 'unistr/u16-strncmp'.
38373         * modules/unistr/u16-strncmp-tests: New file.
38374         * tests/unistr/test-u16-strncmp.c: New file.
38375
38376         Tests for module 'unistr/u8-strncmp'.
38377         * modules/unistr/u8-strncmp-tests: New file.
38378         * tests/unistr/test-u8-strncmp.c: New file.
38379         * tests/unistr/test-strncmp.h: New file.
38380
38381         Tests for module 'unistr/u32-strcoll'.
38382         * modules/unistr/u32-strcoll-tests: New file.
38383         * tests/unistr/test-u32-strcoll.c: New file.
38384
38385         Tests for module 'unistr/u16-strcoll'.
38386         * modules/unistr/u16-strcoll-tests: New file.
38387         * tests/unistr/test-u16-strcoll.c: New file.
38388
38389         Tests for module 'unistr/u8-strcoll'.
38390         * modules/unistr/u8-strcoll-tests: New file.
38391         * tests/unistr/test-u8-strcoll.c: New file.
38392
38393         Tests for module 'unistr/u32-strcmp'.
38394         * modules/unistr/u32-strcmp-tests: New file.
38395         * tests/unistr/test-u32-strcmp.c: New file.
38396         * tests/unistr/test-u32-strcmp.h: New file.
38397
38398         Tests for module 'unistr/u16-strcmp'.
38399         * modules/unistr/u16-strcmp-tests: New file.
38400         * tests/unistr/test-u16-strcmp.c: New file.
38401         * tests/unistr/test-u16-strcmp.h: New file.
38402
38403         Tests for module 'unistr/u8-strcmp'.
38404         * modules/unistr/u8-strcmp-tests: New file.
38405         * tests/unistr/test-u8-strcmp.c: New file.
38406         * tests/unistr/test-u8-strcmp.h: New file.
38407         * tests/unistr/test-strcmp.h: New file.
38408
38409         Tests for module 'unistr/u32-strncat'.
38410         * modules/unistr/u32-strncat-tests: New file.
38411         * tests/unistr/test-u32-strncat.c: New file.
38412
38413         Tests for module 'unistr/u16-strncat'.
38414         * modules/unistr/u16-strncat-tests: New file.
38415         * tests/unistr/test-u16-strncat.c: New file.
38416
38417         Tests for module 'unistr/u8-strncat'.
38418         * modules/unistr/u8-strncat-tests: New file.
38419         * tests/unistr/test-u8-strncat.c: New file.
38420         * tests/unistr/test-strncat.h: New file.
38421
38422         Tests for module 'unistr/u32-strcat'.
38423         * modules/unistr/u32-strcat-tests: New file.
38424         * tests/unistr/test-u32-strcat.c: New file.
38425
38426         Tests for module 'unistr/u16-strcat'.
38427         * modules/unistr/u16-strcat-tests: New file.
38428         * tests/unistr/test-u16-strcat.c: New file.
38429
38430         Tests for module 'unistr/u8-strcat'.
38431         * modules/unistr/u8-strcat-tests: New file.
38432         * tests/unistr/test-u8-strcat.c: New file.
38433         * tests/unistr/test-strcat.h: New file.
38434
38435         Tests for module 'unistr/u32-stpncpy'.
38436         * modules/unistr/u32-stpncpy-tests: New file.
38437         * tests/unistr/test-u32-stpncpy.c: New file.
38438
38439         Tests for module 'unistr/u16-stpncpy'.
38440         * modules/unistr/u16-stpncpy-tests: New file.
38441         * tests/unistr/test-u16-stpncpy.c: New file.
38442
38443         Tests for module 'unistr/u8-stpncpy'.
38444         * modules/unistr/u8-stpncpy-tests: New file.
38445         * tests/unistr/test-u8-stpncpy.c: New file.
38446         * tests/unistr/test-stpncpy.h: New file.
38447
38448         Tests for module 'unistr/u32-strncpy'.
38449         * modules/unistr/u32-strncpy-tests: New file.
38450         * tests/unistr/test-u32-strncpy.c: New file.
38451
38452         Tests for module 'unistr/u16-strncpy'.
38453         * modules/unistr/u16-strncpy-tests: New file.
38454         * tests/unistr/test-u16-strncpy.c: New file.
38455
38456         Tests for module 'unistr/u8-strncpy'.
38457         * modules/unistr/u8-strncpy-tests: New file.
38458         * tests/unistr/test-u8-strncpy.c: New file.
38459         * tests/unistr/test-strncpy.h: New file.
38460
38461         Tests for module 'unistr/u32-stpcpy'.
38462         * modules/unistr/u32-stpcpy-tests: New file.
38463         * tests/unistr/test-u32-stpcpy.c: New file.
38464
38465         Tests for module 'unistr/u16-stpcpy'.
38466         * modules/unistr/u16-stpcpy-tests: New file.
38467         * tests/unistr/test-u16-stpcpy.c: New file.
38468
38469         Tests for module 'unistr/u8-stpcpy'.
38470         * modules/unistr/u8-stpcpy-tests: New file.
38471         * tests/unistr/test-u8-stpcpy.c: New file.
38472         * tests/unistr/test-stpcpy.h: New file.
38473
38474         Tests for module 'unistr/u32-strcpy'.
38475         * modules/unistr/u32-strcpy-tests: New file.
38476         * tests/unistr/test-u32-strcpy.c: New file.
38477
38478         Tests for module 'unistr/u16-strcpy'.
38479         * modules/unistr/u16-strcpy-tests: New file.
38480         * tests/unistr/test-u16-strcpy.c: New file.
38481
38482         Tests for module 'unistr/u8-strcpy'.
38483         * modules/unistr/u8-strcpy-tests: New file.
38484         * tests/unistr/test-u8-strcpy.c: New file.
38485         * tests/unistr/test-strcpy.h: New file.
38486
38487         Tests for module 'unistr/u32-strnlen'.
38488         * modules/unistr/u32-strnlen-tests: New file.
38489         * tests/unistr/test-u32-strnlen.c: New file.
38490
38491         Tests for module 'unistr/u16-strnlen'.
38492         * modules/unistr/u16-strnlen-tests: New file.
38493         * tests/unistr/test-u16-strnlen.c: New file.
38494
38495         Tests for module 'unistr/u8-strnlen'.
38496         * modules/unistr/u8-strnlen-tests: New file.
38497         * tests/unistr/test-u8-strnlen.c: New file.
38498         * tests/unistr/test-strnlen.h: New file.
38499
38500         Tests for module 'unistr/u32-strlen'.
38501         * modules/unistr/u32-strlen-tests: New file.
38502         * tests/unistr/test-u32-strlen.c: New file.
38503
38504         Tests for module 'unistr/u16-strlen'.
38505         * modules/unistr/u16-strlen-tests: New file.
38506         * tests/unistr/test-u16-strlen.c: New file.
38507
38508         Tests for module 'unistr/u8-strlen'.
38509         * modules/unistr/u8-strlen-tests: New file.
38510         * tests/unistr/test-u8-strlen.c: New file.
38511
38512         Tests for module 'unistr/u32-prev'.
38513         * modules/unistr/u32-prev-tests: New file.
38514         * tests/unistr/test-u32-prev.c: New file.
38515
38516         Tests for module 'unistr/u16-prev'.
38517         * modules/unistr/u16-prev-tests: New file.
38518         * tests/unistr/test-u16-prev.c: New file.
38519
38520         Tests for module 'unistr/u8-prev'.
38521         * modules/unistr/u8-prev-tests: New file.
38522         * tests/unistr/test-u8-prev.c: New file.
38523
38524         Tests for module 'unistr/u32-next'.
38525         * modules/unistr/u32-next-tests: New file.
38526         * tests/unistr/test-u32-next.c: New file.
38527
38528         Tests for module 'unistr/u16-next'.
38529         * modules/unistr/u16-next-tests: New file.
38530         * tests/unistr/test-u16-next.c: New file.
38531
38532         Tests for module 'unistr/u8-next'.
38533         * modules/unistr/u8-next-tests: New file.
38534         * tests/unistr/test-u8-next.c: New file.
38535
38536         Tests for module 'unistr/u32-strmbtouc'.
38537         * modules/unistr/u32-strmbtouc-tests: New file.
38538         * tests/unistr/test-u32-strmbtouc.c: New file.
38539
38540         Tests for module 'unistr/u16-strmbtouc'.
38541         * modules/unistr/u16-strmbtouc-tests: New file.
38542         * tests/unistr/test-u16-strmbtouc.c: New file.
38543
38544         Tests for module 'unistr/u8-strmbtouc'.
38545         * modules/unistr/u8-strmbtouc-tests: New file.
38546         * tests/unistr/test-u8-strmbtouc.c: New file.
38547
38548         Tests for module 'unistr/u32-strmblen'.
38549         * modules/unistr/u32-strmblen-tests: New file.
38550         * tests/unistr/test-u32-strmblen.c: New file.
38551
38552         Tests for module 'unistr/u16-strmblen'.
38553         * modules/unistr/u16-strmblen-tests: New file.
38554         * tests/unistr/test-u16-strmblen.c: New file.
38555
38556         Tests for module 'unistr/u8-strmblen'.
38557         * modules/unistr/u8-strmblen-tests: New file.
38558         * tests/unistr/test-u8-strmblen.c: New file.
38559
38560         Tests for module 'unistr/u32-cpy-alloc'.
38561         * modules/unistr/u32-cpy-alloc-tests: New file.
38562         * tests/unistr/test-u32-cpy-alloc.c: New file.
38563
38564         Tests for module 'unistr/u16-cpy-alloc'.
38565         * modules/unistr/u16-cpy-alloc-tests: New file.
38566         * tests/unistr/test-u16-cpy-alloc.c: New file.
38567
38568         Tests for module 'unistr/u8-cpy-alloc'.
38569         * modules/unistr/u8-cpy-alloc-tests: New file.
38570         * tests/unistr/test-u8-cpy-alloc.c: New file.
38571         * tests/unistr/test-cpy-alloc.h: New file.
38572
38573         Tests for module 'unistr/u32-mbsnlen'.
38574         * modules/unistr/u32-mbsnlen-tests: New file.
38575         * tests/unistr/test-u32-mbsnlen.c: New file.
38576
38577         Tests for module 'unistr/u16-mbsnlen'.
38578         * modules/unistr/u16-mbsnlen-tests: New file.
38579         * tests/unistr/test-u16-mbsnlen.c: New file.
38580
38581         Tests for module 'unistr/u8-mbsnlen'.
38582         * modules/unistr/u8-mbsnlen-tests: New file.
38583         * tests/unistr/test-u8-mbsnlen.c: New file.
38584
38585         Tests for module 'unistr/u32-chr'.
38586         * modules/unistr/u32-chr-tests: New file.
38587         * tests/unistr/test-u32-chr.c: New file.
38588
38589         Tests for module 'unistr/u16-chr'.
38590         * modules/unistr/u16-chr-tests: New file.
38591         * tests/unistr/test-u16-chr.c: New file.
38592
38593         Tests for module 'unistr/u8-chr'.
38594         * modules/unistr/u8-chr-tests: New file.
38595         * tests/unistr/test-u8-chr.c: New file.
38596         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38597
38598         Tests for module 'unistr/u32-cmp2'.
38599         * modules/unistr/u32-cmp2-tests: New file.
38600         * tests/unistr/test-u32-cmp2.c: New file.
38601
38602         Tests for module 'unistr/u16-cmp2'.
38603         * modules/unistr/u16-cmp2-tests: New file.
38604         * tests/unistr/test-u16-cmp2.c: New file.
38605
38606         Tests for module 'unistr/u8-cmp2'.
38607         * modules/unistr/u8-cmp2-tests: New file.
38608         * tests/unistr/test-u8-cmp2.c: New file.
38609         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38610
38611         Tests for module 'unistr/u32-cmp'.
38612         * modules/unistr/u32-cmp-tests: New file.
38613         * tests/unistr/test-u32-cmp.c: New file.
38614
38615         Tests for module 'unistr/u16-cmp'.
38616         * modules/unistr/u16-cmp-tests: New file.
38617         * tests/unistr/test-u16-cmp.c: New file.
38618
38619         Tests for module 'unistr/u8-cmp'.
38620         * modules/unistr/u8-cmp-tests: New file.
38621         * tests/unistr/test-u8-cmp.c: New file.
38622         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38623
38624         Tests for module 'unistr/u32-set'.
38625         * modules/unistr/u32-set-tests: New file.
38626         * tests/unistr/test-u32-set.c: New file.
38627
38628         Tests for module 'unistr/u16-set'.
38629         * modules/unistr/u16-set-tests: New file.
38630         * tests/unistr/test-u16-set.c: New file.
38631
38632         Tests for module 'unistr/u8-set'.
38633         * modules/unistr/u8-set-tests: New file.
38634         * tests/unistr/test-u8-set.c: New file.
38635         * tests/unistr/test-set.h: New file.
38636
38637         Tests for module 'unistr/u32-move'.
38638         * modules/unistr/u32-move-tests: New file.
38639         * tests/unistr/test-u32-move.c: New file.
38640
38641         Tests for module 'unistr/u16-move'.
38642         * modules/unistr/u16-move-tests: New file.
38643         * tests/unistr/test-u16-move.c: New file.
38644
38645         Tests for module 'unistr/u8-move'.
38646         * modules/unistr/u8-move-tests: New file.
38647         * tests/unistr/test-u8-move.c: New file.
38648         * tests/unistr/test-move.h: New file.
38649
38650         Tests for module 'unistr/u32-cpy'.
38651         * modules/unistr/u32-cpy-tests: New file.
38652         * tests/unistr/test-u32-cpy.c: New file.
38653
38654         Tests for module 'unistr/u16-cpy'.
38655         * modules/unistr/u16-cpy-tests: New file.
38656         * tests/unistr/test-u16-cpy.c: New file.
38657
38658         Tests for module 'unistr/u8-cpy'.
38659         * modules/unistr/u8-cpy-tests: New file.
38660         * tests/unistr/test-u8-cpy.c: New file.
38661         * tests/unistr/test-cpy.h: New file.
38662
38663 2010-01-09  Bruno Haible  <bruno@clisp.org>
38664
38665         Tests for module 'unistr/u32-uctomb'.
38666         * modules/unistr/u32-uctomb-tests: New file.
38667         * tests/unistr/test-u32-uctomb.c: New file.
38668
38669         Tests for module 'unistr/u16-uctomb'.
38670         * modules/unistr/u16-uctomb-tests: New file.
38671         * tests/unistr/test-u16-uctomb.c: New file.
38672
38673         Tests for module 'unistr/u8-uctomb'.
38674         * modules/unistr/u8-uctomb-tests: New file.
38675         * tests/unistr/test-u8-uctomb.c: New file.
38676
38677         Tests for module 'unistr/u32-mbtoucr'.
38678         * modules/unistr/u32-mbtoucr-tests: New file.
38679         * tests/unistr/test-u32-mbtoucr.c: New file.
38680
38681         Tests for module 'unistr/u16-mbtoucr'.
38682         * modules/unistr/u16-mbtoucr-tests: New file.
38683         * tests/unistr/test-u16-mbtoucr.c: New file.
38684
38685         Tests for module 'unistr/u8-mbtoucr'.
38686         * modules/unistr/u8-mbtoucr-tests: New file.
38687         * tests/unistr/test-u8-mbtoucr.c: New file.
38688
38689         Tests for module 'unistr/u32-mbtouc'.
38690         * modules/unistr/u32-mbtouc-tests: New file.
38691         * tests/unistr/test-u32-mbtouc.c: New file.
38692
38693         Tests for module 'unistr/u16-mbtouc'.
38694         * modules/unistr/u16-mbtouc-tests: New file.
38695         * tests/unistr/test-u16-mbtouc.c: New file.
38696
38697         Tests for module 'unistr/u8-mbtouc'.
38698         * modules/unistr/u8-mbtouc-tests: New file.
38699         * tests/unistr/test-u8-mbtouc.c: New file.
38700
38701         Tests for module 'unistr/u32-mbtouc-unsafe'.
38702         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38703         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38704         * tests/unistr/test-u32-mbtouc.h: New file.
38705
38706         Tests for module 'unistr/u16-mbtouc-unsafe'.
38707         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38708         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38709         * tests/unistr/test-u16-mbtouc.h: New file.
38710
38711         Tests for module 'unistr/u8-mbtouc-unsafe'.
38712         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38713         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38714         * tests/unistr/test-u8-mbtouc.h: New file.
38715
38716         Tests for module 'unistr/u32-mblen'.
38717         * modules/unistr/u32-mblen-tests: New file.
38718         * tests/unistr/test-u32-mblen.c: New file.
38719
38720         Tests for module 'unistr/u16-mblen'.
38721         * modules/unistr/u16-mblen-tests: New file.
38722         * tests/unistr/test-u16-mblen.c: New file.
38723
38724         Tests for module 'unistr/u8-mblen'.
38725         * modules/unistr/u8-mblen-tests: New file.
38726         * tests/unistr/test-u8-mblen.c: New file.
38727
38728         Tests for module 'unistr/u32-to-u16'.
38729         * modules/unistr/u32-to-u16-tests: New file.
38730         * tests/unistr/test-u32-to-u16.c: New file.
38731
38732         Tests for module 'unistr/u32-to-u8'.
38733         * modules/unistr/u32-to-u8-tests: New file.
38734         * tests/unistr/test-u32-to-u8.c: New file.
38735
38736         Tests for module 'unistr/u16-to-u32'.
38737         * modules/unistr/u16-to-u32-tests: New file.
38738         * tests/unistr/test-u16-to-u32.c: New file.
38739
38740         Tests for module 'unistr/u16-to-u8'.
38741         * modules/unistr/u16-to-u8-tests: New file.
38742         * tests/unistr/test-u16-to-u8.c: New file.
38743
38744         Tests for module 'unistr/u8-to-u32'.
38745         * modules/unistr/u8-to-u32-tests: New file.
38746         * tests/unistr/test-u8-to-u32.c: New file.
38747
38748         Tests for module 'unistr/u8-to-u16'.
38749         * modules/unistr/u8-to-u16-tests: New file.
38750         * tests/unistr/test-u8-to-u16.c: New file.
38751
38752         Tests for module 'unistr/u32-check'.
38753         * modules/unistr/u32-check-tests: New file.
38754         * tests/unistr/test-u32-check.c: New file.
38755
38756         Tests for module 'unistr/u16-check'.
38757         * modules/unistr/u16-check-tests: New file.
38758         * tests/unistr/test-u16-check.c: New file.
38759
38760         Tests for module 'unistr/u8-check'.
38761         * modules/unistr/u8-check-tests: New file.
38762         * tests/unistr/test-u8-check.c: New file.
38763
38764         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38765         (category_equals): New function.
38766         (main): Add more tests.
38767         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38768
38769         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38770
38771 2010-01-10  Bruno Haible  <bruno@clisp.org>
38772
38773         unistr/u*-strcoll: Try harder to distinguish different strings.
38774         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38775         compare s1 and s2 to see if they are different.
38776
38777 2010-01-10  Bruno Haible  <bruno@clisp.org>
38778
38779         unistr/u*-stpncpy: Fix the return value.
38780         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38781         description of the return value consistent with stpncpy in glibc.
38782         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38783         written non-NUL unit.
38784
38785 2010-01-10  Bruno Haible  <bruno@clisp.org>
38786
38787         unistr/u*-next: Add missing dependencies.
38788         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38789         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38790         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38791
38792 2010-01-10  Bruno Haible  <bruno@clisp.org>
38793
38794         unistr/u8-mbsnlen: Fix return value for incomplete character.
38795         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38796         u8_mblen.
38797         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38798         Remove unistr/u8-mblen.
38799         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38800         u16_mblen.
38801         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38802         Remove unistr/u16-mblen.
38803
38804 2010-01-10  Bruno Haible  <bruno@clisp.org>
38805
38806         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38807         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38808         Reported by Brian Gough <bjg@gnu.org> and
38809         Chris Clayton <chris2553@googlemail.com> via
38810         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38811
38812 2010-01-09  Bruno Haible  <bruno@clisp.org>
38813
38814         unistr/u16-to-u32: Reject invalid input.
38815         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38816         u16_mbtouc.
38817         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38818         Remove unistr/u16-mbtouc.
38819
38820         unistr/u16-to-u8: Reject invalid input.
38821         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38822         u16_mbtouc.
38823         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38824         Remove unistr/u16-mbtouc.
38825
38826         unistr/u8-to-u32: Reject invalid input.
38827         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38828         u8_mbtouc.
38829         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38830         Remove unistr/u8-mbtouc.
38831
38832         unistr/u8-to-u16: Reject invalid input.
38833         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38834         u8_mbtouc.
38835         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38836         Remove unistr/u8-mbtouc.
38837
38838 2010-01-09  Bruno Haible  <bruno@clisp.org>
38839
38840         Tests for module 'getlogin'.
38841         * modules/getlogin-tests: New file.
38842         * tests/test-getlogin.c: New file.
38843
38844         New module 'getlogin'.
38845         * lib/unistd.in.h (getlogin): New declaration.
38846         * lib/getlogin.c: New file.
38847         * m4/getlogin.m4: New file.
38848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38849         HAVE_GETLOGIN.
38850         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38851         HAVE_GETLOGIN.
38852         * modules/getlogin: New file.
38853         * doc/posix-functions/getlogin.texi: Mention the new module.
38854         Reported by John W. Eaton <jwe@gnu.org>.
38855
38856 2010-01-09  Bruno Haible  <bruno@clisp.org>
38857
38858         getlogin_r: Support for native Windows.
38859         * lib/getlogin_r.c: Include <windows.h>
38860         (getlogin_r): Implement for native Windows.
38861         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38862         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38863         via John W. Eaton <jwe@gnu.org>.
38864
38865 2010-01-09  Bruno Haible  <bruno@clisp.org>
38866
38867         getlogin_r: Small fixes.
38868         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38869         succeeds.
38870         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38871         before testing whether getlogin_r is declared. No need to set
38872         HAVE_DECL_GETLOGIN_R to 1.
38873         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38874
38875 2010-01-09  Bruno Haible  <bruno@clisp.org>
38876
38877         * lib/unistd.in.h (getlogin_r): Add comment.
38878
38879 2010-01-09  Bruno Haible  <bruno@clisp.org>
38880
38881         Tests for module 'getlogin_r'.
38882         * modules/getlogin_r-tests: New file.
38883         * tests/test-getlogin_r.c: New file.
38884
38885 2010-01-09  Jim Meyering  <meyering@redhat.com>
38886
38887         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38888         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38889         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38890
38891 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38892
38893         * lib/dup2.c (rpl_dup2): Improve comment.
38894
38895 2010-01-08  Eric Blake  <ebb9@byu.net>
38896
38897         maint.mk: allow packages to add makefile @@ exceptions
38898         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38899         (sc_makefile_check): Rename...
38900         (sc_makefile_at_at_check): ...to this, and use hook.
38901
38902         dup2: work around mingw bug
38903         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38904         Reported by Simon Josefsson.
38905
38906 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38907
38908         glob: Fix C++ compilation.
38909         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38910         C++.
38911
38912 2010-01-07  Bruno Haible  <bruno@clisp.org>
38913
38914         Fix indentation of wctype.in.h, broken since 2007-01-06.
38915         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38916
38917 2010-01-07  Bruno Haible  <bruno@clisp.org>
38918
38919         mbslen: Avoid collision with system function.
38920         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38921         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38922         * m4/mbslen.m4: New file.
38923         * modules/mbslen (Files): Add it.
38924         (configure.ac): Invoke gl_MBSLEN.
38925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38926         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38927         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38928         via Ian Beckwith <ianb@erislabs.net>.
38929
38930 2010-01-07  Bruno Haible  <bruno@clisp.org>
38931
38932         dirent: Document the last fix.
38933         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38934
38935 2010-01-07  Bruno Haible  <bruno@clisp.org>
38936
38937         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38938         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38939         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38940         va_list are defined.
38941         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38942         Reported by Eric Blake.
38943
38944 2010-01-07  Bruno Haible  <bruno@clisp.org>
38945
38946         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38947         * modules/xlist (Depends-on): Add 'list',
38948         * modules/xoset (Depends-on): Add 'oset'.
38949         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38950
38951 2010-01-07  Bruno Haible  <bruno@clisp.org>
38952
38953         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38954         * doc/posix-functions/strncasecmp.texi: Likewise.
38955
38956 2010-01-07  Bruno Haible  <bruno@clisp.org>
38957
38958         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38959
38960 2010-01-07  John W. Eaton  <jwe@octave.org>
38961
38962         wctype: allow C++ use
38963         * lib/wctype.in.h: Add extern "C" block for C++.
38964
38965 2010-01-06  Eric Blake  <ebb9@byu.net>
38966
38967         maint.mk: detect incorrect GFDL usage
38968         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38969
38970 2010-01-06  Jim Meyering  <meyering@redhat.com>
38971         and Eric Blake  <ebb9@byu.net>
38972
38973         maint.mk: ignore multi-line copyright in NEWS
38974         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38975
38976 2010-01-06  Eric Blake  <ebb9@byu.net>
38977
38978         select: add missing dependency
38979         * modules/select-tests (Depends-on): Move sockets dependency...
38980         * modules/select (Depends-on): ...here.
38981         Reported by Ian Beckwith.
38982
38983         doc: regenerate INSTALL
38984         * doc/INSTALL: Reflect recent autoconf update.
38985         * doc/INSTALL.ISO: Likewise.
38986         * doc/INSTALL.UTF-8: Likewise.
38987
38988         pread: fix compilation on glibc
38989         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38990         Reported by Ralf Wildenhues.
38991
38992         dirent: fix test failure
38993         * lib/dirent.in.h (includes): Guarantee ino_t.
38994         Reported by Ralf Wildenhues.
38995
38996 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38997
38998         linkat, renameat: avoid bad free
38999         * lib/at-func2.c (at_func2): Fix typo.
39000         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39001
39002 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39003
39004         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39005         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39006         to avoid failure of symlink test later.
39007
39008 2010-01-06  Eric Blake  <ebb9@byu.net>
39009
39010         stdio, unistd: guarantee ssize_t
39011         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39012         2008 are exposed when needed.
39013         * lib/stdio.in.h (includes): Likewise.
39014         Reported by Ralf Wildenhues.
39015
39016 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39017
39018         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39019         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39020         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39021
39022 2010-01-06  Jim Meyering  <meyering@redhat.com>
39023
39024         readtokens: this module *does* require xalloc.h
39025         It uses only functions that were omitted by the old syntax-check rule.
39026         * lib/readtokens.c: Include "xalloc.h" once again.
39027         * modules/readtokens (Depends-on): Add xalloc.
39028         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39029
39030 2010-01-05  Eric Blake  <ebb9@byu.net>
39031
39032         maint: support 'make announcement' from a VPATH build
39033         * top/maint.mk (announcement): Look for correct NEWS file.
39034
39035 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39036
39037         utimens (fdutimens): ignore a negative FD, per contract
39038         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39039         when we have a valid file descriptor.  Otherwise, using a brand
39040         new glibc (with just-patched futimens that now fails with EBADF)
39041         would cause this function to fail with ENOSYS.
39042         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39043         See also http://bugzilla.redhat.com/552320.
39044
39045 2010-01-05  Eric Blake  <ebb9@byu.net>
39046
39047         strcase: document what it provides
39048         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39049         gnulib module.
39050         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39051         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39052
39053 2010-01-05  Jim Meyering  <meyering@redhat.com>
39054
39055         maint: remove useless inclusions of "xalloc.h"
39056         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39057         * lib/readtokens.c: Likewise.
39058         * lib/same.c: Likewise.
39059         * modules/getloadavg (Depends-on): Remove xalloc.
39060         * modules/readtokens: Likewise.
39061         * modules/same: Likewise.
39062
39063         maint.mk: include 4 more function names in alloca.h-checking regexp
39064         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39065         regexp.  Before, we would give a false-positive (saying alloca.h
39066         is included unnecessarily) when the only uses involved omitted symbols.
39067
39068         xalloc.h: use consistent formatting
39069         * lib/xalloc.h: Move declarations to start in the first column.
39070
39071 2010-01-05  Eric Blake  <ebb9@byu.net>
39072
39073         mkdir: avoid xalloc
39074         * lib/mkdir.c (includes): Drop unused header.
39075         Reported by John W. Eaton.
39076
39077 2010-01-04  Jim Meyering  <meyering@redhat.com>
39078
39079         nl_langinfo: avoid configure-time syntax error
39080         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39081         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39082         the empty string.  Don't let that provoke a shell syntax error.
39083
39084         regcomp, regexec, fnmatch: avoid array bounds read error
39085         * lib/regcomp.c (build_equiv_class): From glibc:
39086         Use only the low 24 bits of a findidx return value as an index
39087         into the weights array.  Patch by Ulrich Drepper:
39088         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39089         * lib/regexec.c (check_node_accept_bytes): Likewise.
39090         * lib/fnmatch_loop.c (FCT): Likewise.
39091
39092         regcomp: skip collseq lookup when there are no rules
39093         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39094         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39095
39096         regcomp: recognize ill-formed { } expressions
39097         * lib/regcomp.c (parse_dup_op): From glibc:
39098         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39099
39100         regcomp: fix typo in comment
39101         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39102         s/satisfy/satisfies/.
39103
39104         regcomp: sync from glibc: remove dead store
39105         * lib/regcomp.c (duplicate_node_closure): Remove useless
39106         search_duplicated_node call and dead store.
39107
39108         regcomp: sync from glibc; always use nl_langinfo
39109         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39110         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39111         * modules/regex (Depends-on): Add nl_langinfo.
39112
39113 2010-01-04  Eric Blake  <ebb9@byu.net>
39114
39115         fdopendir: fix configure test
39116         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39117
39118 2010-01-01  Bruno Haible  <bruno@clisp.org>
39119
39120         wchar: Remove unused configure check.
39121         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39122
39123 2010-01-01  Eric Blake  <ebb9@byu.net>
39124
39125         headers: make check of system header explicit
39126         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39127         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39128         ourselves.
39129         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39130         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39131         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39132         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39133         internals.
39134         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39135         missing.
39136         Suggested by Bruno Haible.
39137
39138 2010-01-01  Jim Meyering  <meyering@redhat.com>
39139
39140         ChangeLog: tweak to eliminate unnecessary copyright line
39141         * ChangeLog: Remove a copyright line that was mistakenly updated
39142         by today's update-copyright run.  Reported by Eric Blake.
39143
39144         test-update-copyright: don't let envvar setting cause test failure
39145         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39146
39147 2010-01-01  Bruno Haible  <bruno@clisp.org>
39148
39149         localename: Avoid gcc warning.
39150         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39151         function if it is not used.
39152
39153 2010-01-01  Jim Meyering  <meyering@redhat.com>
39154
39155         update nearly all FSF copyright year lists to include 2010
39156         Use the same procedure as for 2009, outlined in
39157         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39158
39159         version-etc: set COPYRIGHT_YEAR to 2010
39160         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39161
39162 2009-12-31  Eric Blake  <ebb9@byu.net>
39163
39164         doc: correct availability of cygwin 1.5.x getopt
39165         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39166         variables.
39167         * doc/posix-functions/opterr.texi (opterr): Likewise.
39168         * doc/posix-functions/optind.texi (optind): Likewise.
39169         * doc/posix-functions/optopt.texi (optopt): Likewise.
39170         * doc/posix-functions/tzname.texi (tzname): Likewise.
39171
39172         openat: update maintainer
39173         * modules/openat (Maintainer): Add myself.
39174
39175         utimens: avoid shadowing warning
39176         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39177         buffers into one, to avoid shadowing, as well as avoiding a
39178         redundant stat.
39179         Reported by Jim Meyering.
39180
39181         test-dup2: avoid compiler warning
39182         * tests/test-dup2.c (is_inheritable): Only define if used.
39183
39184 2010-01-01  Bruno Haible  <bruno@clisp.org>
39185
39186         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39187         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39188         defined, use wctomb instead of wcrtomb.
39189
39190 2010-01-01  Bruno Haible  <bruno@clisp.org>
39191
39192         iconv: Reject native Solaris iconv.
39193         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39194         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39195
39196 2009-12-31  Bruno Haible  <bruno@clisp.org>
39197
39198         * tests/test-signal.c (main): Remove test of 'SIG'.
39199
39200 2009-12-31  Bruno Haible  <bruno@clisp.org>
39201
39202         spawn: Fix incomplete fix.
39203         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39204         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39205         warnings for GNULIB_POSIXCHECK again.
39206         Reported by Eric Blake.
39207
39208 2009-12-31  Bruno Haible  <bruno@clisp.org>
39209
39210         Avoid namespace pollution on glibc systems.
39211         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39212         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39213         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39214         glibc systems.
39215
39216 2009-12-31  Bruno Haible  <bruno@clisp.org>
39217
39218         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39219         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39220         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39221         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39222         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39223         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39224         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39225
39226 2009-12-31  Bruno Haible  <bruno@clisp.org>
39227
39228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39229         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39230         afterwards.
39231
39232 2009-12-31  Bruno Haible  <bruno@clisp.org>
39233
39234         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39235         SYS_UTSNAME_H.
39236
39237 2009-12-31  Bruno Haible  <bruno@clisp.org>
39238
39239         spawn: Fix misapplied patch.
39240         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39241         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39242         warnings for GNULIB_POSIXCHECK.
39243
39244 2009-12-31  Bruno Haible  <bruno@clisp.org>
39245
39246         times: Update after sys_times changed.
39247         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39248         * modules/times (Files): Add it.
39249         (configure.ac): Invoke gl_FUNC_TIMES.
39250
39251 2009-12-31  Bruno Haible  <bruno@clisp.org>
39252
39253         Use AC_C_INLINE where necessary.
39254         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39255         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39256         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39257         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39258         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39259         * m4/mbiter.m4 (gl_MBITER): Likewise.
39260         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39261         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39262         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39263         * modules/u64 (configure.ac): Likewise.
39264
39265 2009-12-31  Bruno Haible  <bruno@clisp.org>
39266
39267         Use AC_C_INLINE instead of module 'inline' where possible.
39268         * modules/inline (Description): Clarify purpose.
39269         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39270         * modules/count-one-bits (Depends-on): Remove inline.
39271         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39272         * modules/openat (Depends-on): Remove inline.
39273         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39274         instead of depending on module 'inline'.
39275         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39276         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39277         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39278         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39279         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39280         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39281         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39282         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39283         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39284         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39285         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39286         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39287         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39288         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39289         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39290         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39291         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39292         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39293         Likewise.
39294         * modules/unictype/property-ascii-hex-digit (Depends-on,
39295         configure.ac): Likewise.
39296         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39297         configure.ac): Likewise.
39298         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39299         configure.ac): Likewise.
39300         * modules/unictype/property-bidi-block-separator (Depends-on,
39301         configure.ac): Likewise.
39302         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39303         configure.ac): Likewise.
39304         * modules/unictype/property-bidi-common-separator (Depends-on,
39305         configure.ac): Likewise.
39306         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39307         Likewise.
39308         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39309         configure.ac): Likewise.
39310         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39311         configure.ac): Likewise.
39312         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39313         configure.ac): Likewise.
39314         * modules/unictype/property-bidi-european-digit (Depends-on,
39315         configure.ac): Likewise.
39316         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39317         configure.ac): Likewise.
39318         * modules/unictype/property-bidi-left-to-right (Depends-on,
39319         configure.ac): Likewise.
39320         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39321         configure.ac): Likewise.
39322         * modules/unictype/property-bidi-other-neutral (Depends-on,
39323         configure.ac): Likewise.
39324         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39325         Likewise.
39326         * modules/unictype/property-bidi-segment-separator (Depends-on,
39327         configure.ac): Likewise.
39328         * modules/unictype/property-bidi-whitespace (Depends-on,
39329         configure.ac): Likewise.
39330         * modules/unictype/property-combining (Depends-on, configure.ac):
39331         Likewise.
39332         * modules/unictype/property-composite (Depends-on, configure.ac):
39333         Likewise.
39334         * modules/unictype/property-currency-symbol (Depends-on,
39335         configure.ac): Likewise.
39336         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39337         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39338         Likewise.
39339         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39340         configure.ac): Likewise.
39341         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39342         Likewise.
39343         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39344         Likewise.
39345         * modules/unictype/property-extender (Depends-on, configure.ac):
39346         Likewise.
39347         * modules/unictype/property-format-control (Depends-on, configure.ac):
39348         Likewise.
39349         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39350         Likewise.
39351         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39352         Likewise.
39353         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39354         Likewise.
39355         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39356         Likewise.
39357         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39358         Likewise.
39359         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39360         Likewise.
39361         * modules/unictype/property-id-start (Depends-on, configure.ac):
39362         Likewise.
39363         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39364         Likewise.
39365         * modules/unictype/property-ids-binary-operator (Depends-on,
39366         configure.ac): Likewise.
39367         * modules/unictype/property-ids-trinary-operator (Depends-on,
39368         configure.ac): Likewise.
39369         * modules/unictype/property-ignorable-control (Depends-on,
39370         configure.ac): Likewise.
39371         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39372         Likewise.
39373         * modules/unictype/property-join-control (Depends-on, configure.ac):
39374         Likewise.
39375         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39376         Likewise.
39377         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39378         Likewise.
39379         * modules/unictype/property-logical-order-exception (Depends-on,
39380         configure.ac): Likewise.
39381         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39382         Likewise.
39383         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39384         * modules/unictype/property-non-break (Depends-on, configure.ac):
39385         Likewise.
39386         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39387         Likewise.
39388         * modules/unictype/property-numeric (Depends-on, configure.ac):
39389         Likewise.
39390         * modules/unictype/property-other-alphabetic (Depends-on,
39391         configure.ac): Likewise.
39392         * modules/unictype/property-other-default-ignorable-code-point
39393         (Depends-on, configure.ac): Likewise.
39394         * modules/unictype/property-other-grapheme-extend (Depends-on,
39395         configure.ac): Likewise.
39396         * modules/unictype/property-other-id-continue (Depends-on,
39397         configure.ac): Likewise.
39398         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39399         Likewise.
39400         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39401         Likewise.
39402         * modules/unictype/property-other-math (Depends-on, configure.ac):
39403         Likewise.
39404         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39405         Likewise.
39406         * modules/unictype/property-paired-punctuation (Depends-on,
39407         configure.ac): Likewise.
39408         * modules/unictype/property-paragraph-separator (Depends-on,
39409         configure.ac): Likewise.
39410         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39411         Likewise.
39412         * modules/unictype/property-pattern-white-space (Depends-on,
39413         configure.ac): Likewise.
39414         * modules/unictype/property-private-use (Depends-on, configure.ac):
39415         Likewise.
39416         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39417         Likewise.
39418         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39419         Likewise.
39420         * modules/unictype/property-radical (Depends-on, configure.ac):
39421         Likewise.
39422         * modules/unictype/property-sentence-terminal (Depends-on,
39423         configure.ac): Likewise.
39424         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39425         Likewise.
39426         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39427         * modules/unictype/property-terminal-punctuation (Depends-on,
39428         configure.ac): Likewise.
39429         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39430         Likewise.
39431         * modules/unictype/property-unassigned-code-value (Depends-on,
39432         configure.ac): Likewise.
39433         * modules/unictype/property-unified-ideograph (Depends-on,
39434         configure.ac): Likewise.
39435         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39436         Likewise.
39437         * modules/unictype/property-variation-selector (Depends-on,
39438         configure.ac): Likewise.
39439         * modules/unictype/property-white-space (Depends-on, configure.ac):
39440         Likewise.
39441         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39442         Likewise.
39443         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39444         Likewise.
39445         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39446         Likewise.
39447         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39448         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39449         Likewise.
39450
39451 2009-12-31  Bruno Haible  <bruno@clisp.org>
39452
39453         Remove unnecessary AC_C_INLINE invocation.
39454         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39455         since 2009-08-21.
39456
39457 2009-12-31  Jim Meyering  <meyering@redhat.com>
39458
39459         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39460         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39461         With this change, we can all remove the gpg_key_ID = ... definition
39462         from our respective cfg.mk files.
39463
39464         maint.mk: create announcement template in ~/, not in /tmp
39465         * top/maint.mk (emit_upload_commands): Adjust.
39466         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39467         Remove temporary file, .ci-msg.
39468
39469 2009-12-31  Eric Blake  <ebb9@byu.net>
39470
39471         link-warning: always build headers with link warnings
39472         * modules/arpa_inet (Makefile.am): Always build replacement
39473         header.
39474         * modules/ctype (Makefile.am): Likewise.
39475         * modules/dirent (Makefile.am): Likewise.
39476         * modules/inttypes (Makefile.am): Likewise.
39477         * modules/langinfo (Makefile.am): Likewise.
39478         * modules/locale (Makefile.am): Likewise.
39479         * modules/spawn (Makefile.am): Likewise.
39480         * modules/sys_file (Makefile.am): Likewise.
39481         * modules/sys_ioctl (Makefile.am): Likewise.
39482         * modules/sys_select (Makefile.am): Likewise.
39483         * modules/sys_socket (Makefile.am): Likewise.
39484         * modules/sys_times (Makefile.am): Likewise.
39485         * modules/sys_utsname (Makefile.am): Likewise.
39486         * modules/sys_wait (Makefile.am): Likewise.
39487         * modules/wchar (Makefile.am): Likewise.
39488         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39489         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39490         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39491         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39492         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39493         Likewise.
39494         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39495         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39496         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39497         Likewise.
39498         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39499         Likewise.
39500         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39501         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39502         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39503         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39504         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39505         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39506         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39507         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39508         (gl_WCHAR_H_DEFAULTS): Likewise.
39509
39510 2009-12-31  Eric Blake  <ebb9@byu.net>
39511
39512         signal, spawn: use link warnings
39513         * lib/signal.in.h (sigset_t): Make unconditional.
39514         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39515         (sigpending, sigprocmask, sigaction): Add link warnings.
39516         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39517         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39518         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39519         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39520         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39521         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39522         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39523         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39524         (posix_spawn_file_actions_destroy)
39525         (posix_spawn_file_actions_addopen)
39526         (posix_spawn_file_actions_addclose)
39527         (posix_spawn_file_actions_adddup2): Likewise.
39528         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39529         * tests/test-signal.c (main): Enhance test.
39530
39531         spawn: improve wrapper support
39532         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39533         (gl_SPAWN_H_DEFAULTS): New defaults.
39534         * modules/spawn (Makefile.am): Substitute them.
39535         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39536         Only declare if missing or broken.
39537
39538         sys_times, sys_utsname: use include_next
39539         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39540         header.
39541         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39542         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39543         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39544         * modules/sys_times (Depends-on): Add include_next.
39545         (Makefile.am): Substitute additional values.
39546         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39547         * lib/sys_times.in.h (includes): Include native header, if
39548         available.
39549         * lib/sys_utsname.in.h (includes): Likewise.
39550         * tests/test-sys_times.c (main): Enhance test.
39551
39552         fdutimensat: revert prior patch
39553         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39554         utimens.h.
39555         Reported by Bruno Haible.
39556
39557 2009-12-30  Eric Blake  <ebb9@byu.net>
39558
39559         sys_wait: drop link-warning dependency
39560         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39561         link-warning efforts.
39562         * lib/sys_wait.in.h: Likewise.
39563
39564         fdutimensat: remove bogus dependency
39565         * modules/fdutimensat (Depends-on): Drop inline.
39566
39567         unistd: fix typo
39568         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39569
39570 2009-12-30  Bruno Haible  <bruno@clisp.org>
39571
39572         Fix compilation error with Solaris cc.
39573         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39574         * lib/unicase/u16-is-invariant.c: Likewise.
39575         * lib/unicase/u32-is-invariant.c: Likewise.
39576         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39577
39578 2009-12-30  Bruno Haible  <bruno@clisp.org>
39579
39580         Fix test crash.
39581         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39582         locales.
39583         Reported by Simon Josefsson <simon@josefsson.org>.
39584
39585 2009-12-30  Bruno Haible  <bruno@clisp.org>
39586
39587         Fix compilation error on most platforms.
39588         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39589         Reported by Simon Josefsson <simon@josefsson.org>
39590         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39591
39592 2009-12-30  Eric Blake  <ebb9@byu.net>
39593
39594         futimens, utimensat: work around ntfs-3g bug
39595         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39596         a ctime bug is present, and expand workaround to cover ntfs-3g.
39597         * lib/utimens.c (fdutimens, lutimens): Likewise.
39598         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39599         (validate_timespec): Adjust return value.
39600         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39601         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39602         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39603
39604 2009-12-29  Eric Blake  <ebb9@byu.net>
39605
39606         link-warning: make usage consistent
39607         * modules/ctype (Depends-on): Add link-warning.
39608         (Makefile.am): Update rules accordingly.
39609         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39610         * modules/locale (Depends-on, Makefile.am): Likewise.
39611         * modules/sys_file (Makefile.am): Likewise.
39612         * modules/getopt-posix (Makefile.am): Delete unused link warning
39613         efforts.
39614         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39615         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39616         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39617         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39618
39619         stdio: remove unused variables
39620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39621         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39622         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39623
39624         tests: test more substitute headers
39625         * modules/ctype-tests: New file.
39626         * modules/dirent-tests: Likewise.
39627         * modules/spawn-tests: Likewise.
39628         * modules/sys_file-tests: Likewise.
39629         * modules/sys_ioctl-tests: Likewise.
39630         * modules/sys_wait-tests: Likewise.
39631         * tests/test-ctype.c: Likewise.
39632         * tests/test-dirent.c: Likewise.
39633         * tests/test-spawn.c: Likewise.
39634         * tests/test-sys_file.c: Likewise.
39635         * tests/test-sys_ioctl.c: Likewise.
39636         * tests/test-sys_wait.c: Likewise.
39637         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39638         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39639         whether or not flock is in use.
39640
39641         tests: remove License section from module
39642         * modules/arpa_inet-tests: Remove unneeded section.
39643         * modules/byteswap-tests: Likewise.
39644         * modules/ceilf-tests: Likewise.
39645         * modules/ceill-tests: Likewise.
39646         * modules/crypto/des-tests: Likewise.
39647         * modules/crypto/gc-arcfour-tests: Likewise.
39648         * modules/crypto/gc-arctwo-tests: Likewise.
39649         * modules/crypto/gc-des-tests: Likewise.
39650         * modules/crypto/gc-hmac-md5-tests: Likewise.
39651         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39652         * modules/crypto/gc-md2-tests: Likewise.
39653         * modules/crypto/gc-md4-tests: Likewise.
39654         * modules/crypto/gc-md5-tests: Likewise.
39655         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39656         * modules/crypto/gc-rijndael-tests: Likewise.
39657         * modules/crypto/gc-sha1-tests: Likewise.
39658         * modules/crypto/gc-tests: Likewise.
39659         * modules/crypto/md2-tests: Likewise.
39660         * modules/crypto/md4-tests: Likewise.
39661         * modules/fcntl-h-tests: Likewise.
39662         * modules/floorf-tests: Likewise.
39663         * modules/floorl-tests: Likewise.
39664         * modules/frexp-nolibm-tests: Likewise.
39665         * modules/frexp-tests: Likewise.
39666         * modules/frexpl-nolibm-tests: Likewise.
39667         * modules/frexpl-tests: Likewise.
39668         * modules/getaddrinfo-tests: Likewise.
39669         * modules/inttypes-tests: Likewise.
39670         * modules/isfinite-tests: Likewise.
39671         * modules/isinf-tests: Likewise.
39672         * modules/ldexpl-tests: Likewise.
39673         * modules/locale-tests: Likewise.
39674         * modules/math-tests: Likewise.
39675         * modules/netdb-tests: Likewise.
39676         * modules/netinet_in-tests: Likewise.
39677         * modules/printf-frexp-tests: Likewise.
39678         * modules/printf-frexpl-tests: Likewise.
39679         * modules/priv-set-tests: Likewise.
39680         * modules/random_r-tests: Likewise.
39681         * modules/round-tests: Likewise.
39682         * modules/roundf-tests: Likewise.
39683         * modules/roundl-tests: Likewise.
39684         * modules/search-tests: Likewise.
39685         * modules/select-tests: Likewise.
39686         * modules/signal-tests: Likewise.
39687         * modules/stdbool-tests: Likewise.
39688         * modules/stddef-tests: Likewise.
39689         * modules/stdint-tests: Likewise.
39690         * modules/stdio-tests: Likewise.
39691         * modules/stdlib-tests: Likewise.
39692         * modules/string-tests: Likewise.
39693         * modules/strings-tests: Likewise.
39694         * modules/sys_select-tests: Likewise.
39695         * modules/sys_socket-tests: Likewise.
39696         * modules/sys_stat-tests: Likewise.
39697         * modules/sys_time-tests: Likewise.
39698         * modules/sys_utsname-tests: Likewise.
39699         * modules/sysexits-tests: Likewise.
39700         * modules/time-tests: Likewise.
39701         * modules/trunc-tests: Likewise.
39702         * modules/truncf-tests: Likewise.
39703         * modules/truncl-tests: Likewise.
39704         * modules/tsearch-tests: Likewise.
39705         * modules/unistd-tests: Likewise.
39706         * modules/wchar-tests: Likewise.
39707         * modules/wctype-tests: Likewise.
39708
39709         tests: fix license on several tests
39710         * tests/test-des.c: Update to GPLv3+.
39711         * tests/test-flock.c: Likewise.
39712         * tests/test-fsync.c: Likewise.
39713         * tests/test-futimens.h: Likewise.
39714         * tests/test-gc-arcfour.c: Likewise.
39715         * tests/test-gc-arctwo.c: Likewise.
39716         * tests/test-gc-des.c: Likewise.
39717         * tests/test-gc-hmac-md5.c: Likewise.
39718         * tests/test-gc-hmac-sha1.c: Likewise.
39719         * tests/test-gc-md2.c: Likewise.
39720         * tests/test-gc-md4.c: Likewise.
39721         * tests/test-gc-md5.c: Likewise.
39722         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39723         * tests/test-gc-rijndael.c: Likewise.
39724         * tests/test-gc-sha1.c: Likewise.
39725         * tests/test-gc.c: Likewise.
39726         * tests/test-getcwd.c: Likewise.
39727         * tests/test-link.c: Likewise.
39728         * tests/test-link.h: Likewise.
39729         * tests/test-lutimens.h: Likewise.
39730         * tests/test-md2.c: Likewise.
39731         * tests/test-md4.c: Likewise.
39732         * tests/test-mkdir.h: Likewise.
39733         * tests/test-rename.c: Likewise.
39734         * tests/test-rename.h: Likewise.
39735         * tests/test-safe-alloc.c: Likewise.
39736         * tests/test-utimens-common.h: Likewise.
39737         * tests/test-utimens.h: Likewise.
39738
39739         maint: sync license texts
39740         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39741         * doc/gpl-3.0.texi: Revert copyright year update.
39742         * doc/lgpl-3.0.texi: Likewise.
39743
39744 2009-12-29  Jim Meyering  <meyering@redhat.com>
39745
39746         update nearly all FSF copyright year lists to include 2009
39747         The files named by the following are exempted:
39748             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39749               test -f "$dst" && { echo "$dst"; continue; }
39750               test -d "$dst" || continue
39751               echo "$dst"/$(basename "$src")
39752             done > exempt
39753             git ls-files tests/unictype >> exempt
39754         In the remaining files, convert to all-interval notation if
39755         - there is already at least one year interval like 2000-2003
39756         - the file is maintained by me
39757         - the file is in lib/uni*/, where that style already prevails
39758         Otherwise, use update-copyright's default.
39759
39760 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39761         and Eric Blake  <ebb9@byu.net>
39762
39763         tests: don't require debug system() to pass
39764         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39765         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39766         * tests/test-unlink.h (test_unlink_func): Likewise.
39767         * tests/test-fstatat.c (main): ...into callers.
39768         * tests/test-lstat.c (main): Likewise.
39769         * tests/test-rmdir.c (main): Likewise.
39770         * tests/test-unlink.c (main): Likewise.
39771         * tests/test-unlinkat.c (main): Likewise.
39772         * tests/test-areadlink-with-size.c (main): Don't require a
39773         debug-only system call to pass, aiding cross-testing to mingw.
39774         * tests/test-areadlink.c (main): Likewise.
39775         * tests/test-areadlinkat-with-size.c (main): Likewise.
39776         * tests/test-areadlinkat.c (main): Likewise.
39777         * tests/test-canonicalize-lgpl.c (main): Likewise.
39778         * tests/test-canonicalize.c (main): Likewise.
39779         * tests/test-chown.c (main): Likewise.
39780         * tests/test-fchownat.c (main): Likewise.
39781         * tests/test-lchown.c (main): Likewise.
39782         * tests/test-fdutimensat.c (main): Likewise.
39783         * tests/test-futimens.c (main): Likewise.
39784         * tests/test-link.c (main): Likewise.
39785         * tests/test-linkat.c (main): Likewise.
39786         * tests/test-mkdir.c (main): Likewise.
39787         * tests/test-mkdirat.c (main): Likewise.
39788         * tests/test-mkfifo.c (main): Likewise.
39789         * tests/test-mkfifoat.c (main): Likewise.
39790         * tests/test-mknod.c (main): Likewise.
39791         * tests/test-readlink.c (main): Likewise.
39792         * tests/test-remove.c (main): Likewise.
39793         * tests/test-rename.c (main): Likewise.
39794         * tests/test-renameat.c (main): Likewise.
39795         * tests/test-symlink.c (main): Likewise.
39796         * tests/test-symlinkat.c (main): Likewise.
39797         * tests/test-utimens.c (main): Likewise.
39798         * tests/test-utimensat.c (main): Likewise.
39799
39800 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39801
39802         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39803         on $(UNUSED_PARAMETER_H) to avoid build failure.
39804
39805 2009-12-28  Jim Meyering  <meyering@redhat.com>
39806
39807         update-copyright: you may specify a max. line length other than 72
39808         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39809
39810         maint: use consistent FSF copyright line syntax
39811         * lib/posixtm.c: Add missing comma in FSF copyright line.
39812         * lib/posixtm.h: Likewise.
39813         * lib/getugroups.c: Add missing ", Inc.".
39814
39815         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39816         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39817         FSF copyright line.  Remove trailing blanks.
39818
39819 2009-12-28  Eric Blake  <ebb9@byu.net>
39820
39821         test-dup2: reduce dependencies
39822         * modules/cloexec (Configure.ac): Set witness.
39823         * modules/dup2-tests (Depends-on): Drop cloexec.
39824         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39825         not present.
39826         Suggested by Bruno Haible.
39827
39828 2009-12-26  Bruno Haible  <bruno@clisp.org>
39829
39830         Remove an unneeded dependency.
39831         * modules/fseterr (Depends-on): Remove dup2.
39832
39833 2009-12-26  Eric Blake  <ebb9@byu.net>
39834
39835         tests: use macros.h in more places
39836         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39837         (ASSERT_STREAM): Provide default of stderr.
39838         * tests/test-dirent-safer.c: Include macros.h, using alternate
39839         stream for assertions.
39840         * tests/test-dup-safer.c: Likewise.
39841         * tests/test-freopen-safer.c: Likewise.
39842         * tests/test-getopt.c: Likewise.
39843         * tests/test-openat-safer.c: Likewise.
39844         * tests/test-pipe.c: Likewise.
39845         * tests/test-popen-safer.c: Likewise.
39846         * modules/dirent-safer-tests (Files): Include macros.h.
39847         * modules/unistd-safer-tests (Files): Likewise.
39848         * modules/freopen-safer-tests (Files): Likewise.
39849         * modules/getopt-posix-tests (Files): Likewise.
39850         * modules/openat-safer-tests (Files): Likewise.
39851         * modules/pipe-tests (Files): Likewise.
39852
39853 2009-12-26  Bruno Haible  <bruno@clisp.org>
39854
39855         javacomp: Portability fix.
39856         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39857         that it also works on Solaris.
39858
39859 2009-12-26  Bruno Haible  <bruno@clisp.org>
39860
39861         localename: Fix storage allocation of gl_locale_name_thread's result.
39862         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39863         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39864         all platforms that have 'uselocale'.
39865         (gl_locale_name_thread_unsafe): New function, extracted from
39866         gl_locale_name_thread.
39867         (gl_locale_name_thread): Call struniq on all platforms that have
39868         'uselocale'.
39869         * tests/test-localename.c (test_locale_name_thread): Check that the
39870         resulting strings are permanently allocated.
39871         * modules/localename-tests (Depends-on): Add strdup.
39872
39873 2009-12-26  Bruno Haible  <bruno@clisp.org>
39874
39875         * tests/test-localename.c (categories): Fill in the strings.
39876
39877 2009-12-26  Jim Meyering  <meyering@redhat.com>
39878
39879         isdir: complete the removal of m4/isdir.m4
39880         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39881
39882         isdir: clean up, since at least grep still uses it
39883         * lib/isdir.c: Include "isdir.h".
39884         (S_ISDIR): Remove now-unneeded definition.
39885         * modules/isdir (Files): Add lib/isdir.h.
39886         * lib/isdir.h: New file, with declaration.
39887         * m4/isdir.m4: Remove file -- unneeded.
39888
39889 2009-12-25  Bruno Haible  <bruno@clisp.org>
39890
39891         selinux-h: Make generated .h files standalone.
39892         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39893         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39894         * lib/se-selinux.in.h: Likewise.
39895         * modules/selinux-h (Depends-on): Add unused-parameter.
39896         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39897         selinux/selinux.h and selinux/context.h.
39898         Suggested by Eric Blake.
39899
39900 2009-12-25  Bruno Haible  <bruno@clisp.org>
39901
39902         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39903         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39904         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39905         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39906         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39907
39908 2009-12-24  Bruno Haible  <bruno@clisp.org>
39909
39910         openat: Fix warning.
39911         * lib/openat-proc.c: Include <unistd.h>.
39912
39913 2009-12-24  Bruno Haible  <bruno@clisp.org>
39914
39915         New module 'unused-parameter'.
39916         * build-aux/unused-parameter.h: New file, extracted from earlier
39917         gnulib-common.m4.
39918         * modules/unused-parameter: New file.
39919         * lib/unistr.h: Include unused-parameter.h.
39920         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39921         _GL_UNUSED.
39922         * modules/unistr/base (Depends-on): Add unused-parameter.
39923
39924 2009-12-24  Bruno Haible  <bruno@clisp.org>
39925
39926         Add missing dependencies to 'extensions' module.
39927         * m4/extensions.m4: Add comment.
39928         * modules/accept4 (Depends-on): Add extensions.
39929         * modules/dup3 (Depends-on): Likewise.
39930         * modules/fcntl (Depends-on): Likewise.
39931         * modules/futimens (Depends-on): Likewise.
39932         * modules/mknod (Depends-on): Likewise.
39933         * modules/pipe2 (Depends-on): Likewise.
39934         * modules/stat-time (Depends-on): Likewise.
39935         * modules/strcasestr-simple (Depends-on): Likewise.
39936         * modules/strsignal (Depends-on): Likewise.
39937         * modules/utimensat (Depends-on): Likewise.
39938         * modules/localcharset (Depends-on): Likewise. Needed because of
39939         gl_FCNTL_O_FLAGS.
39940         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39941         AC_TYPE_MBSTATE_T.
39942         * modules/wcsnrtombs (Depends-on): Likewise.
39943         * modules/wcsrtombs (Depends-on): Likewise.
39944
39945 2009-12-24  Bruno Haible  <bruno@clisp.org>
39946
39947         binary-io: Avoid gcc warning due to SET_BINARY.
39948         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39949         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39950
39951 2009-12-24  Bruno Haible  <bruno@clisp.org>
39952
39953         Avoid future namespace pollution on glibc systems.
39954         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39955         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39956         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39957         glibc systems.
39958
39959 2009-12-24  Bruno Haible  <bruno@clisp.org>
39960
39961         Refactor common macros used in tests.
39962         * tests/macros.h: New file.
39963         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39964         and/or <stdlib.h>, if appropriate.
39965         (ASSERT, SIZEOF): Remove macros.
39966         * tests/test-areadlink-with-size.c: Likewise.
39967         * tests/test-areadlinkat.c: Likewise.
39968         * tests/test-areadlinkat-with-size.c: Likewise.
39969         * tests/test-argmatch.c: Likewise.
39970         * tests/test-argv-iter.c: Likewise.
39971         * tests/test-array-mergesort.c: Likewise.
39972         * tests/test-array_list.c: Likewise.
39973         * tests/test-array_oset.c: Likewise.
39974         * tests/test-avltree_list.c: Likewise.
39975         * tests/test-avltree_oset.c: Likewise.
39976         * tests/test-avltreehash_list.c: Likewise.
39977         * tests/test-base64.c: Likewise.
39978         * tests/test-binary-io.c: Likewise.
39979         * tests/test-bitrotate.c: Likewise.
39980         * tests/test-btowc.c: Likewise.
39981         * tests/test-byteswap.c: Likewise.
39982         * tests/test-c-ctype.c: Likewise.
39983         * tests/test-c-stack.c: Likewise.
39984         * tests/test-c-strcasecmp.c: Likewise.
39985         * tests/test-c-strcasestr.c: Likewise.
39986         * tests/test-c-strncasecmp.c: Likewise.
39987         * tests/test-c-strstr.c: Likewise.
39988         * tests/test-canonicalize-lgpl.c: Likewise.
39989         * tests/test-canonicalize.c: Likewise.
39990         * tests/test-carray_list.c: Likewise.
39991         * tests/test-ceilf1.c: Likewise.
39992         * tests/test-ceilf2.c: Likewise.
39993         * tests/test-ceill.c: Likewise.
39994         * tests/test-chown.c: Likewise.
39995         * tests/test-cloexec.c: Likewise.
39996         * tests/test-copy-acl.c: Likewise.
39997         * tests/test-copy-file.c: Likewise.
39998         * tests/test-count-one-bits.c: Likewise.
39999         * tests/test-dprintf-posix.c: Likewise.
40000         * tests/test-dup2.c: Likewise.
40001         * tests/test-dup3.c: Likewise.
40002         * tests/test-duplocale.c: Likewise.
40003         * tests/test-fbufmode.c: Likewise.
40004         * tests/test-fchdir.c: Likewise.
40005         * tests/test-fchownat.c: Likewise.
40006         * tests/test-fcntl-safer.c: Likewise.
40007         * tests/test-fcntl.c: Likewise.
40008         * tests/test-fdopendir.c: Likewise.
40009         * tests/test-fdutimensat.c: Likewise.
40010         * tests/test-fflush2.c: Likewise.
40011         * tests/test-file-has-acl.c: Likewise.
40012         * tests/test-filevercmp.c: Likewise.
40013         * tests/test-flock.c: Likewise.
40014         * tests/test-floorf1.c: Likewise.
40015         * tests/test-floorf2.c: Likewise.
40016         * tests/test-floorl.c: Likewise.
40017         * tests/test-fnmatch.c: Likewise.
40018         * tests/test-fopen.h: Likewise.
40019         * tests/test-fpending.c: Likewise.
40020         * tests/test-fprintf-posix.c: Likewise.
40021         * tests/test-fpurge.c: Likewise.
40022         * tests/test-freadable.c: Likewise.
40023         * tests/test-freadahead.c: Likewise.
40024         * tests/test-freading.c: Likewise.
40025         * tests/test-freadptr.c: Likewise.
40026         * tests/test-freadptr2.c: Likewise.
40027         * tests/test-freadseek.c: Likewise.
40028         * tests/test-freopen.c: Likewise.
40029         * tests/test-frexp.c: Likewise.
40030         * tests/test-frexpl.c: Likewise.
40031         * tests/test-fseek.c: Likewise.
40032         * tests/test-fseeko.c: Likewise.
40033         * tests/test-fstatat.c: Likewise.
40034         * tests/test-fstrcmp.c: Likewise.
40035         * tests/test-fsync.c: Likewise.
40036         * tests/test-ftell.c: Likewise.
40037         * tests/test-ftello.c: Likewise.
40038         * tests/test-func.c: Likewise.
40039         * tests/test-futimens.c: Likewise.
40040         * tests/test-fwritable.c: Likewise.
40041         * tests/test-fwriting.c: Likewise.
40042         * tests/test-getcwd.c: Likewise.
40043         * tests/test-getdate.c: Likewise.
40044         * tests/test-getdelim.c: Likewise.
40045         * tests/test-getdtablesize.c: Likewise.
40046         * tests/test-getgroups.c: Likewise.
40047         * tests/test-getline.c: Likewise.
40048         * tests/test-getndelim2.c: Likewise.
40049         * tests/test-glob.c: Likewise.
40050         * tests/test-hash.c: Likewise.
40051         * tests/test-i-ring.c: Likewise.
40052         * tests/test-iconv-utf.c: Likewise.
40053         * tests/test-iconv.c: Likewise.
40054         * tests/test-idpriv-drop.c: Likewise.
40055         * tests/test-idpriv-droptemp.c: Likewise.
40056         * tests/test-inet_ntop.c: Likewise.
40057         * tests/test-inet_pton.c: Likewise.
40058         * tests/test-isblank.c: Likewise.
40059         * tests/test-isfinite.c: Likewise.
40060         * tests/test-isinf.c: Likewise.
40061         * tests/test-isnan.c: Likewise.
40062         * tests/test-isnand.h: Likewise.
40063         * tests/test-isnanf.h: Likewise.
40064         * tests/test-isnanl.h: Likewise.
40065         * tests/test-lchown.c: Likewise.
40066         * tests/test-ldexpl.c: Likewise.
40067         * tests/test-link.c: Likewise.
40068         * tests/test-linkat.c: Likewise.
40069         * tests/test-linked_list.c: Likewise.
40070         * tests/test-linkedhash_list.c: Likewise.
40071         * tests/test-localename.c: Likewise.
40072         * tests/test-lseek.c: Likewise.
40073         * tests/test-lstat.c: Likewise.
40074         * tests/test-mbmemcasecmp.c: Likewise.
40075         * tests/test-mbmemcasecoll.c: Likewise.
40076         * tests/test-mbrtowc.c: Likewise.
40077         * tests/test-mbscasecmp.c: Likewise.
40078         * tests/test-mbscasestr1.c: Likewise.
40079         * tests/test-mbscasestr2.c: Likewise.
40080         * tests/test-mbscasestr3.c: Likewise.
40081         * tests/test-mbscasestr4.c: Likewise.
40082         * tests/test-mbschr.c: Likewise.
40083         * tests/test-mbscspn.c: Likewise.
40084         * tests/test-mbsinit.c: Likewise.
40085         * tests/test-mbsncasecmp.c: Likewise.
40086         * tests/test-mbsnrtowcs.c: Likewise.
40087         * tests/test-mbspbrk.c: Likewise.
40088         * tests/test-mbspcasecmp.c: Likewise.
40089         * tests/test-mbsrchr.c: Likewise.
40090         * tests/test-mbsrtowcs.c: Likewise.
40091         * tests/test-mbsspn.c: Likewise.
40092         * tests/test-mbsstr1.c: Likewise.
40093         * tests/test-mbsstr2.c: Likewise.
40094         * tests/test-mbsstr3.c: Likewise.
40095         * tests/test-memchr.c: Likewise.
40096         * tests/test-memchr2.c: Likewise.
40097         * tests/test-memcmp.c: Likewise.
40098         * tests/test-memmem.c: Likewise.
40099         * tests/test-memrchr.c: Likewise.
40100         * tests/test-mkdir.c: Likewise.
40101         * tests/test-mkdirat.c: Likewise.
40102         * tests/test-mkfifo.c: Likewise.
40103         * tests/test-mkfifoat.c: Likewise.
40104         * tests/test-mknod.c: Likewise.
40105         * tests/test-nanosleep.c: Likewise.
40106         * tests/test-nl_langinfo.c: Likewise.
40107         * tests/test-obstack-printf.c: Likewise.
40108         * tests/test-open.c: Likewise.
40109         * tests/test-openat.c: Likewise.
40110         * tests/test-pipe-filter-gi1.c: Likewise.
40111         * tests/test-pipe-filter-gi2-main.c: Likewise.
40112         * tests/test-pipe-filter-ii1.c: Likewise.
40113         * tests/test-pipe-filter-ii2-main.c: Likewise.
40114         * tests/test-pipe2.c: Likewise.
40115         * tests/test-popen.h: Likewise.
40116         * tests/test-posixtm.c: Likewise.
40117         * tests/test-pread.c: Likewise.
40118         * tests/test-printf-frexp.c: Likewise.
40119         * tests/test-printf-frexpl.c: Likewise.
40120         * tests/test-printf-posix.c: Likewise.
40121         * tests/test-priv-set.c: Likewise.
40122         * tests/test-quotearg.c: Likewise.
40123         * tests/test-random_r.c: Likewise.
40124         * tests/test-rawmemchr.c: Likewise.
40125         * tests/test-rbtree_list.c: Likewise.
40126         * tests/test-rbtree_oset.c: Likewise.
40127         * tests/test-rbtreehash_list.c: Likewise.
40128         * tests/test-readlink.c: Likewise.
40129         * tests/test-remove.c: Likewise.
40130         * tests/test-rename.c: Likewise.
40131         * tests/test-renameat.c: Likewise.
40132         * tests/test-rmdir.c: Likewise.
40133         * tests/test-round1.c: Likewise.
40134         * tests/test-roundf1.c: Likewise.
40135         * tests/test-roundl.c: Likewise.
40136         * tests/test-safe-alloc.c: Likewise.
40137         * tests/test-sameacls.c: Likewise.
40138         * tests/test-set-mode-acl.c: Likewise.
40139         * tests/test-setenv.c: Likewise.
40140         * tests/test-sigaction.c: Likewise.
40141         * tests/test-signbit.c: Likewise.
40142         * tests/test-sleep.c: Likewise.
40143         * tests/test-snprintf-posix.c: Likewise.
40144         * tests/test-snprintf.c: Likewise.
40145         * tests/test-sprintf-posix.c: Likewise.
40146         * tests/test-stat-time.c: Likewise.
40147         * tests/test-stat.c: Likewise.
40148         * tests/test-strcasestr.c: Likewise.
40149         * tests/test-strchrnul.c: Likewise.
40150         * tests/test-strerror.c: Likewise.
40151         * tests/test-striconv.c: Likewise.
40152         * tests/test-striconveh.c: Likewise.
40153         * tests/test-striconveha.c: Likewise.
40154         * tests/test-strsignal.c: Likewise.
40155         * tests/test-strstr.c: Likewise.
40156         * tests/test-strtod.c: Likewise.
40157         * tests/test-strverscmp.c: Likewise.
40158         * tests/test-symlink.c: Likewise.
40159         * tests/test-symlinkat.c: Likewise.
40160         * tests/test-trunc1.c: Likewise.
40161         * tests/test-trunc2.c: Likewise.
40162         * tests/test-truncf1.c: Likewise.
40163         * tests/test-truncf2.c: Likewise.
40164         * tests/test-truncl.c: Likewise.
40165         * tests/test-uname.c: Likewise.
40166         * tests/test-unlink.c: Likewise.
40167         * tests/test-unlinkat.c: Likewise.
40168         * tests/test-unsetenv.c: Likewise.
40169         * tests/test-usleep.c: Likewise.
40170         * tests/test-utimens.c: Likewise.
40171         * tests/test-utimensat.c: Likewise.
40172         * tests/test-vasnprintf-posix.c: Likewise.
40173         * tests/test-vasnprintf-posix2.c: Likewise.
40174         * tests/test-vasnprintf.c: Likewise.
40175         * tests/test-vasprintf-posix.c: Likewise.
40176         * tests/test-vasprintf.c: Likewise.
40177         * tests/test-vdprintf-posix.c: Likewise.
40178         * tests/test-vfprintf-posix.c: Likewise.
40179         * tests/test-vprintf-posix.c: Likewise.
40180         * tests/test-vsnprintf-posix.c: Likewise.
40181         * tests/test-vsnprintf.c: Likewise.
40182         * tests/test-vsprintf-posix.c: Likewise.
40183         * tests/test-wcrtomb.c: Likewise.
40184         * tests/test-wcsnrtombs.c: Likewise.
40185         * tests/test-wcsrtombs.c: Likewise.
40186         * tests/test-wctype.c: Likewise.
40187         * tests/test-wcwidth.c: Likewise.
40188         * tests/test-xfprintf-posix.c: Likewise.
40189         * tests/test-xmemdup0.c: Likewise.
40190         * tests/test-xprintf-posix.c: Likewise.
40191         * tests/test-xvasprintf.c: Likewise.
40192         * tests/unicase/test-locale-language.c: Likewise.
40193         * tests/unicase/test-mapping-part1.h: Likewise.
40194         * tests/unicase/test-predicate-part1.h: Likewise.
40195         * tests/unicase/test-u8-casecmp.c: Likewise.
40196         * tests/unicase/test-u8-casecoll.c: Likewise.
40197         * tests/unicase/test-u8-casefold.c: Likewise.
40198         * tests/unicase/test-u8-is-cased.c: Likewise.
40199         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40200         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40201         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40202         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40203         * tests/unicase/test-u8-tolower.c: Likewise.
40204         * tests/unicase/test-u8-totitle.c: Likewise.
40205         * tests/unicase/test-u8-toupper.c: Likewise.
40206         * tests/unicase/test-u16-casecmp.c: Likewise.
40207         * tests/unicase/test-u16-casecoll.c: Likewise.
40208         * tests/unicase/test-u16-casefold.c: Likewise.
40209         * tests/unicase/test-u16-is-cased.c: Likewise.
40210         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40211         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40212         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40213         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40214         * tests/unicase/test-u16-tolower.c: Likewise.
40215         * tests/unicase/test-u16-totitle.c: Likewise.
40216         * tests/unicase/test-u16-toupper.c: Likewise.
40217         * tests/unicase/test-u32-casecmp.c: Likewise.
40218         * tests/unicase/test-u32-casecoll.c: Likewise.
40219         * tests/unicase/test-u32-casefold.c: Likewise.
40220         * tests/unicase/test-u32-is-cased.c: Likewise.
40221         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40222         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40223         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40224         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40225         * tests/unicase/test-u32-tolower.c: Likewise.
40226         * tests/unicase/test-u32-totitle.c: Likewise.
40227         * tests/unicase/test-u32-toupper.c: Likewise.
40228         * tests/unicase/test-ulc-casecmp.c: Likewise.
40229         * tests/unicase/test-ulc-casecoll.c: Likewise.
40230         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40231         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40232         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40233         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40234         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40235         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40236         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40237         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40238         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40239         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40240         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40241         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40242         * tests/unictype/test-bidi_byname.c: Likewise.
40243         * tests/unictype/test-bidi_name.c: Likewise.
40244         * tests/unictype/test-bidi_of.c: Likewise.
40245         * tests/unictype/test-bidi_test.c: Likewise.
40246         * tests/unictype/test-block_list.c: Likewise.
40247         * tests/unictype/test-block_of.c: Likewise.
40248         * tests/unictype/test-block_test.c: Likewise.
40249         * tests/unictype/test-categ_and.c: Likewise.
40250         * tests/unictype/test-categ_and_not.c: Likewise.
40251         * tests/unictype/test-categ_byname.c: Likewise.
40252         * tests/unictype/test-categ_name.c: Likewise.
40253         * tests/unictype/test-categ_none.c: Likewise.
40254         * tests/unictype/test-categ_of.c: Likewise.
40255         * tests/unictype/test-categ_or.c: Likewise.
40256         * tests/unictype/test-categ_test_withtable.c: Likewise.
40257         * tests/unictype/test-combining.c: Likewise.
40258         * tests/unictype/test-decdigit.c: Likewise.
40259         * tests/unictype/test-digit.c: Likewise.
40260         * tests/unictype/test-mirror.c: Likewise.
40261         * tests/unictype/test-numeric.c: Likewise.
40262         * tests/unictype/test-pr_byname.c: Likewise.
40263         * tests/unictype/test-pr_test.c: Likewise.
40264         * tests/unictype/test-predicate-part1.h: Likewise.
40265         * tests/unictype/test-scripts.c: Likewise.
40266         * tests/unictype/test-sy_c_ident.c: Likewise.
40267         * tests/unictype/test-sy_java_ident.c: Likewise.
40268         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40269         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40270         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40271         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40272         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40273         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40274         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40275         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40276         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40277         * tests/uninorm/test-compat-decomposition.c: Likewise.
40278         * tests/uninorm/test-composition.c: Likewise.
40279         * tests/uninorm/test-decomposing-form.c: Likewise.
40280         * tests/uninorm/test-decomposition.c: Likewise.
40281         * tests/uninorm/test-u8-nfc.c: Likewise.
40282         * tests/uninorm/test-u8-nfd.c: Likewise.
40283         * tests/uninorm/test-u8-nfkc.c: Likewise.
40284         * tests/uninorm/test-u8-nfkd.c: Likewise.
40285         * tests/uninorm/test-u8-normcmp.c: Likewise.
40286         * tests/uninorm/test-u8-normcoll.c: Likewise.
40287         * tests/uninorm/test-u16-nfc.c: Likewise.
40288         * tests/uninorm/test-u16-nfd.c: Likewise.
40289         * tests/uninorm/test-u16-nfkc.c: Likewise.
40290         * tests/uninorm/test-u16-nfkd.c: Likewise.
40291         * tests/uninorm/test-u16-normcmp.c: Likewise.
40292         * tests/uninorm/test-u16-normcoll.c: Likewise.
40293         * tests/uninorm/test-u32-nfc.c: Likewise.
40294         * tests/uninorm/test-u32-nfd.c: Likewise.
40295         * tests/uninorm/test-u32-nfkc.c: Likewise.
40296         * tests/uninorm/test-u32-nfkd.c: Likewise.
40297         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40298         * tests/uninorm/test-u32-normcmp.c: Likewise.
40299         * tests/uninorm/test-u32-normcoll.c: Likewise.
40300         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40301         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40302         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40303         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40304         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40305         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40306         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40307         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40308         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40309         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40310         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40311         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40312         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40313         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40314         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40315         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40316         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40317         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40318         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40319         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40320         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40321         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40322         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40323         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40324         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40325         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40326         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40327         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40328         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40329         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40330         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40331         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40332         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40333         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40334         * tests/uniwidth/test-u8-width.c: Likewise.
40335         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40336         * tests/uniwidth/test-u16-width.c: Likewise.
40337         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40338         * tests/uniwidth/test-u32-width.c: Likewise.
40339         * tests/uniwidth/test-uc_width.c: Likewise.
40340         * tests/uniwidth/test-uc_width2.c: Likewise.
40341         * modules/acl-tests (Files): Add tests/macros.h.
40342         * modules/areadlink-tests (Files): Likewise.
40343         * modules/areadlink-with-size-tests (Files): Likewise.
40344         * modules/areadlinkat-tests (Files): Likewise.
40345         * modules/areadlinkat-with-size-tests (Files): Likewise.
40346         * modules/argmatch-tests (Files): Likewise.
40347         * modules/argv-iter-tests (Files): Likewise.
40348         * modules/array-list-tests (Files): Likewise.
40349         * modules/array-mergesort-tests (Files): Likewise.
40350         * modules/array-oset-tests (Files): Likewise.
40351         * modules/avltree-list-tests (Files): Likewise.
40352         * modules/avltree-oset-tests (Files): Likewise.
40353         * modules/avltreehash-list-tests (Files): Likewise.
40354         * modules/base64-tests (Files): Likewise.
40355         * modules/binary-io-tests (Files): Likewise.
40356         * modules/bitrotate-tests (Files): Likewise.
40357         * modules/btowc-tests (Files): Likewise.
40358         * modules/byteswap-tests (Files): Likewise.
40359         * modules/c-ctype-tests (Files): Likewise.
40360         * modules/c-stack-tests (Files): Likewise.
40361         * modules/c-strcase-tests (Files): Likewise.
40362         * modules/c-strcasestr-tests (Files): Likewise.
40363         * modules/c-strstr-tests (Files): Likewise.
40364         * modules/canonicalize-lgpl-tests (Files): Likewise.
40365         * modules/canonicalize-tests (Files): Likewise.
40366         * modules/carray-list-tests (Files): Likewise.
40367         * modules/ceilf-tests (Files): Likewise.
40368         * modules/ceill-tests (Files): Likewise.
40369         * modules/chown-tests (Files): Likewise.
40370         * modules/cloexec-tests (Files): Likewise.
40371         * modules/copy-file-tests (Files): Likewise.
40372         * modules/count-one-bits-tests (Files): Likewise.
40373         * modules/dprintf-posix-tests (Files): Likewise.
40374         * modules/dup2-tests (Files): Likewise.
40375         * modules/dup3-tests (Files): Likewise.
40376         * modules/duplocale-tests (Files): Likewise.
40377         * modules/fbufmode-tests (Files): Likewise.
40378         * modules/fchdir-tests (Files): Likewise.
40379         * modules/fcntl-safer-tests (Files): Likewise.
40380         * modules/fcntl-tests (Files): Likewise.
40381         * modules/fdopendir-tests (Files): Likewise.
40382         * modules/fdutimensat-tests (Files): Likewise.
40383         * modules/fflush-tests (Files): Likewise.
40384         * modules/filevercmp-tests (Files): Likewise.
40385         * modules/flock-tests (Files): Likewise.
40386         * modules/floorf-tests (Files): Likewise.
40387         * modules/floorl-tests (Files): Likewise.
40388         * modules/fnmatch-tests (Files): Likewise.
40389         * modules/fopen-safer-tests (Files): Likewise.
40390         * modules/fopen-tests (Files): Likewise.
40391         * modules/fpending-tests (Files): Likewise.
40392         * modules/fprintf-posix-tests (Files): Likewise.
40393         * modules/fpurge-tests (Files): Likewise.
40394         * modules/freadable-tests (Files): Likewise.
40395         * modules/freadahead-tests (Files): Likewise.
40396         * modules/freading-tests (Files): Likewise.
40397         * modules/freadptr-tests (Files): Likewise.
40398         * modules/freadseek-tests (Files): Likewise.
40399         * modules/freopen-tests (Files): Likewise.
40400         * modules/frexp-nolibm-tests (Files): Likewise.
40401         * modules/frexp-tests (Files): Likewise.
40402         * modules/frexpl-nolibm-tests (Files): Likewise.
40403         * modules/frexpl-tests (Files): Likewise.
40404         * modules/fseek-tests (Files): Likewise.
40405         * modules/fseeko-tests (Files): Likewise.
40406         * modules/fstrcmp-tests (Files): Likewise.
40407         * modules/fsync-tests (Files): Likewise.
40408         * modules/ftell-tests (Files): Likewise.
40409         * modules/ftello-tests (Files): Likewise.
40410         * modules/func-tests (Files): Likewise.
40411         * modules/futimens-tests (Files): Likewise.
40412         * modules/fwritable-tests (Files): Likewise.
40413         * modules/fwriting-tests (Files): Likewise.
40414         * modules/getcwd-tests (Files): Likewise.
40415         * modules/getdate-tests (Files): Likewise.
40416         * modules/getdelim-tests (Files): Likewise.
40417         * modules/getdtablesize-tests (Files): Likewise.
40418         * modules/getgroups-tests (Files): Likewise.
40419         * modules/getline-tests (Files): Likewise.
40420         * modules/getndelim2-tests (Files): Likewise.
40421         * modules/glob-tests (Files): Likewise.
40422         * modules/hash-tests (Files): Likewise.
40423         * modules/i-ring-tests (Files): Likewise.
40424         * modules/iconv-tests (Files): Likewise.
40425         * modules/iconv_open-utf-tests (Files): Likewise.
40426         * modules/idpriv-drop-tests (Files): Likewise.
40427         * modules/idpriv-droptemp-tests (Files): Likewise.
40428         * modules/inet_ntop-tests (Files): Likewise.
40429         * modules/inet_pton-tests (Files): Likewise.
40430         * modules/isblank-tests (Files): Likewise.
40431         * modules/isfinite-tests (Files): Likewise.
40432         * modules/isinf-tests (Files): Likewise.
40433         * modules/isnan-tests (Files): Likewise.
40434         * modules/isnand-nolibm-tests (Files): Likewise.
40435         * modules/isnand-tests (Files): Likewise.
40436         * modules/isnanf-nolibm-tests (Files): Likewise.
40437         * modules/isnanf-tests (Files): Likewise.
40438         * modules/isnanl-nolibm-tests (Files): Likewise.
40439         * modules/isnanl-tests (Files): Likewise.
40440         * modules/lchown-tests (Files): Likewise.
40441         * modules/ldexpl-tests (Files): Likewise.
40442         * modules/link-tests (Files): Likewise.
40443         * modules/linkat-tests (Files): Likewise.
40444         * modules/linked-list-tests (Files): Likewise.
40445         * modules/linkedhash-list-tests (Files): Likewise.
40446         * modules/localename-tests (Files): Likewise.
40447         * modules/lseek-tests (Files): Likewise.
40448         * modules/lstat-tests (Files): Likewise.
40449         * modules/mbmemcasecmp-tests (Files): Likewise.
40450         * modules/mbmemcasecoll-tests (Files): Likewise.
40451         * modules/mbrtowc-tests (Files): Likewise.
40452         * modules/mbscasecmp-tests (Files): Likewise.
40453         * modules/mbscasestr-tests (Files): Likewise.
40454         * modules/mbschr-tests (Files): Likewise.
40455         * modules/mbscspn-tests (Files): Likewise.
40456         * modules/mbsinit-tests (Files): Likewise.
40457         * modules/mbsncasecmp-tests (Files): Likewise.
40458         * modules/mbsnrtowcs-tests (Files): Likewise.
40459         * modules/mbspbrk-tests (Files): Likewise.
40460         * modules/mbspcasecmp-tests (Files): Likewise.
40461         * modules/mbsrchr-tests (Files): Likewise.
40462         * modules/mbsrtowcs-tests (Files): Likewise.
40463         * modules/mbsspn-tests (Files): Likewise.
40464         * modules/mbsstr-tests (Files): Likewise.
40465         * modules/memchr-tests (Files): Likewise.
40466         * modules/memchr2-tests (Files): Likewise.
40467         * modules/memcmp-tests (Files): Likewise.
40468         * modules/memmem-tests (Files): Likewise.
40469         * modules/memrchr-tests (Files): Likewise.
40470         * modules/mkdir-tests (Files): Likewise.
40471         * modules/mkfifo-tests (Files): Likewise.
40472         * modules/mkfifoat-tests (Files): Likewise.
40473         * modules/mknod-tests (Files): Likewise.
40474         * modules/nanosleep-tests (Files): Likewise.
40475         * modules/nl_langinfo-tests (Files): Likewise.
40476         * modules/obstack-printf-tests (Files): Likewise.
40477         * modules/open-tests (Files): Likewise.
40478         * modules/openat-tests (Files): Likewise.
40479         * modules/pipe-filter-gi-tests (Files): Likewise.
40480         * modules/pipe-filter-ii-tests (Files): Likewise.
40481         * modules/pipe2-tests (Files): Likewise.
40482         * modules/popen-safer-tests (Files): Likewise.
40483         * modules/popen-tests (Files): Likewise.
40484         * modules/posixtm-tests (Files): Likewise.
40485         * modules/pread-tests (Files): Likewise.
40486         * modules/printf-frexp-tests (Files): Likewise.
40487         * modules/printf-frexpl-tests (Files): Likewise.
40488         * modules/printf-posix-tests (Files): Likewise.
40489         * modules/priv-set-tests (Files): Likewise.
40490         * modules/quotearg-tests (Files): Likewise.
40491         * modules/random_r-tests (Files): Likewise.
40492         * modules/rawmemchr-tests (Files): Likewise.
40493         * modules/rbtree-list-tests (Files): Likewise.
40494         * modules/rbtree-oset-tests (Files): Likewise.
40495         * modules/rbtreehash-list-tests (Files): Likewise.
40496         * modules/readlink-tests (Files): Likewise.
40497         * modules/remove-tests (Files): Likewise.
40498         * modules/rename-tests (Files): Likewise.
40499         * modules/renameat-tests (Files): Likewise.
40500         * modules/rmdir-tests (Files): Likewise.
40501         * modules/round-tests (Files): Likewise.
40502         * modules/roundf-tests (Files): Likewise.
40503         * modules/roundl-tests (Files): Likewise.
40504         * modules/safe-alloc-tests (Files): Likewise.
40505         * modules/setenv-tests (Files): Likewise.
40506         * modules/sigaction-tests (Files): Likewise.
40507         * modules/signbit-tests (Files): Likewise.
40508         * modules/sleep-tests (Files): Likewise.
40509         * modules/snprintf-posix-tests (Files): Likewise.
40510         * modules/snprintf-tests (Files): Likewise.
40511         * modules/sprintf-posix-tests (Files): Likewise.
40512         * modules/stat-tests (Files): Likewise.
40513         * modules/stat-time-tests (Files): Likewise.
40514         * modules/strcasestr-tests (Files): Likewise.
40515         * modules/strchrnul-tests (Files): Likewise.
40516         * modules/strerror-tests (Files): Likewise.
40517         * modules/striconv-tests (Files): Likewise.
40518         * modules/striconveh-tests (Files): Likewise.
40519         * modules/striconveha-tests (Files): Likewise.
40520         * modules/strsignal-tests (Files): Likewise.
40521         * modules/strstr-tests (Files): Likewise.
40522         * modules/strtod-tests (Files): Likewise.
40523         * modules/strverscmp-tests (Files): Likewise.
40524         * modules/symlink-tests (Files): Likewise.
40525         * modules/symlinkat-tests (Files): Likewise.
40526         * modules/trunc-tests (Files): Likewise.
40527         * modules/truncf-tests (Files): Likewise.
40528         * modules/truncl-tests (Files): Likewise.
40529         * modules/uname-tests (Files): Likewise.
40530         * modules/unicase/cased-tests (Files): Likewise.
40531         * modules/unicase/ignorable-tests (Files): Likewise.
40532         * modules/unicase/locale-language-tests (Files): Likewise.
40533         * modules/unicase/tolower-tests (Files): Likewise.
40534         * modules/unicase/totitle-tests (Files): Likewise.
40535         * modules/unicase/toupper-tests (Files): Likewise.
40536         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40537         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40538         * modules/unicase/u8-casefold-tests (Files): Likewise.
40539         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40540         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40541         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40542         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40543         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40544         * modules/unicase/u8-tolower-tests (Files): Likewise.
40545         * modules/unicase/u8-totitle-tests (Files): Likewise.
40546         * modules/unicase/u8-toupper-tests (Files): Likewise.
40547         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40548         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40549         * modules/unicase/u16-casefold-tests (Files): Likewise.
40550         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40551         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40552         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40553         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40554         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40555         * modules/unicase/u16-tolower-tests (Files): Likewise.
40556         * modules/unicase/u16-totitle-tests (Files): Likewise.
40557         * modules/unicase/u16-toupper-tests (Files): Likewise.
40558         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40559         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40560         * modules/unicase/u32-casefold-tests (Files): Likewise.
40561         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40562         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40563         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40564         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40565         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40566         * modules/unicase/u32-tolower-tests (Files): Likewise.
40567         * modules/unicase/u32-totitle-tests (Files): Likewise.
40568         * modules/unicase/u32-toupper-tests (Files): Likewise.
40569         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40570         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40571         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40572         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40573         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40574         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40575         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40576         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40577         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40578         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40579         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40580         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40581         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40582         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40583         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40584         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40585         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40586         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40587         * modules/unictype/block-list-tests (Files): Likewise.
40588         * modules/unictype/block-of-tests (Files): Likewise.
40589         * modules/unictype/block-test-tests (Files): Likewise.
40590         * modules/unictype/category-C-tests (Files): Likewise.
40591         * modules/unictype/category-Cc-tests (Files): Likewise.
40592         * modules/unictype/category-Cf-tests (Files): Likewise.
40593         * modules/unictype/category-Cn-tests (Files): Likewise.
40594         * modules/unictype/category-Co-tests (Files): Likewise.
40595         * modules/unictype/category-Cs-tests (Files): Likewise.
40596         * modules/unictype/category-L-tests (Files): Likewise.
40597         * modules/unictype/category-Ll-tests (Files): Likewise.
40598         * modules/unictype/category-Lm-tests (Files): Likewise.
40599         * modules/unictype/category-Lo-tests (Files): Likewise.
40600         * modules/unictype/category-Lt-tests (Files): Likewise.
40601         * modules/unictype/category-Lu-tests (Files): Likewise.
40602         * modules/unictype/category-M-tests (Files): Likewise.
40603         * modules/unictype/category-Mc-tests (Files): Likewise.
40604         * modules/unictype/category-Me-tests (Files): Likewise.
40605         * modules/unictype/category-Mn-tests (Files): Likewise.
40606         * modules/unictype/category-N-tests (Files): Likewise.
40607         * modules/unictype/category-Nd-tests (Files): Likewise.
40608         * modules/unictype/category-Nl-tests (Files): Likewise.
40609         * modules/unictype/category-No-tests (Files): Likewise.
40610         * modules/unictype/category-P-tests (Files): Likewise.
40611         * modules/unictype/category-Pc-tests (Files): Likewise.
40612         * modules/unictype/category-Pd-tests (Files): Likewise.
40613         * modules/unictype/category-Pe-tests (Files): Likewise.
40614         * modules/unictype/category-Pf-tests (Files): Likewise.
40615         * modules/unictype/category-Pi-tests (Files): Likewise.
40616         * modules/unictype/category-Po-tests (Files): Likewise.
40617         * modules/unictype/category-Ps-tests (Files): Likewise.
40618         * modules/unictype/category-S-tests (Files): Likewise.
40619         * modules/unictype/category-Sc-tests (Files): Likewise.
40620         * modules/unictype/category-Sk-tests (Files): Likewise.
40621         * modules/unictype/category-Sm-tests (Files): Likewise.
40622         * modules/unictype/category-So-tests (Files): Likewise.
40623         * modules/unictype/category-Z-tests (Files): Likewise.
40624         * modules/unictype/category-Zl-tests (Files): Likewise.
40625         * modules/unictype/category-Zp-tests (Files): Likewise.
40626         * modules/unictype/category-Zs-tests (Files): Likewise.
40627         * modules/unictype/category-and-not-tests (Files): Likewise.
40628         * modules/unictype/category-and-tests (Files): Likewise.
40629         * modules/unictype/category-byname-tests (Files): Likewise.
40630         * modules/unictype/category-name-tests (Files): Likewise.
40631         * modules/unictype/category-none-tests (Files): Likewise.
40632         * modules/unictype/category-of-tests (Files): Likewise.
40633         * modules/unictype/category-or-tests (Files): Likewise.
40634         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40635         * modules/unictype/combining-class-tests (Files): Likewise.
40636         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40637         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40638         * modules/unictype/ctype-blank-tests (Files): Likewise.
40639         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40640         * modules/unictype/ctype-digit-tests (Files): Likewise.
40641         * modules/unictype/ctype-graph-tests (Files): Likewise.
40642         * modules/unictype/ctype-lower-tests (Files): Likewise.
40643         * modules/unictype/ctype-print-tests (Files): Likewise.
40644         * modules/unictype/ctype-punct-tests (Files): Likewise.
40645         * modules/unictype/ctype-space-tests (Files): Likewise.
40646         * modules/unictype/ctype-upper-tests (Files): Likewise.
40647         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40648         * modules/unictype/decimal-digit-tests (Files): Likewise.
40649         * modules/unictype/digit-tests (Files): Likewise.
40650         * modules/unictype/mirror-tests (Files): Likewise.
40651         * modules/unictype/numeric-tests (Files): Likewise.
40652         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40653         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40654         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40655         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40656         Likewise.
40657         * modules/unictype/property-bidi-block-separator-tests (Files):
40658         Likewise.
40659         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40660         Likewise.
40661         * modules/unictype/property-bidi-common-separator-tests (Files):
40662         Likewise.
40663         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40664         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40665         Likewise.
40666         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40667         Likewise.
40668         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40669         Likewise.
40670         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40671         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40672         Likewise.
40673         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40674         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40675         Likewise.
40676         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40677         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40678         * modules/unictype/property-bidi-segment-separator-tests (Files):
40679         Likewise.
40680         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40681         * modules/unictype/property-byname-tests (Files): Likewise.
40682         * modules/unictype/property-combining-tests (Files): Likewise.
40683         * modules/unictype/property-composite-tests (Files): Likewise.
40684         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40685         * modules/unictype/property-dash-tests (Files): Likewise.
40686         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40687         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40688         Likewise.
40689         * modules/unictype/property-deprecated-tests (Files): Likewise.
40690         * modules/unictype/property-diacritic-tests (Files): Likewise.
40691         * modules/unictype/property-extender-tests (Files): Likewise.
40692         * modules/unictype/property-format-control-tests (Files): Likewise.
40693         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40694         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40695         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40696         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40697         * modules/unictype/property-hyphen-tests (Files): Likewise.
40698         * modules/unictype/property-id-continue-tests (Files): Likewise.
40699         * modules/unictype/property-id-start-tests (Files): Likewise.
40700         * modules/unictype/property-ideographic-tests (Files): Likewise.
40701         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40702         * modules/unictype/property-ids-trinary-operator-tests (Files):
40703         Likewise.
40704         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40705         * modules/unictype/property-iso-control-tests (Files): Likewise.
40706         * modules/unictype/property-join-control-tests (Files): Likewise.
40707         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40708         * modules/unictype/property-line-separator-tests (Files): Likewise.
40709         * modules/unictype/property-logical-order-exception-tests (Files):
40710         Likewise.
40711         * modules/unictype/property-lowercase-tests (Files): Likewise.
40712         * modules/unictype/property-math-tests (Files): Likewise.
40713         * modules/unictype/property-non-break-tests (Files): Likewise.
40714         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40715         * modules/unictype/property-numeric-tests (Files): Likewise.
40716         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40717         * modules/unictype/property-other-default-ignorable-code-point-tests
40718         (Files): Likewise.
40719         * modules/unictype/property-other-grapheme-extend-tests (Files):
40720         Likewise.
40721         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40722         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40723         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40724         * modules/unictype/property-other-math-tests (Files): Likewise.
40725         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40726         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40727         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40728         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40729         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40730         * modules/unictype/property-private-use-tests (Files): Likewise.
40731         * modules/unictype/property-punctuation-tests (Files): Likewise.
40732         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40733         * modules/unictype/property-radical-tests (Files): Likewise.
40734         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40735         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40736         * modules/unictype/property-space-tests (Files): Likewise.
40737         * modules/unictype/property-terminal-punctuation-tests (Files):
40738         Likewise.
40739         * modules/unictype/property-test-tests (Files): Likewise.
40740         * modules/unictype/property-titlecase-tests (Files): Likewise.
40741         * modules/unictype/property-unassigned-code-value-tests (Files):
40742         Likewise.
40743         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40744         * modules/unictype/property-uppercase-tests (Files): Likewise.
40745         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40746         * modules/unictype/property-white-space-tests (Files): Likewise.
40747         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40748         * modules/unictype/property-xid-start-tests (Files): Likewise.
40749         * modules/unictype/property-zero-width-tests (Files): Likewise.
40750         * modules/unictype/scripts-tests (Files): Likewise.
40751         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40752         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40753         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40754         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40755         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40756         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40757         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40758         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40759         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40760         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40761         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40762         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40763         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40764         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40765         * modules/uninorm/composition-tests (Files): Likewise.
40766         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40767         * modules/uninorm/decomposition-tests (Files): Likewise.
40768         * modules/uninorm/filter-tests (Files): Likewise.
40769         * modules/uninorm/nfc-tests (Files): Likewise.
40770         * modules/uninorm/nfd-tests (Files): Likewise.
40771         * modules/uninorm/nfkc-tests (Files): Likewise.
40772         * modules/uninorm/nfkd-tests (Files): Likewise.
40773         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40774         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40775         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40776         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40777         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40778         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40779         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40780         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40781         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40782         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40783         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40784         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40785         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40786         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40787         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40788         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40789         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40790         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40791         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40792         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40793         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40794         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40795         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40796         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40797         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40798         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40799         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40800         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40801         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40802         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40803         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40804         * modules/uniwidth/u8-width-tests (Files): Likewise.
40805         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40806         * modules/uniwidth/u16-width-tests (Files): Likewise.
40807         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40808         * modules/uniwidth/u32-width-tests (Files): Likewise.
40809         * modules/uniwidth/width-tests (Files): Likewise.
40810         * modules/unlink-tests (Files): Likewise.
40811         * modules/unsetenv-tests (Files): Likewise.
40812         * modules/usleep-tests (Files): Likewise.
40813         * modules/utimens-tests (Files): Likewise.
40814         * modules/utimensat-tests (Files): Likewise.
40815         * modules/vasnprintf-posix-tests (Files): Likewise.
40816         * modules/vasnprintf-tests (Files): Likewise.
40817         * modules/vasprintf-posix-tests (Files): Likewise.
40818         * modules/vasprintf-tests (Files): Likewise.
40819         * modules/vdprintf-posix-tests (Files): Likewise.
40820         * modules/vfprintf-posix-tests (Files): Likewise.
40821         * modules/vprintf-posix-tests (Files): Likewise.
40822         * modules/vsnprintf-posix-tests (Files): Likewise.
40823         * modules/vsnprintf-tests (Files): Likewise.
40824         * modules/vsprintf-posix-tests (Files): Likewise.
40825         * modules/wcrtomb-tests (Files): Likewise.
40826         * modules/wcsnrtombs-tests (Files): Likewise.
40827         * modules/wcsrtombs-tests (Files): Likewise.
40828         * modules/wctype-tests (Files): Likewise.
40829         * modules/wcwidth-tests (Files): Likewise.
40830         * modules/xmemdup0-tests (Files): Likewise.
40831         * modules/xprintf-posix-tests (Files): Likewise.
40832         * modules/xvasprintf-tests (Files): Likewise.
40833
40834 2009-12-24  Eric Blake  <ebb9@byu.net>
40835
40836         test-nanosleep: fix typo
40837         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40838         patch.
40839         Reported by Bruno Haible.
40840
40841 2009-12-24  Bruno Haible  <bruno@clisp.org>
40842
40843         Reduce namespace pollution on glibc systems.
40844         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40845         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40846         systems.
40847         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40848         <getopt.h> on glibc systems.
40849         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40850         systems.
40851         * lib/fcntl.c: Include <unistd.h> here instead.
40852
40853 2009-12-24  Bruno Haible  <bruno@clisp.org>
40854
40855         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40856
40857 2009-12-24  Eric Blake  <ebb9@byu.net>
40858
40859         tests: add signature checks
40860         * tests/signature.h (SIGNATURE_CHECK): New file.
40861         * modules/atexit-tests (Files): Use it.
40862         * modules/btowc-tests (Files): Likewise.
40863         * modules/canonicalize-lgpl-tests (Files): Likewise.
40864         * modules/ceilf-tests (Files): Likewise.
40865         * modules/ceill-tests (Files): Likewise.
40866         * modules/chown-tests (Files): Likewise.
40867         * modules/dprintf-posix-tests (Files): Likewise.
40868         * modules/dup2-tests (Files): Likewise.
40869         * modules/dup3-tests (Files): Likewise.
40870         * modules/duplocale-tests (Files): Likewise.
40871         * modules/fchdir-tests (Files): Likewise.
40872         * modules/fcntl-tests (Files): Likewise.
40873         * modules/fdopendir-tests (Files): Likewise.
40874         * modules/fflush-tests (Files): Likewise.
40875         * modules/flock-tests (Files): Likewise.
40876         * modules/floorf-tests (Files): Likewise.
40877         * modules/floorl-tests (Files): Likewise.
40878         * modules/fnmatch-tests (Files): Likewise.
40879         * modules/fopen-tests (Files): Likewise.
40880         * modules/fprintf-posix-tests (Files): Likewise.
40881         * modules/freopen-tests (Files): Likewise.
40882         * modules/frexp-nolibm-tests (Files): Likewise.
40883         * modules/frexp-tests (Files): Likewise.
40884         * modules/frexpl-nolibm-tests (Files): Likewise.
40885         * modules/frexpl-tests (Files): Likewise.
40886         * modules/fseek-tests (Files): Likewise.
40887         * modules/fseeko-tests (Files): Likewise.
40888         * modules/fsync-tests (Files): Likewise.
40889         * modules/ftell-tests (Files): Likewise.
40890         * modules/ftello-tests (Files): Likewise.
40891         * modules/futimens-tests (Files): Likewise.
40892         * modules/getaddrinfo-tests (Files): Likewise.
40893         * modules/getcwd-tests (Files): Likewise.
40894         * modules/getdelim-tests (Files): Likewise.
40895         * modules/getdtablesize-tests (Files): Likewise.
40896         * modules/getgroups-tests (Files): Likewise.
40897         * modules/gethostname-tests (Files): Likewise.
40898         * modules/getline-tests (Files): Likewise.
40899         * modules/getopt-posix-tests (Files): Likewise.
40900         * modules/gettimeofday-tests (Files): Likewise.
40901         * modules/glob-tests (Files): Likewise.
40902         * modules/iconv-tests (Files): Likewise.
40903         * modules/inet_ntop-tests (Files): Likewise.
40904         * modules/inet_pton-tests (Files): Likewise.
40905         * modules/isblank-tests (Files): Likewise.
40906         * modules/lchown-tests (Files): Likewise.
40907         * modules/ldexpl-tests (Files): Likewise.
40908         * modules/link-tests (Files): Likewise.
40909         * modules/linkat-tests (Files): Likewise.
40910         * modules/lseek-tests (Files): Likewise.
40911         * modules/lstat-tests (Files): Likewise.
40912         * modules/mbrtowc-tests (Files): Likewise.
40913         * modules/mbsinit-tests (Files): Likewise.
40914         * modules/mbsnrtowcs-tests (Files): Likewise.
40915         * modules/mbsrtowcs-tests (Files): Likewise.
40916         * modules/memchr-tests (Files): Likewise.
40917         * modules/memcmp-tests (Files): Likewise.
40918         * modules/memmem-tests (Files): Likewise.
40919         * modules/memrchr-tests (Files): Likewise.
40920         * modules/mkdir-tests (Files): Likewise.
40921         * modules/mkfifo-tests (Files): Likewise.
40922         * modules/mkfifoat-tests (Files): Likewise.
40923         * modules/mknod-tests (Files): Likewise.
40924         * modules/nanosleep-tests (Files): Likewise.
40925         * modules/nl_langinfo-tests (Files): Likewise.
40926         * modules/obstack-printf-tests (Files): Likewise.
40927         * modules/open-tests (Files): Likewise.
40928         * modules/openat-tests (Files): Likewise.
40929         * modules/perror-tests (Files): Likewise.
40930         * modules/pipe2-tests (Files): Likewise.
40931         * modules/poll-tests (Files): Likewise.
40932         * modules/popen-tests (Files): Likewise.
40933         * modules/posix_spawn-tests (Files): Likewise.
40934         * modules/posix_spawnp-tests (Files): Likewise.
40935         * modules/pread-tests (Files): Likewise.
40936         * modules/printf-posix-tests (Files): Likewise.
40937         * modules/pty-tests (Files): Likewise.
40938         * modules/random_r-tests (Files): Likewise.
40939         * modules/rawmemchr-tests (Files): Likewise.
40940         * modules/readlink-tests (Files): Likewise.
40941         * modules/remove-tests (Files): Likewise.
40942         * modules/rename-tests (Files): Likewise.
40943         * modules/renameat-tests (Files): Likewise.
40944         * modules/rmdir-tests (Files): Likewise.
40945         * modules/round-tests (Files): Likewise.
40946         * modules/roundf-tests (Files): Likewise.
40947         * modules/roundl-tests (Files): Likewise.
40948         * modules/select-tests (Files): Likewise.
40949         * modules/setenv-tests (Files): Likewise.
40950         * modules/sigaction-tests (Files): Likewise.
40951         * modules/sleep-tests (Files): Likewise.
40952         * modules/snprintf-posix-tests (Files): Likewise.
40953         * modules/snprintf-tests (Files): Likewise.
40954         * modules/sprintf-posix-tests (Files): Likewise.
40955         * modules/stat-tests (Files): Likewise.
40956         * modules/strcasestr-tests (Files): Likewise.
40957         * modules/strchrnul-tests (Files): Likewise.
40958         * modules/strerror-tests (Files): Likewise.
40959         * modules/strsignal-tests (Files): Likewise.
40960         * modules/strstr-tests (Files): Likewise.
40961         * modules/strtod-tests (Files): Likewise.
40962         * modules/strverscmp-tests (Files): Likewise.
40963         * modules/symlink-tests (Files): Likewise.
40964         * modules/symlinkat-tests (Files): Likewise.
40965         * modules/times-tests (Files): Likewise.
40966         * modules/trunc-tests (Files): Likewise.
40967         * modules/truncf-tests (Files): Likewise.
40968         * modules/truncl-tests (Files): Likewise.
40969         * modules/tsearch-tests (Files): Likewise.
40970         * modules/uname-tests (Files): Likewise.
40971         * modules/unlink-tests (Files): Likewise.
40972         * modules/unsetenv-tests (Files): Likewise.
40973         * modules/usleep-tests (Files): Likewise.
40974         * modules/utimensat-tests (Files): Likewise.
40975         * modules/vasprintf-tests (Files): Likewise.
40976         * modules/vdprintf-posix-tests (Files): Likewise.
40977         * modules/vfprintf-posix-tests (Files): Likewise.
40978         * modules/vprintf-posix-tests (Files): Likewise.
40979         * modules/vsnprintf-posix-tests (Files): Likewise.
40980         * modules/vsnprintf-tests (Files): Likewise.
40981         * modules/vsprintf-posix-tests (Files): Likewise.
40982         * modules/wcrtomb-tests (Files): Likewise.
40983         * modules/wcsnrtombs-tests (Files): Likewise.
40984         * modules/wcsrtombs-tests (Files): Likewise.
40985         * modules/wcwidth-tests (Files): Likewise.
40986         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40987         * tests/test-isinf.c (isinf): Likewise.
40988         * tests/test-isnan.c (isnan): Likewise.
40989         * tests/test-signbit.c (signbit): Likewise.
40990         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40991         declaration, either as macro or with correct signature.
40992         (select): Ensure function under test is declared with correct
40993         signature in correct header.
40994         * tests/test-atexit.c (atexit): Likewise.
40995         * tests/test-btowc.c (btowc): Likewise.
40996         * tests/test-canonicalize-lgpl.c (realpath)
40997         (canonicalize_file_name): Likewise.
40998         * tests/test-ceilf1.c (ceilf): Likewise.
40999         * tests/test-ceill.c (ceill): Likewise.
41000         * tests/test-chown.c (chown): Likewise.
41001         * tests/test-dprintf-posix.c (dprintf): Likewise.
41002         * tests/test-dup2.c (dup2): Likewise.
41003         * tests/test-dup3.c (dup3): Likewise.
41004         * tests/test-duplocale.c (duplocale): Likewise.
41005         * tests/test-fchdir.c (fchdir): Likewise.
41006         * tests/test-fchownat.c (fchownat): Likewise.
41007         * tests/test-fcntl.c (fcntl): Likewise.
41008         * tests/test-fdopendir.c (fdopendir): Likewise.
41009         * tests/test-fflush.c (fflush): Likewise.
41010         * tests/test-flock.c (flock): Likewise.
41011         * tests/test-floorf1.c (floorf): Likewise.
41012         * tests/test-floorl.c (floorl): Likewise.
41013         * tests/test-fnmatch.c (fnmatch): Likewise.
41014         * tests/test-fopen.c (fopen): Likewise.
41015         * tests/test-fprintf-posix.c (fprintf): Likewise.
41016         * tests/test-freopen.c (freopen): Likewise.
41017         * tests/test-frexp.c (frexp): Likewise.
41018         * tests/test-frexpl.c (frexpl): Likewise.
41019         * tests/test-fseek.c (fseek): Likewise.
41020         * tests/test-fseeko.c (fseeko): Likewise.
41021         * tests/test-fstatat.c (fstatat): Likewise.
41022         * tests/test-fsync.c (fsync): Likewise.
41023         * tests/test-ftell.c (ftell): Likewise.
41024         * tests/test-ftello.c (ftello): Likewise.
41025         * tests/test-futimens.c (futimens): Likewise.
41026         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41027         (gai_strerror): Likewise.
41028         * tests/test-getcwd.c (getcwd): Likewise.
41029         * tests/test-getdelim.c (getdelim): Likewise.
41030         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41031         * tests/test-getgroups.c (getgroups): Likewise.
41032         * tests/test-gethostname.c (gethostname): Likewise.
41033         * tests/test-getline.c (getline): Likewise.
41034         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41035         Likewise.
41036         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41037         * tests/test-glob.c (glob, globfree): Likewise.
41038         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41039         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41040         * tests/test-inet_pton.c (inet_pton): Likewise.
41041         * tests/test-isblank.c (isblank): Likewise.
41042         * tests/test-lchown.c (lchown): Likewise.
41043         * tests/test-ldexpl.c (ldexpl): Likewise.
41044         * tests/test-link.c (link): Likewise.
41045         * tests/test-linkat.c (linkat): Likewise.
41046         * tests/test-lseek.c (lseek): Likewise.
41047         * tests/test-lstat.c (lstat): Likewise.
41048         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41049         * tests/test-mbsinit.c (mbsinit): Likewise.
41050         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41051         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41052         * tests/test-memchr.c (memchr): Likewise.
41053         * tests/test-memcmp.c (memcmp): Likewise.
41054         * tests/test-memmem.c (memmem): Likewise.
41055         * tests/test-memrchr.c (memrchr): Likewise.
41056         * tests/test-mkdir.c (mkdir): Likewise.
41057         * tests/test-mkdirat.c (mkdirat): Likewise.
41058         * tests/test-mkfifo.c (mkfifo): Likewise.
41059         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41060         * tests/test-mknod.c (mknod): Likewise.
41061         * tests/test-nanosleep.c (nanosleep): Likewise.
41062         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41063         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41064         Likewise.
41065         * tests/test-open.c (open): Likewise.
41066         * tests/test-openat.c (openat): Likewise.
41067         * tests/test-perror.c (perror): Likewise.
41068         * tests/test-pipe2.c (pipe2): Likewise.
41069         * tests/test-poll.c (poll): Likewise.
41070         * tests/test-popen.c (popen, pclose): Likewise.
41071         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41072         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41073         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41074         (posix_spawn_file_actions_destroy)
41075         (posix_spawn_file_actions_addclose)
41076         (posix_spawn_file_actions_addopen)
41077         (posix_spawn_file_actions_adddup2): Likewise.
41078         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41079         * tests/test-pread.c (pread): Likewise.
41080         * tests/test-printf-posix.c (printf): Likewise.
41081         * tests/test-pty.c (openpty, forkpty): Likewise.
41082         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41083         (random_r): Likewise.
41084         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41085         * tests/test-readlink.c (readlink): Likewise.
41086         * tests/test-remove.c (remove): Likewise.
41087         * tests/test-rename.c (rename): Likewise.
41088         * tests/test-renameat.c (renameat): Likewise.
41089         * tests/test-rmdir.c (rmdir): Likewise.
41090         * tests/test-round1.c (round): Likewise.
41091         * tests/test-roundf1.c (roundf): Likewise.
41092         * tests/test-roundl.c (roundl): Likewise.
41093         * tests/test-setenv.c (setenv): Likewise.
41094         * tests/test-sigaction.c (sigaction): Likewise.
41095         * tests/test-sleep.c (sleep): Likewise.
41096         * tests/test-snprintf.c (snprintf): Likewise.
41097         * tests/test-sprintf-posix.c (sprintf): Likewise.
41098         * tests/test-stat.c (stat): Likewise.
41099         * tests/test-stpncpy.c (stpncpy): Likewise.
41100         * tests/test-strcasestr.c (strcasestr): Likewise.
41101         * tests/test-strchrnul.c (strchrnul): Likewise.
41102         * tests/test-strerror.c (strerror): Likewise.
41103         * tests/test-strsignal.c (strsignal): Likewise.
41104         * tests/test-strstr.c (strstr): Likewise.
41105         * tests/test-strtod.c (strtod): Likewise.
41106         * tests/test-strverscmp.c (strverscmp): Likewise.
41107         * tests/test-symlink.c (symlink): Likewise.
41108         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41109         * tests/test-times.c (times): Likewise.
41110         * tests/test-trunc1.c (trunc): Likewise.
41111         * tests/test-truncf1.c (truncf): Likewise.
41112         * tests/test-truncl.c (truncl): Likewise.
41113         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41114         Likewise.
41115         * tests/test-uname.c (uname): Likewise.
41116         * tests/test-unlink.c (unlink): Likewise.
41117         * tests/test-unlinkat.c (unlinkat): Likewise.
41118         * tests/test-unsetenv.c (unsetenv): Likewise.
41119         * tests/test-usleep.c (usleep): Likewise.
41120         * tests/test-utimensat.c (utimensat): Likewise.
41121         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41122         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41123         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41124         * tests/test-vprintf-posix.c (vprintf): Likewise.
41125         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41126         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41127         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41128         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41129         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41130         * tests/test-wcwidth.c (wcwidth): Likewise.
41131
41132         build: pull in conditional headers during GNULIB_POSIXCHECK
41133         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41134         definitions from any conditionally-included headers.
41135         * lib/stdlib.in.h (includes): Likewise.
41136         * lib/unistd.in.h (includes): Likewise.
41137
41138 2009-12-24  Bruno Haible  <bruno@clisp.org>
41139
41140         * tests/test-argv-iter.c: Include header file being tested immediately
41141         after config.h.
41142         * tests/test-base64.c: Likewise.
41143         * tests/test-flock.c: Likewise.
41144         * tests/test-fsync.c: Likewise.
41145         * tests/test-getdate.c: Likewise.
41146         * tests/test-getndelim2.c: Likewise.
41147         * tests/test-isfinite.c: Likewise.
41148         * tests/test-isinf.c: Likewise.
41149         * tests/test-strerror.c: Likewise.
41150         * tests/test-strsignal.c: Likewise.
41151
41152 2009-12-23  Eric Blake  <ebb9@byu.net>
41153
41154         unistd: work around cygwin bug
41155         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41156         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41157         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41158
41159 2009-12-23  Bruno Haible  <bruno@clisp.org>
41160
41161         localename: More tests.
41162         * tests/test-localename.c (SIZEOF): New macro.
41163         (categories): New variable.
41164         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41165         test_locale_name_default): Add test w.r.t. thread locale.
41166         (test_locale_name_thread): New function.
41167         (main): Invoke it.
41168
41169         localename: Make aware of thread locale.
41170         * lib/localename.h (gl_locale_name_thread): New declaration.
41171         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41172         behaviour with respect to thread locale.
41173         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41174         <langinfo.h>, glthread/lock.h.
41175         (SIZE_BITS): New macro.
41176         (string_hash): New function.
41177         (struct hash_node): New type.
41178         (HASH_TABLE_SIZE): New macro.
41179         (struniq_hash_table, struniq_lock): New variables.
41180         (struniq): New function.
41181         (gl_locale_name_thread): New function.
41182         (gl_locale_name): Invoke it.
41183         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41184         * modules/localename (Depends-on): Add lock.
41185         Reported by Mike Gran <spk121@yahoo.com>.
41186
41187 2009-12-23  Eric Blake  <ebb9@byu.net>
41188
41189         va-args: new module
41190         * modules/va-args: New file.
41191         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41192         * MODULES.html.sh (Core language properties): Mention it.
41193
41194         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41195         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41196         named alias for __attribute__((__unused__)).
41197         * lib/chown.c: Update client.
41198         * lib/fchmodat.c: Likewise.
41199         * lib/fts.c: Likewise.
41200         * lib/getdate.y: Likewise.
41201         * lib/getgroups.c: Likewise.
41202         * lib/getopt.c: Likewise.
41203         * lib/getugroups.c: Likewise.
41204         * lib/mkdir.c: Likewise.
41205         * lib/mkfifo.c: Likewise.
41206         * lib/mkfifoat.c: Likewise.
41207         * lib/mknod.c: Likewise.
41208         * lib/mknodat.c: Likewise.
41209         * lib/readlink.c: Likewise.
41210         * lib/se-context.in.h: Likewise.
41211         * lib/se-selinux.in.h: Likewise.
41212         * lib/sockets.c: Likewise.
41213         * lib/symlink.c: Likewise.
41214         * lib/symlinkat.c: Likewise.
41215         * lib/unicodeio.c: Likewise.
41216         * lib/unistr.h: Likewise.
41217         * tests/test-areadlink.c: Likewise.
41218         * tests/test-areadlinkat.c: Likewise.
41219         * tests/test-filenamecat.c: Likewise.
41220         * tests/test-fseeko.c: Likewise.
41221         * tests/test-ftello.c: Likewise.
41222         * tests/test-getdate.c: Likewise.
41223         * tests/test-getgroups.c: Likewise.
41224         * tests/test-gethostname.c: Likewise.
41225         * tests/test-quotearg.c: Likewise.
41226         * tests/test-version-etc.c: Likewise.
41227         * tests/test-xalloc-die.c: Likewise.
41228         * tests/test-xfprintf-posix.c: Likewise.
41229         * tests/test-xprintf-posix.c: Likewise.
41230         * tests/test-xvasprintf.c: Likewise.
41231
41232         tests: avoid compiler warnings
41233         * tests/test-fcntl.c (main): Delete unused parameters.
41234         * tests/test-freopen-safer.c (main): Likewise.
41235         * tests/test-xalloc-die.c (main): Mark unused parameters.
41236         * tests/test-fseeko.c (main): Likewise.
41237         * tests/test-ftello.c (main): Likewise.
41238         * tests/test-nanosleep.c (main): Avoid declaration warning.
41239         * tests/test-sleep.c (main): Likewise.
41240         * tests/test-unsetenv.c (main): Silence warning about string
41241         literal.
41242         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41243
41244 2009-12-23  Bruno Haible  <bruno@clisp.org>
41245
41246         * tests/test-localename.c (test_locale_name): New function, extracted
41247         from main. Also test mixed situations.
41248         (test_locale_name_posix, test_locale_name_environ,
41249         test_locale_name_default): New functions.
41250         (main): Invoke them all.
41251         * modules/localename-tests (configure.ac): Test for newlocale.
41252
41253 2009-12-23  Bruno Haible  <bruno@clisp.org>
41254
41255         unistd: Ensure getcwd gets declared before being overridden.
41256         * lib/unistd.in.h: Conditionally include <io.h>.
41257
41258 2009-12-22  Bruno Haible  <bruno@clisp.org>
41259
41260         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41261         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41262         (gl_WCHAR_H): Invoke it.
41263         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41264         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41265         Reported by Karl Berry <karl@freefriends.org>.
41266
41267 2009-12-22  Eric Blake  <ebb9@byu.net>
41268
41269         math, unistd: avoid redundant includes
41270         * lib/math.in.h (isnan): No need to re-include <math.h>.
41271         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41272
41273         getsubopt: work around cygwin bug
41274         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41275         avoid conflicting with system getsubopt.
41276         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41277         bug.
41278
41279         getopt: synchronize from glibc
41280         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41281         parameter order.  Adjust all callers.
41282         (_getopt_internal_r, main): Adjust quoting in error messages.
41283         Drop considerations for outdated POSIX 1003.2 error message.
41284         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41285         callers.
41286         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41287
41288         test-getopt: test stderr behavior
41289         * modules/getopt-posix-tests (Depends-on): Add dup2.
41290         * tests/test-getopt.c (ASSERT): Avoid stderr.
41291         (main): Move stderr to a temporary file.
41292         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41293         Instead, add parameter to inform caller if output occurred.
41294         (test_getopt): Adjust all existing tests to expect silence, and
41295         add new tests of leading ":".
41296         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41297         glibc shortcomings with leading "-:" or "+:" in optstring.
41298         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41299         Likewise.
41300         * doc/posix-functions/getopt.texi (getopt): Likewise.
41301
41302         test-getopt: enhance test
41303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41304         supports optind=0.
41305         * tests/test-getopt.c (OPTIND_MIN): Move...
41306         * tests/test-getopt.h (OPTIND_MIN): ...here.
41307         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41308         Require that optind=0 works, since modern BSD supports it in
41309         addition to optreset, and since coreutils expects it.
41310         (test_getopt_long_only): New test.
41311         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41312         glibc shortcomings with 'W;', and enforcement of optind=0.
41313         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41314         Likewise.
41315
41316 2009-12-21  Bruno Haible  <bruno@clisp.org>
41317
41318         localename: Improvements for MacOS X and Cygwin.
41319         * lib/localename.h (gl_locale_name_environ): New declaration.
41320         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41321         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41322         (gl_locale_name_posix): Invoke it.
41323         (gl_locale_name_default): Add comments. Use Windows native API also on
41324         Cygwin.
41325
41326 2009-12-21  Bruno Haible  <bruno@clisp.org>
41327
41328         Update list of Win32 locale ids.
41329         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41330         (LANG_SAMI): Renamed from LANG_SAAMI.
41331         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41332         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41333         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41334         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41335         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41336         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41337         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41338         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41339         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41340         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41341         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41342         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41343         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41344         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41345         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41346         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41347         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41348         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41349         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41350         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41351         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41352         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41353         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41354         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41355         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41356         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41357         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41358         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41359         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41360         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41361         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41362         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41363         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41364         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41365         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41366         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41367         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41368         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41369         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41370         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41371         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41372         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41373         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41374         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41375         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41376         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41377         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41378         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41379         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41380         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41381         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41382         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41383         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41384         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41385         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41386         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41387         Add more languages and countries for Sami, Sorbian. Add more countries
41388         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41389         for Pashto. Change country for Syriac, Tswana.
41390
41391 2009-12-21  Eric Blake  <ebb9@byu.net>
41392
41393         test-utimens: avoid spurious failure
41394         * tests/test-chown.h (nap): Factor...
41395         * tests/nap.h: ...into new file.
41396         * tests/test-lchown.h (nap): Avoid duplication.
41397         * tests/test-utimens-common.h (nap): Use shared implementation,
41398         necessary on file systems with 1-second resolution.
41399         * modules/chown-tests (Files): Include new file.
41400         * modules/fdutimensat-tests (Files): Likewise.
41401         * modules/futimens-tests (Files): Likewise.
41402         * modules/lchown-tests (Files): Likewise.
41403         * modules/openat-tests (Files): Likewise.
41404         * modules/utimens-tests (Files): Likewise.
41405         * modules/utimensat-tests (Files): Likewise.
41406
41407 2009-12-19  Eric Blake  <ebb9@byu.net>
41408
41409         futimens, utimensat: work around Linux bug
41410         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41411         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41412         * lib/utimensat.c (rpl_utimensat): Work around it.
41413         * lib/futimens.c (rpl_futimens): Adjust comment.
41414
41415         utimens: work around Linux ctime bug
41416         * lib/utimens.c (detect_ctime_bug): New helper function.
41417         (update_timespec): Differentiate between workaround needed for
41418         this bug vs. what is needed for systems that lack utimensat.
41419         (fdutimens, lutimens): Work around bug.
41420
41421         utimens: check for ctime update
41422         * tests/test-utimens-common.h (check_ctime): Define.
41423         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41424         * tests/test-futimens.h (test_futimens): Likewise.
41425         * tests/test-lutimens.h (test_lutimens): Likewise.
41426         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41427         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41428
41429 2009-12-19  Bruno Haible  <bruno@clisp.org>
41430
41431         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41432         * tests/test-dprintf-posix2.sh: New file.
41433         * tests/test-dprintf-posix2.c: New file.
41434         * modules/dprintf-posix-tests (Files): Add them.
41435         (configure.ac): Check for getrlimit and setrlimit.
41436         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41437
41438 2009-12-19  Bruno Haible  <bruno@clisp.org>
41439
41440         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41441         * tests/test-fprintf-posix3.sh: New file.
41442         * tests/test-fprintf-posix3.c: New file.
41443         * modules/fprintf-posix-tests (Files): Add them.
41444         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41445
41446 2009-12-19  Eric Blake  <ebb9@byu.net>
41447
41448         dirfd: fix prototype
41449         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41450         * lib/dirfd.c (dirfd): Likewise.
41451
41452         canonicalize: reduce memory usage
41453         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41454         allocation to size.
41455         Reported by Solar Designer <solar@openwall.com>.
41456
41457 2009-12-19  Bruno Haible  <bruno@clisp.org>
41458
41459         New module attribute 'Applicability'.
41460         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41461         * gnulib-tool: New option --extract-applicability.
41462         (func_usage): Document it.
41463         (sed_extract_prog): Recognize it.
41464         (func_get_applicability): New function.
41465         (func_import): Generalize handling of 'link-warning' module.
41466         * modules/link-warning (Applicability): New section.
41467         * modules/arg-nonnull (Applicability): New section.
41468         Repoted by Simon Josefsson <simon@josefsson.org>.
41469
41470 2009-12-19  Bruno Haible  <bruno@clisp.org>
41471
41472         fflush: tweak
41473         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41474         * lib/fseeko.c (rpl_fseeko): Likewise.
41475
41476 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41477
41478         * lib/gl_list.h: Fix typo in comment.
41479
41480 2009-12-16  Eric Blake  <ebb9@byu.net>
41481
41482         fcntl: use to simplify other modules
41483         * modules/cloexec (Depends-on): Add fcntl.
41484         * modules/fchdir (Depends-on): Likewise.
41485         * modules/fd-safer-flag (Depends-on): Likewise.
41486         * modules/unistd-safer (Depends-on): Likewise.
41487         * modules/dup3 (configure.ac): Set module indicator.
41488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41489         missing.
41490         * lib/fchdir.c (_gl_register_dup): Fix comment.
41491         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41492         * lib/dup-safer.c (dup_safer): Likewise.
41493         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41494         * lib/dup3.c (dup3): Likewise.
41495         * tests/test-fchdir.c (main): Enhance test.
41496         Fixes a dup_cloexec bug reported by Ondřej Vašík.
41497
41498         fcntl: port portions of fcntl to mingw
41499         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41500         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41501         replacement for mingw.
41502         * modules/fcntl (Description): Update.
41503         (Depends-on): Add dup2.
41504         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41505         * modules/fcntl-h (Makefile.am): Substitute it.
41506         * lib/fcntl.in.h (fcntl): Update declaration.
41507         (F_DUPFD, F_GETFD): New macros, when needed.
41508         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41509         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41510         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41511         we now guarantee.
41512
41513         fcntl: work around cygwin bug in F_DUPFD
41514         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41515         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41516         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41517         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41518         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41519
41520         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41521         * modules/fcntl (Files): List new files.
41522         (configure.ac): Run a test.
41523         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41524         * lib/fcntl.c (rpl_fcntl): Likewise.
41525         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41526         (gl_FCNTL_H): Always replace fcntl.h.
41527         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41528         * lib/fcntl.in.h (fcntl): Declare replacement.
41529         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41530         needed, plus a witness.
41531         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41532         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41533         * tests/test-fcntl.c: New file.
41534         * modules/fcntl-tests: Likewise.
41535
41536         binary-io: avoid potential compilation warning
41537         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41538         directives.
41539
41540         fflush: avoid compilation error on NetBSD
41541         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41542         between off_t and fpos_t, since the latter is sometimes a struct.
41543         * lib/fseeko.c (rpl_fseeko): Likewise.
41544         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41545
41546 2009-12-15  Eric Blake  <ebb9@byu.net>
41547
41548         fcntl-h, stdio, sys_ioctl: fix declarations
41549         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41550         function must not take arguments.
41551         * lib/sys_ioctl.in.h (ioctl): Likewise.
41552         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41553         (open): Add a link warning.
41554
41555 2009-12-15  Jim Meyering  <meyering@redhat.com>
41556
41557         areadlink, areadlink-with-size: relax license to LGPLv2+
41558         * modules/areadlink (License): Relax to LGPLv2+.
41559         * modules/areadlink-with-size (License): Likewise.
41560
41561 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41562             Bruno Haible  <bruno@clisp.org>
41563
41564         *printf: Fix memory leak.
41565         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41566         * lib/vfprintf.c (vfprintf): Likewise.
41567         * lib/dprintf.c (dprintf): Likewise.
41568         * lib/vdprintf.c (vdprintf): Likewise.
41569
41570 2009-12-14  Eric Blake  <ebb9@byu.net>
41571
41572         accept4: adjust module dependencies
41573         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41574
41575         utimens: one more try at avoiding compiler warning
41576         * lib/utimens.c (lutimens): Lower scope of result.
41577
41578 2009-12-13  Bruno Haible  <bruno@clisp.org>
41579
41580         Move the malloc checking from module 'list' to new module 'xlist'.
41581         * modules/xlist: New file.
41582         * lib/gl_xlist.h: New file.
41583         * lib/gl_xlist.c: New file.
41584         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41585         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41586         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41587         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41588         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41589         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41590         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41591         gl_sortedlist_nx_add): New declarations.
41592         (struct gl_list_implementation): Rename and change methods accordingly.
41593         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41594         (gl_list_nx_create): Renamed from gl_list_create.
41595         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41596         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41597         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41598         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41599         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41600         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41601         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41602         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41603         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41604         gl_list_create_empty.
41605         (gl_list_nx_create): Renamed from gl_list_create.
41606         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41607         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41608         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41609         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41610         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41611         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41612         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41613         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41614         * lib/gl_array_list.c: Don't include xalloc.h.
41615         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41616         NULL upon out-of-memory.
41617         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41618         out-of-memory.
41619         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41620         Change return type to 'int'.
41621         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41622         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41623         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41624         upon out-of-memory.
41625         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41626         upon out-of-memory.
41627         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41628         upon out-of-memory.
41629         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41630         upon out-of-memory.
41631         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41632         out-of-memory.
41633         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41634         Update.
41635         (gl_array_list_implementation): Update.
41636         * lib/gl_carray_list.c: Don't include xalloc.h.
41637         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41638         Return NULL upon out-of-memory.
41639         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41640         out-of-memory.
41641         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41642         Change return type to 'int'.
41643         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41644         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41645         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41646         upon out-of-memory.
41647         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41648         upon out-of-memory.
41649         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41650         out-of-memory.
41651         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41652         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41653         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41654         Update.
41655         (gl_carray_list_implementation): Update.
41656         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41657         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41658         gl_linked_create_empty. Return NULL upon out-of-memory.
41659         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41660         out-of-memory.
41661         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41662         Change return type to 'int'. Return -1 upon out-of-memory.
41663         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41664         out-of-memory.
41665         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41666         upon out-of-memory.
41667         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41668         upon out-of-memory.
41669         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41670         NULL upon out-of-memory.
41671         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41672         upon out-of-memory.
41673         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41674         out-of-memory.
41675         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41676         Update.
41677         * lib/gl_linked_list.c: Don't include xalloc.h.
41678         (gl_linked_list_implementation): Update.
41679         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41680         (add_to_bucket): Change return type to 'int'.
41681         (gl_linkedhash_list_implementation): Update.
41682         * lib/gl_anytree_list1.h (free_subtree): New function.
41683         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41684         gl_tree_create_empty. Return NULL upon out-of-memory.
41685         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41686         Change return type to 'int'. Return -1 upon out-of-memory.
41687         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41688         out-of-memory.
41689         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41690         (gl_tree_remove_node): New function, moved here from
41691         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41692         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41693         Update.
41694         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41695         malloc, not xmalloc. Return NULL upon out-of-memory.
41696         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41697         out-of-memory.
41698         (gl_tree_remove_node_from_tree): New function, extracted from
41699         gl_tree_remove_node.
41700         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41701         upon out-of-memory.
41702         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41703         out-of-memory.
41704         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41705         upon out-of-memory.
41706         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41707         upon out-of-memory.
41708         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41709         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41710         not xmalloc. Return NULL upon out-of-memory.
41711         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41712         out-of-memory.
41713         (gl_tree_remove_node_from_tree): New function, extracted from
41714         gl_tree_remove_node.
41715         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41716         upon out-of-memory.
41717         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41718         out-of-memory.
41719         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41720         upon out-of-memory.
41721         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41722         upon out-of-memory.
41723         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41724         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41725         gl_anytree_list1.h before gl_anyavltree_list2.h.
41726         (gl_avltree_list_implementation): Update.
41727         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41728         gl_anytree_list1.h before gl_anyavltree_list2.h.
41729         (gl_rbtree_list_implementation): Update.
41730         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41731         Change return type to 'int'. Return -1 upon out-of-memory. Use
41732         __builtin_expect.
41733         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41734         (gl_avltreehash_list_implementation): Update.
41735         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41736         (gl_rbtreehash_list_implementation): Update.
41737         * modules/array-list (Depends-on): Remove xalloc.
41738         * modules/carray-list (Depends-on): Likewise.
41739         * modules/linked-list (Depends-on): Likewise.
41740         * modules/linkedhash-list (Depends-on): Likewise.
41741         * modules/avltree-list (Depends-on): Likewise.
41742         * modules/rbtree-list (Depends-on): Likewise.
41743         * modules/avltreehash-list (Depends-on): Likewise.
41744         * modules/rbtreehash-list (Depends-on): Likewise.
41745
41746         * modules/xsublist: New file.
41747         * lib/gl_xsublist.h: New file.
41748         * lib/gl_xsublist.c: New file.
41749         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41750         (gl_sublist_nx_create): New declaration.
41751         * lib/gl_sublist.c: Don't include xalloc.h.
41752         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41753         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41754         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41755         Change return type to 'int'. Return -1 upon out-of-memory.
41756         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41757         upon out-of-memory.
41758         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41759         NULL upon out-of-memory.
41760         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41761         upon out-of-memory.
41762         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41763         NULL upon out-of-memory.
41764         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41765         NULL upon out-of-memory.
41766         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41767         upon out-of-memory.
41768         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41769         (gl_sublist_list_implementation): Update.
41770         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41771         upon out-of-memory.
41772         * modules/sublist (Depends-on): Remove xalloc.
41773
41774         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41775         * tests/test-carray_list.c: Likewise.
41776         * tests/test-linked_list.c: Likewise.
41777         * tests/test-linkedhash_list.c: Likewise.
41778         * tests/test-avltree_list.c: Likewise.
41779         * tests/test-rbtree_list.c: Likewise.
41780         * tests/test-avltreehash_list.c: Likewise.
41781         * tests/test-rbtreehash_list.c: Likewise.
41782         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41783         * modules/carray-list-tests (Makefile.am): Likewise.
41784         * modules/linked-list-tests (Makefile.am): Likewise.
41785         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41786         * modules/avltree-list-tests (Makefile.am): Likewise.
41787         * modules/rbtree-list-tests (Makefile.am): Likewise.
41788         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41789         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41790
41791         * NEWS: Mention the changes.
41792
41793         * lib/clean-temp.c: Include gl_xlist.h.
41794         * modules/clean-temp (Depends-on): Add xlist.
41795
41796         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41797         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41798
41799         * tests/test-array_oset.c: Include gl_xlist.h.
41800         * modules/array-oset-tests (Depends-on): Add xlist.
41801
41802         Reported by José E. Marchesi <jemarch@gnu.org>.
41803
41804 2009-12-13  Bruno Haible  <bruno@clisp.org>
41805
41806         Move the malloc checking from module 'oset' to new module 'xoset'.
41807         * modules/xoset: New file.
41808         * lib/gl_xoset.h: New file.
41809         * lib/gl_xoset.c: New file.
41810         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41811         declarations.
41812         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41813         (struct gl_oset_implementation): Rename and change methods accordingly.
41814         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41815         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41816         'int'. Mark as __warn_unused_result__.
41817         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41818         gl_oset_create_empty.
41819         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41820         'int'.
41821         * lib/gl_array_oset.c: Don't include xalloc.h.
41822         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41823         malloc, not xmalloc.
41824         (grow): Change return type to 'int'. Don't call xalloc_die.
41825         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41826         to 'int'.
41827         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41828         'int'.
41829         (gl_array_oset_implementation): Update.
41830         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41831         gl_tree_create_empty.
41832         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41833         'int'.
41834         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41835         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41836         xmalloc.
41837         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41838         not xmalloc.
41839         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41840         xmalloc.
41841         (gl_avltree_oset_implementation): Update.
41842         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41843         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41844         xmalloc.
41845         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41846         not xmalloc.
41847         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41848         xmalloc.
41849         (gl_rbtree_oset_implementation): Update.
41850         * modules/array-oset (Depends-on): Remove xalloc.
41851         * modules/avltree-oset (Depends-on): Likewise.
41852         * modules/rbtree-oset (Depends-on): Likewise.
41853         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41854         * tests/test-avltree_oset.c: Likewise.
41855         * tests/test-rbtree_oset.c: Likewise.
41856         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41857         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41858         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41859         * NEWS: Mention the change.
41860
41861 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41862
41863         maint.mk: allow a project to override release-prep commands
41864         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41865         commands into a new rule.
41866         (release-prep): New rule.
41867         (release-prep-hook): New overridable variable.
41868
41869 2009-12-13  Bruno Haible  <bruno@clisp.org>
41870
41871         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41872
41873 2009-12-13  Jim Meyering  <meyering@redhat.com>
41874
41875         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41876         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41877
41878 2009-12-12  Bruno Haible  <bruno@clisp.org>
41879
41880         duplocale: Tweak.
41881         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41882
41883 2009-12-12  Karl Berry  <karl@gnu.org>
41884
41885         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41886
41887 2009-12-12  Bruno Haible  <bruno@clisp.org>
41888
41889         * m4/po.m4: Undo incorrect untabification.
41890
41891 2009-12-12  Bruno Haible  <bruno@clisp.org>
41892
41893         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41894         * modules/c-strtod (Depends-on): Add locale.
41895         * modules/c-strtold (Depends-on): Likewise.
41896
41897 2009-12-12  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41900
41901 2009-12-11  Eric Blake  <ebb9@byu.net>
41902
41903         setenv: relax requirement in light of POSIX ruling
41904         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41905         not NULL.
41906         * tests/test-setenv.c (main): Relax test.
41907         * tests/test-unsetenv.c (main): Likewise.
41908         * doc/posix-functions/setenv.texi (setenv): Document this.
41909         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41910
41911 2009-12-11  Bruno Haible  <bruno@clisp.org>
41912
41913         New module 'fd-safer-flag'.
41914         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41915         * lib/dup-safer.c (dup_safer_flag): Remove function.
41916         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41917         * lib/fd-safer.c (fd_safer_flag): Remove function.
41918         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41919         * modules/cloexec (configure.ac): Drop indicator macro.
41920         * modules/fd-safer-flag: New file.
41921         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41922         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41923         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41924
41925 2009-12-11  Bruno Haible  <bruno@clisp.org>
41926
41927         Tests for module 'nl_langinfo'.
41928         * modules/nl_langinfo-tests: New file.
41929         * tests/test-nl_langinfo.sh: New file.
41930         * tests/test-nl_langinfo.c: New file.
41931
41932         New module 'nl_langinfo'.
41933         * lib/nl_langinfo.c: New file.
41934         * m4/nl_langinfo.m4: New file.
41935         * modules/nl_langinfo: New file.
41936         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41937
41938 2009-12-11  Bruno Haible  <bruno@clisp.org>
41939
41940         Tests for module 'langinfo'.
41941         * modules/langinfo-tests: New file.
41942         * tests/test-langinfo.c: New file.
41943
41944         New module 'langinfo'.
41945         * lib/langinfo.in.h: New file.
41946         * m4/langinfo_h.m4: New file.
41947         * modules/langinfo: New file.
41948         * doc/posix-headers/langinfo.texi: Mention the new module.
41949
41950 2009-12-11  Bruno Haible  <bruno@clisp.org>
41951
41952         * lib/config.charset: Untabify.
41953
41954 2009-12-11  Bruno Haible  <bruno@clisp.org>
41955
41956         * modules/unistd-safer (configure.ac): Drop indicator macro.
41957
41958 2009-12-11  Bruno Haible  <bruno@clisp.org>
41959
41960         Move pipe2-safer code to its own file.
41961         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41962         * lib/pipe-safer.c (pipe2_safer): Remove function.
41963         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41964         (Makefile.am): Add it to lib_SOURCES.
41965
41966 2009-12-10  Bruno Haible  <bruno@clisp.org>
41967
41968         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41969
41970 2009-12-10  Bruno Haible  <bruno@clisp.org>
41971
41972         Declare which arguments expect non-NULL values, for GCC and clang.
41973         * build-aux/arg-nonnull.h: New file.
41974         * modules/arg-nonnull: New file.
41975         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41976         (inet_ntop, inet_pton): Use it.
41977         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41978         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41979         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41980         (open, openat): Use it.
41981         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41982         (fnmatch): Use it.
41983         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41984         (getopt, getopt_long, getopt_long_only): Use it.
41985         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41986         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41987         Use it.
41988         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41989         (iconv_open): Use it.
41990         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41991         (strtoimax, strtoumax): Use it.
41992         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41993         (duplocale): Use it.
41994         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41995         (frexp, frexpl): Use it.
41996         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41997         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41998         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41999         (tsearch, tfind, tdelete, twalk): Use it.
42000         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42001         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42002         sigpending): Use it.
42003         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42004         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42005         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42006         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42007         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42008         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42009         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42010         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42011         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42012         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42013         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42014         Use it.
42015         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42016         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42017         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42018         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42019         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42020         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42021         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42022         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42023         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42024         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42025         strtoull, unsetenv): Use it.
42026         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42027         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42028         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42029         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42030         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42031         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42032         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42033         (strcasecmp, strncasecmp): Use it.
42034         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42035         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42036         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42037         rpl_setsockopt): Use it.
42038         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42039         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42040         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42041         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42042         (gettimeofday): Use it.
42043         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42044         (times): Use it.
42045         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42046         (uname): Use it.
42047         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42048         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42049         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42050         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42051         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42052         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42053         unlinkat, write): Use it.
42054         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42055         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42056         * lib/argv-iter.h: Include arg-nonnull.h.
42057         (_ATTRIBUTE_NONNULL_): Remove macro.
42058         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42059         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42060         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42061         optimization.
42062         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42063         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42064         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42065         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42066         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42067         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42068         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42069         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42070         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42071         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42072         * modules/dirent (Depends-on): Add arg-nonnull.
42073         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42074         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42075         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42076         * modules/fnmatch (Depends-on): Add arg-nonnull.
42077         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42078         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42079         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42080         * modules/glob (Depends-on): Add arg-nonnull.
42081         (Makefile.am): Insert arg-nonnull.h into glob.h.
42082         * modules/iconv_open (Depends-on): Add arg-nonnull.
42083         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42084         * modules/inttypes (Depends-on): Add arg-nonnull.
42085         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42086         * modules/locale (Depends-on): Add arg-nonnull.
42087         (Makefile.am): Insert arg-nonnull.h into locale.h.
42088         * modules/math (Depends-on): Add arg-nonnull.
42089         (Makefile.am): Insert arg-nonnull.h into math.h.
42090         * modules/netdb (Depends-on): Add arg-nonnull.
42091         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42092         * modules/search (Depends-on): Add arg-nonnull.
42093         (Makefile.am): Insert arg-nonnull.h into search.h.
42094         * modules/signal (Depends-on): Add arg-nonnull.
42095         (Makefile.am): Insert arg-nonnull.h into signal.h.
42096         * modules/spawn (Depends-on): Add arg-nonnull.
42097         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42098         * modules/stdio (Depends-on): Add arg-nonnull.
42099         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42100         * modules/stdlib (Depends-on): Add arg-nonnull.
42101         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42102         * modules/string (Depends-on): Add arg-nonnull.
42103         (Makefile.am): Insert arg-nonnull.h into string.h.
42104         * modules/strings (Depends-on): Add arg-nonnull.
42105         (Makefile.am): Insert arg-nonnull.h into strings.h.
42106         * modules/sys_socket (Depends-on): Add arg-nonnull.
42107         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42108         * modules/sys_stat (Depends-on): Add arg-nonnull.
42109         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42110         * modules/sys_time (Depends-on): Add arg-nonnull.
42111         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42112         * modules/sys_times (Depends-on): Add arg-nonnull.
42113         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42114         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42115         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42116         * modules/time (Depends-on): Add arg-nonnull.
42117         (Makefile.am): Insert arg-nonnull.h into time.h.
42118         * modules/unistd (Depends-on): Add arg-nonnull.
42119         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42120         * modules/wchar (Depends-on): Add arg-nonnull.
42121         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42122         * modules/argv-iter (Depends-on): Add arg-nonnull.
42123         * tests/test-canonicalize.c (null_ptr): New function.
42124         (main): Use it.
42125         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42126         (main): Use it.
42127         * tests/test-memmem.c (null_ptr): New function.
42128         (main): Use it.
42129         Reported by Jim Meyering.
42130
42131 2009-12-10  Bruno Haible  <bruno@clisp.org>
42132
42133         Use spaces for indentation, not tabs.
42134         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42135         * m4/*.m4: Untabify.
42136         * build-aux/*.h: Untabify.
42137         * tests/**/*.[hc]: Untabify.
42138         * README: New section "Indent with spaces, not TABs", based on
42139         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42140         * NEWS: Mention the change.
42141
42142 2009-12-10  Bruno Haible  <bruno@clisp.org>
42143
42144         pty test: Fix link error.
42145         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42146         test_pty_LDADD.
42147
42148 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42149
42150         * modules/pty: New file.
42151         * modules/pty-tests: New file.
42152         * m4/pty.m4: New file.
42153         * tests/test-pty.c: New file.
42154         * doc/glibc-headers/pty.texi: Modified.
42155         * doc/glibc-functions/forkpty.texi: Modified.
42156         * doc/glibc-functions/openpty.texi: Modified.
42157
42158 2009-12-10  Bruno Haible  <bruno@clisp.org>
42159
42160         Avoid syntax error in C++ mode.
42161         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42162
42163 2009-12-10  Bruno Haible  <bruno@clisp.org>
42164
42165         Use sed with option -e.
42166         * gnulib-tool (func_version, func_emit_copyright_notice,
42167         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42168         option -e to sed.
42169         * modules/link-warning (Makefile.am): Likewise.
42170
42171 2009-12-10  Jim Meyering  <meyering@redhat.com>
42172
42173         mgetgroups: do not write bytes beyond end of malloc'd buffer
42174         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42175         username, we call getgroups with a one-element-shorter buffer,
42176         but still told it the length was original, max_n_groups.
42177
42178 2009-12-09  Eric Blake  <ebb9@byu.net>
42179
42180         cloexec: relax license
42181         * modules/cloexec (Maintainer): Add myself.
42182         (License): Use LGPL, not GPL.
42183
42184         link-warning: optimize generation
42185         * modules/link-warning (Makefile.am): Reduce process usage.
42186
42187 2009-12-09  Bruno Haible  <bruno@clisp.org>
42188
42189         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42190         workaround was added on 2009-11-17.
42191
42192 2009-12-09  Jim Meyering  <meyering@redhat.com>
42193             Bruno Haible  <bruno@clisp.org>
42194
42195         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42196         * modules/link-warning (Makefile.am): Make the comment-removing sed
42197         command more robust in the face of bootstrap-prepended comment lines.
42198
42199 2009-12-09  Bruno Haible  <bruno@clisp.org>
42200
42201         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42202         most one group.
42203
42204 2009-12-09  Simon Josefsson <simon@josefsson.org>
42205             Bruno Haible  <bruno@clisp.org>
42206
42207         * build-aux/link-warning.h: Add copyright notice.
42208         * modules/link-warning (Makefile.am): Generate link-warning.h from
42209         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42210         * NEWS: Mention change in link-warning module.
42211         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42212         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42213         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42214         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42215         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42216         * modules/math (Makefile.am): Add dependency to math.h.
42217         * modules/search (Makefile.am): Add dependency to search.h.
42218         * modules/signal (Makefile.am): Add dependency to signal.h.
42219         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42220         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42221         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42222         * modules/string (Makefile.am): Add dependency to string.h.
42223         * modules/strings (Makefile.am): Add dependency to strings.h.
42224         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42225         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42226         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42227         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42228         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42229         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42230         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42231         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42232         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42233
42234 2009-12-09  Bruno Haible  <bruno@clisp.org>
42235
42236         fchdir: Optimize away rpl_fstat when possible.
42237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42238         REPLACE_OPEN_DIRECTORY.
42239         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42240
42241 2009-12-09  Bruno Haible  <bruno@clisp.org>
42242
42243         * lib/fchdir.c: Update comment.
42244
42245 2009-12-09  Bruno Haible  <bruno@clisp.org>
42246
42247         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42248
42249 2009-12-08  Eric Blake  <ebb9@byu.net>
42250
42251         fchdir: avoid memory leak on re-registration.
42252         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42253
42254 2009-12-08  Jim Meyering  <meyering@redhat.com>
42255
42256         init.sh: avoid Solaris 10 /bin/sh portability problem
42257         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42258         sourced script:
42259           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42260           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42261           bar
42262         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42263         and two tests used that idiom.
42264         * tests/init.sh: Update suggested usage comments.
42265         (path_prepend_): New function, to be used in place
42266         of the --src-path=DIR option.
42267         (setup_): Move PATH-prepending code into path_prepend_.
42268         * tests/test-pread.sh: Adapt to new usage.
42269         * tests/test-xalloc-die.sh: Likewise.
42270
42271 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42272
42273         * doc/gnulib.texi (Glibc pty.h): Add.
42274         * doc/glibc-functions/forkpty.texi: Add.
42275         * doc/glibc-functions/openpty.texi: Add.
42276         Suggested by Bruno Haible.
42277
42278 2009-12-08  Eric Blake  <ebb9@byu.net>
42279
42280         fchdir: fix logic bugs
42281         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42282         * tests/test-fchdir.c (main): Enhance test.
42283         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42284         is in use.
42285
42286         dup2: fix logic bugs
42287         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42288         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42289         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42290         exists.
42291         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42292
42293 2009-12-07  Eric Blake  <ebb9@byu.net>
42294
42295         unlink: fix m4 detection
42296         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42297
42298         unistd-safer: add unit test
42299         * modules/unistd-safer-tests: New file.
42300         * tests/test-dup-safer.c: Likewise.
42301         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42302         * tests/test-dup2.c (setmode): Likewise.
42303         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42304
42305         cloexec: preserve text vs. binary across dup_cloexec
42306         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42307         mode.
42308         * modules/dup2-tests (Depends-on): Add binary-io.
42309         * modules/cloexec-tests (Depends-on): Likewise.
42310         * tests/test-dup2.c (setmode, is_mode): New helpers.
42311         (main): Add tests that translation mode is preserved.
42312         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42313         Reported by Bruno Haible.
42314
42315         mgetgroups: reduce duplicate listings
42316         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42317         resulting array.
42318         * tests/test-chown.h (test_chown): Simplify client.
42319         * tests/test-lchown.h (test_lchown): Likewise.
42320
42321 2009-12-06  Bruno Haible  <bruno@clisp.org>
42322
42323         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42324         value.
42325
42326 2009-12-06  Bruno Haible  <bruno@clisp.org>
42327
42328         * lib/progname.c: Include stdio.h, stdlib.h.
42329         (set_program_name): Reject a NULL argument.
42330
42331 2009-12-05  Eric Blake  <ebb9@byu.net>
42332
42333         pipe2-safer: new module
42334         * modules/pipe2-safer: New file.
42335         * lib/unistd-safer.h (pipe2_safer): New prototype.
42336         * lib/unistd--.h (pipe2): New wrapper.
42337         * lib/pipe-safer.c (pipe2_safer): New function.
42338         * modules/pipe (Depends-on): Add pipe2-safer.
42339         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42340
42341         stdlib-safer: preserve cloexec flag for mkostemp[s]
42342         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42343         fd_safer_flag.
42344
42345         unistd-safer: allow preservation of cloexec status via flag
42346         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42347         prototypes.
42348         * lib/dup-safer.c (dup_safer_flag): New function.
42349         * lib/fd-safer.c (fd_safer_flag): Likewise.
42350         * modules/cloexec (configure.ac): Set witness.
42351
42352         test-dup2: enhance test
42353         * modules/dup2-tests (Depends-on): Add cloexec.
42354         * tests/test-dup2.c (main): Enhance test.
42355
42356         cloexec: add dup_cloexec
42357         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42358         header and comments.
42359         * lib/cloexec.c (set_cloexec_flag): Add comments.
42360         (dup_cloexec): New function, with mingw implementation borrowed
42361         from...
42362         * lib/w32spawn.h (dup_noinherit): ...here.
42363         * modules/execute (Depends-on): Add cloexec.
42364         * modules/pipe (Depends-on): Likewise.
42365         * modules/cloexec (Depends-on): Add dup2.
42366         * modules/cloexec-tests (Files): New file.
42367         * tests/test-cloexec.c: Likewise.
42368
42369         test-xalloc-die: fix test for mingw
42370         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42371         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42372         directory and .exe suffix off argv[0] output.
42373
42374         test-fseeko: fix test for mingw
42375         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42376         than undefining fseek, so test will pass on mingw.
42377
42378 2009-12-05  Bruno Haible  <bruno@clisp.org>
42379
42380         * lib/progname.h (set_program_name): Clarify specification.
42381         * lib/progname.c (set_program_name): Likewise.
42382         Reported by Jim Meyering.
42383
42384 2009-12-05  Jim Meyering  <meyering@redhat.com>
42385
42386         maint.mk: backslash-escape parens in default regexp
42387         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42388         backslash-escape the literal parentheses.
42389
42390         maint.mk: news-date-check: use grep -E
42391         * top/maint.mk (today): Define a Make variable, not a...
42392         (news-date-check): ...shell variable.
42393         (news-date-regexp): Use the Make variable.
42394         Use grep's -E option.  Change the failing diagnostic to mention
42395         the variable, $(news-date-regexp).
42396
42397 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42398
42399         maintainer-makefile: allow customization of NEWS entry format
42400         * top/maint.mk (news-date-regexp): New overridable variable.
42401         (news-date-check): Use it.
42402
42403 2009-12-04  Eric Blake  <ebb9@byu.net>
42404
42405         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42406         * lib/mgetgroups.h (xgetgroups): New prototype.
42407         * lib/mgetgroups.c (xgetgroups): New wrapper.
42408         (mgetgroups): Handle ENOSYS.
42409         * modules/mgetgroups (Depends-on): Add realloc.
42410         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42411
42412         mgetgroups: avoid argument promotion issues with -1
42413         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42414         for invalid gid_t.
42415         * tests/test-chown.h (getegid, test_chown): Likewise.
42416         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42417
42418 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42419
42420         exclude: Fix header file problems.
42421         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42422
42423 2009-12-01  Jim Meyering  <meyering@redhat.com>
42424
42425         fts: fts_open: do not let an empty string cause immediate failure
42426         This is required in support of GNU rm, for which the command
42427         "rm A '' B" must process and remove both A and B, in spite of
42428         the empty string argument.
42429         * lib/fts.c (fts_open): Do not let the presence of an empty string
42430         cause fts_open to fail immediately.  Most fts-using tools must be
42431         able to process all arguments, in order, and can be expected to
42432         diagnose such arguments themselves.
42433
42434 2009-11-30  Eric Blake  <ebb9@byu.net>
42435
42436         utimens: fix compilation error
42437         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42438         Declare variable at right scope.
42439
42440 2009-11-29  Jim Meyering  <meyering@redhat.com>
42441
42442         bootstrap: handle perl-5.11's changed --version output
42443         * build-aux/bootstrap (get_version): Handle perl separately,
42444         since perl-5.11's --version output is different.
42445
42446 2009-11-28  Jim Meyering  <meyering@redhat.com>
42447
42448         userspec: depend on the inttostr module, too
42449         * modules/userspec (Depends-on): Add inttostr.
42450
42451         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42452         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42453         number of MAXUID when it evaluates to (uid_t) -1.
42454         Likewise for group ID.  Reported by Matt McCutchen in
42455         <http://savannah.gnu.org/bugs/?28113>
42456
42457         userspec: reformat to use spaces, not TABs
42458         * lib/userspec.c: Expand TABs to spaces.
42459         Add Emacs' "indent-tabs-mode: nil" hint.
42460
42461 2009-11-27  Eric Blake  <ebb9@byu.net>
42462
42463         getopt-gnu: flush out another BSD bug
42464         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42465         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42466         flush out BSD bug.
42467         * tests/test-getopt.h (test_getopt): End lists with NULL.
42468         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42469         (test_getopt_long_posix): Enhance test.
42470         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42471         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42472         getopt-gnu.
42473         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42474         Likewise.
42475
42476 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42477
42478         * modules/idpriv-droptemp-tests (Notice): Fix text.
42479
42480 2009-11-27  Jim Meyering  <meyering@redhat.com>
42481
42482         test-xalloc-die: avoid spurious failure due to libtool argv difference
42483         In a libtool-enabled project, this test would fail due to a difference
42484         in the emitted program name, e.g.,
42485         -test-xalloc-die: memory exhausted
42486         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42487         Use program to avoid that.
42488         * modules/xalloc-die-tests (Depends-on): Add progname.
42489         * tests/test-xalloc-die.c: Include progname.h".
42490         (program_name): Remove decl.
42491         (main): Call set_program_name.
42492         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42493
42494 2009-11-26  Richard Jones  <rjones@redhat.com>
42495
42496         w32sock: leave win32 error in place.
42497         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42498
42499 2009-11-26  Eric Blake  <ebb9@byu.net>
42500
42501         init.sh: suggest to use skip_ and fail_ functions in comments
42502         * tests/init.sh: Add a sentence.
42503
42504 2009-11-25  Bruno Haible  <bruno@clisp.org>
42505
42506         init.sh: add documentation in comments
42507         * tests/init.sh: Add some developer and user documentation.
42508
42509 2009-11-26  Jim Meyering  <meyering@redhat.com>
42510
42511         init.sh: accommodate even those who specify bogus srcdir manually
42512         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42513         configure-time tests to be sanitized, so that there is no need to
42514         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42515         (with no double quotes) suffices.  However, since tests may be
42516         invoked manually, and since you may explicitly set srcdir to the
42517         name of a directory containing spaces, do quote its uses here.
42518         * tests/test-pread.sh: Likewise.
42519         Suggested by Bruno Haible.
42520
42521         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42522         * tests/test-pread.sh: Write no data into the pipe, because
42523         test-pread actually reads none.  This avoids a diagnostic,
42524         "bash: echo: write error: Broken pipe", that arises in the unusual
42525         event something is ignoring SIGPIPE, and might be interpreted
42526         as some sort of failure.  Reported by Bruno Haible.
42527
42528 2009-11-25  Jim Meyering  <meyering@redhat.com>
42529
42530         test-pread: cover failure with ESPIPE and EINVAL
42531         * tests/test-pread.c (main): Test for failure, too.
42532         * tests/test-pread.sh: Invoke with stdin on a pipe.
42533         Suggested by Eric Blake.
42534
42535         pread: improvement and fix
42536         * modules/pread (Depends-on): Depend on lseek, for portability to
42537         e.g., mingw.  Suggested by Eric Blake.
42538         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42539
42540         unistd.in.h: correct declaration of pread
42541         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42542         Reported by Richard W.M. Jones.
42543
42544         test-pread.sh: distribute the test script
42545         * modules/pread-tests (Files): Include test-pread.sh.
42546
42547         test-pread.sh: clean up
42548         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42549         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42550         That is unnecessary, since it's always ".".
42551         Suggestion from Eric Blake.
42552
42553         test-pread.sh: make executable
42554         * tests/test-pread.sh: Set executable bit.
42555         Reported by Eric Blake.
42556
42557         correct typo in test-pread.sh
42558         * tests/test-pread.sh: Add #! line.
42559
42560         test pread
42561         * tests/test-pread.c: New file.
42562         * tests/test-pread.sh: Likewise.
42563         * modules/pread-tests: Likewise.
42564
42565         pread: new module
42566         * modules/pread: New file.
42567         * lib/unistd.in.h (pread): Define/declare.
42568         * lib/pread.c (pread): New file.
42569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42570         * modules/unistd (Makefile.am): Substitute witnesses.
42571         * doc/posix-functions/pread.texi (pread): Update.
42572         * MODULES.html.sh: Add pread.
42573
42574 2009-11-25  Jim Meyering  <meyering@redhat.com>
42575
42576         tests/init.sh: new file to be used via most *.sh tests
42577         * tests/init.sh: New file.
42578
42579 2009-11-25  Eric Blake  <ebb9@byu.net>
42580
42581         utimens: work around older Linux failure with symlinks
42582         * lib/utimens.c (lutimensat_works_really): New variable.
42583         (fdutimens, lutimens): Use it to manage kernels that support
42584         nanosecond times on files, but not on symlinks.
42585         Reported by Ondřej Vašík.
42586
42587         utimes: fix configure grammar
42588         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42589
42590 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42591
42592         regex: Fix fastmap for multibyte character ranges.
42593         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42594         characters when a multibyte character range is included.
42595
42596 2009-11-22  Andy Wingo  <wingo@pobox.com>
42597
42598         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42599         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42600
42601 2009-11-24  Bruno Haible  <bruno@clisp.org>
42602
42603         doc: Most *_l functions exist in MacOS X 10.5.
42604         * doc/posix-functions/duplocale.texi: Update platforms list.
42605         * doc/posix-functions/freelocale.texi: Likewise.
42606         * doc/posix-functions/newlocale.texi: Likewise.
42607         * doc/posix-functions/uselocale.texi: Likewise.
42608         * doc/posix-functions/isalnum_l.texi: Likewise.
42609         * doc/posix-functions/isalpha_l.texi: Likewise.
42610         * doc/posix-functions/isblank_l.texi: Likewise.
42611         * doc/posix-functions/iscntrl_l.texi: Likewise.
42612         * doc/posix-functions/isdigit_l.texi: Likewise.
42613         * doc/posix-functions/isgraph_l.texi: Likewise.
42614         * doc/posix-functions/islower_l.texi: Likewise.
42615         * doc/posix-functions/isprint_l.texi: Likewise.
42616         * doc/posix-functions/ispunct_l.texi: Likewise.
42617         * doc/posix-functions/isspace_l.texi: Likewise.
42618         * doc/posix-functions/isupper_l.texi: Likewise.
42619         * doc/posix-functions/iswalnum_l.texi: Likewise.
42620         * doc/posix-functions/iswalpha_l.texi: Likewise.
42621         * doc/posix-functions/iswblank_l.texi: Likewise.
42622         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42623         * doc/posix-functions/iswctype_l.texi: Likewise.
42624         * doc/posix-functions/iswdigit_l.texi: Likewise.
42625         * doc/posix-functions/iswgraph_l.texi: Likewise.
42626         * doc/posix-functions/iswlower_l.texi: Likewise.
42627         * doc/posix-functions/iswprint_l.texi: Likewise.
42628         * doc/posix-functions/iswpunct_l.texi: Likewise.
42629         * doc/posix-functions/iswspace_l.texi: Likewise.
42630         * doc/posix-functions/iswupper_l.texi: Likewise.
42631         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42632         * doc/posix-functions/isxdigit_l.texi: Likewise.
42633         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42634         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42635         * doc/posix-functions/strcoll_l.texi: Likewise.
42636         * doc/posix-functions/strfmon_l.texi: Likewise.
42637         * doc/posix-functions/strftime_l.texi: Likewise.
42638         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42639         * doc/posix-functions/strxfrm_l.texi: Likewise.
42640         * doc/posix-functions/tolower_l.texi: Likewise.
42641         * doc/posix-functions/toupper_l.texi: Likewise.
42642         * doc/posix-functions/towctrans_l.texi: Likewise.
42643         * doc/posix-functions/towlower_l.texi: Likewise.
42644         * doc/posix-functions/towupper_l.texi: Likewise.
42645         * doc/posix-functions/wcscoll_l.texi: Likewise.
42646         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42647         * doc/posix-functions/wctrans_l.texi: Likewise.
42648         * doc/posix-functions/wctype_l.texi: Likewise.
42649         * doc/glibc-functions/strptime_l.texi: Likewise.
42650         * doc/glibc-functions/strtod_l.texi: Likewise.
42651         * doc/glibc-functions/strtof_l.texi: Likewise.
42652         * doc/glibc-functions/strtol_l.texi: Likewise.
42653         * doc/glibc-functions/strtold_l.texi: Likewise.
42654         * doc/glibc-functions/strtoll_l.texi: Likewise.
42655         * doc/glibc-functions/strtoul_l.texi: Likewise.
42656         * doc/glibc-functions/strtoull_l.texi: Likewise.
42657         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42658         * doc/glibc-functions/wcstod_l.texi: Likewise.
42659         * doc/glibc-functions/wcstof_l.texi: Likewise.
42660         * doc/glibc-functions/wcstol_l.texi: Likewise.
42661         * doc/glibc-functions/wcstold_l.texi: Likewise.
42662         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42663         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42664         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42665
42666 2009-11-24  Bruno Haible  <bruno@clisp.org>
42667
42668         duplocale: Fix logic bug.
42669         * lib/duplocale.c: Don't include <langinfo.h>.
42670         (_NL_LOCALE_NAME): Remove macro.
42671         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42672         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42673
42674 2009-11-23  Jim Meyering  <meyering@redhat.com>
42675
42676         test-update-copyright: don't hard-code /usr/bin/perl
42677         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42678         perl to print the current year.  Gilles Espinasse reported that
42679         the replaced use of perl was hard-coded as /usr/bin/perl.
42680
42681 2009-11-23  Bruno Haible  <bruno@clisp.org>
42682
42683         duplocale: Add support for glibc 2.3.x.
42684         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42685
42686 2009-11-22  Bruno Haible  <bruno@clisp.org>
42687
42688         vasnprintf: Tiny optimization.
42689         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42690         MacOS X.
42691
42692 2009-11-22  Bruno Haible  <bruno@clisp.org>
42693
42694         Tests for module 'duplocale'.
42695         * modules/duplocale-tests: New file.
42696         * tests/test-duplocale.c: New file.
42697
42698         New module 'duplocale'.
42699         * m4/duplocale.m4: New file.
42700         * lib/locale.in.h (duplocale): New declaration.
42701         * lib/duplocale.c: New file.
42702         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42703         gl_LOCALE_H_DEFAULTS): New macros.
42704         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42705         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42706         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42707         REPLACE_DUPLOCALE.
42708         * modules/duplocale: New file.
42709         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42710
42711 2009-11-22  Bruno Haible  <bruno@clisp.org>
42712
42713         * modules/locale-tests (configure.ac): Test for newlocale function.
42714         * tests/test-locale.c: When the system has extended locale functions,
42715         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42716
42717         locale: Make locale_t available when possible.
42718         * lib/locale.in.h: Include <xlocale.h> when it exists.
42719         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42720         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42721         * modules/locale (Depends-on): Add extensions.
42722         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42723         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42724
42725 2009-11-22  Bruno Haible  <bruno@clisp.org>
42726
42727         Add comments.
42728         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42729         invocation.
42730         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42731         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42732         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42733
42734 2009-11-22  Bruno Haible  <bruno@clisp.org>
42735
42736         error: account for the possibility of freopen (stdout).
42737         * lib/error.c: Include <unistd.h>.
42738         (flush_stdout): New function, extracted from error and error_at_line.
42739         Determine stdout's fd dynamically.
42740         (error, error_at_line): Invoke flush_stdout.
42741         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42742         * modules/error (Depends-on): Add unistd.
42743
42744 2009-11-22  Bruno Haible  <bruno@clisp.org>
42745
42746         diffseq: Add comment.
42747         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42748
42749 2009-11-22  Jim Meyering  <meyering@redhat.com>
42750
42751         c-stack: avoid defining an unused static function
42752         * lib/c-stack.c (find_stack_direction): Do not define this function
42753         when it will not be used.
42754
42755         diffseq: avoid spurious gcc warnings
42756         * lib/diffseq.h (IF_LINT2): Define.
42757         (compareseq): Use it to initialize two members of "part".
42758         This avoids two used-uninitialized warnings.
42759
42760 2009-11-21  Jim Meyering  <meyering@redhat.com>
42761
42762         c-stack: avoid "ignoring return value of `write'" warning
42763         * lib/c-stack.c: Include "ignore-value.h".
42764         (die): Explicitly ignore each write return value.
42765         * modules/c-stack (Depends-on): Add ignore-value.
42766
42767 2009-11-21  Bruno Haible  <bruno@clisp.org>
42768
42769         diffseq: reduce scope of variable 'best'.
42770         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42771         variable, earlier used for two different purposes.
42772
42773 2009-11-21  Jim Meyering  <meyering@redhat.com>
42774
42775         diffseq: remove useless assignment to "best"
42776         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42777         assignment.  At that point "best" is already guaranteed to be zero.
42778
42779 2009-11-20  Eric Blake  <ebb9@byu.net>
42780
42781         build: mention ftp redirector in release announcements
42782         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42783         values that used to come from cfg.mk; mention FTP redirect URL.
42784         * build-aux/announce-gen: Mention the mirror list.
42785         Suggested by Karl Berry.
42786
42787         nanosleep: improve port to mingw
42788         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42790         LIB_NANOSLEEP, but only when needed.
42791         * modules/select (Link): Document LIBSOCKET.
42792         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42793         enough.
42794
42795         nanosleep: work around cygwin bug
42796         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42797         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42798         bug.
42799         (getnow): Delete, not needed.
42800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42801         LIB_CLOCK_GETTIME.
42802         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42803         clock-time, gettime.
42804         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42805         bug.
42806         * modules/nanosleep-tests: New test.
42807         * tests/test-nanosleep.c: New file.
42808
42809         sleep: work around cygwin bug
42810         * lib/sleep.c (rpl_sleep): Work around the bug.
42811         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42812         (gl_PREREQ_SLEEP): Delete unused macro.
42813         * modules/sleep (Depends-on): Add verify.
42814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42815         * modules/unistd (Makefile.am): Substitute witness.
42816         * lib/unistd.in.h (sleep): Update prototype.
42817         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42818         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42819         * modules/sleep-tests (Depends-on): Check for alarm.
42820
42821 2009-11-20  Jim Meyering  <meyering@redhat.com>
42822
42823         maint.mk: improve sc_prohibit_magic_number_exit
42824         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42825         so it does not match uses like System.exit(1).
42826         Add comments showing how to correct all offenders.
42827
42828 2009-11-19  Eric Blake  <ebb9@byu.net>
42829
42830         xalloc-die-tests: add missing library
42831         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42832
42833         test-xvasprintf: silence compiler warnings
42834         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42835         empty string from gcc.
42836
42837 2009-11-19  Jim Meyering  <meyering@redhat.com>
42838
42839         xfreopen: new module, from coreutils
42840         * modules/xfreopen: New module.
42841         * lib/xfreopen.c: New file.
42842         * lib/xfreopen.h: New file.
42843         * MODULES.html.sh (File stream based Input/Output"): Add it.
42844
42845 2009-11-19  Eric Blake  <ebb9@byu.net>
42846
42847         manywarnings: depend on warnings
42848         * modules/manywarnings (Depends-on): Add warnings.
42849
42850         build: avoid compiler warnings
42851         * lib/select.c (rpl_select): Delete unused variable.
42852         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42853
42854 2009-11-18  Eric Blake  <ebb9@byu.net>
42855
42856         tests: avoid false negative with --with-packager
42857         * tests/test-version-etc.sh: Discard packager information.
42858         * tests/test-argp-version-etc-1.sh: Likewise.
42859         Reported by Mike Frysinger.
42860
42861         utimens: fix regression on Solaris
42862         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42863         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42864         can only change fd timestamps via futimesat.  Instead, use an
42865         additional witness macro to avoid BSD bug.
42866         Reported by Jim Meyering.
42867
42868 2009-11-17  Eric Blake  <ebb9@byu.net>
42869
42870         usleep: use it to simplify tests
42871         * modules/stat-time-tests (Depends-on): Add usleep.
42872         (configure.ac): Drop usleep check.
42873         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42874         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42875         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42876         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42877         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42878         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42879         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42880         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42881         Likewise.
42882         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42883         * tests/test-lchown.h (nap): Likewise.
42884         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42885         * tests/test-stat-time.c (nap): Likewise.
42886         * tests/test-utimens-common.h (nap): Update comments.
42887
42888         usleep: new module
42889         * modules/usleep: New file.
42890         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42891         * lib/usleep.c (usleep): Likewise.
42892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42893         * modules/unistd (Makefile.am): Substitute witnesses.
42894         * lib/unistd.in.h (usleep): Add declaration.
42895         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42896         * MODULES.html.sh (Date and time): Likewise.
42897         * modules/usleep-tests (Depends-on): New test.
42898         * tests/test-usleep.c: New file.
42899
42900         chown: work around OpenBSD bug
42901         * lib/chown.c (rpl_chown): Work around the bug.
42902         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42903         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42904         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42905         * modules/chown (Depends-on): Add stdbool.
42906         * modules/lchown (Depends-on): Likewise.
42907         * doc/posix-functions/chown.texi (chown): Document the bug.
42908         * doc/posix-functions/lchown.texi (lchown): Likewise.
42909         * tests/test-lchown.h (test_chown): Relax test.
42910
42911         mkstemp: avoid conflict with C++ keyword template
42912         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42913         * lib/mkostemp.c (mkostemp): Likewise.
42914         * lib/mkostemps.c (mkostemps): Likewise.
42915         * lib/mkstemp.c (mkstemp): Likewise.
42916         * lib/mkstemps.c (mkstemps): Likewise.
42917
42918         xalloc-die-tests: optimize
42919         * tests/test-xalloc-die.sh: Reduce number of processes.
42920
42921 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42922
42923         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42924         patch from ludo@gnu.org (Ludovic Courtès).
42925
42926 2009-11-17  Jim Meyering  <meyering@redhat.com>
42927
42928         version-etc: use proper license string
42929         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42930         * modules/version-etc-fsf: Likewise.
42931
42932 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42933
42934         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42935         printed to stdout.  Deal with EOL differences.
42936
42937 2009-11-17  Eric Blake  <ebb9@byu.net>
42938
42939         unsetenv: work around Solaris bug
42940         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42941         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42942         Reported by Jim Meyering.
42943
42944         vasnprintf: avoid compiler warnings
42945         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42946         variables.
42947         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42948
42949 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42950
42951         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42952         settings since xalloc-die is no longer the self test,
42953         xalloc-die.sh is.
42954
42955 2009-11-17  Jim Meyering  <meyering@redhat.com>
42956
42957         test-xalloc-die.sh: make the code agree with the commit log
42958         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42959         at the end, just in case you happen to have a test-xalloc-die
42960         program in some other PATH directory.
42961
42962         test-xalloc-die.sh: fix a portability bug
42963         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42964         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42965         Otherwise, argv[0] (as often seen in diagnostics) would be too
42966         system-dependent, sometimes with, and sometimes without the leading "./".
42967
42968         version-etc-fsf: relax license to LGPLv3+
42969         * modules/version-etc-fsf (License): Relax license.
42970
42971 2009-11-16  Eric Blake  <ebb9@byu.net>
42972
42973         xalloc-die-tests: avoid printing null pointer
42974         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42975         shell script.
42976         * tests/test-xalloc-die.c (program_name): Declare.
42977         * tests/test-xalloc-die.sh (tmpfiles): New file.
42978
42979         setenv, unsetenv: work around various bugs
42980         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42981         (setenv) [HAVE_SETENV]: Work around bugs.
42982         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42983         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42984         for bugs.
42985         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42986         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42988         * modules/stdlib (Makefile.am): Update substitutions.
42989         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42990         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42991         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42992         * modules/setenv-tests: New test.
42993         * modules/unsetenv-tests: Likewise.
42994         * tests/test-setenv.c: New file.
42995         * tests/test-unsetenv.c: Likewise.
42996
42997 2009-11-16  Jim Meyering  <meyering@redhat.com>
42998
42999         version-etc: relax license to LGPLv3+
43000         * modules/version-etc (License): Relax license.
43001
43002         better AC_REQUIRE expanded-before-required-warning avoidance
43003         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43004         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43005         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43006         which is no longer needed.
43007
43008 2009-11-16  Eric Blake  <ebb9@byu.net>
43009
43010         test-freading: clean up temporary file
43011         * tests/test-freading.c (main): Remove file on success, and use
43012         ASSERT more liberally.
43013         Reported by Jim Meyering.
43014
43015 2009-11-16  Jim Meyering  <meyering@redhat.com>
43016
43017         avoid new AC_REQUIRE expanded-before-required warnings
43018         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43019         merely using it.
43020         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43021         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43022
43023 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43024
43025         * tests/test-xalloc-die.c: New file.
43026         * modules/xalloc-die-tests: New file.
43027         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43028         XFAIL_TESTS so it can be appended by modules.
43029
43030 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43031
43032         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43033         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43034
43035 2009-11-14  Eric Blake  <ebb9@byu.net>
43036
43037         fnmatch: avoid compiler warning
43038         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43039         to silence compiler warning about mismatch signedness in ?:.
43040         Reported by Robert Millan.
43041
43042         intprops: add double-inclusion guard
43043         * lib/intprops.h: Allow idempotent includes.
43044         Suggested by Bruce Korb.
43045
43046         openat: detect Solaris fchownat bug
43047         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43048         penalizing glibc chownat when only lchownat is broken.
43049         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43050         trailing slash bugs.
43051         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43052         * modules/openat-tests (Files): Include more files.
43053         (Depends-on): Add mgetgroups, sleep, stat-time.
43054         (configure.ac): Add additional checks.
43055         (Makefile.am): Build new test.
43056         * tests/test-fchownat.c: New file.
43057
43058         lchown: detect Solaris and FreeBSD bug
43059         * lib/lchown.c (rpl_lchown): Work around bug.
43060         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43062         * modules/unistd (Makefile.am): Populate it.
43063         * lib/unistd.in.h (lchown): Update declaration.
43064         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43065         * modules/lchown-tests: New file.
43066         * tests/test-lchown.h (test_lchown): Likewise.
43067         * tests/test-lchown.c (main): Likewise.
43068
43069         chown: detect Solaris and FreeBSD bug
43070         * lib/chown.c (rpl_chown): Work around bug.
43071         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43072         (gl_PREREQ_CHOWN): Delete.
43073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43074         * modules/unistd (Makefile.am): Populate it.
43075         * lib/unistd.in.h (chown): Update declaration.
43076         * lib/lchown.c (chown): Update client.
43077         * modules/lchown (Depends-on): Add lstat.
43078         * doc/posix-functions/chown.texi (chown): Document the bug.
43079         * doc/posix-functions/getgroups.texi (getgroups): Document
43080         getgroups pitfall.
43081         * modules/chown-tests: New file.
43082         * tests/test-chown.h (test_chown): Likewise.
43083         * tests/test-chown.c (main): Likewise.
43084
43085 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43086
43087         gnulib-tool: correctly detect absence of m4 directories
43088         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43089
43090 2009-11-14  Jim Meyering  <meyering@redhat.com>
43091
43092         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43093         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43094
43095 2009-11-14  John W. Eaton  <jwe@gnu.org>
43096
43097         strftime.h: wrap function declaration in extern "C" block
43098         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43099
43100 2009-11-13  Eric Blake  <ebb9@byu.net>
43101
43102         getgroups: avoid compiler warning
43103         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43104
43105         getgroups: work around FreeBSD bug
43106         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43107         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43108         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43109         * tests/test-getgroups.c (main): Fix buffer overrun.
43110
43111         getgroups: avoid compilation failure
43112         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43113         * modules/getgroups (Depends-on): Add stdint.
43114
43115 2009-11-13  Jim Meyering  <meyering@redhat.com>
43116
43117         test-getgroups: avoid compilation failure
43118         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43119
43120 2009-11-13  Eric Blake  <ebb9@byu.net>
43121
43122         mgetgroups: new module, taken from coreutils
43123         * modules/mgetgroups: New file.
43124         * lib/mgetgroups.h: Likewise.
43125         * lib/mgetgroups.c (mgetgroups): Likewise.
43126         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43127         * MODULES.html.sh (Users and groups): Mention it.
43128
43129         getgroups: don't expose GETGROUPS_T to user
43130         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43131         an element at a time if GETGROUPS_T is wrong size.
43132         * lib/getugroups.h (getugroups): Change signature.
43133         * lib/unistd.in.h (getgroups): Likewise.
43134         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43135         signature needs fixing.
43136         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43137         AC_TYPE_GETGROUPS.
43138         * modules/group-member (Depends-on): Add getgroups.
43139         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43140         (group_member): Rely on getgroups replacement.
43141         * lib/getugroups.c (getugroups): Use gid_t.
43142         * tests/test-getgroups.c (main): Likewise.
43143         * NEWS: Mention the signature change.
43144         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43145         problem with signature.
43146         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43147         GETGROUPS_T is still useful for setgroups.
43148
43149         getgroups, getugroups: provide stubs for mingw
43150         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43151         * lib/getugroups.c (getugroups): Likewise.
43152         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43153         function.  Modernize replacement scheme.
43154         (gl_PREREQ_GETGROUPS): Delete.
43155         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43156         * modules/getgroups (configure.ac): Declare witness.
43157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43158         * modules/unistd (Depends-on): Substitute witness.
43159         * lib/unistd.in.h (getgroups): Declare replacement.
43160
43161         getgroups: avoid calling exit
43162         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43163         drop xalloc.
43164         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43165         dependencies.
43166         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43167         exiting, in the rare case of malloc failure.
43168
43169         getgroups: fix logic error
43170         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43171         has more than 20 groups.
43172         * modules/getgroups-tests: New test.
43173         * tests/test-getgroups.c: New file.
43174
43175 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43176
43177         * tests/test-base64.c: Improve.
43178
43179 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43180
43181         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43182         Blake <ebb9@byu.net>.
43183
43184 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43185
43186         * tests/test-xvasprintf.c: Add %s%s related checks.
43187
43188 2009-11-12  Eric Blake  <ebb9@byu.net>
43189
43190         version-etc: match standards.texi style
43191         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43192         and use <> only for URLs.
43193
43194 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43195
43196         fts: do not fail on a submount during traversal
43197         * lib/fts.c (fts_build): Read the stat info again after opening
43198         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43199         Original report at http://bugzilla.redhat.com/501848.
43200
43201 2009-11-12  Jim Meyering  <meyering@redhat.com>
43202
43203         bootstrap: sync from coreutils
43204         * build-aux/bootstrap (bootstrap_epilogue): New function.
43205         Use git_modules_config in one more place.  This make bootstrap's
43206         --gnulib-srcdir option more useful for testing.
43207
43208         bootstrap: generalize autoheader check
43209         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43210         AC_CONFIG_HEADERS.
43211
43212 2009-11-11  Eric Blake  <ebb9@byu.net>
43213
43214         mkfifoat: use new modules for Solaris and BSD bugs
43215         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43216         * lib/mkfifoat.c (mknodat): Split...
43217         * lib/mknodat.c (mknodat): ...into new file.
43218         * modules/mkfifoat (Files): Ship new file.
43219         (Depends-on): Add mkfifo, mknod.
43220         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43221         (Depends-on): Add symlink.
43222         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43223         redundant with test_mkfifo.h.
43224         (do_mkfifoat, do_mknodat): New helpers.
43225
43226         mknod: new module
43227         * modules/mknod: New file.
43228         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43229         * lib/mknod.c (mknod): Likewise.
43230         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43231         defaults.
43232         * modules/sys_stat (Makefile.am): Substitute them.
43233         * lib/sys_stat.in.h (mknod): Declare replacement.
43234         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43235         Document it.
43236         * doc/posix-functions/mknod.texi (mknod): Likewise.
43237         * modules/mknod-tests: New test.
43238         * tests/test-mknod.c: Likewise.
43239
43240         mkfifo: new module
43241         * modules/mkfifo: New file.
43242         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43243         * lib/mkfifo.c (mkfifo): Likewise.
43244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43245         defaults.
43246         * modules/sys_stat (Makefile.am): Substitute them.
43247         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43248         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43249         Document it.
43250         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43251         * modules/mkfifo-tests: New test.
43252         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43253         from test-mkfifoat.c.
43254         * tests/test-mkfifo.c: New file.
43255
43256         readlink: detect FreeBSD bug
43257         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43258         slash on symlink.
43259         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43260         * tests/test-readlink.h (test_readlink): Enhance test.
43261
43262         symlink: detect FreeBSD bug
43263         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43264         slash on symlink.
43265         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43266         * tests/test-symlink.h (test_symlink): Enhance test.
43267
43268 2009-11-10  Eric Blake  <ebb9@byu.net>
43269
43270         link: detect FreeBSD bug
43271         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43272         symlink.
43273         * doc/posix-functions/link.texi (link): Document the bug.
43274         * tests/test-link.h (test_link): Enhance test.
43275         * tests/test-linkat.c (main): Update caller.
43276
43277         unlink, remove: detect FreeBSD bug
43278         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43279         slash on symlink.
43280         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43281         * doc/posix-functions/remove.texi (remove): Likewise.
43282         * tests/test-unlink.h (test_unlink): Enhance test.
43283         * tests/test-remove.c (main): Likewise.
43284
43285 2009-11-09  Eric Blake  <ebb9@byu.net>
43286
43287         rename: detect FreeBSD bug
43288         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43289         slash on symlink.
43290         * modules/renameat-tests (Depends-on): Add filenamecat.
43291         * tests/test-rename.h (test_rename): Allow one more errno.
43292         * tests/test-renameat.c (main): Likewise.
43293         * doc/posix-functions/rename.texi (rename): Document the bug.
43294
43295         open: detect FreeBSD bug
43296         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43297         symlink.
43298         * doc/posix-functions/open.texi (open): Document the bug.
43299         * doc/posix-functions/utimes.texi (utimes): Likewise.
43300         * tests/test-open.h (test_open): Add parameters, and test symlink
43301         handling.
43302         * tests/test-open.c (main): Adjust caller.
43303         * tests/test-fcntl-safer.c (main): Likewise.
43304         * modules/open-tests (Depends-on): Add stdbool, symlink.
43305         * modules/fcntl-safer-tests (Depends-on): Likewise.
43306         * tests/test-openat.c (main): Add test-open tests.
43307
43308         stat: detect FreeBSD bug
43309         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43310         symlink.
43311         * doc/posix-functions/stat.texi (stat): Document the bug.
43312         * tests/test-stat.h (test_stat_func): Add argument.
43313         * tests/test-stat.c (main): Adjust caller.
43314         * tests/test-fstatat.c (main): Likewise.
43315         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43316         Reported by Jim Meyering.
43317
43318 2009-11-09  James Youngman  <jay@gnu.org>
43319
43320         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43321         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43322
43323 2009-11-08  Jim Meyering  <meyering@redhat.com>
43324
43325         utimens: remove invalid futimesat call
43326         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43327         It used the file descriptor of the target file as the DIR_FD
43328         parameter and NULL as the file name.  That caused failure with
43329         errno == EFAULT on FreeBSD-8.0-rc2
43330
43331 2009-11-07  Eric Blake  <ebb9@byu.net>
43332
43333         fflush, freadseek: use fseeko, not fseek
43334         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43335         (clear_ungetc_buffer): Avoid potential problems on large files.
43336         * lib/freadseek.c (freadseek): Likewise.
43337         * modules/freadseek (Depends-on): Add fseeko.
43338         * modules/fseek (configure.ac): Set a witness.
43339         * tests/test-fflush.c (main): Use fseeko.
43340         * tests/test-fpurge.c (fseek): Disable link warning.
43341         * tests/test-freadable.c (fseek): Likewise.
43342         * tests/test-freading.c (fseek): Likewise.
43343         * tests/test-fseeko.c (fseek): Likewise.
43344         * tests/test-ftell.c (fseek): Likewise.
43345         * tests/test-ftello.c (fseek): Likewise.
43346         * tests/test-fwritable.c (fseek): Likewise.
43347         * tests/test-fwriting.c (fseek): Likewise.
43348
43349 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43350
43351         * modules/memchr (Depends-on): Drop getpagesize dependency.
43352
43353 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43354
43355         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43356         Reported by Ludovic Courtès.
43357         * build-aux/pmccabe2html: Improve example usage.
43358         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43359
43360 2009-11-06  Jim Meyering  <meyering@redhat.com>
43361
43362         do-release-commit-and-tag: New module.
43363         Automate the release-commit and tag process.
43364         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43365         * modules/do-release-commit-and-tag: New file.
43366         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43367
43368 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43369
43370         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43371         because test-select.c uses inet_pton.
43372
43373 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43374
43375         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43376         GETADDRINFO_LIB.  Bump serial number.
43377         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43378         Suggested by Eric Blake <ebb9@byu.net>.
43379
43380 2009-11-05  Eric Blake  <ebb9@byu.net>
43381
43382         strtod: detect darwin bug
43383         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43384         Reported by Leo Davis.
43385
43386         freopen-safer: new module
43387         * modules/freopen-safer: New module.
43388         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43389         * lib/freopen-safer.c (freopen_safer): New file.
43390         * lib/stdio-safer.h (freopen_safer): New declaration.
43391         * lib/stdio--.h (freopen): New override.
43392         * MODULES.html.sh (File stream based Input/Output): Mention it.
43393         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43394         freopen-safer module.
43395         * doc/posix-functions/stderr.texi (stderr): Likewise.
43396         * doc/posix-functions/stdin.texi (stdin): Likewise.
43397         * doc/posix-functions/stdout.texi (stdout): Likewise.
43398         * modules/freopen-safer-tests: New test.
43399         * tests/test-reopen-safer.c: New file.
43400
43401 2009-11-05  Jim Meyering  <meyering@redhat.com>
43402
43403         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43404         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43405
43406 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43407
43408         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43409
43410 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43411
43412         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43413
43414 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43415
43416         Fix link error.
43417         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43418         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43419
43420 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43421
43422         * tests/test-func.c: Also test value of __func__.
43423
43424 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43425
43426         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43427         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43428
43429 2009-11-05  Bruno Haible  <bruno@clisp.org>
43430
43431         Fix link error.
43432         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43433         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43434         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43435
43436 2009-11-05  Bruno Haible  <bruno@clisp.org>
43437
43438         Tests for module 'inet_pton'.
43439         * modules/inet_pton-tests: New file.
43440         * tests/test-inet_pton.c: New file.
43441
43442 2009-11-05  Bruno Haible  <bruno@clisp.org>
43443
43444         Tests for module 'inet_ntop'.
43445         * modules/inet_ntop-tests: New file.
43446         * tests/test-inet_ntop.c: New file.
43447
43448 2009-11-04  Eric Blake  <ebb9@byu.net>
43449
43450         stdlib-safer: wrap all mkstemp variants
43451         * modules/mkostemp (configure.ac): Set witness.
43452         * modules/mkostemps (configure.ac): Likewise.
43453         * modules/mkstemps (configure.ac): Likewise.
43454         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43455         (mkstemps_safer): Wrap more functions.
43456         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43457         wrapping.
43458         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43459         (mkstemps_safer): Implement the wrappers.
43460
43461         mkstemps, mkostemps: new modules
43462         * modules/mkostemps: New module.
43463         * modules/mkstemps: Likewise.
43464         * lib/mkostemps.c (mkostemps): New file.
43465         * lib/mkstemps.c (mkstemps): Likewise.
43466         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43467         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43469         * modules/stdlib (Makefile.am): Substitute them.
43470         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43471         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43472         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43473         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43474         * MODULES.html.sh (File system functions): Mention them.
43475
43476         tempname: resync from glibc
43477         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43478         same values for __GT_FILE as glibc.  Abort even when assertions
43479         are disabled.
43480         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43481         match its value otherwise.  Allow idempotent inclusion.
43482         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43483         * lib/mkostemp.c (mkostemp): Likewise.
43484         * lib/mkstemp.c (mkstemp): Likewise.
43485         * lib/tmpfile.c (tmpfile): Likewise.
43486         * NEWS: Document this.
43487
43488         utimens: fix use of futimens on older Linux
43489         * lib/utimens.c (fdutimens): Use updated, rather than original,
43490         timespec to avoid bug in older Linux kernel.
43491         Reported by Simon Josefsson.
43492
43493 2009-11-04  Bruno Haible  <bruno@clisp.org>
43494
43495         Make num_processors more flexible and consistent.
43496         * lib/nproc.h (enum nproc_query): New type.
43497         (num_processors): Add a 'query' argument.
43498         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43499         (num_processors): Add a 'query' argument. Test the value of the
43500         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43501         mingw, count the number of CPUs available for the current process.
43502         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43503         Check for sched_getaffinity and sched_getaffinity_np.
43504         * modules/nproc (Depends-on): Add c-ctype, extensions.
43505         * NEWS: Mention the change.
43506
43507 2009-11-03  Bruno Haible  <bruno@clisp.org>
43508
43509         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43510
43511 2009-11-03  Jim Meyering  <meyering@redhat.com>
43512
43513         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43514         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43515         if it is defined.
43516
43517 2009-11-02  Eric Blake  <ebb9@byu.net>
43518
43519         mktime, timegm: share common declaration
43520         * lib/mktime-internal.h: New file.
43521         * lib/mktime.c: Use it rather than open-coding a declaration.
43522         * lib/timegm.c: Likewise.
43523         * modules/mktime (Files): Ship it.
43524         * modules/timegm (Files): Likewise.
43525         Suggested by Bruno Haible.
43526
43527         test-update-copyright: update test to match script changes
43528         * tests/test-update-copyright.sh: Avoid hard-coding perl
43529         location.  Don't update *.bak created by earlier runs.
43530
43531 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43532             Simon Josefsson  <simon@josefsson.org>
43533             Bruno Haible  <bruno@clisp.org>
43534
43535         Fix link error on Solaris 8.
43536         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43537         also in libnsl. Define also INET_PTON_LIB.
43538         * modules/inet_pton (Link): New section.
43539
43540 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43541             Bruno Haible  <bruno@clisp.org>
43542
43543         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43544         * modules/inet_ntop (Link): New section.
43545         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43546
43547 2009-11-02  Eric Blake  <ebb9@byu.net>
43548
43549         maint: avoid compiler warnings in m4 macros
43550         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43551         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43552
43553 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43554
43555         * m4/pmccabe2html.m4: Remove file.
43556         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43557         function.  Change maintainer.
43558         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43559         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43560         Courtès).
43561
43562 2009-10-31  Eric Blake  <ebb9@byu.net>
43563
43564         fseeko: fix m4 regression
43565         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43566         regression from 2009-10-27.
43567         Reported by Ralf Wildenhues.
43568
43569 2009-10-31  Jim Meyering  <meyering@redhat.com>
43570
43571         inttostr: aesthetics and improved (compile-time) safety
43572         Define inttype_is_signed rather than inttype_is_unsigned,
43573         since the sole use is via "#if inttype_is_signed".
43574         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43575         inttype_is_unsigned.
43576         * lib/offtostr.c (inttype_is_signed): Likewise.
43577         * lib/uinttostr.c (inttype_is_signed): Likewise.
43578         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43579         * lib/inttostr.c (inttostr): Use verify to cross-check the
43580         inttype_is_signed value and the signedness of the actual type.
43581         * modules/inttostr (Depends-on): Add verify.
43582
43583 2009-10-30  Eric Blake  <ebb9@byu.net>
43584
43585         build: avoid compiler warnings
43586         * lib/fchmodat.c (lchmod): Mark unused variables.
43587         * lib/getopt.c (_getopt_initialize): Likewise.
43588         * lib/mktime.c (__mktime_internal): Provide prototype.
43589         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43590         older gcc that do not understand #pragma GCC diagnostic.
43591         * lib/uinttostr.c (inttype_is_unsigned): Define.
43592         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43593
43594 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43595
43596         stat: fix compilation on AIX
43597         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43598         only see struct stat64.
43599
43600 2009-10-30  Eric Blake  <ebb9@byu.net>
43601
43602         exclude: make more robust
43603         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43604         rather than masking a coding bug.
43605         Suggested by Bruno Haible.
43606
43607 2009-10-30  Jim Meyering  <meyering@redhat.com>
43608
43609         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43610         Rather than putting #!/usr/bin/perl on the first line,
43611         start with a variant of what's recommended by "man perlrun" that
43612         invokes the first "perl" program from your shell's search path.
43613         * build-aux/gitlog-to-changelog: Replace #!... as above.
43614         Add a "Local Variables" perl mode setting.
43615         Prompted by a patch from Ludovic Courtès.
43616         Improved by Eric Blake.
43617         * build-aux/useless-if-before-free: Likewise.
43618         * build-aux/announce-gen: Likewise.
43619         * build-aux/update-copyright: Likewise.
43620
43621 2009-10-29  Eric Blake  <ebb9@byu.net>
43622
43623         filenamecat-lgpl: adjust clients
43624         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43625         filenamecat.
43626         * modules/renameat (Depends-on): Likewise.
43627
43628         filenamecat: split into filenamecat-lgpl
43629         * modules/filenamecat-lgpl: New module.
43630         * modules/filenamecat (Files): Move library-safe files into
43631         filenamecat-lgpl.
43632         (Depends-on): Add filenamecat-lgpl.
43633         (configure.ac): Declare witness.
43634         * lib/filenamecat.h (file_name_concat): Only declare when using
43635         GPL module.
43636         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43637         Move...
43638         * lib/filenamecat-lgpl.c: ...into new file.
43639         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43640         (gl_FILE_NAME_CONCAT): Use it.
43641         * MODULES.html.sh (File system functions): Mention new module.
43642
43643         argp: avoid memory leak
43644         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43645         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43646         base_name, since the latter malloc()s and can call exit().
43647         Leak introduced 2006-07-03.
43648
43649         dirname-lgpl: adjust clients that don't need full dirname
43650         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43651         * modules/filenamecat (Depends-on): Likewise.
43652         * modules/linkat (Depends-on): Likewise.
43653         * modules/mkancesdirs (Depends-on): Likewise.
43654         * modules/mkdir (Depends-on): Likewise.
43655         * modules/openat (Depends-on): Likewise.
43656         * modules/savewd (Depends-on): Likewise.
43657         * modules/rename (Depends-on): Likewise.
43658         (License): Relax license.
43659         * modules/mkdir-tests (Depends-on): Drop progname.
43660         (Makefile.am): Delete unneeded LDADD.
43661         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43662
43663         dirname: split into dirname-lgpl
43664         * modules/dirname-lgpl: New module.
43665         * modules/dirname (Files): Move library-safe files into
43666         dirname-lgpl.
43667         (Depends-on): Add dirname-lgpl.
43668         (configure.ac): Declare witness.
43669         * modules/double-slash-root (License): Relax license.
43670         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43671         module.
43672         * lib/dirname.c (dir_len, mdir_name): Move...
43673         * lib/dirname-lgpl.c: ...into new file.
43674         * lib/basename.c (last_component, base_len): Move...
43675         * lib/basename-lgpl.c: ...into new file.
43676         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43677         (gl_DIRNAME): Use it.
43678         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43679         Mention new module.
43680         * modules/dirname-tests (Depends-on): Add progname.
43681         * tests/test-dirname.c (program_name): Delete.
43682
43683         mkdir: make safe for libraries
43684         * modules/mkdir (Depends-on): Drop xalloc.
43685         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43686         exit.
43687
43688         tests: avoid some compiler warnings
43689         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43690         literals.
43691         * tests/test-memchr.c (main): Avoid type mismatch.
43692         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43693         * tests/test-base64.c (main): Likewise.
43694         * tests/test-getdelim.c (main): Likewise.
43695         * tests/test-gethostname.c (main): Likewise.
43696         * tests/test-getline.c (main): Likewise.
43697         * tests/test-netinet_in.c (main): Likewise.
43698         * tests/test-select.c (open_server_socket, main): Likewise.
43699         * tests/test-select-stdin.c (main): Likewise.
43700         * tests/test-sockets.c (main): Likewise.
43701         * tests/test-strsignal.c (main): Likewise.
43702         * tests/test-sys_select.c (main): Likewise.
43703         * tests/test-sys_socket.c (main): Likewise.
43704         * tests/test-u64.c (main): Likewise.
43705         * tests/test-xfprintf-posix.c (main): Likewise.
43706         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43707
43708         sockets: avoid compiler warning
43709         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43710
43711         maint: detect usage(1) and other suspicious exits
43712         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43713
43714 2009-10-29  Jim Meyering  <meyering@redhat.com>
43715
43716         timespec: long-to-int truncation could make timespec_cmp malfunction
43717         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43718         a multiple of 2^32 nanoseconds as no difference.
43719
43720 2009-10-28  Jim Meyering  <meyering@redhat.com>
43721
43722         fprintftime: wrap macro code argument in "do {...} while(0)"
43723         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43724         cpy macro must be a statement that can be followed by a semicolon.
43725         Now that the else clause contains a comment and is hence longer
43726         than one line, I require curly braces.  That in turn requires
43727         that we wrap this code block in the standard do...while(0).
43728
43729         fprintftime: remove stray semicolon from previous change
43730         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43731
43732         fprintftime: avoid a warning about ignored fwrite return value
43733         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43734         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43735         that is unsafe.
43736         * modules/fprintftime (Depends-on): Add ignore-value.
43737
43738         exclude: avoid an unwarranted warning
43739         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43740
43741 2009-10-27  Eric Blake  <ebb9@byu.net>
43742
43743         fseek: avoid compilation failure when fflush is replaced
43744         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43745         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43746         module is in use.
43747         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43748         module is not in use; since REPLACE_FSEEK worked otherwise.
43749         (GNULIB_FTELLO): Likewise for ftell.
43750         Reported by Ian Beckwith and others.
43751
43752 2009-10-27  Bruno Haible  <bruno@clisp.org>
43753
43754         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43755         Reported by Jim Meyering.
43756
43757 2009-10-27  Jim Meyering  <jim@meyering.net>
43758             Bruno Haible  <bruno@clisp.org>
43759
43760         Avoid warning despite dropping the return value of fwrite.
43761         * lib/unicodeio.c: Include ignore-value.h.
43762         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43763         * modules/unicodeio (Depends-on): Add ignore-value.
43764
43765 2009-10-26  Eric Blake  <ebb9@byu.net>
43766
43767         areadlinkat: fix fallback path
43768         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43769         pointer and zero.
43770
43771 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43772
43773         Use a better IO block size for modern systems
43774         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43775         * lib/md2.c: Likewise.
43776         * lib/md4.c: Likewise.
43777         * lib/md5.c: Likewise.
43778         * lib/sha1.c: Likewise.
43779         * lib/sha256.c: Likewise.
43780         * lib/sha512.c: Likewise.
43781
43782 2009-10-22  Eric Blake  <ebb9@byu.net>
43783
43784         tests: avoid several compiler warnings
43785         * tests/test-getcwd.c (main): Avoid buffer underflow.
43786         * tests/test-getdate.c (main): String literals are not safe with
43787         putenv, so use setenv.  Declare unused argument.
43788         * modules/getdate-tests (Depends-on): Add setenv.
43789         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43790         problems with string literals in char *.
43791         * tests/test-hash.c (main): Avoid shadowing declaration.
43792         (insert_new): Treat string literals as char const *.
43793         * tests/test-getopt.h (test_getopt): Likewise.
43794         (getopt_loop): Alter types to minimize casting elsewhere.
43795         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43796         (test_getopt_long_posix): Likewise.
43797         (do_getopt_long): Add wrapper to minimize casting.
43798         * tests/test-atexit.c (clear_temp_file): Use void.
43799         * tests/test-areadlink-with-size.c (main): Declare unused
43800         arguments.
43801         * tests/test-areadlink.c (main): Likewise.
43802         * tests/test-areadlinkat-with-size.c (main): Likewise.
43803         * tests/test-areadlinkat.c (main): Likewise.
43804         * tests/test-canonicalize-lgpl.c (main): Likewise.
43805         * tests/test-canonicalize.c (main): Likewise.
43806         * tests/test-dirent-safer.c (main): Likewise.
43807         * tests/test-dirname.c (main): Likewise.
43808         * tests/test-dup2.c (main): Likewise.
43809         * tests/test-fchdir.c (main): Likewise.
43810         * tests/test-fcntl-h.c (main): Likewise.
43811         * tests/test-fcntl-safer.c (main): Likewise.
43812         * tests/test-fdopendir.c (main): Likewise.
43813         * tests/test-fdutimensat.c (main): Likewise.
43814         * tests/test-fflush.c (main): Likewise.
43815         * tests/test-filenamecat.c (main): Likewise.
43816         * tests/test-filevercmp.c (main): Likewise.
43817         * tests/test-fopen-safer.c (main): Likewise.
43818         * tests/test-fopen.c (main): Likewise.
43819         * tests/test-fpending.c (main): Likewise.
43820         * tests/test-fpurge.c (main): Likewise.
43821         * tests/test-freading.c (main): Likewise.
43822         * tests/test-fstatat.c (main): Likewise.
43823         * tests/test-fsync.c (main): Likewise.
43824         * tests/test-futimens.c (main): Likewise.
43825         * tests/test-getndelim2.c (main): Likewise.
43826         * tests/test-gettimeofday.c (main): Likewise.
43827         * tests/test-getopt.c (main): Likewise.
43828         * tests/test-i-ring.c (main): Likewise.
43829         * tests/test-inttypes.c (main): Likewise.
43830         * tests/test-link.c (main): Likewise.
43831         * tests/test-lstat.c (main): Likewise.
43832         * tests/test-math.c (main): Likewise.
43833         * tests/test-md5.c (main): Likewise.
43834         * tests/test-memchr2.c (main): Likewise.
43835         * tests/test-memrchr.c (main): Likewise.
43836         * tests/test-mkdir.c (main): Likewise.
43837         * tests/test-mkdirat.c (main): Likewise.
43838         * tests/test-mkfifoat.c (main): Likewise.
43839         * tests/test-open.c (main): Likewise.
43840         * tests/test-openat-safer.c (main): Likewise.
43841         * tests/test-openat.c (main): Likewise.
43842         * tests/test-quotearg.c (main): Likewise.
43843         * tests/test-rawmemchr.c (main): Likewise.
43844         * tests/test-readlink.c (main): Likewise.
43845         * tests/test-remove.c (main): Likewise.
43846         * tests/test-rename.c (main): Likewise.
43847         * tests/test-renameat.c (main): Likewise.
43848         * tests/test-rmdir.c (main): Likewise.
43849         * tests/test-sha1.c (main): Likewise.
43850         * tests/test-signal.c (main): Likewise.
43851         * tests/test-sigaction.c (main): Likewise.
43852         * tests/test-stat.c (main): Likewise.
43853         * tests/test-stat-time.c (main): Likewise.
43854         * tests/test-stddef.c (main): Likewise.
43855         * tests/test-stdint.c (main): Likewise.
43856         * tests/test-stdio.c (main): Likewise.
43857         * tests/test-stdlib.c (main): Likewise.
43858         * tests/test-strchrnul.c (main): Likewise.
43859         * tests/test-strerror.c (main): Likewise.
43860         * tests/test-string.c (main): Likewise.
43861         * tests/test-strtod.c (main): Likewise.
43862         * tests/test-strverscmp.c (main): Likewise.
43863         * tests/test-symlink.c (main): Likewise.
43864         * tests/test-symlinkat.c (main): Likewise.
43865         * tests/test-sys_stat.c (main): Likewise.
43866         * tests/test-sys_time.c (main): Likewise.
43867         * tests/test-time.c (main): Likewise.
43868         * tests/test-unistd.c (main): Likewise.
43869         * tests/test-unlink.c (main): Likewise.
43870         * tests/test-unlinkat.c (main): Likewise.
43871         * tests/test-utimens.c (main): Likewise.
43872         * tests/test-utimensat.c (main): Likewise.
43873         * tests/test-version-etc.c (main): Likewise.
43874         * tests/test-wchar.c (main): Likewise.
43875         * tests/test-wctype.c (main): Likewise.
43876         * tests/test-xprintf-posix.c (main): Likewise.
43877         * tests/test-posixtm.c (main): Likewise.
43878         (STREQ): Delete unused macro.
43879         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43880         shadowed variables.
43881         * tests/test-memchr.c (main): Likewise.
43882
43883 2009-10-21  Eric Blake  <ebb9@byu.net>
43884
43885         areadlinkat: avoid failure on older glibc
43886         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43887         rather than mis-comparing 0 against FUNC_RESULT of char*.
43888
43889 2009-10-21  Bruno Haible  <bruno@clisp.org>
43890
43891         * modules/stpncpy (License): Relicense under LGPLv2+.
43892         Reported by David Lutterkort <lutter@redhat.com>.
43893
43894 2009-10-20  Eric Blake  <ebb9@byu.net>
43895
43896         utimensat: work around Solaris 9 bug
43897         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43898         has trailing slash bugs.
43899         * tests/test-lutimens.h (test_lutimens): Enhance test.
43900         * tests/test-utimens.h (test_utimens): Likewise.
43901         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43902         * doc/posix-functions/utimes.texi (utimes): Likewise.
43903         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43904         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43905         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43906         * doc/posix-functions/futimens.texi (futimens): Likewise.
43907
43908         fdutimensat: new module
43909         * modules/fdutimensat: New file.
43910         * lib/fdutimensat.c (fdutimensat): Likewise.
43911         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43912         * MODULES.html.sh (File system functions): Mention module.
43913         * modules/fdutimensat-tests: New test.
43914         * tests/test-fdutimensat.c: Likewise.
43915
43916         doc: regenerate INSTALL
43917         * doc/INSTALL: Reflect recent autoconf update.
43918         * doc/INSTALL.ISO: Likewise.
43919         * doc/INSTALL.UTF-8: Likewise.
43920
43921 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43922
43923         acl: warn if ACL support is not detected
43924         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43925
43926 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43927
43928         * lib/nproc.h: Add extern "C" block for C++.
43929
43930 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43931             Bruno Haible  <bruno@clisp.org>
43932
43933         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43934         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43935         * doc/posix-functions/isalpha.texi: Likewise.
43936         * doc/posix-functions/isblank.texi: Likewise.
43937         * doc/posix-functions/iscntrl.texi: Likewise.
43938         * doc/posix-functions/isdigit.texi: Likewise.
43939         * doc/posix-functions/isgraph.texi: Likewise.
43940         * doc/posix-functions/islower.texi: Likewise.
43941         * doc/posix-functions/isprint.texi: Likewise.
43942         * doc/posix-functions/ispunct.texi: Likewise.
43943         * doc/posix-functions/isspace.texi: Likewise.
43944         * doc/posix-functions/isupper.texi: Likewise.
43945         * doc/posix-functions/isxdigit.texi: Likewise.
43946
43947 2009-10-18  Bruno Haible  <bruno@clisp.org>
43948
43949         Tests for module 'isblank'.
43950         * modules/isblank-tests: New file.
43951         * tests/test-isblank.c: New file.
43952
43953         New module 'isblank'.
43954         * lib/isblank.c: New file.
43955         * m4/isblank.m4: New file.
43956         * modules/isblank: New file.
43957         * doc/posix-functions/isblank.texi: Mention the new module.
43958
43959 2009-10-18  Bruno Haible  <bruno@clisp.org>
43960
43961         New module 'ctype'.
43962         * lib/ctype.in.h: New file.
43963         * m4/ctype.m4: New file.
43964         * modules/ctype: New file.
43965         * doc/posix-headers/ctype.texi: Mention the new module.
43966
43967 2009-10-18  Jim Meyering  <meyering@redhat.com>
43968
43969         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43970         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43971         right after its initialization, rather than farther down.
43972         Keeping these in close proximity makes it easier to ensure
43973         that each such variable is initialized.  E.g.,
43974
43975             LIB_CLOCK_GETTIME=
43976             AC_SUBST([LIB_CLOCK_GETTIME])
43977
43978         This change also increments these serial numbers.
43979         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43980         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43982
43983 2009-10-18  Bruno Haible  <bruno@clisp.org>
43984
43985         Don't let environment variables perturb build.
43986         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43987         (gl_PREREQ_GETHRXTIME): ... not here.
43988
43989 2009-10-18  Bruno Haible  <bruno@clisp.org>
43990
43991         Avoid symlink attack in localcharset module.
43992         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43993         (O_NOFOLLOW): Define fallback.
43994         (get_charset_aliases): Don't open the file if it is a symbolic link.
43995         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43996         gl_FCNTL_H.
43997         (gl_FCNTL_H): Require it.
43998         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43999         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44000         Reported by Fergal Glynn <fglynn@veracode.com>.
44001
44002 2009-10-18  Bruno Haible  <bruno@clisp.org>
44003
44004         Implement nproc for mingw.
44005         * lib/nproc.c: Include <windows.h>
44006         (num_processors): On native Windows platforms, try GetSystemInfo.
44007
44008 2009-10-18  Bruno Haible  <bruno@clisp.org>
44009
44010         Implement nproc for IRIX.
44011         * lib/nproc.c: Include <sys/sysmp.h>.
44012         (num_processors): On IRIX systems, try sysmp.
44013         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44014
44015 2009-10-18  Bruno Haible  <bruno@clisp.org>
44016
44017         Implement nproc for HP-UX.
44018         * lib/nproc.c: Include <sys/pstat.h>
44019         (num_processors): On HP-UX systems, try pstat_getdynamic.
44020         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44021         pstat_getdynamic.
44022
44023 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44024             Bruno Haible  <bruno@clisp.org>
44025
44026         Implement nproc for NetBSD, OpenBSD.
44027         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44028         (ARRAY_SIZE): New macro.
44029         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44030         * m4/nproc.m4: New file.
44031         * modules/nproc (Files): Add m4/nproc.m4.
44032         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44033         (Makefile.am): Instead, augment lib_SOURCES.
44034
44035 2009-10-18  Bruno Haible  <bruno@clisp.org>
44036
44037         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44038         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44039         sys/param.h.
44040
44041 2009-10-16  Eric Blake  <ebb9@byu.net>
44042
44043         utimensat: new module
44044         * modules/utimensat: New file.
44045         * lib/utimensat.c (utimensat): Likewise.
44046         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44047         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44048         so we can work around Linux bugs.
44049         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44050         * modules/sys_stat (Makefile.am): Substitute them.
44051         * lib/sys_stat.in.h (utimensat): Declare it.
44052         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44053         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44054         * modules/utimensat-tests: New test.
44055         * tests/test-utimensat.c: Likewise.
44056
44057         utimens: let lutimens work on non-symlinks
44058         * lib/utimens.c (lutimens): Fall back to utimens rather than
44059         failing with ENOSYS, when file is not a symlink.
44060         (utimens): Reduce redirection.
44061         * tests/test-lutimens.h (test_lutimens): Update test to cover
44062         non-symlinks.
44063         * tests/test-utimens.h (test_utimens): Update test to cover
44064         symlinks.
44065         * tests/test-utimens.c (main): Update caller.
44066
44067         utimens: cache whether utimensat syscall works
44068         * lib/utimens.c (utimensat_works_really): New cache variable.
44069         (fdutimens, lutimens): Use it to avoid failing syscall.
44070
44071         test-stat-time, test-utimens: improve portability
44072         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44073         ext4 on alpha, and for cygwin.
44074         * tests/test-utimens-common.h: New file.
44075         (nap): Factor delays into single function.
44076         * tests/test-lutimens.h (test_lutimens): Use new header.
44077         * tests/test-futimens.h (test_futimens): Likewise.
44078         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44079         timestamps to occur from same machine, as was done previously for
44080         test_utimens.
44081         * modules/utimens-tests (Files): Ship new file.
44082         * modules/futimens-tests (Files): Likewise.
44083         Reported in part by Jim Meyering.
44084
44085         sys_stat: sort replacement declarations
44086         * lib/sys_stat.in.h: Sort declarations.
44087         * lib/futimens.c (futimens): Fix typo.
44088
44089 2009-10-15  Jim Meyering  <meyering@redhat.com>
44090
44091         don't let environment settings perturb build
44092         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44093         could cause a configure-time and/or build-time malfunction.
44094         Typically, a configure-time function-in-library test is performed
44095         via code like this:
44096
44097           LIB_VAR=
44098           AC_SUBST([LIB_VAR])
44099           prefix_saved_LIBS=$LIBS
44100             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44101                        [test "$ac_cv_search_FUNC" = "none required" ||
44102                         LIB_VAR=$ac_cv_search_FUNC])
44103           LIBS=$prefix_saved_LIBS
44104
44105         However, in each of the files affected by this change, the LIB_VAR=
44106         initialization was omitted.  Thus, when set in the environment, its
44107         value would propagate into generated Makefiles when FUNC is not found
44108         in LIB_NAME.
44109         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44110         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44111         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44112
44113 2009-10-14  Eric Blake  <ebb9@byu.net>
44114
44115         fchdir: avoid infinite recursion in mingw
44116         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44117         recursing.
44118
44119         test-stat-time: port to mingw
44120         * tests/test-stat-time.c (force_unlink): Return a value.
44121         (test_ctime) [W32]: Fix compilation error.
44122         (nap): Don't call usleep with too large an argument.  Use
44123         force_unlink.
44124         * doc/pastposix-functions/usleep.texi (usleep): Document the
44125         portability issue.
44126
44127 2009-10-13  Jim Meyering  <meyering@redhat.com>
44128
44129         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44130         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44131         * modules/pipe-filter-ii: Likewise.
44132         * modules/sys_socket-tests: Likewise.
44133         * modules/tsearch-tests: Likewise.
44134         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44135         (check): Depend on it.
44136
44137 2009-10-12  Eric Blake  <ebb9@byu.net>
44138
44139         utimens-tests: port to NFS file systems
44140         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44141         comparisons to avoid spurious failures from timestamp drift
44142         between NFS machines.
44143
44144 2009-10-12  Eric Blake  <ebb9@byu.net>
44145
44146         stat-time-tests: minor cleanups
44147         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44148         * tests/test-stat-time.c (nap): Separate assignment from call.
44149         Suggested by Paolo Bonzini and Bruno Haible.
44150
44151         sys_stat: guarantee struct timespec
44152         * lib/sys_stat.in.h (includes): Always include <time.h>
44153         * modules/sys_stat (Depends-on): Add time.
44154         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44155         mode_t permission values.
44156         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44157         get at subsecond timestamps.
44158
44159 2009-10-10  Eric Blake  <ebb9@byu.net>
44160
44161         futimens: new module
44162         * modules/futimens: New file.
44163         * lib/futimens.c (futimens): Likewise.
44164         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44165         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44166         we can work around Linux bugs.
44167         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44168         * modules/sys_stat (Makefile.am): Substitute them.
44169         * lib/sys_stat.in.h (futimens): Declare it.
44170         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44171         * doc/posix-functions/futimens.texi (futimens): Likewise.
44172         * modules/futimens-tests: New test.
44173         * tests/test-futimens.c: Likewise.
44174
44175         utimens: introduce fdutimens
44176         * lib/utimens.h (fdutimens): New prototype.
44177         * lib/utimens.c (gl_futimens): Move guts...
44178         (fdutimens): ...to new interface.
44179         * tests/test-utimens.c (do_fdutimens): Use it.
44180
44181         utimens: add UTIME_NOW and UTIME_OMIT support
44182         * lib/utimens.c (validate_timespec, update_timespec): New helper
44183         functions.
44184         (gl_futimens, lutimens): Use them.
44185         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44186         stdbool, sys_stat.
44187         (Link): Mention resulting library dependency.
44188         * modules/utimecmp (Link): Likewise.
44189         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44190         (Makefile.am): Pick up library dependency.
44191         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44192         definition.
44193         * tests/test-sys_stat.c: Test the definitions.
44194         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44195         * NEWS: Document library dependency.
44196
44197         utimecmp: support symlink timestamps
44198         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44199         hashing when possible.  Use pathconf when available.
44200         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44201         * modules/utimecmp (Depends-on): Add lstat.
44202
44203         utimens: add lutimens interface
44204         * lib/utimens.c (lutimens): New function.
44205         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44206         * lib/utimens.h (lutimens): Declare new interface.
44207         * tests/test-utimens.c (main): Enhance test.
44208         * tests/test-lutimens.h (test_lutimens): New file.
44209         * modules/utimens-tests (Files): Distribute it.
44210         (Depends-on): Add symlink.
44211         (configure.ac): Check for usleep.
44212
44213         utimens: validate futimens usage
44214         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44215         fewer syscalls on failure later on.  Avoid compiler warning on
44216         mingw.
44217         * modules/utimens (Depends-on): Add dup2.
44218
44219         utimens: add test
44220         * modules/utimens-tests: New test.
44221         * tests/test-utimens.h: New file.
44222         * tests/test-futimens.h: Likewise.
44223         * tests/test-utimens.c: Likewise.
44224
44225         doc: mention timestamp portability issues
44226         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44227         instead.
44228         * doc/posix-functions/utime.texi (utime): Likewise.
44229         * doc/posix-functions/utimes.texi (utimes): Likewise.
44230         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44231         instead.
44232         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44233         module.
44234         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44235         Mention weakness with symlink timestamps.
44236         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44237         to utimensat/futimens instead.
44238         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44239
44240         test-dup2: enhance test
44241         * tests/test-dup2.c (main): Also check AT_FDCWD.
44242
44243         test-stat-time: avoid more spurious failures
44244         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44245         xfs; and avoid race if the two timestamps cross quantization edge.
44246
44247         relocatable: prefer 'file system' over 'filesystem'
44248         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44249         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44250         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44251         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44252         * lib/relocatable.c (compute_curr_prefix): Likewise.
44253
44254 2009-10-10  Jim Meyering  <meyering@redhat.com>
44255
44256         stat-time-tests: check for the usleep function
44257         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44258
44259 2009-10-10  Bruno Haible  <bruno@clisp.org>
44260
44261         * modules/xnanosleep: Put the Link section after the Include section.
44262
44263 2009-10-09  Eric Blake  <ebb9@byu.net>
44264
44265         dup2: work around FreeBSD 6.1 bug
44266         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44267         * doc/posix-functions/dup2.texi (dup2): Document it.
44268         Reported by Nelson H. F. Beebe and Jim Meyering.
44269
44270         test-stat-time: port to buggy NFS clients
44271         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44272         (test_ctime): Also skip test if mtime and ctime are skewed.
44273
44274         maint: prefer 'file system' over 'filesystem'
44275         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44276         * doc/posix-functions/lstat.texi (lstat): Likewise.
44277         * lib/file-has-acl.c (file_has_acl): Likewise.
44278         * lib/fwriteerror.c [TEST]: Likewise.
44279         * tests/test-areadlink.h (test_areadlink): Likewise.
44280         * tests/test-areadlinkat-with-size.c (main): Likewise.
44281         * tests/test-areadlinkat.c (main): Likewise.
44282         * tests/test-canonicalize-lgpl.c (main): Likewise.
44283         * tests/test-canonicalize.c (main): Likewise.
44284         * tests/test-fstatat.c (main): Likewise.
44285         * tests/test-linkat.c (main): Likewise.
44286         * tests/test-lstat.h (test_lstat_func): Likewise.
44287         * tests/test-mkdir.h (test_mkdir): Likewise.
44288         * tests/test-readlink.h (test_readlink): Likewise.
44289         * tests/test-remove.c (main): Likewise.
44290         * tests/test-rename.h (test_rename): Likewise.
44291         * tests/test-renameat.c (main): Likewise.
44292         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44293         * tests/test-symlink.h (test_symlink): Likewise.
44294         * tests/test-symlinkat.c (main): Likewise.
44295         * tests/test-unlink.h (test_unlink_func): Likewise.
44296         * tests/test-unlinkat.c (main): Likewise.
44297
44298         maint: make realtime library usage explicit
44299         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44300         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44301         * modules/settime (Link): Likewise.
44302         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44303
44304         test-stat-time: speed up execution
44305         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44306         warning on mingw.
44307         (nap): New helper function.
44308         (prepare_test): Use it to reduce sleep time.
44309         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44310         execution.
44311         * modules/stat-time-tests (configure.ac): Check for usleep.
44312
44313 2009-10-09  Jim Meyering  <meyering@redhat.com>
44314
44315         selinux-h: always use getfilecon wrappers
44316         * lib/getfilecon.c: New file.
44317         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44318         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44319         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44320         (fgetfilecon): Provide a stub.
44321         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44322         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44323         file unconditionally.
44324         When <selinux/selinux.h> is found, arrange to use wrappers.
44325         * modules/selinux-h (Files): Add getfilecon.c.
44326         (Makefile.am): Substitute include-next-related bits
44327         into the now-always-generated selinux/selinux.h file.
44328         * doc/glibc-functions/lgetfilecon.texi: New file.
44329         * doc/glibc-functions/fgetfilecon.texi: New file.
44330         * doc/glibc-functions/getfilecon.texi: New file.
44331         * doc/glibc-functions/getfilecon-desc.texi: New file.
44332         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44333         which to pull in the new files.
44334         * MODULES.html.sh (Misc): Add selinux-h.
44335
44336 2009-10-08  Jim Meyering  <meyering@redhat.com>
44337
44338         unistd: fix comment typo
44339         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44340
44341 2009-10-08  Eric Blake  <ebb9@byu.net>
44342
44343         areadlink: use SIZE_MAX consistently
44344         * modules/areadlink (Depends-on): Add stdint.
44345         * modules/areadlink-with-size (Depends-on): Likewise.
44346         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44347         gives NULL; drop sys/types, since unistd gives size_t; and add
44348         stdint for SIZE_MAX.
44349         (SIZE_MAX): Rely on headers.
44350         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44351         and add stdint.
44352         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44353         (SIZE_MAX): Likewise.
44354         (INITIAL_BUF_SIZE): Turn into enum.
44355         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44356
44357 2009-10-08  Jim Meyering  <meyering@redhat.com>
44358
44359         areadlinkat: avoid compilation failure
44360         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44361         Fix typo in comment.
44362
44363 2009-10-07  Eric Blake  <ebb9@byu.net>
44364
44365         areadlinkat-with-size: new module
44366         * modules/areadlinkat-with-size: New module.
44367         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44368         * lib/areadlink.h (areadlinkat): Declare it.
44369         * MODULES.html.sh (File system functions): Mention it.
44370         * modules/areadlinkat-with-size-tests: New test.
44371         * tests/test-areadlinkat-with-size.c: New file.
44372
44373         xreadlinkat: new module
44374         * modules/xreadlinkat: New module.
44375         * lib/xreadlinkat.c (xreadlinkat): New file.
44376         * lib/xreadlink.h (xreadlinkat): Declare it.
44377         * MODULES.html.sh (File system functions): Mention it.
44378
44379         areadlinkat: new module
44380         * lib/at-func.c (FUNC_FAIL): New define.
44381         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44382         * modules/areadlinkat: New module.
44383         * lib/linkat.c (areadlinkat): Move...
44384         * lib/areadlinkat.c (areadlinkat): ...to new file.
44385         * lib/areadlink.h (areadlinkat): Declare it.
44386         * modules/linkat (Depends-on): Add areadlinkat.
44387         * MODULES.html.sh (File system functions): Mention it.
44388         * modules/areadlinkat-tests: New test.
44389         * tests/test-areadlinkat.c: New file.
44390
44391         areadlink, areadlink-with-size: add tests
44392         * modules/areadlink-tests: New test.
44393         * modules/areadlink-with-size-tests: Likewise.
44394         * tests/test-areadlink.h: New file.
44395         * tests/test-areadlink.c: Likewise.
44396         * tests/test-areadlink-with-size.c: Likewise.
44397
44398         maint: minor cleanups
44399         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44400         _UNUSED_PARAMETER_ instead.
44401         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44402         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44403         * modules/linkat-tests (Files): Distribute test-link.h.
44404
44405         openat, utimens: whitespace cleanup
44406         * lib/openat.c: Prefer space throughout, rather than mix of 8
44407         spaces vs. tabs.
44408         * lib/at-func.c: Likewise.
44409         * lib/utimens.c: Likewise.
44410
44411         openat: avoid using wrong fd
44412         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44413         working directory chooses same fd.
44414         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44415
44416         mkdir, mkdirat: fix cygwin 1.5.x bug
44417         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44418         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44419         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44420         bug.
44421         (gl_PREREQ_MKDIR): Delete unused macro.
44422         * modules/mkdir (Files): Track file rename.
44423         (configure.ac): Update macro name.
44424         * modules/openat (Depends-on): Add mkdir.
44425         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44426
44427         mkdir, mkdirat: add tests
44428         * modules/mkdir-tests: New test.
44429         * tests/test-mkdir.h: New file.
44430         * tests/test-mkdir.c: Likewise.
44431         * tests/test-mkdirat.c: Likewise.
44432         * modules/openat-tests (Files): Add new files.
44433         (Makefile.am): Run new test.
44434
44435 2009-10-06  Eric Blake  <ebb9@byu.net>
44436
44437         doc: tweak *at function documentation
44438         * doc/posix-functions/faccessat.texi (faccessat): Mention
44439         known issue with replacement.
44440         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44441         * doc/posix-functions/linkat.texi (linkat): Likewise.
44442         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44443         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44444         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44445         * doc/posix-functions/renameat.texi (renameat): Likewise.
44446         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44447
44448         openat: fix GNU/Hurd bug in unlinkat
44449         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44450         broken.
44451         * doc/posix-functions/unlink.texi (unlink): Document this.
44452         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44453
44454         fdopendir: fix GNU/Hurd bug
44455         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44456         allowing non-directory fds.
44457         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44458         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44459         * modules/dirent (Makefile.am): Substitute it.
44460         * lib/dirent.in.h (fdopendir): Declare replacement.
44461         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44462         * tests/test-fdopendir.c (main): Test something other than
44463         /dev/null, since on Hurd that behaves like a directory.
44464
44465         test-symlink: port to GNU/Hurd
44466         * tests/test-symlink.h (test_symlink): Relax expected errno.
44467
44468         doc: tweak more cygwin information
44469         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44470         now compatible with glibc.
44471         * doc/posix-functions/getopt.texi (getopt): Likewise.
44472
44473         getopt-gnu: add another test
44474         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44475         guarantee behavior relied on by m4.
44476         * tests/test-getopt.c (main): Use it.
44477         * modules/getopt-posix-tests (Depends-on): Add setenv.
44478         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44479
44480         getopt: fix compilation on darwin
44481         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44482         include.
44483         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44484         Reported by Ludovic Courtès.
44485
44486 2009-10-06  Bruno Haible  <bruno@clisp.org>
44487
44488         * modules/size_max (Description): Discourage its use.
44489         Reported by Simon Josefsson.
44490
44491 2009-10-06  Jim Meyering  <meyering@redhat.com>
44492
44493         linkat: avoid compilation failure
44494         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44495
44496 2009-10-05  Eric Blake  <ebb9@byu.net>
44497
44498         linkat: support Linux 2.6.17
44499         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44500         linkat on Linux, but allow cache variable override.
44501         * lib/linkat.c (rpl_linkat): Define override.
44502         * modules/linkat (Depends-on): Add symlinkat.
44503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44504         * modules/unistd (Makefile.am): Substitute it.
44505         * lib/unistd.in.h (linkat): Declare replacement.
44506         Reported by Pádraig Brady.
44507
44508         quotearg: port test to systems with C.UTF-8 locale
44509         * tests/test-quotearg.c (struct result_strings): Add another
44510         member, differentiating between C.ASCII and C.UTF-8 handling.
44511         (compare_strings): Add parameter.
44512         (main): Adjust all callers.
44513
44514         getopt: avoid clash with FreeBSD _getopt_internal
44515         * lib/getopt.in.h (_getopt_internal): Override the name.
44516         * lib/getopt_int.h (includes): Pick up any overrides.
44517         Reported by Reuben Thomas.
44518
44519         hash: allow C89 compilation
44520         * lib/hash.c (check_tuning): Move declaration before statement.
44521         Reported by Reuben Thomas.
44522
44523 2009-10-05  Karl Berry  <karl@gnu.org>
44524
44525         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44526
44527 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44528             Bruno Haible  <bruno@clisp.org>
44529
44530         * lib/uname.c (uname): Use a table-driven algorithm to compute
44531         Windows NT versions.
44532
44533 2009-10-04  Bruno Haible  <bruno@clisp.org>
44534
44535         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44536         program_invocation_short_name.
44537         * modules/progname (configure.ac): Test for presence of
44538         program_invocation_short_name.
44539         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44540
44541 2009-10-04  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/progname.c (set_program_name): Fix comment.
44544         Reported by Jim Meyering.
44545
44546 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44547             Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/uname.c: Include <string.h>.
44550         (uname): Do only one call to GetVersionEx in the common case.
44551
44552 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44553             Bruno Haible  <bruno@clisp.org>
44554
44555         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44556         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44557         (uname): Add support for Windows CE and various non-x86 CPU types.
44558
44559 2009-10-03  Bruno Haible  <bruno@clisp.org>
44560
44561         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44562         invocation to tests/configure.ac.
44563         Reported by Ian Beckwith <ianb@erislabs.net>.
44564
44565 2009-10-02  Eric Blake  <ebb9@byu.net>
44566
44567         fchdir: avoid compiler warning
44568         * lib/fchdir.c (canonicalize_file_name)
44569         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44570
44571         test-open: support mingw errno values
44572         * tests/test-open.h (test_open): Relax test.
44573         * tests/test-fopen.h (test_fopen): Likewise.
44574         * tests/test-openat-safer.c (main): Likewise.
44575
44576         open: fix opening directory on mingw
44577         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44578
44579         test-open: on GNU/Hurd, /dev/null is a directory
44580         * tests/test-fopen.h (main): Rename...
44581         (test_fopen): ...to this.  Use a guaranteed non-directory when
44582         confirming open behavior on trailing slash.
44583         * tests/test-openat-safer.c (main): Likewise.
44584         * tests/test-open.h (main): Likewise....
44585         (test_open): ...to this.
44586         * tests/test-fopen.c (main): Adjust caller.
44587         * tests/test-fopen-safer.c (main): Likewise.
44588         * tests/test-open.c (main): Likewise.
44589         * tests/test-fcntl-safer.c (main): Likewise.
44590         Reported by Samuel Thibault.
44591
44592         rename, fchdir: don't ignore chdir failure
44593         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44594         * lib/rename.c (rpl_rename) [W32]: Likewise.
44595         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44596         an empty destination directory if source cannot be renamed,
44597         although there is still possibility for failure.
44598         * doc/posix-functions/rename.texi (rename): Document the race.
44599         Reported by Jim Meyering.
44600
44601         maint: cleanup whitespace in recent commits
44602         * lib/rename.c (rpl_rename): Remove tabs.
44603         * tests/test-link.h (test_link): Likewise.
44604         * lib/fchdir.c (get_name): Likewise.
44605         Reported by Jim Meyering.
44606
44607 2009-10-02  Ben Pfaff  <blp@gnu.org>
44608
44609         relocatable-prog-wrapper: Add missing dependency on
44610         double-slash-root.
44611         * modules/relocatable-prog-wrapper: Add dependency.
44612         Reported by Ian Beckwith <ianb@erislabs.net>.
44613
44614 2009-10-02  Eric Blake  <ebb9@byu.net>
44615
44616         renameat: fix Solaris bugs
44617         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44618         needed fixing.
44619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44620         * modules/stdio (Makefile.am): Substitute it.
44621         * lib/stdio.in.h (renameat): Declare replacement.
44622         * lib/renameat.c (rpl_renameat): Implement fix.
44623
44624         renameat: new module
44625         * modules/renameat: New file.
44626         * lib/renameat.c (renameat): Likewise.
44627         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44629         * modules/stdio (Makefile.am): Substitute them.
44630         * lib/stdio.in.h (renameat): Declare it.
44631         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44632         * doc/posix-functions/renameat.texi (renameat): Likewise.
44633         * modules/renameat-tests: New test.
44634         * tests/test-renameat.c: Likewise.
44635
44636         rename: fix mingw bugs
44637         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44638         directory overwrite bugs.
44639
44640         rename: fix another cygwin 1.5 bug
44641         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44642         checks.
44643         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44644         unnecessary cygwin workarounds.  Also work around bug with moving
44645         full directory onto an empty one.
44646         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44647
44648         rename-dest-slash: merge into rename module
44649         * modules/rename-dest-slash (Status): Mark obsolete.
44650         (Depends-on): Add rename.
44651         (Files): Let rename do it all.
44652         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44653         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44654         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44655         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44656         * lib/rename.c (rpl_rename): Update comments.
44657
44658         rename: fix cygwin 1.5.x bugs
44659         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44660         * lib/rename.c (rpl_rename): Work around them.
44661         * modules/rename (Depends-on): Add same-inode.
44662
44663         rename: fix Solaris 10 bug
44664         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44665         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44666         was the only bug.
44667
44668         rename: fix Solaris 9 bug
44669         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44670         on non-directory.  Avoid calling exit.
44671         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44672         strdup.
44673         * modules/rename-tests (Depends-on): Drop lstat.
44674         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44675         (gl_PREREQ_RENAME): Delete unused macro.
44676
44677         rename-dest-slash: fix NetBSD bug
44678         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44679         links.
44680         * modules/rename-dest-slash (Depends-on): Add same-inode.
44681
44682         rename-tests: new test, exposes several platform bugs
44683         * modules/rename-tests: New file.
44684         * tests/test-rename.h: Likewise.
44685         * tests/test-rename.c: Likewise.
44686         * doc/posix-functions/rename.texi (rename): Improve documentation,
44687         including bugs that will eventually be fixed in gnulib.
44688
44689 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44690
44691         * lib/uname.c: Include <stdlib.h>
44692         (uname): Assume version info is available.
44693
44694 2009-10-02  Jim Meyering  <meyering@redhat.com>
44695
44696         gnu-web-doc-update: correct --help output
44697         * build-aux/gnu-web-doc-update: Make --help output relevant.
44698
44699         gnu-web-doc-update: add standard options
44700         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44701
44702         gnu-web-doc-update: New module.
44703         Use this script to automatically update the on-line web documentation
44704         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44705         * modules/gnu-web-doc-update: New file, from coreutils.
44706         * build-aux/gnu-web-doc-update: New script.
44707
44708 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44709
44710         link: LoadLibrary is not needed.
44711         * lib/link.c: Use GetModuleHandle.
44712
44713 2009-10-01  Eric Blake  <ebb9@byu.net>
44714
44715         getopt: bump serial number
44716         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44717         change.
44718
44719         tests: tighten link, rmdir, and remove tests
44720         * tests/test-link.h (includes): No need to use <config.h> here.
44721         Clean up if directory hard link was created, otherwise test for
44722         trailing '.'.
44723         * tests/test-linkat.c (main): Simplify.
44724         * tests/test-remove.c (main): Enhance test for trailing '.'.
44725         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44726
44727 2009-10-01  Jim Meyering  <meyering@redhat.com>
44728
44729         maint.mk: requiring "make major" was annoying, for a "minor" release.
44730         What is intended is "stable", to contrast with alpha and beta,
44731         so require "make stable", not "make major".
44732         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44733         (get_tool_versions): Likewise.
44734         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44735
44736 2009-09-30  Ben Pfaff  <blp@gnu.org>
44737
44738         Fix broken build of replacement for Windows tmpfile().
44739         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44740         flags argument added along with the 'mkostemp' module.
44741
44742 2009-09-28  Bruno Haible  <bruno@clisp.org>
44743
44744         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44745         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44746         to 'remove_elt'.
44747         (gl_list_remove): Update.
44748         * lib/gl_list.c (gl_list_remove): Update.
44749         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44750         to 'remove_elt'.
44751         (gl_oset_remove): Update.
44752         * lib/gl_list.c (gl_oset_remove): Update.
44753         Reported by Eric Blake.
44754
44755 2009-09-28  Eric Blake  <ebb9@byu.net>
44756
44757         doc: mention yet more cygwin 1.7 status
44758         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44759         cygwin.
44760         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44761         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44762
44763         argp: fix test failure
44764         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44765         that are not upper-case.  Pass correct range to tolower.
44766
44767 2009-09-27  Jim Meyering  <meyering@redhat.com>
44768
44769         test-yesno: work around sparc-dash here-document infelicity
44770         Without this change, the literal \177 byte in a here document
44771         would make dash 0.5.5.1-3 access uninitialized memory.
44772         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44773         Instead, use a marker, "@", and filter through tr to create the desired
44774         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44775
44776 2009-09-27  Bruno Haible  <bruno@clisp.org>
44777
44778         Disable untested support for new flavours of ACLs on AIX.
44779         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44780         progress.
44781         * lib/set-mode-acl.c (qset_acl): Likewise.
44782
44783 2008-12-07  Bruno Haible  <bruno@clisp.org>
44784
44785         Add support for new flavours of ACLs on AIX. (Untested.)
44786         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44787         (file_has_acl): Add support for newer AIX.
44788         * lib/set-mode-acl.c (qset_acl): Likewise.
44789         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44790         Rainer Tammer <tammer@tammer.net>.
44791
44792 2009-09-26  Eric Blake  <ebb9@byu.net>
44793
44794         argp: fix compilation of getopt
44795         * lib/getopt.in.h (includes): Use different guard than glibc.
44796         Reported by Sergey Poznyakoff.
44797
44798         doc: mention more cygwin 1.7 status
44799         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44800         bug.
44801         * doc/posix-functions/execl.texi (execl): Likewise.
44802         * doc/posix-functions/execle.texi (execle): Likewise.
44803         * doc/posix-functions/execlp.texi (execlp): Likewise.
44804         * doc/posix-functions/execv.texi (execv): Likewise.
44805         * doc/posix-functions/execve.texi (execve): Likewise.
44806         * doc/posix-functions/execvp.texi (execvp): Likewise.
44807         * doc/glibc-functions/canonicalize_file_name.texi
44808         (canonicalize_file_name): Cygwin 1.7 now provides this.
44809         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44810         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44811         on AT_SYMLINK_NOFOLLOW.
44812
44813 2009-09-24  Eric Blake  <ebb9@byu.net>
44814
44815         test-linkat: make test more robust
44816         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44817
44818         getopt: fix inclusion guards for cygwin
44819         * modules/getopt-posix (Depends-on): Add include-next.
44820         (Makefile.am): Substitute more items in replacement header.
44821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44822         <getopt.h>.
44823         * lib/getopt.in.h (includes): Use split inclusion guard, and
44824         prefer <getopt.h> over include <unistd.h> when one is present.
44825         (option): Also override name of 'struct option'.
44826
44827         same-inode: revert prior change; it is not yet ready
44828         * NEWS: Undo mention of this change.
44829         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44830         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44831         * lib/cycle-check.c (cycle_check): Likewise.
44832         * lib/same.c (same_name): Likewise.
44833         * lib/at-func2.c (at_func2): Likewise.
44834
44835 2009-09-23  Eric Blake  <ebb9@byu.net>
44836
44837         linkat: new module
44838         * modules/linkat: New file.
44839         * lib/at-func2.c (at_func2): Likewise.
44840         * lib/linkat.c (linkat): Likewise.
44841         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44842         * lib/openat-priv.h (at_func2): Add declaration.
44843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44844         * modules/unistd (Makefile.am): Substitute them.
44845         * lib/unistd.in.h (linkat): Declare it.
44846         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44847         * doc/posix-functions/linkat.texi (linkat): Likewise.
44848         * doc/posix-functions/link.texi (link): Tweak wording.
44849         * tests/test-link.c (main): Move guts...
44850         * tests/test-link.h (test_link): ...into new file.
44851         * modules/linkat-tests: New test.
44852         * tests/test-linkat.c: Likewise.
44853         * modules/link-tests (Files): Ship new file.
44854         (Depends-on): Add stdbool.
44855
44856         dirname: add library-safe mdir_name
44857         * lib/dirname.h (mdir_name): New prototype.
44858         * lib/dirname.c (dir_name): Move guts...
44859         (mdir_name): ...to new function that avoids xalloc_die.
44860
44861         fchdir: another mingw fix
44862         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44863         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44864         on mingw (where it has not yet been ported), and make it optional
44865         elsewhere.
44866         (_gl_register_fd): Use it.
44867
44868         same-inode: make SAME_INODE tri-state, to port to mingw
44869         * NEWS: Mention this change.
44870         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44871         st_ino always being 0.
44872         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44873         * lib/cycle-check.c (cycle_check): Likewise.
44874         * lib/same.c (same_name): Likewise.
44875
44876         lstat: avoid mingw compilation error
44877         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44878         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44879         lstat ourselves.
44880         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44881         was adequate.
44882         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44883         the checks for lstat.
44884         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44885
44886         link: fix test failure on Solaris 9
44887         * lib/link.c (rpl_link): Don't assume link will catch bogus
44888         trailing slash on source.
44889
44890         test-symlinkat: enhance test
44891         * tests/test-readlink.c (main): Move guts...
44892         * tests/test-readlink.h (test_readlink): ...into new file.
44893         * tests/test-symlink.c (main): Move guts...
44894         * tests/test-symlink.h (test_symlink): ...into new file.
44895         * tests/test-symlinkat.c (main): Use new files for further
44896         coverage.
44897         (do_symlink, do_readlink): New helper functions.
44898         * modules/symlink-tests (Files): Ship new file.
44899         (Depends-on): Add stdbool.
44900         * modules/readlink-tests (Files): Ship new file.
44901         (Depends-on): Add stdbool.
44902         * modules/symlinkat-tests (Files): Use new files.
44903
44904 2009-09-23  Eric Blake  <ebb9@byu.net>
44905
44906         readlink: document portability issue with symlink length
44907         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44908         systems have bogus st_size on symlinks, and mention the
44909         areadlink-with-size module.
44910         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44911         * doc/posix-functions/readlink.texi (readlink): Mention the
44912         areadlink module, and ERANGE failure.
44913         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44914         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44915
44916         readlink: fix Solaris 9 bug with trailing slash
44917         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44918         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44919         * doc/posix-functions/readlink.texi (readlink): Document this.
44920         * modules/readlink-tests: New test.
44921         * tests/test-readlink.c: Likewise.
44922
44923         readlink: fix cygwin 1.5.x bug with return type
44924         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44925         * lib/unistd.in.h (readlink): Use ssize_t.
44926         * lib/readlink.c (readlink): Likewise.
44927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44928         * modules/unistd (Makefile.am): Substitute it.
44929         * lib/unistd.in.h (readlink): Declare replacement.
44930         * doc/posix-functions/readlink.texi (readlink): Document this.
44931
44932         symlink: use throughout gnulib
44933         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44934         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44935         symlink is not used.
44936         * modules/symlinkat (Depends-on): Add symlink.
44937         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44938         * modules/canonicalize-tests (Depends-on): Likewise.
44939         * modules/lstat-tests (Depends-on): Likewise.
44940         * modules/openat-tests (Depends-on): Likewise.
44941         * modules/remove-tests (Depends-on): Likewise.
44942         * modules/rmdir-tests (Depends-on): Likewise.
44943         * modules/unlink-tests (Depends-on): Likewise.
44944         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44945         * tests/test-canonicalize.c (symlink): Likewise.
44946         * tests/test-fstatat.c (symlink): Likewise.
44947         * tests/test-lstat.c (symlink): Likewise.
44948         * tests/test-remove.c (symlink): Likewise.
44949         * tests/test-rmdir.c (symlink): Likewise.
44950         * tests/test-unlink.c (symlink): Likewise.
44951         * tests/test-unlinkat.c (symlink): Likewise.
44952
44953         symlink: new module, for Solaris 9 bug
44954         * modules/symlink: New file.
44955         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44956         * lib/symlink.c: Likewise.
44957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44958         * modules/unistd (Makefile.am): Substitute them.
44959         * lib/unistd.in.h (symlink): Declare replacement.
44960         * MODULES.html.sh (File system functions): Mention it.
44961         * doc/posix-functions/symlink.texi (symlink): Likewise.
44962         * modules/symlink-tests: New test.
44963         * tests/test-symlink.c: Likewise.
44964
44965 2009-09-23  Bruno Haible  <bruno@clisp.org>
44966
44967         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44968         when needed.
44969         Test case: gnulib-tool --import --with-tests atexit inttypes.
44970         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44971
44972 2009-09-23  Bruno Haible  <bruno@clisp.org>
44973
44974         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44975         subcommand, not in a subshell.
44976
44977 2009-09-22  Eric Blake  <ebb9@byu.net>
44978
44979         unistd: sort replacement declarations
44980         * lib/unistd.in.h: Sort declarations.
44981
44982         open, openat: minor optimization
44983         * lib/open.c (open): If open succeeded, len is non-zero.
44984         * lib/openat.c (rpl_openat): Likewise.
44985
44986         link-follow: ensure correct result
44987         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44988         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44989         distinguish between possible failures.
44990
44991 2009-09-21  Eric Blake  <ebb9@byu.net>
44992
44993         fts: avoid compiler warning
44994         * lib/fts.c (dirent_inode_sort_may_be_useful)
44995         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44996
44997 2009-09-19  Bruno Haible  <bruno@clisp.org>
44998
44999         * lib/progreloc.c (canonicalize_file_name): New declaration.
45000
45001 2009-09-19  Eric Blake  <ebb9@byu.net>
45002
45003         link: fix quoting
45004         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45005
45006         openat: fix openat bugs on Solaris 9
45007         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45008         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45009         * modules/openat (Depends-on): Add open.
45010         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45011         * modules/fcntl-h (Makefile.am): Substitute it.
45012         * lib/fcntl.in.h (openat): Declare replacement.
45013         * doc/posix-functions/openat.texi (openat): Document this.
45014
45015         openat: move fstatat and unlinkat into correct files
45016         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45017         compiled.
45018         * lib/openat.c (fstatat, unlinkat): Move...
45019         * lib/fstatat.c (fstatat): ...into correct files.
45020         * lib/unlinkat.c (unlinkat): Likewise.
45021
45022         openat: fix unlinkat bugs on Solaris 9
45023         * lib/unlinkat.c (unlinkat): New file.
45024         * modules/openat (Depends-on): Add unlink.
45025         (Files): Distribute it.
45026         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45027         trailing slash behavior is broken.
45028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45029         * modules/unistd (Makefile.am): Substitute it.
45030         * lib/unistd.in.h (unlinkat): Declare replacement.
45031         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45032
45033         openat: fix fstatat bugs on Solaris 9
45034         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45035         stat.
45036         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45037
45038         test-unlinkat: enhance test, to expose Solaris 9 bug
45039         * tests/test-unlink.c (main): Factor guts...
45040         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45041         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45042         * tests/test-rmdir.c (main): Adjust caller.
45043         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45044         (unlinker): New helper function.
45045         (rmdirat): Enhance check.
45046         * modules/rmdir-tests (Depends-on): Add stdbool.
45047         * modules/unlink-tests (Depends-on): Likewise.
45048         (Files): Add test-unlink.h.
45049         * modules/openat-tests (Files): Likewise.
45050         (Depends-on): Add unlinkdir.
45051
45052         test-fstatat: new test, to expose Solaris 9 bugs
45053         * tests/test-stat.c (main): Factor guts...
45054         * tests/test-stat.h (test_stat_func): ...into new file.
45055         * tests/test-lstat.c (main): Factor guts...
45056         * tests/test-lstat.h (test_lstat_func): ...into new file.
45057         * tests/test-fstatat.c: New file.
45058         * modules/stat-tests (Files): Add test-stat.h.
45059         * modules/lstat-tests (Files): Add test-lstat.h.
45060         (Depends-on): Add stdbool.
45061         * modules/openat-tests (Depends-on): Add pathmax.
45062         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45063         (Makefile.am): Run new test.
45064
45065         remove: new module, for mingw and Solaris 9 bugs
45066         * modules/remove: New file.
45067         * lib/remove.c: Likewise.
45068         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45070         * modules/stdio (Makefile.am): Use them.
45071         * lib/stdio.in.h (remove): Declare replacement.
45072         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45073         * doc/posix-functions/remove.texi (remove): Likewise.
45074         * modules/remove-tests: New test.
45075         * tests/test-remove.c: Likewise.
45076
45077         unlink: new module, for Solaris 9 bug
45078         * modules/unlink: New file.
45079         * lib/unlink.c: Likewise.
45080         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45082         * modules/unistd (Makefile.am): Use them.
45083         * lib/unistd.in.h (stat): Declare replacement.
45084         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45085         * doc/posix-functions/unlink.texi (unlink): Likewise.
45086         * modules/unlink-tests: New test.
45087         * tests/test-unlink.c: Likewise.
45088
45089         lstat: fix Solaris 9 bug
45090         * lib/lstat.c (lstat): Also check for trailing slash on
45091         non-symlink, non-directories.  Use stat module to simplify logic.
45092         * doc/posix-functions/lstat.texi (lstat): Document it.
45093         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45094         (configure.ac): Check for symlink.
45095         * tests/test-lstat.c (main): Add more tests.
45096
45097         stat: add as dependency to other modules
45098         * modules/chown (Depends-on): Add stat.
45099         * modules/euidaccess (Depends-on): Likewise.
45100         * modules/fchdir (Depends-on): Likewise.
45101         * modules/isdir (Depends-on): Likewise.
45102         * modules/link (Depends-on): Likewise.
45103         * modules/lstat (Depends-on): Likewise.
45104         * modules/mkdir-p (Depends-on): Likewise.
45105         * modules/modechange (Depends-on): Likewise.
45106         * modules/open (Depends-on): Likewise.
45107         * modules/readlink (Depends-on): Likewise.
45108         * modules/same (Depends-on): Likewise.
45109
45110         stat: fix Solaris 9 bug
45111         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45112         slash.
45113         * lib/stat.c (rpl_stat): Work around it.
45114         * doc/posix-functions/stat.texi (stat): Update documentation.
45115
45116         stat: new module, for mingw bug
45117         * modules/stat: New file.
45118         * lib/stat.c: Likewise.
45119         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45121         * modules/sys_stat (Makefile.am): Use them.
45122         * lib/sys_stat.in.h (stat): Declare replacement.
45123         * lib/openat.c (fstatat): Deal with lstat and stat being function
45124         macros.
45125         * modules/openat (Depends-on): Add inline.
45126         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45127         * doc/posix-functions/stat.texi (stat): Likewise.
45128         * modules/stat-tests: New test.
45129         * tests/test-stat.c: Likewise.
45130
45131 2009-09-19  Jim Meyering  <meyering@redhat.com>
45132
45133         syntax-check: detect unnecessary inclusion of canonicalize.h
45134         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45135
45136 2009-09-19  Eric Blake  <ebb9@byu.net>
45137
45138         canonicalize-lgpl: adjust clients to use correct header
45139         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45140         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45141         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45142         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45143         * lib/progreloc.c (includes): Likewise.
45144
45145 2009-09-19  Jim Meyering  <meyering@redhat.com>
45146
45147         test-posixtm.c: correct a comment
45148         * tests/test-posixtm.c: Correct first-line comment.
45149         Spotted by Eric Blake.
45150
45151 2009-09-16  Jim Meyering  <meyering@redhat.com>
45152
45153         posixtm-tests: make T const-correct; add a test case
45154         * tests/test-posixtm.c (T): Declare const.
45155         Add a test for -(2^31+1).
45156         Remove useless can-succeed-only-in-2002 test.
45157
45158         posixtm-tests: adjust the sole failing test
45159         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45160         expected output matches what mktime now produces.  Cross-checked via
45161         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45162
45163         posixtm: move #ifdef'd tests into a new module
45164         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45165         * tests/test-posixtm.c: ... this new file.
45166         * modules/posixtm-tests: New module.
45167
45168 2009-09-19  Eric Blake  <ebb9@byu.net>
45169
45170         openat: simplify use of at-func.c
45171         * lib/at-func.c (includes): Include prerequisites here, to
45172         simplify requirements on client files.
45173         * lib/openat-priv.h: Add double-inclusion guard.
45174         * lib/faccessat.c (includes): Simplify.
45175         * lib/fchmodat.c (includes): Likewise.
45176         * lib/fchownat.c (includes): Likewise.
45177         * lib/mkdirat.c (includes): Likewise.
45178         * lib/mkfifoat.c (includes): Likewise.
45179         * lib/symlinkat.c (includes): Likewise.
45180
45181         openat: allow return of fd 0
45182         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45183         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45184         unistd-safer.
45185         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45186         <fcntl.h>; this module does not leak fds.
45187         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45188         must be allowed to return 0, leaving openat_safer to add the
45189         safety.
45190         (openat_permissive): Avoid writing to just-opened fd 2 if
45191         restoring the current directory fails.
45192         * lib/openat-die.c (openat_restore_fail): Add comment.
45193         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45194         (save_cwd): Guarantee safe fd, but without use of open_safer.
45195         * tests/test-openat.c: New test.
45196         * modules/openat-tests (Files, Makefile.am): Distribute and build
45197         new file.
45198
45199         relocatable-prog-wrapper: fix build
45200         * modules/relocatable-prog-wrapper (Files): Update name of
45201         canonicalize m4 file, broken on 2009-09-17.
45202         Reported by emad hajjar <aleppos@hotmail.com>.
45203
45204 2009-09-19  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45207         * lib/safe-alloc.c: Likewise.
45208         Reported by Ian Beckwith <ianb@erislabs.net>.
45209
45210 2009-09-18  Bruno Haible  <bruno@clisp.org>
45211
45212         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45213         Reported by <erobles@sensacd.com.mx>.
45214
45215 2009-09-17  Eric Blake  <ebb9@byu.net>
45216
45217         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45218         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45219         slashes when checking if last component is missing.
45220         * tests/test-canonicalize.c (main): Test this.
45221
45222         canonicalize, canonicalize-lgpl: honor // if distinct from /
45223         * modules/canonicalize (Files): Add double-slash-root.m4.
45224         * modules/canonicalize-lgpl (Files): Likewise.
45225         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45226         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45227         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45228         fallback definition.
45229         (canonicalize_filename_mode): Use it to protect //.
45230         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45231         (__realpath): Likewise.
45232         * tests/test-canonicalize.c (main): Test this.
45233         * tests/test-canonicalize-lgpl.c (main): Likewise.
45234         * modules/canonicalize-tests (Depends-on): Add same-inode.
45235         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45236
45237         canonicalize-lgpl: fix glibc bug with trailing slash
45238         * m4/canonicalize-lgpl.m4: Move contents...
45239         * m4/canonicalize.m4: ...here.
45240         (gl_CANONICALIZE_LGPL): Factor realpath check...
45241         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45242         glibc 2.3.5 bug, fixed 2005-04-27.
45243         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45244         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45245         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45246         * modules/canonicalize-lgpl (Files): Manage file rename.
45247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45248         * modules/stdlib (Makefile.am): Substitute witness.
45249         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45250         is needed.
45251         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45252         replacement is required.
45253         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45254         * doc/glibc-functions/canonicalize_file_name.texi
45255         (canonicalize_file_name): Document this.
45256         * doc/posix-functions/realpath.texi (realpath): Likewise.
45257
45258         canonicalize-lgpl: reject non-directory with trailing slash
45259         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45260         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45261         catches failures in glibc 2.3.5.
45262         * tests/test-canonicalize.c (main): Likewise.
45263
45264         canonicalize-lgpl: use native realpath if it works
45265         * lib/canonicalize-lgpl.c (realpath): Guard with
45266         FUNC_REALPATH_WORKS.
45267         * lib/stdlib.in.h (realpath): Make declaration optional based on
45268         HAVE_REALPATH.
45269         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45270         native realpath works.
45271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45272         * modules/stdlib (Makefile.am): Substitute witness.
45273
45274         canonicalize, canonicalize-lgpl: use <stdlib.h>
45275         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45276         (Include): Mention <stdlib.h>.
45277         (configure.ac): Mention functions we provide.
45278         * modules/canonicalize (configure.ac): Likewise.
45279         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45280         realpath if canonicalize_file_name is missing.
45281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45282         * modules/stdlib (Makefile.am): Substitute witnesses.
45283         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45284         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45285         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45286         * NEWS: Document this.
45287         * doc/glibc-functions/canonicalize_file_name.texi
45288         (canonicalize_file_name): Likewise.
45289         * doc/posix-functions/realpath.texi (realpath): Likewise.
45290         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45291
45292         test-canonicalize: consolidate into single C program
45293         * tests/test-canonicalize.sh: Delete; move setup into...
45294         * tests/test-canonicalize.c (main): ...the program, making it
45295         easier to run in debugger.  Add some tests.
45296         * modules/canonicalize-tests (Files): Remove unused file.
45297         (Depends-on): Add progname.
45298         (configure.ac, Makefile.am): Simplify.
45299
45300         test-canonicalize-lgpl: consolidate into single C program
45301         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45302         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45303         easier to run in debugger.  Add some tests.
45304         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45305         (configure.ac, Makefile.am): Simplify.
45306
45307         canonicalize: avoid resolvepath
45308         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45309         unnecessary checks.
45310         * lib/canonicalize.c (includes): Simplify.
45311         (canonicalize_file_name): Drop resolvepath implementation.
45312         * modules/canonicalize (Depends-on): Drop filenamecat.
45313
45314         canonicalize: don't lose errno
45315         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45316         over calls to free.
45317
45318         canonicalize: simplify errno handling
45319         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45320         assignment.
45321
45322         canonicalize, canonicalize-lgpl: update module dependencies
45323         * modules/canonicalize (Depends-on): Add extensions, lstat,
45324         pathmax, stdlib.
45325         (Files): Drop pathmax.h.
45326         (configure.ac): Adjust macro name.
45327         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45328         lstat, stdlib, sys_stat.
45329         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45330         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45331         extensions.
45332         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45333         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45334         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45335         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45336         declaration, if available.
45337         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45338         we can rely on the readlink module.
45339         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45340         (includes): Use <unistd.h> unconditionally.
45341
45342 2009-09-17  Eric Blake  <ebb9@byu.net>
45343
45344         maint: make Include sections of modules consistent
45345         * modules/alloca: Use only header name; no need to list #include.
45346         * modules/alloca-opt: Likewise.
45347         * modules/arpa_inet: Likewise.
45348         * modules/canon-host: Likewise.
45349         * modules/configmake: Likewise.
45350         * modules/dirent: Likewise.
45351         * modules/eealloc: Likewise.
45352         * modules/environ: Likewise.
45353         * modules/fchdir: Likewise.
45354         * modules/fcntl: Likewise.
45355         * modules/fcntl-h: Likewise.
45356         * modules/gethrxtime: Likewise.
45357         * modules/gettime: Likewise.
45358         * modules/ignore-value: Likewise.
45359         * modules/inet_ntop: Likewise.
45360         * modules/inet_pton: Likewise.
45361         * modules/inttypes: Likewise.
45362         * modules/isnand-nolibm: Likewise.
45363         * modules/isnanf-nolibm: Likewise.
45364         * modules/mbchar: Likewise.
45365         * modules/mbfile: Likewise.
45366         * modules/mbiter: Likewise.
45367         * modules/mbuiter: Likewise.
45368         * modules/netdb: Likewise.
45369         * modules/netinet_in: Likewise.
45370         * modules/nproc: Likewise.
45371         * modules/pagealign_alloc: Likewise.
45372         * modules/poll: Likewise.
45373         * modules/printf-frexp: Likewise.
45374         * modules/pthread: Likewise.
45375         * modules/putenv: Likewise.
45376         * modules/random_r: Likewise.
45377         * modules/relocatable-prog: Likewise.
45378         * modules/search: Likewise.
45379         * modules/select: Likewise.
45380         * modules/selinux-h: Likewise.
45381         * modules/settime: Likewise.
45382         * modules/signal: Likewise.
45383         * modules/size_max: Likewise.
45384         * modules/socklen: Likewise.
45385         * modules/ssize_t: Likewise.
45386         * modules/stdarg: Likewise.
45387         * modules/stdbool: Likewise.
45388         * modules/stddef: Likewise.
45389         * modules/stdint: Likewise.
45390         * modules/stdio: Likewise.
45391         * modules/stdlib: Likewise.
45392         * modules/string: Likewise.
45393         * modules/strings: Likewise.
45394         * modules/sys_file: Likewise.
45395         * modules/sys_ioctl: Likewise.
45396         * modules/sys_select: Likewise.
45397         * modules/sys_socket: Likewise.
45398         * modules/sys_stat: Likewise.
45399         * modules/sys_time: Likewise.
45400         * modules/sys_times: Likewise.
45401         * modules/sys_utsname: Likewise.
45402         * modules/sys_wait: Likewise.
45403         * modules/sysexits: Likewise.
45404         * modules/time: Likewise.
45405         * modules/times: Likewise.
45406         * modules/tmpfile: Likewise.
45407         * modules/trim: Likewise.
45408         * modules/unistd: Likewise.
45409         * modules/wchar: Likewise.
45410         * modules/wctype: Likewise.
45411
45412 2009-09-17  Bruno Haible  <bruno@clisp.org>
45413
45414         Make getdate.y compile on QNX and NetBSD 5 / i386.
45415         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45416         TIME_T_FITS_IN_LONG_INT.
45417         * lib/getdate.y (long_time_t): New type.
45418         (relative_time): Change type of 'seconds' field to long_time_t.
45419         (get_date): Update types of local variables. Check against overflow
45420         during conversion from long_time_t to time_t.
45421         Reported by Matt Kraai <kraai@ftbfs.org>
45422         and Hasso Tepper <hasso@netbsd.org>.
45423
45424 2009-09-17  Bruno Haible  <bruno@clisp.org>
45425
45426         * modules/COPYING: Update copyright years.
45427         * modules/README: Likeiwse.
45428         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45429         Reported by Ian Beckwith <ianb@erislabs.net>.
45430
45431 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45432
45433         * users.txt: Update references for gnuit package.
45434
45435 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45436
45437         * m4/getdelim.m4: Fix typo in copyright line.
45438
45439 2009-09-17  Bruno Haible  <bruno@clisp.org>
45440
45441         * lib/atoll.c: Use the standard header with GPL copyright.
45442         * lib/argz.in.h: Likewise.
45443         * lib/glob.c: Likewise.
45444         * lib/glob-libc.h: Likewise.
45445         * lib/random_r.c: Likewise.
45446         * lib/siglist.h: Likewise.
45447         * lib/strsignal.c: Likewise.
45448         Reported by Ian Beckwith <ianb@erislabs.net>.
45449
45450 2009-09-17  Eric Blake  <ebb9@byu.net>
45451
45452         rmdir: ensure correct dependency order
45453         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45454
45455 2009-09-17  Bruno Haible  <bruno@clisp.org>
45456
45457         Disable assertion that fails on NetBSD 5 / i386.
45458         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45459         Reported by Sam Steingold <sds@gnu.org>
45460         and Hasso Tepper <hasso@netbsd.org>.
45461
45462 2009-09-16  Eric Blake  <ebb9@byu.net>
45463
45464         unlinkdir: port to mingw
45465         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45466         on which no one can unlink a directory.
45467
45468         stdlib: sort witness names
45469         * modules/stdlib (Makefile.am): Sort replacements.
45470         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45471         * lib/stdlib.in.h: Likewise.
45472
45473         parse-duration-tests: avoid link failure
45474         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45475         LIBINTL.
45476         Reported by Tom G. Christensen.
45477
45478         openat-tests: ensure unlinkat behaves like rmdir
45479         * tests/test-rmdir.c (main): Factor guts...
45480         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45481         * modules/rmdir-tests (Files): Ship new file.
45482         * modules/openat-tests: New test.
45483         * tests/test-unlinkat.c: Likewise.
45484
45485         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45486         * modules/rmdir-errno (Status, Notice): Now obsolete.
45487
45488         rmdir: work around cygwin 1.5.x and mingw bugs
45489         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45490         * lib/rmdir.c (rmdir): Work around it.
45491         * modules/rmdir (Status, Notice): No longer obsolete.
45492         (Files): Add dos.m4.
45493         (Depends-on): Add unistd.
45494         (configure.ac): Set witnesses.
45495         (License): Relax to LGPLv2+.
45496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45497         * modules/unistd (Makefile.am): Substitute witnesses.
45498         * lib/unistd.in.h (rmdir): Declare replacement.
45499         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45500         * modules/rmdir-tests: New tests.
45501         * tests/test-rmdir.c: Likewise.
45502
45503 2009-09-15  Eric Blake  <ebb9@byu.net>
45504
45505         fchdir: improve use of replacement functions
45506         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45507         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45508         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45509         REPLACE_CLOSEDIR.
45510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45511         * modules/sys_stat (Makefile.am): Substitute correct witness.
45512         * modules/dirent (Makefile.am): Likewise.
45513         * modules/unistd (Makefile.am): Likewise.
45514         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45515         * lib/unistd.in.h (dup): Likewise.
45516         * lib/sys_stat.in.h (fstat): Likewise.
45517
45518         maint: ignore gnulib-tool temp files
45519         * .gitignore: Ignore files created during gnulib-tool --test.
45520
45521 2009-09-13  Jim Meyering  <meyering@redhat.com>
45522
45523         posixtm: don't reject a time that specify "60" as the number of seconds
45524         * lib/posixtm.c (posixtime): The code to reject invalid dates
45525         would also reject a time specified with the .60 suffix.
45526         But POSIX allows that, in order to accommodate leap seconds.
45527         So don't reject it.
45528         (main): Adjust tests accordingly.
45529         * modules/posixtm (Depends-on): Add stpcpy.
45530
45531 2009-09-11  Jim Meyering  <meyering@redhat.com>
45532
45533         announce-gen: include [$release_type] in emitted Subject:
45534         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45535         e.g., [stable] in the emitted Subject: line.
45536
45537 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45538
45539         Remove obsolete macros from several modules.
45540         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45541         obsolete Autoconf macros with their modern counterparts.
45542         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45543         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45544         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45545         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45546         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45547         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45549         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45550         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45551         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45552         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45553         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45554         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45555         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45556         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45557         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45558         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45559         * m4/time_r.m4 (gl_TIME_R): Likewise.
45560         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45561         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45562         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45563
45564         Fix copyright header in build-aux scripts.
45565         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45566         recommendation.
45567         * build-aux/ncftpput-ftp: Likewise.
45568         * build-aux/update-copyright: Likewise.
45569
45570 2009-09-09  Eric Blake  <ebb9@byu.net>
45571
45572         test-link: allow Linux choice of errno
45573         * tests/test-link.c (main): Relax test for alternate error.
45574
45575         strndup: fix improper m4 caching
45576         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45577         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45578         (gl_PREREQ_STRNDUP): Delete.
45579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45580         * modules/string (Makefile.am): Substitute it.
45581         * lib/string.in.h (strndup): Modernize prototype.
45582
45583         getcwd: port to mingw
45584         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45585         different from the POSIX assumptions made throughout the getcwd
45586         module; fortunately, the mingw getcwd does not need replacement.
45587         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45588         * modules/getcwd-tests: New test.
45589         * tests/test-getcwd.c: Likewise.
45590
45591         link: fix platform bugs
45592         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45593         * lib/link.c (link): Work around them.  Fix related mingw bug.
45594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45595         * modules/unistd (Makefile.am): Substitute it.
45596         * lib/unistd.in.h (link): Declare replacement.
45597         * doc/posix-functions/link.texi (link): Document this.
45598         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45599
45600         test-link: consolidate into single C program, test more cases
45601         * tests/test-link.sh: Delete.
45602         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45603         at least Cygwin and Solaris.
45604         * modules/link-tests (Files): Remove unused file.
45605         (Depends-on): Add errno, sys_stat.
45606         (Makefile.am): Simplify.
45607
45608 2009-09-08  Bruno Haible  <bruno@clisp.org>
45609
45610         Work around towlower, towupper bug on mingw.
45611         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45612         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45613         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45614         * doc/posix-functions/towupper.texi: Likewise.
45615         Reported by Eric Blake.
45616
45617 2009-09-08  Jim Meyering  <meyering@redhat.com>
45618
45619         build: don't try to run autoheader if we don't use it
45620         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45621         is not used in configure.ac.
45622
45623 2009-09-08  Eric Blake  <ebb9@byu.net>
45624
45625         euidaccess: fix compilation error
45626         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45627
45628         rawmemchr: relax license
45629         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45630         okay.
45631         Reported by Jim Meyering.
45632
45633         mkfifoat: new module
45634         * modules/mkfifoat: New file.
45635         * lib/mkfifoat.c: Likewise.
45636         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45637         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45638         * modules/sys_stat (Makefile.am): Use them.
45639         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45640         * MODULES.html.sh (File system functions): Mention module.
45641         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45642         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45643         * modules/mkfifoat-tests: New test.
45644         * tests/test-mkfifoat.c: Likewise.
45645
45646         strchrnul: relax license
45647         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45648         okay.
45649         Reported by Jim Meyering.
45650
45651 2009-09-08  Eric Blake  <ebb9@byu.net>
45652
45653         fstatat: fix compilation on Solaris
45654         * lib/fstatat.c (includes): Add fcntl.h.
45655         Reported by Pádraig Brady.
45656
45657 2009-09-07  Eric Blake  <ebb9@byu.net>
45658
45659         rename: modernize replacement
45660         * modules/rename (Depends-on): Add stdio.
45661         (configure.ac): Declare witness.
45662         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45663         stdio take care of replacement.
45664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45665         * modules/stdio (Makefile.am): Substitute them.
45666         * lib/stdio.in.h (rename): Declare replacement.
45667         * lib/rename.c (includes): Allow cross-compilation to non-windows
45668         machines.
45669         * doc/posix-functions/rename.texi (rename): Improve
45670         documentation.
45671
45672         stdio: sort witness names
45673         * modules/stdio (Makefile.am): Sort replacements.
45674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45675         * lib/stdio.in.h: Likewise.
45676
45677         getcwd: minor cleanups
45678         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45679         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45680
45681         openat: provide more convenience names
45682         * modules/faccessat (configure.ac): Add C witness.
45683         * lib/unistd.in.h (readlinkat): Fix typo.
45684         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45685         convenience wrappers.
45686         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45687         wrappers in syntax checks.
45688
45689 2009-09-06  Eric Blake  <ebb9@byu.net>
45690
45691         doc: fix comments in recent patches
45692         * lib/faccessat.c: Mention correct function.
45693         * lib/fchmodat.c: Likewise.
45694         * lib/fchownat.c: Likewise.
45695         * lib/symlinkat.c: Likewise.
45696         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45697         constants.
45698
45699         faccessat, symlinkat: continue cleanup of previous patch
45700         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45701         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45702         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45704         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45705         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45706         set.
45707
45708 2009-09-06  Bruno Haible  <bruno@clisp.org>
45709
45710         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45711         (fstatat): Declare if GNULIB_FSTATAT is set.
45712         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45713         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45714         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45715         * modules/fcntl-h (Files): Remove m4/openat.m4.
45716         * modules/sys_stat (Files): Remove m4/openat.m4.
45717         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45718         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45719         * modules/unistd (Files): Remove m4/openat.m4.
45720         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45721         GNULIB_OPENAT.
45722         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45723         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45724         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45725         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45726         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45727         gl_OPENAT_DEFAULTS.
45728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45729         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45730         Don't require gl_OPENAT_DEFAULTS.
45731         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45732         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45733         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45734         (gl_OPENAT_DEFAULTS): Remove macro.
45735
45736 2009-09-06  Bruno Haible  <bruno@clisp.org>
45737
45738         * modules/openat (configure.ac): Remove unneeded witness.
45739
45740 2009-09-06  Bruno Haible  <bruno@clisp.org>
45741
45742         Set errno to ENOSYS when a function is entirely unsupported.
45743         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45744         EOPNOTSUPP.
45745         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45746         * modules/chown (Depends-on): Remove errno.
45747
45748 2009-09-06  Bruno Haible  <bruno@clisp.org>
45749
45750         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45751
45752 2009-09-06  Bruno Haible  <bruno@clisp.org>
45753
45754         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45755
45756 2009-09-06  Ben Pfaff  <blp@gnu.org>
45757             Bruno Haible  <bruno@clisp.org>
45758
45759         Work around a glibc bug in strtok_r.
45760         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45761         Undefine if UNDEFINE_STRTOK_R is set.
45762         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45764         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45765         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45766         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45767         UNDEFINE_STRTOK_R.
45768         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45769
45770 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45771
45772         exclude: minor fix
45773         * lib/exclude.c: Include wctype.h
45774
45775 2009-09-06  Akim Demaille  <demaille@gostai.com>
45776
45777         bootstrap: improve error message
45778         * build-aux/bootstrap (find_tool): Upon failure, report the list
45779         of candidates.
45780         Honor the initial value of the envvar.
45781
45782 2009-09-05  Eric Blake  <ebb9@byu.net>
45783
45784         symlinkat: new module
45785         * modules/symlinkat: New file.
45786         * lib/symlinkat.c: Likewise.
45787         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45789         * modules/unistd (Makefile.am): Use them.
45790         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45791         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45792         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45793         * MODULES.html.sh (File system functions): Mention module.
45794         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45795         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45796         * modules/symlinkat-tests: New test.
45797         * tests/test-symlinkat.c: Likewise.
45798
45799         test-openat-safer: add more checks
45800         * tests/test-openat-safer.c (main): Check more code paths.
45801
45802 2009-09-05  Jim Meyering  <meyering@redhat.com>
45803
45804         syntax-check: detect unnecessary inclusion of openat.h
45805         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45806
45807 2009-09-05  Bruno Haible  <bruno@clisp.org>
45808
45809         Support towlower, towupper.
45810         * doc/posix-functions/towlower.texi: Mention module wctype.
45811         * doc/posix-functions/towupper.texi: Likewise.
45812         * lib/wctype.in.h (towlower, towupper): New functions.
45813         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45814         (ASSERT): New macro.
45815         (e): New variable.
45816         (main): Test also towlower, towupper. Test WEOF argument.
45817         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45818
45819 2009-09-05  Bruno Haible  <bruno@clisp.org>
45820
45821         Fix conversion behaviour when the input is invalid.
45822         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45823         mark occurring in first pass of indirect conversion.
45824         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45825         input.
45826         Found by clang's static analyzer.
45827
45828 2009-09-05  Bruno Haible  <bruno@clisp.org>
45829
45830         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45831         where direct conversion is possible.
45832
45833 2009-09-04  Eric Blake  <ebb9@byu.net>
45834
45835         openat: fail with ENOENT on empty name
45836         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45837         buffer.
45838
45839         link-follow: fix logic bug in prior patch
45840         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45841         reversed sense of yes and no in prior patch.  Avoid confusing
45842         compilation failure with desired semantics.
45843
45844         link-follow: accommodate mingw and cross-compilation
45845         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45846         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45847         cross-compilation results to -1, to make linkat easier to
45848         implement when cross-compiling.  Trivially support mingw.
45849         * modules/link-follow (configure.ac): Call new name.
45850         * NEWS: Mention this.
45851
45852 2009-09-03  Eric Blake  <ebb9@byu.net>
45853
45854         faccessat: compile replacement
45855         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45856         needed.
45857
45858         fts: fix compilation error
45859         * lib/fts.c (includes): Re-add "openat.h", for
45860         openat_needs_fchdir.
45861
45862         faccessat: new module
45863         * modules/faccessat: New file.
45864         * lib/faccessat.c: Likewise.
45865         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45867         * modules/unistd (Makefile.am): Use it.
45868         * lib/unistd.in.h (faccessat): Declare it.
45869         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45870         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45871         * MODULES.html.sh (File system functions): Mention it.
45872         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45873         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45874
45875         euidaccess: prefer POSIX over non-standard implementation
45876         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45877         * lib/euidaccess.c (euidaccess): Use it if available.
45878
45879         openat: make template easier to use
45880         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45881         AT_FUNC_F2 to be undefined.
45882         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45883         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45884         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45885         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45886         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45887         Likewise.
45888         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45889         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45890         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45891         Likewise.
45892
45893         openat: declare in POSIX headers
45894         * NEWS: Mention this.
45895         * modules/openat (configure.ac): Declare witnesses.
45896         (Depends-on): Add fcntl-h, sys_stat, unistd.
45897         (Include): Mention correct headers.
45898         * modules/fcntl-h (Depends-on): Add link-warning.
45899         (Files): Add openat.m4.
45900         (Makefile.am): Substitute witnesses.
45901         * modules/sys_stat (Files, Makefile.am): Likewise.
45902         * modules/unistd (Files, Makefile.am): Likewise.
45903         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45904         (gl_OPENAT_DEFAULTS): New macro.
45905         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45907         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45908         (SYS_STAT_H): Remove unused variable.
45909         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45910         * lib/fcntl--.h (includes): Remove unneeded header.
45911         * lib/openat-safer.c (includes): Likewise.
45912         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45913         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45914         appropriate headers.
45915         (__OPENAT_PREFIX): Delete.
45916         * lib/fcntl.in.h (openat): Provide declaration.
45917         (AT_FDCWD): Fix Solaris bug.
45918         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45919         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45920         * lib/fchmodat.c (includes):  Adjust to find declaration.
45921         * lib/fchownat.c (includes): Likewise.
45922         * lib/mkdirat.c (includes): Likewise.
45923         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45924         still visible.
45925
45926 2009-09-02  Eric Blake  <ebb9@byu.net>
45927
45928         errno: use consistently
45929         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45930         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45931         * lib/canonicalize.c (ELOOP): Likewise.
45932         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45933         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45934         * lib/lchown.c (EOPNOTSUPP): Likewise.
45935         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45936         * lib/savewd.c (ESTALE): Likewise.
45937         * lib/settime.c (ENOSYS): Likewise.
45938         * lib/utimens.c (ENOSYS): Likewise.
45939         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45940         * lib/chdir-safer.c (ELOOP): Likewise.
45941         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45942         * modules/c-stack (Depends-on): Add errno.
45943         * modules/canonicalize (Depends-on): Likewise.
45944         * modules/chdir-safer (Depends-on): Likewise.
45945         * modules/fdopendir (Depends-on): Likewise.
45946         * modules/inet_ntop (Depends-on): Likewise.
45947         * modules/inet_pton (Depends-on): Likewise.
45948         * modules/lchown (Depends-on): Likewise.
45949         * modules/openat (Depends-on): Likewise.
45950         * modules/savewd (Depends-on): Likewise.
45951         * modules/settime (Depends-on): Likewise.
45952         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45953
45954         fts: avoid leaking fds
45955         * modules/fts (Depends-on): Add cloexec.
45956         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45957         flag.
45958
45959         fts: make directory fds more robust
45960         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45961         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45962
45963         backupfile, chdir-long, fts, savedir: make safer
45964         * lib/backupfile.c (includes): Use "dirent--.h", since
45965         numbered_backup can write to stderr during readdir.
45966         * lib/savedir.c (includes): Likewise.
45967         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45968         emulation can write to stderr on failure.
45969         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45970         * lib/getcwd.c: Document why opendir_safer is unused.
45971         * lib/glob.c: Likewise.
45972         * lib/scandir.c: Likewise.
45973         * lib/openat-proc.c: Likewise, for open_safer.
45974         * modules/backupfile (Depends-on): Add dirent-safer.
45975         * modules/savedir (Depends-on): Likewise.
45976         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45977         * modules/chdir-long (Depends-on): Add openat-safer.
45978
45979         openat-safer: new module
45980         * modules/openat-safer: New file.
45981         * lib/openat-safer.c: Likewise.
45982         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45983         * lib/fcntl-safer.h (openat_safer): Declare.
45984         * lib/fcntl--.h (openat): Override.
45985         * MODULES.html.sh (File descriptor based I/O): Mention it.
45986         * lib/openat.h: Add double-inclusion guards.
45987         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45988         "fcntl--.h", so we can implement openat.
45989         * modules/openat-safer-tests: New test.
45990         * tests/test-openat-safer.c: New file.
45991
45992         dirent-safer: new module
45993         * modules/dirent-safer: New file.
45994         * lib/dirent--.h: Likewise.
45995         * lib/dirent-safer.h: Likewise.
45996         * lib/opendir-safer.c: Likewise.
45997         * m4/dirent-safer.m4: Likewise.
45998         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45999         * modules/dirent-safer-tests: New test.
46000         * tests/test-dirent-safer.c: New file.
46001         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46002
46003         fdopendir: optimize on mingw
46004         * lib/unistd.in.h (_gl_directory_name): New prototype.
46005         * lib/fchdir.c (_gl_directory_name): Implement it.
46006         (fchdir): Use it to simplify implementation.
46007         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46008         fchdir, when available, to avoid calling [f]chdir().
46009
46010         fdopendir: split into its own module
46011         * lib/openat.c (fdopendir): Move...
46012         * lib/fdopendir.c: ...into new file.
46013         * modules/fdopendir: New module.
46014         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46015         * modules/openat (Depends-on): Add fdopendir.
46016         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46017         fdopendir here.
46018         * modules/savedir (Depends-on): Only need fdopendir, not full
46019         openat.
46020         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46021         * lib/openat.h (fdopendir): Drop prototype.
46022         * lib/dirent.in.h (fdopendir): Provide prototype.
46023         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46024         * modules/dirent (Makefile.am): Substitute them.
46025         * MODULES.html.sh (File system functions): Mention it.
46026         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46027         * modules/fdopendir-tests: New file.
46028         * tests/test-fdopendir.c: Likewise.
46029
46030         fchdir: use more consistent macro convention
46031         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46032         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46033         REPLACE_FCHDIR, rather than relying on config.h macros.
46034         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46035         inside a single make-time REPLACE_FCHDIR block, rather than using
46036         the config.h FCHDIR_REPLACEMENT.
46037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46038         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46039         Manage fstat replacement.
46040         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46041         REPLACE_FCHDIR.
46042         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46043         (Makefile.am): Substitute REPLACE_FCHDIR.
46044         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46045         FCHDIR_REPLACEMENT.
46046         * lib/dup-safer.c (dup_safer): Likewise.
46047         * lib/dup2.c (rpl_dup2): Likewise.
46048         * lib/dup3.c (rpl_dup3): Likewise.
46049         * lib/open.c (rpl_open): Likewise.
46050
46051         fchdir: simplify error handling, and support dup3
46052         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46053         stdbool, malloc-posix, realloc-posix.
46054         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46055         (ensure_dirs_slot): Return false on allocation failure.
46056         (rpl_dup2): Delete.
46057         (_gl_register_dup): New function.
46058         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46059         (_gl_register_fd): Close fd on allocation failure.
46060         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46061         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46062         prototype.
46063         (rpl_dup2_fchdir): Delete prototype.
46064         * lib/open.c (open): Update caller.
46065         * lib/dup2.c (dup2): Track fchdir metadata.
46066         * lib/dup3.c (dup3): Likewise.
46067         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46069
46070 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46071
46072         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46073         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46074         don't pass arguments to AC_OUTPUT.
46075
46076 2009-09-02  Bruno Haible  <bruno@clisp.org>
46077
46078         * modules/mkdtemp (License): Relicense under LGPLv2+.
46079         Reported by Paolo Bonzini.
46080
46081 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46082
46083         Replace uses of obsolete autoconf macros in Jim's modules.
46084         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46085         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46086         can evoke a warning from autoconf when run with -Wobsolete
46087         enabled.  They were declared obsolete for good reasons (see
46088         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46089         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46090         should not continue using the deprecated macros.
46091         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46092         obsolete Autoconf macros with modern counterparts.
46093         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46094         * m4/dos.m4 (gl_AC_DOS): Likewise.
46095         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46096         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46097         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46098         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46099         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46100         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46101         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46102         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46103         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46104         Likewise.
46105         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46106         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46107         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46108         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46109         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46110         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46111
46112 2009-09-01  Eric Blake  <ebb9@byu.net>
46113
46114         fchdir: fix off-by-one bug in previous patch
46115         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46116         (_gl_unregister_fd): Delete useless if.
46117
46118 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46119
46120         maint.mk: sort the list of syntax-check rules
46121         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46122         easier to get a sense of progress when the rules are run sequentially
46123         and take a long time.
46124
46125 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46126
46127         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46128         * modules/netinet_in: Likewise.
46129         * modules/sys_file: Likewise.
46130         * modules/sys_ioctl: Likewise.
46131         * modules/sys_select: Likewise.
46132         * modules/sys_socket: Likewise.
46133         * modules/sys_stat: Likewise.
46134         * modules/sys_time: Likewise.
46135         * modules/sys_times: Likewise.
46136         * modules/sys_utsname: Likewise.
46137         * modules/sys_wait: Likewise.
46138
46139 2009-09-01  Jim Meyering  <meyering@redhat.com>
46140
46141         fts: help ensure that return values are not ignored
46142         * lib/fts_.h (__GNUC_PREREQ): Define.
46143         (__attribute_warn_unused_result__): Define.
46144         (fts_children, fts_close, fts_open, fts_read): Declare with
46145         __attribute_warn_unused_result__.
46146
46147         fts: fts_close now fails also when closing a dir file descriptor fails
46148         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46149         and propagate to caller, along with errno.
46150
46151         announce-gen: correct formatting in --help output
46152         * build-aux/announce-gen (usage): Move the one-line description in
46153         --help output "up", to where it belongs, just after Usage:.
46154
46155 2009-08-31  Eric Blake  <ebb9@byu.net>
46156
46157         fchdir: port to mingw
46158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46159         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46160         opened, then use a substitute.
46161         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46162         replacement.
46163         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46164         (_gl_register_fd): No need to check stat if open already filters
46165         all directories.
46166         (fchdir): Fix error condition to match POSIX.
46167         * modules/fchdir (Depends-on): Add sys_stat.
46168         * doc/posix-functions/open.texi (open): Document the limitation.
46169         * modules/fchdir-tests: New file.
46170         * tests/test-fchdir.c: Likewise.
46171
46172         canonicalize: allow cross-testing from cygwin to mingw
46173         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46174         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46175         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46176         Likewise.
46177         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46178         target does not support symlinks.
46179         * tests/test-canonicalize-lgpl.sh: Likewise.
46180
46181         chown: avoid compilation warning on mingw
46182         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46183         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46184         mingw.
46185         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46186         * modules/chown (Depends-on): Add errno.
46187
46188 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46189
46190         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46191         command.
46192
46193 2009-08-31  Jim Meyering  <meyering@redhat.com>
46194
46195         canonicalize: remove useless initialization
46196         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46197         initialization of local, "end".
46198
46199 2009-08-30  Bruno Haible  <bruno@clisp.org>
46200
46201         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46202         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46203         ENOSYS.
46204
46205 2009-08-30  Bruno Haible  <bruno@clisp.org>
46206
46207         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46208         /usr/xpg4/bin/tr when it exists.
46209         * tests/test-pipe-filter-gi1.sh: Likewise.
46210
46211 2009-08-30  Bruno Haible  <bruno@clisp.org>
46212
46213         Work around deficient /usr/bin/id program on Solaris.
46214         * tests/test-file-has-acl.sh (ID): New variable.
46215         * tests/test-set-mode-acl.sh (ID): Likewise.
46216         * tests/test-copy-acl.sh (ID): Likewise.
46217         * tests/test-copy-file.sh (ID): Likewise.
46218
46219 2009-08-30  Bruno Haible  <bruno@clisp.org>
46220
46221         New module 'xstriconveh'.
46222         * lib/xstriconveh.h: New file.
46223         * lib/xstriconveh.c: New file.
46224         * modules/xstriconveh: New file.
46225
46226 2009-08-30  Bruno Haible  <bruno@clisp.org>
46227
46228         Make it easier to use mem_cd_iconveh.
46229         * lib/striconveh.h (iconveh_t): New type.
46230         (iconveh_open, iconveh_close): New declarations.
46231         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46232         with a single 'const iconveh_t *' argument.
46233         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46234         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46235         with a single 'const iconveh_t *' argument.
46236         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46237         * tests/test-striconveh.c (main): Update.
46238         * NEWS: Mention the change.
46239
46240 2009-08-30  Bruno Haible  <bruno@clisp.org>
46241
46242         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46243         problem.
46244
46245 2009-08-30  Bruno Haible  <bruno@clisp.org>
46246
46247         Work around iconv_open problem on Solaris.
46248         * lib/iconv_open-solaris.gperf: New file.
46249         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46250         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46251         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46252         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46253         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46254         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46255
46256 2009-08-29  Jim Meyering  <meyering@redhat.com>
46257
46258         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46259         * top/maint.mk (cvs-check): Remove target; it was just an alias
46260         to the better-named vc-diff-check.
46261         (maintainer-distcheck): Remove rule.  It was used only from
46262         the (alpha/beta/major) target, and all of its commands but one
46263         were coreutils-specific.
46264         (vc-dist): Remove rule.
46265         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46266         Run vc-diff-check, not vc-dist.
46267         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46268
46269 2009-08-27  Bruno Haible  <bruno@clisp.org>
46270
46271         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46272         of 0.
46273
46274 2009-08-27  Bruno Haible  <bruno@clisp.org>
46275
46276         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46277         compilers.
46278         * doc/func.texi: Document the SunPRO C bug.
46279
46280 2009-08-27  Bruno Haible  <bruno@clisp.org>
46281
46282         Fix link error on Solaris.
46283         * tests/test-parse-duration.c (xstrdup): Remove function.
46284
46285 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46286
46287         ignore-value: handle pointer types, too
46288         * lib/ignore-value.h (__attribute__): Remove definition.
46289         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46290         of a more concise and more-often effective "(void) i" statement.
46291         (ignore_ptr): New function to suppress warnings from functions that
46292         return pointers, and to make it explicit that one function doesn't
46293         handle all cases.
46294
46295 2009-08-25  Bruno Haible  <bruno@clisp.org>
46296
46297         dup2: work around a Linux bug.
46298         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46299         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46300         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46301         Reported by Simon Josefsson.
46302
46303 2009-08-25  Jim Meyering  <meyering@redhat.com>
46304
46305         libguestfs uses gnulib
46306         * users.txt: Add libguestfs.
46307
46308 2009-08-24  Eric Blake  <ebb9@byu.net>
46309
46310         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46311         * lib/pipe2.c (includes): Add binary-io.h.
46312         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46313
46314 2009-08-24  Bruno Haible  <bruno@clisp.org>
46315
46316         Tolerate declared but missing accept4 syscall.
46317         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46318         available.
46319         * lib/sys_socket.in.h (accept4): If the function is already present,
46320         override it.
46321         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46322         * modules/accept4 (Makefile.am): Compile accept4.c always.
46323         Reported by Paolo Bonzini and Eric Blake.
46324
46325 2009-08-23  Bruno Haible  <bruno@clisp.org>
46326
46327         New module 'accept4'.
46328         * lib/sys_socket.in.h (accept4): New declaration.
46329         * lib/accept4.c: New file.
46330         * m4/accept4.m4: New file.
46331         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46332         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46333         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46334         HAVE_ACCEPT4.
46335         * modules/accept4: New file.
46336         * doc/glibc-functions/accept4.texi: Mention the new module.
46337
46338 2009-08-24  Jim Meyering  <meyering@redhat.com>
46339
46340         progname: also set global program_invocation_name, when possible
46341         Before this change, a libtool-enabled program that calls glibc's
46342         error function would report the program name as
46343         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46344         * modules/progname (configure.ac): Check for a declaration of
46345         program_invocation_name.
46346         * lib/progname.c:  Include <errno.h>.
46347         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46348         Set program_invocation_name.
46349
46350 2009-08-23  Bruno Haible  <bruno@clisp.org>
46351
46352         * lib/dup3.c: Include <string.h>.
46353
46354 2009-08-23  Bruno Haible  <bruno@clisp.org>
46355
46356         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46357         * lib/pipe2.c (pipe2): Likewise.
46358         Suggested by Eric Blake.
46359
46360 2009-08-23  Bruno Haible  <bruno@clisp.org>
46361
46362         Tolerate declared but missing dup3 syscall.
46363         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46364         * lib/unistd.in.h (dup3): If the function is already present,
46365         override it.
46366         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46367         * modules/dup3 (Makefile.am): Compile dup3.c always.
46368         Reported by Paolo Bonzini.
46369
46370 2009-08-23  Bruno Haible  <bruno@clisp.org>
46371
46372         Tolerate declared but missing pipe2 syscall.
46373         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46374         available.
46375         * lib/unistd.in.h (pipe2): If the function is already present,
46376         override it.
46377         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46378         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46379         Reported by Paolo Bonzini.
46380
46381 2009-08-23  Bruno Haible  <bruno@clisp.org>
46382
46383         * lib/pipe2.c (pipe2): Move #ifs inside function.
46384
46385 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46386
46387         quotearg: document limitations of quote_these_too
46388         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46389         those limitations are created.
46390         * lib/quotearg.h (set_char_quoting): Document that digits and
46391         letters that are special after backslash are not permitted.
46392         (quotearg_char): Cross-reference set_char_quoting documentation.
46393
46394 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46395
46396         quotearg: implement custom_quoting_style
46397         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46398         right_quote fields.
46399         (set_custom_quoting): New public function.
46400         (quotearg_buffer_restyled): Add left_quote and right_quote
46401         arguments, handle them very much like locale quoting, and update
46402         all uses.
46403         (quotearg_n_custom): New public function.
46404         (quotearg_n_custom_mem): New public function.
46405         (quotearg_custom): New public function.
46406         (quotearg_custom_mem): New public function.
46407         * lib/quotearg.h: Prototype and document new public functions.
46408         (enum quoting_style): For escape_quoting_style and
46409         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46410         ignored even though they're otherwise like c_quoting_style.
46411         Add custom_quoting_style member and document with comparison to
46412         clocale_quoting_style.
46413         * tests/test-quotearg.c (custom_quotes): New array.
46414         (custom_results): New array.
46415         (main): Extend to test custom quoting.
46416
46417 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46418
46419         quotearg: fix right quote escaping when it's in quote_these_too
46420         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46421         quote, be sure to prepend only one backslash.
46422         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46423         (main): Test it.
46424
46425 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46426
46427         quotearg-tests: test escaping of embedded locale quotes
46428         * tests/test-quotearg.c (struct result_strings): Add member for
46429         new input.
46430         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46431         (inputs): Add new input.
46432         (results_g): Add expected results.
46433         (flag_results): Likewise.
46434         (locale_results): Likewise.
46435         (compare_strings): Check those.
46436
46437 2009-08-23  Bruno Haible  <bruno@clisp.org>
46438
46439         Tests for module 'dup3'.
46440         * modules/dup3-tests: New file.
46441         * tests/test-dup3.c: New file.
46442
46443         New module 'dup3'.
46444         * lib/unistd.in.h (dup3): New declaration.
46445         * lib/dup3.c: New file.
46446         * m4/dup3.m4: New file.
46447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46448         HAVE_DUP3.
46449         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46450         * modules/dup3: New file.
46451         * doc/glibc-functions/dup3.texi: Mention the new module.
46452
46453 2009-08-23  Bruno Haible  <bruno@clisp.org>
46454
46455         Tweak the dup2 test.
46456         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46457         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46458         the test file is still empty. Fix argument order of lseek.
46459
46460 2009-08-23  Bruno Haible  <bruno@clisp.org>
46461
46462         Avoid test link errors when the modules getopt-gnu, gettext are used.
46463         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46465
46466 2009-08-23  Bruno Haible  <bruno@clisp.org>
46467
46468         Fix getdtablesize() on mingw.
46469         * lib/getdtablesize.c (getdtablesize): Implement differently.
46470         * lib/unistd.in.h (getdtablesize): Improve comment.
46471
46472 2009-08-23  Bruno Haible  <bruno@clisp.org>
46473
46474         New module 'mkostemp'.
46475         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46476         * lib/stdlib.in.h (mksotemp): New declaration.
46477         * lib/mkostemp.c: New file, from glibc with modifications.
46478         * lib/tempname.h (GT_FILE): Remove outdated comment.
46479         (gen_tempname): Add flags argument.
46480         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46481         (__GT_FILE): Map to 1.
46482         (small_open, large_open): Remove macros.
46483         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46484         * lib/mkstemp.c (mkstemp): Update.
46485         * lib/mkdtemp.c (mkdtemp): Likewise.
46486         * m4/mkostemp.m4: New file.
46487         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46488         HAVE_MKOSTEMP.
46489         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46490         HAVE_MKOSTEMP.
46491         * modules/mkostemp: New file, based on modules/mkstemp.
46492         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46493         * NEWS: Mention the change.
46494
46495 2009-08-23  Bruno Haible  <bruno@clisp.org>
46496
46497         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46498         Reported by Eric Blake.
46499
46500 2009-08-23  Bruno Haible  <bruno@clisp.org>
46501
46502         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46503         Reported by Eric Blake.
46504
46505 2009-08-23  Bruno Haible  <bruno@clisp.org>
46506
46507         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46508         * modules/pipe2 (Depends-on): Likewise.
46509
46510 2009-08-23  Eric Blake  <ebb9@byu.net>
46511
46512         fcntl-h: add O_TTY_INIT support
46513         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46514         * tests/test-fcntl-h.c (o): Test it.
46515         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46516
46517         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46518         * modules/fcntl: Move <fcntl.h> header replacement...
46519         * modules/fcntl-h: ...to new name, so as not to collide with
46520         like-named function.
46521         * tests/test-fcntl.c: Rename...
46522         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46523         * modules/fcntl-tests: Rename...
46524         * modules/fcntl-h-tests: ...to this.  Update test file name.
46525         * modules/chdir-long (Depends-on): Update clients.
46526         * modules/chdir-safer (Depends-on): Likewise.
46527         * modules/fcntl-safer (Depends-on): Likewise.
46528         * modules/fts (Depends-on): Likewise.
46529         * modules/mkancesdirs (Depends-on): Likewise.
46530         * modules/mkdir-p (Depends-on): Likewise.
46531         * modules/open (Depends-on): Likewise.
46532         * modules/savewd (Depends-on): Likewise.
46533         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46534         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46535
46536 2009-08-22  Bruno Haible  <bruno@clisp.org>
46537
46538         * modules/binary-io (License): Relicense under LGPL.
46539         * modules/pipe2 (License): Likewise.
46540
46541 2009-08-22  Bruno Haible  <bruno@clisp.org>
46542
46543         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46544         return value.
46545         * lib/pipe-filter-gi.c (filter_init): Likewise.
46546         Reported by Eric Blake.
46547
46548 2009-08-22  Bruno Haible  <bruno@clisp.org>
46549
46550         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46551         * modules/pipe (Depends-on): Add pipe2.
46552
46553 2009-08-22  Bruno Haible  <bruno@clisp.org>
46554
46555         Tests for module 'pipe2'.
46556         * modules/pipe2-tests: New file.
46557         * tests/test-pipe2.c: New file.
46558
46559         New module 'pipe2'.
46560         * lib/unistd.in.h (pipe2): New declaration.
46561         * lib/pipe2.c: New file.
46562         * m4/pipe2.m4: New file.
46563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46564         HAVE_PIPE2.
46565         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46566         * modules/pipe2: New file.
46567         * doc/glibc-functions/pipe2.texi: Mention the new module.
46568
46569 2009-08-22  Bruno Haible  <bruno@clisp.org>
46570
46571         Reference some new glibc functions.
46572         * doc/glibc-functions/accept4.texi: New file.
46573         * doc/glibc-functions/dup3.texi: New file.
46574         * doc/glibc-functions/mkostemp.texi: New file.
46575         * doc/glibc-functions/pipe2.texi: New file.
46576         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46577         (Glibc sys/socket.h): Refer to accept4.
46578         (Glibc unistd.h): Refer to dup3, pipe2.
46579         Reported by Eric Blake.
46580
46581 2009-08-22  Jim Meyering  <meyering@redhat.com>
46582             Bruno Haible  <bruno@clisp.org>
46583
46584         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46585         This makes it so packages using automake-1.11's silent-rules option
46586         can print e.g., a single "GEN    configmake.h" line, rather than
46587         the 30+ statements that perform the job.  If you want to see the
46588         actual commands, you can still run "make V=1".
46589         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46590         so that make output is abbreviated when those variables are defined
46591         appropriately.
46592         * modules/argz: Likewise.
46593         * modules/arpa_inet: Likewise.
46594         * modules/byteswap: Likewise.
46595         * modules/configmake: Likewise.
46596         * modules/dirent: Likewise.
46597         * modules/errno: Likewise.
46598         * modules/fcntl: Likewise.
46599         * modules/float: Likewise.
46600         * modules/fnmatch: Likewise.
46601         * modules/getopt-posix: Likewise.
46602         * modules/glob: Likewise.
46603         * modules/iconv_open: Likewise.
46604         * modules/inttypes: Likewise.
46605         * modules/localcharset: Likewise.
46606         * modules/locale: Likewise.
46607         * modules/math: Likewise.
46608         * modules/netdb: Likewise.
46609         * modules/netinet_in: Likewise.
46610         * modules/poll: Likewise.
46611         * modules/posix_spawnp-tests: Likewise.
46612         * modules/sched: Likewise.
46613         * modules/search: Likewise.
46614         * modules/selinux-h: Likewise.
46615         * modules/signal: Likewise.
46616         * modules/spawn: Likewise.
46617         * modules/stdarg: Likewise.
46618         * modules/stdbool: Likewise.
46619         * modules/stddef: Likewise.
46620         * modules/stdint: Likewise.
46621         * modules/stdio: Likewise.
46622         * modules/stdlib: Likewise.
46623         * modules/string: Likewise.
46624         * modules/strings: Likewise.
46625         * modules/sys_file: Likewise.
46626         * modules/sys_ioctl: Likewise.
46627         * modules/sys_select: Likewise.
46628         * modules/sys_socket: Likewise.
46629         * modules/sys_stat: Likewise.
46630         * modules/sys_time: Likewise.
46631         * modules/sys_times: Likewise.
46632         * modules/sys_utsname: Likewise.
46633         * modules/sys_wait: Likewise.
46634         * modules/sysexits: Likewise.
46635         * modules/time: Likewise.
46636         * modules/unistd: Likewise.
46637         * modules/wchar: Likewise.
46638         * modules/wctype: Likewise.
46639
46640 2009-08-22  Jim Meyering  <meyering@redhat.com>
46641
46642         announce-gen: detect write failure
46643         * build-aux/announce-gen: Add Coda at end.
46644         Remove equivalent-but-more-verbose block at top.
46645
46646 2009-08-19  Akim Demaille  <demaille@gostai.com>
46647
46648         bootstrap: --help to stdout.
46649         * bootstrap (usage): Don't send --help to stderr.
46650         Use a here doc instead of a long string.
46651
46652 2009-08-21  Eric Blake  <ebb9@byu.net>
46653
46654         test-popen-safer: split from test-popen
46655         * tests/test-popen.c (main): Move...
46656         * tests/test-popen.h: ...into new file.
46657         * tests/test-popen-safer2.c: New file.
46658         * modules/popen-tests (Files): Add test-popen.h.
46659         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46660         Suggested by Bruno Haible.
46661
46662         test-fcntl-safer: split from test-open
46663         * tests/test-open.c (main): Move...
46664         * tests/test-open.h: ...into new file.
46665         * tests/test-fcntl-safer.c: New file.
46666         * modules/open-tests (Files): Add test-open.h.
46667         * modules/fcntl-safer-tests: New file.
46668         Suggested by Bruno Haible.
46669
46670         test-fopen-safer: split from test-fopen
46671         * tests/test-fopen.c (main): Move...
46672         * tests/test-fopen.h: ...into new file.
46673         * tests/test-fopen-safer.c: New file.
46674         * modules/fopen-tests (Files): Add test-fopen.h.
46675         * modules/fopen-safer-tests: New file.
46676         Suggested by Bruno Haible.
46677
46678 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46679
46680         popen-safer: test O_CLOEXEC at run-time.
46681         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46682
46683 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46684
46685         fcntl: move more flags to the header
46686         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46687         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46688         * lib/fcntl.in.h: Do both things here.
46689
46690 2009-08-21  Jim Meyering  <meyering@redhat.com>
46691
46692         consistently remove $@-t before redirecting to it
46693         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46694         * modules/alloca-opt: Likewise.
46695         * modules/byteswap: Likewise.
46696         * modules/fnmatch: Likewise.
46697         * modules/getopt-posix: Likewise.
46698         * modules/glob: Likewise.
46699         * modules/poll: Likewise.
46700         * modules/posix_spawnp-tests: Likewise.
46701         * modules/sys_socket: Likewise.
46702         * modules/sysexits: Likewise.
46703
46704 2009-08-21  Eric Blake  <ebb9@byu.net>
46705
46706         popen: simplify access to original popen
46707         * lib/popen.c (rpl_popen): No need to worry about popen being a
46708         macro.
46709         Reported by Bruno Haible.
46710
46711 2009-08-20  Eric Blake  <ebb9@byu.net>
46712
46713         build: avoid some compiler warnings
46714         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46715         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46716         type.
46717         (new_exclude_segment, excluded_file_pattern_p)
46718         (excluded_file_name_p): Reduce scope.
46719         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46720         old-style declaration.
46721
46722 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46723
46724         * tests/test-exclude1.sh: Handle Windows EOL.
46725         * tests/test-exclude2.sh: Likewise.
46726         * tests/test-exclude3.sh: Likewise.
46727         * tests/test-exclude4.sh: Likewise.
46728         * tests/test-exclude5.sh: Likewise.
46729         * tests/test-exclude6.sh: Likewise.
46730         * tests/test-exclude7.sh: Likewise.
46731
46732 2009-08-19  Akim Demaille  <demaille@gostai.com>
46733
46734         bootstrap: find sha1sum when named gsha1sum.
46735         * bootstrap (find_tool): New.
46736         ($SHA1SUM): New.
46737         Use it.
46738
46739 2009-08-20  Jim Meyering  <meyering@redhat.com>
46740
46741         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46742         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46743         expression that converts "." in a file name to "\." in the resulting
46744         regexp.  Start with a dummy statement, so that prior shell variable
46745         definitions are expanded portably.  Reported by Simon Josefsson.
46746
46747 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46748
46749         Fix polling for writeability of a screen buffer.
46750         * lib/poll.c: Distinguish input and screen buffers for the
46751         Win32 implementation.
46752         * lib/select.c: Likewise.
46753
46754 2009-08-19  Eric Blake  <ebb9@byu.net>
46755
46756         popen-safer: prevent popen from clobbering std descriptors
46757         * modules/popen-safer: New file.
46758         * lib/popen-safer.c: Likewise.
46759         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46760         * lib/stdio--.h (popen): Provide override.
46761         * lib/stdio-safer.h (popen_safer): Provide declaration.
46762         * tests/test-popen.c (includes): Partially test this.
46763         * modules/popen-safer-tests: New file, for more tests.
46764         * tests/test-popen-safer.c: Likewise.
46765         * MODULES.html.sh (file stream based Input/Output): Mention it.
46766
46767         tests: test some of the *-safer modules
46768         * modules/fopen-safer (Depends-on): Add fopen.
46769         * modules/fcntl-safer (Depends-on): Add fcntl.
46770         * modules/stdlib-safer (Depends-on): Add stdlib.
46771         (configure.ac): Set indicator.
46772         * modules/unistd-safer (configure.ac): Likewise.
46773         * modules/tmpfile-safer (configure.ac): Likewise.
46774         (Depends-on): Add tmpfile.
46775         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46776         active.
46777         * tests/test-fopen.c (includes): Test safer versions when they are
46778         in use.
46779         * tests/test-open.c (includes): Likewise.
46780
46781         popen: fix cygwin 1.5 bug when stdin closed
46782         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46783         * modules/popen: New file.
46784         * modules/popen-tests: Likewise.
46785         * tests/test-popen.c: Likewise.
46786         * m4/popen.m4: Likewise.
46787         * lib/popen.c: Likewise.
46788         * lib/stdio.in.h (popen): New declaration.
46789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46790         * modules/stdio (Makefile.am): Likewise.
46791         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46792
46793 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46794
46795         maint.mk: give full control over update-copyright exclusions
46796         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46797         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46798         (update-copyright): Don't force inclusion of top-level
46799         ChangeLog.  Don't force exclusion of all COPYING files, but make
46800         them the default exclusion instead.
46801
46802 2009-08-16  Bruno Haible  <bruno@clisp.org>
46803
46804         Fix test failures on Solaris 10.
46805         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46806         tests when Solaris iconv() is used.
46807         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46808         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46809         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46810         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46811         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46812
46813 2009-08-16  Bruno Haible  <bruno@clisp.org>
46814
46815         Fix test failures on Solaris 10.
46816         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46817         'tr' program and pass it as first argument.
46818         * tests/test-pipe-filter-gi1.sh: Likewise.
46819         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46820         program as first argument.
46821         * tests/test-pipe-filter-gi1.c (main): Likewise.
46822
46823 2009-08-16  Eric Blake  <ebb9@byu.net>
46824
46825         fpurge: fix previous commits
46826         * modules/fpurge (Makefile.am): Make replacement conditional,
46827         partially reverting 2007-04-29 change; missed in previous
46828         attempt.
46829         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46830         is missing.
46831
46832 2009-08-16  Bruno Haible  <bruno@clisp.org>
46833
46834         Clarify fpurge's effect on the file position.
46835         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46836         * tests/test-fpurge.c (main): Make a second pass for checking the file
46837         position.
46838
46839 2009-08-16  Bruno Haible  <bruno@clisp.org>
46840
46841         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46842         declaration of fpurge is missing.
46843         * tests/test-fpurge.c (main): Check that the file has not more contents
46844         than expected. Close the file before removing it.
46845
46846 2009-08-15  Eric Blake  <ebb9@byu.net>
46847
46848         fpurge: don't wrap working cygwin implementation
46849         * lib/fpurge.c (fpurge): Fix comment typo.
46850         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46851         1.7 to avoid replacement.
46852         * tests/test-fpurge.c (main): Enhance test.
46853
46854 2009-08-15  Eric Blake  <ebb9@byu.net>
46855         and Jim Meyering  <meyering@redhat.com>
46856
46857         test-update-copyright: skip if perl is insufficient
46858         * tests/test-update-copyright.sh: Failure to run maintainer tool
46859         should not cause testsuite failure on cygwin 1.5.
46860
46861 2009-08-14  Eric Blake  <ebb9@byu.net>
46862
46863         doc: mention more functions added in cygwin 1.7.0
46864         * doc/posix-headers/limits.texi (limits.h): Update for recent
46865         cygwin additions.
46866         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46867         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46868         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46869         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46870         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46871
46872 2009-08-14  Eric Blake  <ebb9@byu.net>
46873
46874         maint.mk: simplify update-copyright rule
46875         * top/maint.mk (update-copyright-local): Delete, and document how
46876         to do it in cfg.mk instead.
46877         (update-copyright-exclude-regexp): Delete, and document how to do
46878         it in .x-update-copyright instead.
46879         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46880         exclude ChangeLog.
46881
46882 2009-08-14  Bruno Haible  <bruno@clisp.org>
46883
46884         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46885
46886 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46887
46888         maint.mk: support update-copyright-env
46889         * top/maint.mk (update-copyright-env): Define place-holder.
46890         (update-copyright): Expand $(update-copyright-env) before
46891         invoking update-copyright.
46892
46893 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46894
46895         update-copyright: implement forced reformatting
46896         * build-aux/update-copyright: Implement and document
46897         UPDATE_COPYRIGHT_FORCE.
46898         * tests/test-update-copyright.sh: Test it.
46899
46900 2009-08-14  Eric Blake  <ebb9@byu.net>
46901         and Bruno Haible  <bruno@clisp.org>
46902
46903         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46904         * tests/test-locale.c: Revert previous patch related to NULL.
46905         * tests/test-stdio.c: Likewise.
46906         * tests/test-stdlib.c: Likewise.
46907         * tests/test-string.c: Likewise.
46908         * tests/test-unistd.c: Likewise.
46909         * modules/time-tests (Depends-on): Add verify.
46910         * modules/wchar-tests (Depends-on): Likewise.
46911         * tests/test-time.c: Test for NULL compliance.
46912         * tests/test-wchar.c: Likewise.
46913         * modules/locale (Depends-on): Add stddef.
46914         * modules/stdio (Depends-on): Likewise.
46915         * modules/stdlib (Depends-on): Likewise.
46916         * modules/string (Depends-on): Likewise.
46917         * modules/time (Depends-on): Likewise.
46918         * modules/unistd (Depends-on): Likewise.
46919         * modules/wchar (Depends-on): Likewise.
46920         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46921         * lib/stdlib.in.h (includes): Likewise.
46922         * lib/string.in.h (includes): Likewise.
46923         * lib/time.in.h (includes): Likewise.
46924         * lib/unistd.in.h (includes): Likewise.
46925         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46926         replaced.
46927         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46928         * m4/stddef_h.m4: New file.
46929         * modules/stddef: Likewise.
46930         * lib/stddef.in.h: Likewise.
46931         * modules/stddef-tests: Likewise.
46932         * tests/test-stddef.c: Likewise.
46933         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46934         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46935         * doc/posix-headers/locale.texi (locale.h): Likewise.
46936         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46937         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46938         * doc/posix-headers/string.texi (string.h): Likewise.
46939         * doc/posix-headers/time.texi (time.h): Likewise.
46940         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46941         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46942
46943 2009-08-14  Eric Blake  <ebb9@byu.net>
46944
46945         doc: improve git diff of texinfo files
46946         * .gitattributes: Add rule for *.texi files, with hint on how to
46947         use it.
46948         Copied from m4, and based on a report by Bruno Haible.
46949
46950 2009-08-14  Bruno Haible  <bruno@clisp.org>
46951
46952         Disable multithread support by default on Cygwin 1.5.x for real.
46953         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46954
46955 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46956
46957         update-copyright: much ado about intervals
46958         * build-aux/update-copyright: Implement and document
46959         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46960         of copyright year intervals.
46961         Also, document UPDATE_COPYRIGHT_YEAR.
46962         * tests/test-update-copyright.sh: Test it.
46963
46964         update-copyright: convert 2-digit to 4-digit years
46965         * build-aux/update-copyright: Implement and document.
46966         * tests/test-update-copyright.sh: Update.
46967
46968 2009-08-14  Jim Meyering  <meyering@redhat.com>
46969
46970         test-exclude: avoid coreutils "make check" failure
46971         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46972         just as in test-argmatch.c.
46973
46974 2009-08-13  Eric Blake  <ebb9@byu.net>
46975
46976         test-dup2: fix bad assumption
46977         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46978         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46979
46980         test-version-etc: fix CRLF portability issue
46981         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46982         recognize \r.
46983         * tests/test-argp-version-etc-1.sh: Likewise.
46984
46985         getopt: update client modules
46986         * modules/argp (Depends-on): Use getopt-gnu.
46987         * modules/git-merge-changelog (Depends-on): Likewise.
46988         * modules/long-options (Depends-on): Likewise.
46989         * modules/xstrtol (Depends-on): Likewise.
46990
46991 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46992
46993         * tests/test-version-etc.sh: Don't fail on different
46994         project/version.  Don't fail on CRLF differences.  Rewrite to use
46995         multiple -e instead of multiple sed forks, suggested by Eric Blake
46996         <ebb9@byu.net>.
46997         * tests/test-argp-version-etc-1.sh: Likewise.
46998
46999 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47000
47001         * tests/test-version-etc.sh: Don't fail on different
47002         project/version.
47003
47004 2009-08-12  Bruno Haible  <bruno@clisp.org>
47005
47006         Tests for modules 'getopt-posix', 'getopt-gnu'.
47007         * modules/getopt-posix-tests: New file.
47008         * tests/test-getopt.c: New file.
47009         * tests/test-getopt.h: New file.
47010         * tests/test-getopt_long.h: New file.
47011
47012         New modules 'getopt-posix', 'getopt-gnu'.
47013         * modules/getopt-gnu: New file, renamed from modules/getopt.
47014         * modules/getopt-posix: New file.
47015         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47016         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47017         (gl_GETOPT): Remove macro.
47018         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47019         Disable the test against BSD systems that declare optreset. Test
47020         against mingw bug. Test against lack of support of optional arguments
47021         on many platforms.
47022         * doc/glibc-headers/getopt.texi: Update module name and list of
47023         relevant platforms.
47024         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47025         'getopt-gnu' and more portability problems.
47026         * NEWS: Mention the changes.
47027
47028 2009-08-12  Bruno Haible  <bruno@clisp.org>
47029
47030         Ensure that optarg etc. get declared by <unistd.h>.
47031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47032         AC_USE_SYSTEM_EXTENSIONS.
47033         * modules/getopt (Depends-on): Add 'extensions'.
47034
47035 2009-08-12  Bruno Haible  <bruno@clisp.org>
47036
47037         Avoid test link errors.
47038         * modules/pipe-filter-ii-tests (Makefile.am): Define
47039         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47040         * modules/pipe-filter-gi-tests (Makefile.am): Define
47041         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47043
47044 2009-08-12  Bruno Haible  <bruno@clisp.org>
47045
47046         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47047         gl_GETOPT_SUBSTITUTE before.
47048         (gl_GETOPT): Use it.
47049         * m4/argp.m4 (gl_ARGP): Update.
47050         Reported by Sergey Poznyakoff.
47051
47052         * m4/getopt.m4: Reorder macros.
47053         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47054         (gl_GETOPT_SUBSTITUTE): Remove macro.
47055
47056 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47057
47058         Minor improvement in gitlog-to-changelog
47059
47060         * build-aux/gitlog-to-changelog: New option `--format' makes
47061         output format string configurable.
47062
47063 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47064
47065         Optimize exclude: use hash tables for non-wildcard patterns.
47066
47067         * lib/exclude.c: Include hash.h and mbuiter.h
47068         (struct exclude_pattern, exclude_segment): New data types.
47069         (struct exclude): Rewrite.
47070         (fnmatch_pattern_has_wildcards): New function.
47071         (new_exclude_segment, free_exclude_segment): New functions.
47072         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47073         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47074         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47075         * modules/exclude: Depend on hash and mbuiter.
47076
47077         * modules/exclude-tests: New file.
47078         * tests/test-exclude.c: New file.
47079         * tests/test-exclude1.sh: New file.
47080         * tests/test-exclude2.sh: New file.
47081         * tests/test-exclude3.sh: New file.
47082         * tests/test-exclude4.sh: New file.
47083         * tests/test-exclude5.sh: New file.
47084         * tests/test-exclude6.sh: New file.
47085         * tests/test-exclude7.sh: New file.
47086
47087 2009-08-12  Bruno Haible  <bruno@clisp.org>
47088
47089         Ensure that getopt() gets declared by <unistd.h>.
47090         * lib/unistd.in.h: Conditionally include getopt.h.
47091         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47092         Set GNULIB_UNISTD_H_GETOPT.
47093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47094         GNULIB_UNISTD_H_GETOPT.
47095         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47096
47097 2009-08-12  Bruno Haible  <bruno@clisp.org>
47098
47099         Clarify logic.
47100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47101         gl_replace_getopt instead of GETOPT_H.
47102
47103 2009-08-12  Bruno Haible  <bruno@clisp.org>
47104
47105         * m4/getopt.m4: Add comments.
47106
47107 2009-08-12  Bruno Haible  <bruno@clisp.org>
47108
47109         Disable multithread support by default on Cygwin 1.5.x.
47110         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47111         set gl_use_threads=no if not specified otherwise.
47112
47113 2009-08-11  Bruno Haible  <bruno@clisp.org>
47114
47115         Avoid compilation error on NetBSD 5.0.
47116         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47117         * tests/test-stdio.c: Likewise.
47118         * tests/test-stdlib.c: Likewise.
47119         * tests/test-string.c: Likewise.
47120         * tests/test-unistd.c: Likewise.
47121         Reported by Greg Troxel <gdt@ir.bbn.com>
47122         at <https://savannah.gnu.org/support/?106973>.
47123
47124 2009-08-11  Bruno Haible  <bruno@clisp.org>
47125
47126         * modules/dup2-tests (Depends-on): Remove close.
47127
47128         Undo 2009-07-19 commit.
47129         * modules/acl-tests (Depends-on): Remove close.
47130         * modules/binary-io-tests (Depends-on): Likewise.
47131         * modules/closein-tests (Depends-on): Likewise.
47132         * modules/flock-tests (Depends-on): Likewise.
47133         * modules/fsync-tests (Depends-on): Likewise.
47134         * modules/lseek-tests (Depends-on): Likewise.
47135         * modules/pipe-tests (Depends-on): Likewise.
47136         * modules/posix_spawn-tests (Depends-on): Likewise.
47137         * modules/posix_spawnp-tests (Depends-on): Likewise.
47138         * modules/stat-time-tests (Depends-on): Likewise.
47139         * modules/yesno-tests (Depends-on): Likewise.
47140
47141 2009-08-10  Bruno Haible  <bruno@clisp.org>
47142
47143         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47144
47145 2009-08-10  Bruno Haible  <bruno@clisp.org>
47146
47147         Fix a gcc warning.
47148         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47149
47150 2009-08-10  Bruno Haible  <bruno@clisp.org>
47151
47152         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47153         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47154         not only the first time.
47155         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47156         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47157         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47158         is 1, not only the the first time.
47159
47160 2009-08-10  Bruno Haible  <bruno@clisp.org>
47161
47162         Make it possible to use module 'gethostname' without module 'close'.
47163         * lib/unistd.in.h (close): Evoke a link error only if
47164         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47166         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47167         * modules/unistd (Makefile.am): Substitute
47168         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47169         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47170         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47171         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47172         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47173         * modules/sys_ioctl (Makefile.am): Substitute
47174         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47175         * modules/socket (configure.ac): On native Windows, set
47176         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47177         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47178         Reported by Sam Steingold <sds@gnu.org>.
47179
47180 2009-08-10  Bruno Haible  <bruno@clisp.org>
47181
47182         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47183         * modules/ioctl (configure.ac): Likewise.
47184
47185 2009-08-10  Bruno Haible  <bruno@clisp.org>
47186
47187         Avoid collision between gnulib wrapper and libintl wrapper.
47188         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47189         already defined in intl/printf.c.
47190         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47191         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47192
47193 2009-08-09  Bruno Haible  <bruno@clisp.org>
47194
47195         Make <sys/select.h> really self-contained, also on Solaris 10.
47196         * lib/sys_select.in.h: Include <string.h>.
47197         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47198         Solaris 10 problem.
47199         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47200         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47201         Reported by Jim Meyering.
47202
47203 2009-08-09  Bruno Haible  <bruno@clisp.org>
47204
47205         Avoid warnings from 'aclocal' that are due to a use of macro name
47206         AM_XGETTEXT_OPTION that is not defined in automake.
47207         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47208         automake.
47209         * modules/error (configure.ac): Likewise.
47210         * modules/propername (configure.ac): Likewise.
47211         * modules/vasprintf (configure.ac): Likewise.
47212         * modules/verror (configure.ac): Likewise.
47213         * modules/xprintf (configure.ac): Likewise.
47214         * modules/xvasprintf (configure.ac): Likewise.
47215
47216 2009-08-08  Bruno Haible  <bruno@clisp.org>
47217
47218         Avoid compilation error in C++ mode.
47219         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47220         Reported by Sam Steingold <sds@gnu.org>.
47221
47222 2009-08-08  Bruno Haible  <bruno@clisp.org>
47223
47224         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47225         for the various Unix platforms.
47226         * doc/posix-headers/limits.texi: Update platforms list regarding
47227         HOST_NAME_MAX.
47228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47229
47230 2009-08-07  Jim Meyering  <meyering@redhat.com>
47231
47232         selinux-at: fix typo in a comment
47233         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47234         Spotted by Paolo Bonzini.
47235
47236         selinux-at: remove redundant m4 code, add documentation
47237         * modules/selinux-at (configure.ac): Remove redundant code.
47238         LIB_SELINUX is already set via the dependent module, selinux-h.
47239         (Include): Add quotes around selinux-at.h.
47240         * lib/selinux-at.h: Add documentation.
47241         Reported by Bruno Haible in
47242         http://marc.info/?l=gnulib-bug&m=124958988300749
47243
47244 2009-08-07  Bruno Haible  <bruno@clisp.org>
47245
47246         Avoid link error on MacOS X 10.3 and 10.4.
47247         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47248         on non-ELF systems.
47249         * lib/argp-pv.c (argp_program_version): Likewise.
47250         Reported by Simon Josefsson.
47251
47252 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47253
47254         * tests/test-version-etc.sh: Use $EXEEXT.
47255
47256 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47257
47258         update-copyright: update documentation to point to maint.mk
47259         * build-aux/update-copyright: Here.
47260
47261 2009-08-06  Jim Meyering  <meyering@redhat.com>
47262
47263         maint.mk: support update-copyright-local
47264         * top/maint.mk (update-copyright-local): Define place-holder.
47265         (update-copyright): Depend on $(update-copyright-local).
47266
47267 2009-08-06  Jim Meyering  <meyering@redhat.com>
47268
47269         selinux-at: new module
47270         Initially written for coreutils, this module will soon be
47271         used by findutils, too.
47272         * MODULES.html.sh [Misc]: Add selinux-at.
47273         * lib/selinux-at.h: New file, from coreutils.
47274         * lib/selinux-at.c: Likewise.
47275         * modules/selinux-at: Likewise.
47276         (License): Change from LGPL to GPL, since it depends
47277         on the GPL'd openat module.
47278
47279         doc: update README
47280         * README: Remove references to cogito.
47281         Remove cvs-repo-updating instructions from 2007.
47282         Don't imply that CVS is better if you have limited disk space.
47283
47284 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47285
47286         update-copyright: support C-style comments
47287         * build-aux/update-copyright: Implement and document.
47288         * tests/test-update-copyright.sh: Test.
47289
47290 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47291
47292         update-copyright: support omitted "(C)"
47293         * build-aux/update-copyright: Implement and document.  Also,
47294         allow variable whitespace before "(C)".
47295         * tests/test-update-copyright.sh: Test.
47296
47297 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47298
47299         update-copyright: don't trip on non-FSF copyright statements
47300         * build-aux/update-copyright: Fix so that the first correctly
47301         formatted FSF copyright statement is recognized no matter what
47302         appears before it.  Update documentation.
47303         * tests/test-update-copyright.sh: Test that.
47304
47305 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47306
47307         update-copyright: clean up code a little
47308         * build-aux/update-copyright: Append "_re" to the name of any
47309         variable holding a regular expression.
47310         Replace "old" and "new" with "stmt" in variable names.
47311         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47312         handled correctly.
47313         Format code more consistently.
47314
47315 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47316
47317         update-copyright-tests: improve portability
47318         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47319         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47320
47321 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47322
47323         update-copyright: support @copyright{} and &copy;
47324         * build-aux/update-copyright: Implement and document.
47325         * tests/test-update-copyright.sh: Test.
47326
47327 2009-08-04  Jim Meyering  <meyering@redhat.com>
47328
47329         update-copyright-tests: correctly test EOL=\r\n handling
47330         * tests/test-update-copyright.sh: Put \r at the end of some lines
47331         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47332
47333         maint.mk: make update-copyright exclusion list more configurable
47334         * top/maint.mk (update-copyright): Default to excluding COPYING,
47335         but allow an override, in case someone does want to update that file.
47336
47337         maint.mk: don't update copyright date in COPYING
47338         * top/maint.mk (update-copyright): Exclude COPYING.
47339
47340         maint.mk: add a copyright-updating rule
47341         * top/maint.mk (update-copyright): New rule.
47342         Derived from coreutils/Makefile.am.
47343
47344         update-copyright: rename some variables
47345         * build-aux/update-copyright: Rename a few variables for clarity.
47346         Tweak syntax.  List Joel E. Denny as coauthor.
47347
47348 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47349
47350         update-copyright: fix bug for 2-digit last year and add tests
47351         * build-aux/update-copyright: Fix bug.
47352         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47353         specified.
47354         * modules/update-copyright-tests: New
47355         * tests/test-update-copyright.sh: New.
47356
47357 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47358
47359         update-copyright: handle leading tabs in line prefix
47360         * build-aux/update-copyright: Count leading tabs as 8 spaces
47361         when computing margin.  This helps with the formatting of
47362         ChangeLogs, for example.
47363         Fix documentation a little.
47364
47365 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47366
47367         update-copyright: support EOL=\r\n
47368         * build-aux/update-copyright: Implement that.
47369
47370 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47371
47372         update-copyright: automatically format copyright statements
47373         * build-aux/update-copyright: Implement that.
47374         Also, be a little more predictable and safer by always failing
47375         when the full copyright format is not perfectly recognized as an
47376         unbroken whole.  Discussed at
47377         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47378         Rewrite documentation.
47379
47380 2009-08-03  Bruno Haible  <bruno@clisp.org>
47381
47382         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47383
47384 2009-08-02  Bruno Haible  <bruno@clisp.org>
47385
47386         Tests for module 'uname'.
47387         * modules/uname-tests: New file.
47388         * tests/test-uname.c: New file.
47389
47390         New module 'uname'.
47391         * lib/uname.c: New file.
47392         * m4/uname.m4: New file.
47393         * modules/uname: New file.
47394         * doc/posix-functions/uname.texi: Mention the new module.
47395
47396 2009-08-02  Bruno Haible  <bruno@clisp.org>
47397
47398         Tests for module 'sys_utsname'.
47399         * modules/sys_utsname-tests: New file.
47400         * tests/test-sys_utsname.c: New file.
47401
47402         New module 'sys_utsname'.
47403         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47404         * m4/sys_utsname_h.m4: New file.
47405         * modules/sys_utsname: New file.
47406         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47407
47408 2009-08-02  Bruno Haible  <bruno@clisp.org>
47409
47410         Implicitly initialize the sockets library.
47411         * lib/gethostname.c: Include sockets.h.
47412         (rpl_gethostname): Invoke gl_sockets_startup.
47413         * lib/socket.c: Include sockets.h.
47414         (rpl_socket): Invoke gl_sockets_startup.
47415         * modules/gethostname (Depends-on): Add sockets.
47416         * modules/socket (Depends-on): Likewise.
47417         * tests/test-poll.c: Don't include sockets.h.
47418         (main): Don't invoke gl_sockets_startup.
47419         * tests/test-select.c: Don't include sockets.h.
47420         (main): Don't invoke gl_sockets_startup.
47421
47422 2009-08-02  Bruno Haible  <bruno@clisp.org>
47423
47424         Allow multiple calls to gl_sockets_startup.
47425         * lib/sockets.c (initialized_sockets_version): New variable.
47426         (gl_sockets_startup): Do nothing if already called for this or a higher
47427         version.
47428         (gl_sockets_cleanup): Reset initialized_sockets_version.
47429
47430 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47431
47432         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47433         different project/version.
47434
47435 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47436             Bruno Haible  <bruno@clisp.org>
47437
47438         Tests for module 'pipe-filter-gi'.
47439         * modules/pipe-filter-gi-tests: New file.
47440         * tests/test-pipe-filter-gi1.sh: New file.
47441         * tests/test-pipe-filter-gi1.c: New file.
47442         * tests/test-pipe-filter-gi2.sh: New file.
47443         * tests/test-pipe-filter-gi2-main.c: New file.
47444         * tests/test-pipe-filter-gi2-child.c: New file.
47445
47446         New module 'pipe-filter-gi'.
47447         * lib/pipe-filter-gi.c: New file.
47448         * modules/pipe-filter-gi: New file.
47449
47450 2009-08-02  Bruno Haible  <bruno@clisp.org>
47451             Paolo Bonzini  <bonzini@gnu.org>
47452
47453         Tests for module 'pipe-filter-ii'.
47454         * modules/pipe-filter-ii-tests: New file.
47455         * tests/test-pipe-filter-ii1.sh: New file.
47456         * tests/test-pipe-filter-ii1.c: New file.
47457         * tests/test-pipe-filter-ii2.sh: New file.
47458         * tests/test-pipe-filter-ii2-main.c: New file.
47459         * tests/test-pipe-filter-ii2-child.c: New file.
47460
47461         New module 'pipe-filter-ii'.
47462         * lib/pipe-filter.h: New file.
47463         * lib/pipe-filter-ii.c: New file.
47464         * lib/pipe-filter-aux.h: New file.
47465         * modules/pipe-filter-ii: New file.
47466
47467 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47468
47469         * lib/gc-libgcrypt.c: Change copyright to FSF.
47470         * lib/gc-gnulib.c: Likewise.
47471
47472 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47473
47474         * lib/gethostname.c: Include limits.h.
47475
47476 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47477             Bruno Haible  <bruno@clisp.org>
47478
47479         Ensure HOST_NAME_MAX as part of the gethostname module.
47480         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47481         define also HOST_NAME_MAX.
47482         * tests/test-gethostname.c: Include <limits.h>.
47483         (main): Check also HOST_NAME_MAX.
47484         * doc/posix-headers/limits.texi: Document the mingw problem.
47485
47486 2009-08-02  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47489         Add comments.
47490
47491 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47492
47493         * lib/gethostname.c: Add Windows wrapper.
47494         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47495         * modules/gethostname: Depend on sys_socket & errno, for also
47496         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47497         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47498
47499 2009-07-31  Jim Meyering  <meyering@redhat.com>
47500
47501         getloadavg: fix symbol name in comment
47502         * lib/getloadavg.c: Correct a typo I introduced when adding
47503         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47504         Matt Kraai spotted the problem.
47505
47506 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47507
47508         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47509         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47510         code also if ! defined N_NAME_POINTER.
47511         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47512         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47513         but the n_name member is a 12-byte array.
47514
47515 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47516
47517         update-copyright: generalize comment handling
47518         * build-aux/update-copyright: Handle copyright statements
47519         within more comment styles.
47520         Document usage.
47521         Report any file with an external copyright holder or parse failure.
47522
47523 2009-07-29  Jim Meyering  <meyering@redhat.com>
47524
47525         mktime: correct setting of REPLACE_MKTIME
47526         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47527
47528         update-copyright: new module
47529         * modules/update-copyright: New file.
47530         * build-aux/update-copyright: New file.
47531         * MODULES.html.sh (maint+release support): Add update-copyright.
47532
47533 2009-07-27  Bruno Haible  <bruno@clisp.org>
47534
47535         Fix compilation error when <ctime> is used and mktime is replaced.
47536         * lib/time.in.h (mktime): New declaration.
47537         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47538         REPLACE_MKTIME instead of defining mktime in config.h.
47539         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47540         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47541         Reported by Ross McFarland <rwmcfa1@neces.com>.
47542
47543 2009-07-27  Bruno Haible  <bruno@clisp.org>
47544
47545         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47546         Reported by Matt Kraai <mkraai@beckman.com>.
47547
47548 2009-07-25  Jim Meyering  <meyering@redhat.com>
47549
47550         maint.mk: avoid warnings about missing files
47551         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47552         diagnostic when .prev-version does not exist.
47553         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47554         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47555         nonexistent cfg.mk.
47556         Suggestions from Simon Josefsson.
47557
47558 2009-07-25  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47561         defined as macros. Needed on QNX 6.4.1.
47562         Reported by Matt Kraai <mkraai@beckman.com>.
47563
47564 2009-07-23  Jim Meyering  <meyering@redhat.com>
47565
47566         maint.mk: invoke "make dist" with a working value of XZ_OPT
47567         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47568
47569 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47570
47571         Make fseeko.c compile on QNX.
47572         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47573
47574 2009-07-22  Peter Simons  <simons@cryp.to>
47575
47576         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47577         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47578         * lib/md4.h: Likewise.
47579         * lib/md5.h: Likewise.
47580         * lib/sha1.h: Likewise.
47581         * lib/sha256.h: Likewise.
47582         * lib/sha512.h: Likewise.
47583
47584         tests-sha1: don't assign literal string to 'char *' variable
47585         * tests/test-sha1.c (main): Declare locals with "const" to match
47586         attributes of the right hand side.
47587
47588 2009-07-21  Eric Blake  <ebb9@byu.net>
47589
47590         dup2: fix more mingw problems
47591         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47592         fd to itself.
47593         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47594         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47595         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47596         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47597         care of mingw bugs.
47598
47599 2009-07-21  Jim Meyering  <meyering@redhat.com>
47600
47601         vc-list-files: avoid failure when /bin/sh is dash
47602         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47603         On some Debian based systems, /bin/sh is a symlink to dash, and running
47604         this command would omit the "/" following each 'tests' prefix:
47605           dash -x build-aux/vc-list-files -C . tests
47606         That is because bash and dash work differently:
47607           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47608           bash ok
47609           dash odd
47610
47611 2009-07-21  Eric Blake  <ebb9@byu.net>
47612
47613         dup2-tests: test previous patch
47614         * modules/dup2-tests: New file.
47615         * tests/test-dup2.c: Likewise.
47616         * tests/test-open.c (main): Avoid unspecified behavior.
47617         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47618         test.
47619
47620         dup2: work around mingw and cygwin 1.5 bug
47621         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47623         * modules/unistd (Makefile.am): Substitute it.
47624         * lib/unistd.in.h (dup2): Declare the replacement.
47625         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47626         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47627         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47628         * modules/execute (Depends-on): Add dup2.
47629         * modules/fseterr (Depends-on): Likewise.
47630         * modules/pipe (Depends-on): Likewise.
47631         * modules/posix_spawn-internal (Depends-on): Likewise.
47632
47633 2009-07-21  Bruno Haible  <bruno@clisp.org>
47634
47635         * modules/.gitattributes: New file.
47636
47637 2009-07-20  Bruno Haible  <bruno@clisp.org>
47638
47639         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47640         (main): Use it.
47641
47642 2009-07-20  Eric Blake  <ebb9@byu.net>
47643
47644         test-pipe: make a bit more robust.
47645         * tests/test-pipe.c (myerr): Allow error messages regardless of
47646         what we do to stderr.
47647         (test_pipe): Rearrange to avoid deadlock.
47648         (child_main): Try a larger read, to ensure we avoided deadlock.
47649         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47650         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47651         if misused.
47652
47653 2009-07-19  Jim Meyering  <meyering@redhat.com>
47654
47655         fts: avoid false-positive cycle-detection
47656         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47657         for each new command line argument.
47658
47659 2009-07-19  Bruno Haible  <bruno@clisp.org>
47660
47661         Fix build error on mingw with the modules sys_select and unistd.
47662         * modules/acl-tests (Depends-on): Add close.
47663         * modules/binary-io-tests (Depends-on): Likewise.
47664         * modules/closein-tests (Depends-on): Likewise.
47665         * modules/flock-tests (Depends-on): Likewise.
47666         * modules/fsync-tests (Depends-on): Likewise.
47667         * modules/lseek-tests (Depends-on): Likewise.
47668         * modules/pipe-tests (Depends-on): Likewise.
47669         * modules/posix_spawn-tests (Depends-on): Likewise.
47670         * modules/posix_spawnp-tests (Depends-on): Likewise.
47671         * modules/stat-time-tests (Depends-on): Likewise.
47672         * modules/yesno-tests (Depends-on): Likewise.
47673
47674 2009-07-19  Bruno Haible  <bruno@clisp.org>
47675
47676         Unify conditionals.
47677         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47678         macros, not at the compiler macros.
47679         * lib/pipe.c: Likewise.
47680         * lib/execute.c: Likewise.
47681         * lib/spawni.c: Likewise.
47682
47683 2009-07-19  Bruno Haible  <bruno@clisp.org>
47684
47685         Fix handling of closed stdin/stdout/stderr on mingw.
47686         * lib/w32spawn.h: Include unistd.h.
47687         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47688         file descriptor with O_NOINHERIT flag.
47689         (fd_safer_noinherit): New function, based on fd-safer.c.
47690         (dup_safer_noinherit): New function, based on dup-safer.c.
47691         (undup_safer_noinherit): New function.
47692         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47693         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47694         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47695         instead of fd_safer.
47696         * tests/test-pipe.c: Include <windows.h>.
47697         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47698         result.
47699
47700         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47701         from main.
47702         (test_pipe): Pass an extra argument for disambiguation.
47703         (main): Invoke parent_main or child_main.
47704
47705         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47706         consistently.
47707
47708 2009-07-18  Eric Blake  <ebb9@byu.net>
47709
47710         test-pipe: fix mingw build
47711         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47712
47713 2009-07-18  Bruno Haible  <bruno@clisp.org>
47714
47715         * modules/pipe-tests (Makefile.am): Fix typo.
47716
47717 2009-07-18  Eric Blake  <ebb9@byu.net>
47718
47719         error: fix mingw build
47720         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47721         Reported by Bruno Haible.
47722
47723         error: avoid undefined use of stdout
47724         * lib/error.c (error, error_at_line): Check that fd 1 is open
47725         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47726         is handling faults and the close_stdout module wants to report the
47727         detection of closed stdout as an error.
47728
47729 2009-07-17  Eric Blake  <ebb9@byu.net>
47730
47731         pipe: be robust in face of closed fds
47732         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47733         should cause child to misbehave.
47734         * modules/pipe-tests: New module.
47735         * tests/test-pipe.c: New file.
47736         * tests/test-pipe.sh: New file.
47737         Reported by Akim Demaille.
47738
47739 2009-07-14  Bruno Haible  <bruno@clisp.org>
47740
47741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47742         Reported by anonymous kc.
47743
47744 2009-07-07  Jim Meyering  <meyering@redhat.com>
47745
47746         maint.mk: don't look for translatable strings in *.m4 or *.mk
47747         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47748         when searching for translatable strings.
47749
47750 2009-07-05  Jim Meyering  <meyering@redhat.com>
47751
47752         remove superfluous parentheses in STREQ definition
47753         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47754         * lib/getugroups.c (STREQ): Likewise.
47755         * lib/fnmatch.c (STREQ): Likewise.
47756         Spotted by Bruno Haible.
47757
47758 2009-07-04  Jim Meyering  <meyering@redhat.com>
47759
47760         argv-iter: new module
47761         * MODULES.html.sh: Add argv-iter.
47762         * lib/argv-iter.c, lib/argv-iter.h: New files.
47763         * modules/argv-iter: New file.
47764         * modules/argv-iter-tests: New file.
47765         * tests/test-argv-iter.c: Test it.
47766
47767 2009-07-04  Bruno Haible  <bruno@clisp.org>
47768
47769         Fix assertion.
47770         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47771         contains more exact copies of a given entry than file2, leave the extra
47772         copies unpaired rather than aborting.
47773         Reported by Eric Blake.
47774
47775 2009-07-02  Bruno Haible  <bruno@clisp.org>
47776
47777         Speedup git-merge-changelog for git cherry-pick.
47778         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47779         (entries_mapping_get): New function, extracted from compute_mapping.
47780         (entries_mapping_reverse_get): New function.
47781         (compute_mapping): Add a 'full' argument. Return the result in a
47782         'struct entries_mapping'.
47783         (main): Update. Access the mappings through entries_mapping_get.
47784         Reported by Eric Blake.
47785
47786 2009-07-02  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47789         best_i.
47790
47791 2009-07-02  Bruno Haible  <bruno@clisp.org>
47792
47793         Speed up approximate search for matching ChangeLog entries.
47794         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47795         argument. Call fstrcmp_bounded instead of fstrcmp.
47796         (compute_mapping, try_split_merged_entry, main): Update callers.
47797
47798 2009-07-02  Bruno Haible  <bruno@clisp.org>
47799
47800         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47801
47802 2009-06-30  Bruno Haible  <bruno@clisp.org>
47803
47804         Reduce the number of uc_is_cased calls.
47805         * lib/unicase.h (casing_suffix_context_t): Add
47806         'first_char_except_ignorable' field.
47807         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47808         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47809         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47810         Update initializer.
47811         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47812         case-ignorable characters.
47813         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47814         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47815         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47816         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47817         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47818
47819 2009-06-30  Bruno Haible  <bruno@clisp.org>
47820
47821         Tests for module 'unicase/ignorable'.
47822         * modules/unicase/ignorable-tests: New file.
47823         * tests/unicase/test-ignorable.c: New file, generated by
47824         gen-uni-tables.
47825
47826         Tests for module 'unicase/cased'.
47827         * modules/unicase/cased-tests: New file.
47828         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47829         * tests/unicase/test-predicate-part1.h: New file, derived from
47830         tests/unictype/test-predicate-part1.h.
47831         * tests/unicase/test-predicate-part2.h: New file, same as
47832         tests/unictype/test-predicate-part2.h.
47833
47834         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47835         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47836         (output_casing_properties): New function.
47837         (main): Call it.
47838         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47839         * lib/unicase/cased.c: Include unictype/bitmap.h.
47840         (uc_is_cased): Define through a bitmap lookup.
47841         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47842         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47843         (uc_is_case_ignorable): Define through a bitmap lookup.
47844         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47845         lib/unictype/bitmap.h.
47846         (Depends-on): Add inline. Clean up.
47847         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47848         lib/unictype/bitmap.h.
47849         (Depends-on): Add inline. Clean up.
47850         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47851         recognition.
47852         * tests/unicase/test-u16-tolower.c (main): Likewise.
47853         * tests/unicase/test-u32-tolower.c (main): Likewise.
47854
47855 2009-06-30  Bruno Haible  <bruno@clisp.org>
47856
47857         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47858         * lib/unicase/u16-casemap.c: Likewise.
47859         * lib/unicase/u32-casemap.c: Likewise.
47860
47861 2009-06-29  Bruno Haible  <bruno@clisp.org>
47862
47863         Define u32_casefold as a wrapper around u32_ct_casefold.
47864         * lib/unicase/u32-casefold.c: Update.
47865         * modules/unicase/u32-casefold (Depends-on): Add
47866         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47867         unicase/empty-suffix-context. Clean up.
47868
47869         Define u16_casefold as a wrapper around u16_ct_casefold.
47870         * lib/unicase/u16-casefold.c: Update.
47871         * modules/unicase/u16-casefold (Depends-on): Add
47872         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47873         unicase/empty-suffix-context. Clean up.
47874
47875         Define u8_casefold as a wrapper around u8_ct_casefold.
47876         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47877         * lib/unicase/u8-casefold.c: Update.
47878         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47879         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47880
47881         Define u32_totitle as a wrapper around u32_ct_totitle.
47882         * lib/unicase/u32-totitle.c: Update.
47883         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47884         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47885
47886         Define u16_totitle as a wrapper around u16_ct_totitle.
47887         * lib/unicase/u16-totitle.c: Update.
47888         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47889         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47890
47891         Define u8_totitle as a wrapper around u8_ct_totitle.
47892         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47893         functions.
47894         (FUNC): Delegate to U_CT_TOTITLE.
47895         * lib/unicase/u8-totitle.c: Update.
47896         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47897         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47898
47899         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47900         invocation.
47901         * modules/unicase/u32-tolower (Depends-on): Add
47902         unicase/empty-prefix-context, unicase/empty-suffix-context.
47903
47904         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47905         invocation.
47906         * modules/unicase/u16-tolower (Depends-on): Add
47907         unicase/empty-prefix-context, unicase/empty-suffix-context.
47908
47909         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47910         * modules/unicase/u8-tolower (Depends-on): Add
47911         unicase/empty-prefix-context, unicase/empty-suffix-context.
47912
47913         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47914         invocation.
47915         * modules/unicase/u32-toupper (Depends-on): Add
47916         unicase/empty-prefix-context, unicase/empty-suffix-context.
47917
47918         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47919         invocation.
47920         * modules/unicase/u16-toupper (Depends-on): Add
47921         unicase/empty-prefix-context, unicase/empty-suffix-context.
47922
47923         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47924         * modules/unicase/u8-toupper (Depends-on): Add
47925         unicase/empty-prefix-context, unicase/empty-suffix-context.
47926
47927         New module 'unicase/u32-ct-casefold'.
47928         * lib/unicase/u32-ct-casefold.c: New file.
47929         * modules/unicase/u32-ct-casefold: New file.
47930
47931         New module 'unicase/u16-ct-casefold'.
47932         * lib/unicase/u16-ct-casefold.c: New file.
47933         * modules/unicase/u16-ct-casefold: New file.
47934
47935         New module 'unicase/u8-ct-casefold'.
47936         * lib/unicase/u8-ct-casefold.c: New file.
47937         * lib/unicase/u-ct-casefold.h: New file, derived from
47938         lib/unicase/u-casefold.h.
47939         * modules/unicase/u8-ct-casefold: New file.
47940
47941         New module 'unicase/u32-ct-totitle'.
47942         * lib/unicase/u32-ct-totitle.c: New file.
47943         * modules/unicase/u32-ct-totitle: New file.
47944
47945         New module 'unicase/u16-ct-totitle'.
47946         * lib/unicase/u16-ct-totitle.c: New file.
47947         * modules/unicase/u16-ct-totitle: New file.
47948
47949         New module 'unicase/u8-ct-totitle'.
47950         * lib/unicase/u8-ct-totitle.c: New file.
47951         * lib/unicase/u-ct-totitle.h: New file, derived from
47952         lib/unicase/u-totitle.h.
47953         * modules/unicase/u8-ct-totitle: New file.
47954
47955         New module 'unicase/u32-ct-tolower'.
47956         * lib/unicase/u32-ct-tolower.c: New file.
47957         * modules/unicase/u32-ct-tolower: New file.
47958
47959         New module 'unicase/u16-ct-tolower'.
47960         * lib/unicase/u16-ct-tolower.c: New file.
47961         * modules/unicase/u16-ct-tolower: New file.
47962
47963         New module 'unicase/u8-ct-tolower'.
47964         * lib/unicase/u8-ct-tolower.c: New file.
47965         * modules/unicase/u8-ct-tolower: New file.
47966
47967         New module 'unicase/u32-ct-toupper'.
47968         * lib/unicase/u32-ct-toupper.c: New file.
47969         * modules/unicase/u32-ct-toupper: New file.
47970
47971         New module 'unicase/u16-ct-toupper'.
47972         * lib/unicase/u16-ct-toupper.c: New file.
47973         * modules/unicase/u16-ct-toupper: New file.
47974
47975         New module 'unicase/u8-ct-toupper'.
47976         * lib/unicase/u8-ct-toupper.c: New file.
47977         * modules/unicase/u8-ct-toupper: New file.
47978
47979         Add context arguments to u*_casemap functions.
47980         * lib/unicase/unicasemap.h: Include unicase.h.
47981         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47982         suffix_context arguments.
47983         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47984         functions.
47985         (FUNC): Add prefix_context and suffix_context arguments. Use
47986         uc_is_cased and uc_is_case_ignorable.
47987         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47988         * lib/unicase/u16-casemap.c: Likewise.
47989         * lib/unicase/u32-casemap.c: Likewise.
47990         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47991         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47992         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47993         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47994         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47995         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47996
47997         New module 'unicase/u32-suffix-context'.
47998         * lib/unicase/u32-suffix-context.c: New file.
47999         * modules/unicase/u32-suffix-context: New file.
48000
48001         New module 'unicase/u16-suffix-context'.
48002         * lib/unicase/u16-suffix-context.c: New file.
48003         * modules/unicase/u16-suffix-context: New file.
48004
48005         New module 'unicase/u8-suffix-context'.
48006         * lib/unicase/u8-suffix-context.c: New file.
48007         * lib/unicase/u-suffix-context.h: New file.
48008         * modules/unicase/u8-suffix-context: New file.
48009
48010         New module 'unicase/empty-suffix-context'.
48011         * lib/unicase/empty-suffix-context.c: New file.
48012         * modules/unicase/empty-suffix-context: New file.
48013
48014         New module 'unicase/u32-prefix-context'.
48015         * lib/unicase/u32-prefix-context.c: New file.
48016         * modules/unicase/u32-prefix-context: New file.
48017
48018         New module 'unicase/u16-prefix-context'.
48019         * lib/unicase/u16-prefix-context.c: New file.
48020         * modules/unicase/u16-prefix-context: New file.
48021
48022         New module 'unicase/u8-prefix-context'.
48023         * lib/unicase/u8-prefix-context.c: New file.
48024         * lib/unicase/u-prefix-context.h: New file.
48025         * lib/unicase/context.h: New file.
48026         * modules/unicase/u8-prefix-context: New file.
48027
48028         New module 'unicase/empty-prefix-context'.
48029         * lib/unicase/empty-prefix-context.c: New file.
48030         * modules/unicase/empty-prefix-context: New file.
48031
48032         New module 'unicase/ignorable'.
48033         * lib/unicase/ignorable.c: New file.
48034         * modules/unicase/ignorable: New file.
48035
48036         New module 'unicase/cased'.
48037         * lib/unicase/caseprop.h: New file.
48038         * lib/unicase/cased.c: New file.
48039         * modules/unicase/cased: New file.
48040
48041         New functions for case mapping of substrings.
48042         * lib/unicase.h (casing_prefix_context_t): New type.
48043         (unicase_empty_prefix_context): New variable.
48044         (u8_casing_prefix_context, u16_casing_prefix_context,
48045         u32_casing_prefix_context, u8_casing_prefixes_context,
48046         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48047         declarations.
48048         (casing_suffix_context_t): New type.
48049         (unicase_empty_suffix_context): New variable.
48050         (u8_casing_suffix_context, u16_casing_suffix_context,
48051         u32_casing_suffix_context, u8_casing_suffixes_context,
48052         u16_casing_suffixes_context, u32_casing_suffixes_context,
48053         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48054         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48055         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48056         declarations.
48057
48058 2009-06-28  Jim Meyering  <meyering@redhat.com>
48059
48060         boostrap: indent only with spaces
48061         * build-aux/bootstrap: Indent only with spaces, never TABs.
48062
48063         bootstrap: split long lines
48064         * build-aux/bootstrap: Keep line length < 80.
48065
48066         bootstrap: sync from coreutils
48067         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48068         just as autoreconf does.  Verify a list of prerequisite
48069         package-name,version-number pairs if defined in bootstrap.conf.
48070         Refer to README-prereq, if prerequisites are not satisfied.
48071
48072 2009-06-27  Eric Blake  <ebb9@byu.net>
48073
48074         tests: add test for bogus NULL definition
48075         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48076         * tests/test-stdlib.c: Likewise.
48077         * tests/test-string.c: Likewise.
48078         * tests/test-locale.c: Likewise.
48079         * tests/test-unistd.c: Likewise.
48080         * modules/stdio-tests (Depends-on): Add verify.
48081         * modules/stdlib-tests (Depends-on): Likewise.
48082         * modules/string-tests (Depends-on): Likewise.
48083         * modules/locale-tests (Depends-on): Likewise.
48084         * modules/unistd-tests (Depends-on): Likewise.
48085
48086 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48087
48088         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48089         self-explaining comment.
48090         * m4/selinux-selinux-h: Update serial.
48091         (gl_LIBSELINUX): New macro, adding a warning for missing development
48092         packages to code extracted from...
48093         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48094         Add warning for missing development packages here, too.
48095
48096 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48097
48098         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48099
48100 2009-06-25  Eric Blake  <ebb9@byu.net>
48101
48102         version-etc: fix regression
48103         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48104         gcc.
48105         (version_etc): Use it, to catch bugs with trailing NULL.
48106         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48107         (version_etc_va): Fix logic bug.
48108         * modules/version-etc-tests: Add test.
48109         * tests/test-version-etc.c: New file.
48110         * tests/test-version-etc.sh: Likewise.
48111
48112 2009-06-25  Sam Steingold  <sds@gnu.org>
48113
48114         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48115         mbtowc declaration.
48116
48117 2009-06-25  Eric Blake  <ebb9@byu.net>
48118
48119         fpurge: migrate into <stdio.h>
48120         * lib/fpurge.h: Delete...
48121         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48122         * lib/fpurge.c (fpurge): Change declaring header.
48123         * modules/fpurge (Files): Drop deleted file.
48124         (Depends-on): Add stdio.
48125         (configure.ac): Set witness.
48126         * modules/stdio (Makefile.am): Support fpurge macros.
48127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48128         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48129         * lib/fflush.c: Update client.
48130         * tests/test-fpurge.c: Likewise.
48131         * NEWS: Mention the change.
48132
48133 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48134
48135         * lib/argp-version-etc.c (program_authors): Add const
48136         qualifier.
48137         * lib/version-etc.c: Fix typos in the comments.
48138         * modules/argp-version-etc: Depends on version-etc.
48139
48140 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48141
48142         argp-version-etc: new module.
48143
48144         * lib/argp-version-etc.c: New file.
48145         * lib/argp-version-etc.h: New file.
48146         * modules/argp-version-etc: New file.
48147         * modules/argp-version-etc-tests: New file.
48148         * tests/test-argp-version-etc.c: New test.
48149         * tests/test-argp-version-etc-1.sh: New test.
48150
48151 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48152
48153         Provide additional interfaces and documentation for version-etc
48154         module.
48155
48156         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48157         interfaces.
48158         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48159         prototypes.
48160
48161 2009-06-24  Bruno Haible  <bruno@clisp.org>
48162
48163         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48164         HAVE_LIB${NAME} macro.
48165         Reported by Sam Steingold <sds@gnu.org>.
48166
48167 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48168
48169         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48170         needed.
48171
48172 2009-06-21  Bruno Haible  <bruno@clisp.org>
48173
48174         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48175         work.
48176         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48177         together with LIB${NAME}, LTLIB${NAME}.
48178         Reported by Sam Steingold <sds@gnu.org>.
48179
48180 2009-06-20  Jim Meyering  <meyering@redhat.com>
48181
48182         tests: make sc_require_test_exit_idiom more generic
48183         * top/maint.mk (Exit_witness_file): New overridable variable.
48184         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48185         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48186
48187 2009-06-19  Jim Meyering  <meyering@redhat.com>
48188
48189         hash: reverse order of src/dst parameters in an internal interface
48190         * lib/hash.c (transfer_entries): Reverse order of parameters to
48191         put DST before SRC.  Adjust callers.
48192
48193         tests: test-hash: avoid wholesale duplication
48194         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48195         Instead, use a loop and add a single conditional.
48196
48197         tests: test-hash: allow seed selection via a command line argument
48198         * tests/test-hash.c (get_seed): New function.
48199         (main): Use it.
48200
48201 2009-06-19  Eric Blake  <ebb9@byu.net>
48202
48203         hash: avoid memory leak on allocation failure
48204         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48205         failure.  Factor repeated algorithm...
48206         (transfer_entries): ...into new helper routine.
48207         (hash_delete): React to hash_rehash return value.
48208
48209         hash: reduce memory pressure in hash_rehash no-op case
48210         * lib/hash.c (next_prime): Avoid overflow.
48211         (hash_initialize): Factor bucket size computation...
48212         (compute_bucket_size): ...into new helper function.
48213         (hash_rehash): Use new function and open coding to reduce memory
48214         pressure, and avoid a memory leak in USE_OBSTACK code.
48215         Reported by Jim Meyering.
48216
48217 2009-06-18  Eric Blake  <ebb9@byu.net>
48218
48219         hash: make rotation more obvious
48220         * modules/hash (Depends-on): Add bitrotate and stdint.
48221         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48222         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48223         (SIZE_MAX): Rely on headers for definition.
48224         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48225         (raw_hasher): Use rotr_sz.
48226         Suggested by Jim Meyering.
48227
48228         hash: fix memory leak in last patch
48229         * lib/hash.c (hash_rehash): Avoid memory leak.
48230
48231         hash: avoid no-op rehashing
48232         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48233
48234         hash: provide default callback functions
48235         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48236         (hash_initialize): Use them as defaults.
48237         * tests/test-hash.c (main): Test this.
48238
48239         hash: minor optimization
48240         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48241         when possible.
48242         (hash_initialize): Document this promise.
48243         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48244         * tests/test-hash.c (hash_compare_strings): Test this.
48245
48246 2009-06-18  Bruno Haible  <bruno@clisp.org>
48247
48248         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48249         going to be replaced anyway.
48250
48251 2009-06-18  Bruno Haible  <bruno@clisp.org>
48252
48253         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48254         in one place.
48255         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48256         be replaced anyway.
48257
48258 2009-06-18  Eric Blake  <ebb9@byu.net>
48259
48260         hash: check for resize before insertion
48261         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48262         threshold before insertion, so that a pathological hash_rehash
48263         that fills every bucket can still trigger another rehash.
48264
48265 2009-06-18  Jim Meyering  <meyering@redhat.com>
48266
48267         hash-tests: add a loop around the small tests
48268         * tests/test-hash.c (main): Repeat small tests with selected
48269         small initial table sizes.
48270
48271 2009-06-17  Eric Blake  <ebb9@byu.net>
48272
48273         hash: minor cleanups
48274         * lib/hash.h (hash_entry): Make opaque, by moving...
48275         * lib/hash.c (hash_entry): ...here.
48276         (hash_insert): Clarify restrictions on what can be inserted.
48277         (hash_get_next): Clarify when it is safe to remove an element
48278         during traversal.
48279         (check_tuning): Skip verification when tuning is known safe.
48280         (hash_initialize): Clarify restrictions on tuning.
48281
48282 2009-06-17  Jim Meyering  <jim@meyering.net>
48283         and Eric Blake  <ebb9@byu.net>
48284
48285         hash-tests: new module
48286         * modules/hash-tests: New file.
48287         * tests/test-hash.c: New file.
48288
48289 2009-06-17  Eric Blake  <ebb9@byu.net>
48290
48291         strstr-simple: document new module
48292         * MODULES.html.sh: Document new module.
48293
48294         strstr, strcasestr: replace on platforms with broken memchr
48295         * modules/strstr: Split into...
48296         * modules/strstr-simple: ...new module that does not care about
48297         performance, but does care about glibc bug.
48298         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48299         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48300         if platform memchr is broken, per Debian bug 521737.
48301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48302         memchr.
48303         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48304         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48305         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48306         * modules/mountlist (Depends-on): Add strstr-simple.
48307         * modules/gen-uni-tables (Depends-on): Likewise.
48308         * modules/argz (Depends-on): Add strstr.
48309
48310 2009-06-17  Bruno Haible  <bruno@clisp.org>
48311
48312         * modules/posix_spawn-internal (Depends-on): Add errno.
48313
48314 2009-06-17  Bruno Haible  <bruno@clisp.org>
48315
48316         Define missing ESTALE on Interix 3.5.
48317         * lib/errno.in.h (ESTALE): Assign a value if missing.
48318         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48319         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48320         missing.
48321         * doc/posix-headers/errno.texi: Mention the Interix bug.
48322         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48323
48324 2009-06-15  Eric Blake  <ebb9@byu.net>
48325
48326         memchr, memchr2: add valgrind exception
48327         * lib/memchr.valgrind: New file.
48328         * lib/memchr2.valgrind: New file.
48329         * modules/memchr (Files): Distribute valgrind file.
48330         * modules/memchr2 (Files): Likewise.
48331
48332         docs: memchr is no longer obsolete
48333         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48334         * lib/string.in.h (memchr): Simplify logic.
48335
48336 2009-06-14  Jim Meyering  <meyering@redhat.com>
48337
48338         link-follow: fix the "checking..." message to not mention trailing slash
48339         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48340         never considered trailing slashes.
48341
48342 2009-06-14  Bruno Haible  <bruno@clisp.org>
48343
48344         * m4/memchr.m4: Mention also the bug on IA-64.
48345         * doc/posix-functions/memchr.texi: Likewise.
48346
48347 2009-06-12  Eric Blake  <ebb9@byu.net>
48348
48349         memchr: detect broken x86_64 and alpha implementations
48350         * modules/memchr-tests (Depends-on): Move mmap detection...
48351         * modules/memchr (Depends-on): ...here.
48352         (configure.ac): Set indicator.
48353         * lib/string.in.h (memchr): Declare replacement.
48354         * modules/string (Makefile.am): Trigger replacement.
48355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48356         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48357         bugs.
48358         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48359         * modules/getpagesize (License): Relax license.
48360
48361 2009-06-11  Bruno Haible  <bruno@clisp.org>
48362
48363         * lib/idpriv.h: Add more references.
48364
48365 2009-06-08  Bruno Haible  <bruno@clisp.org>
48366
48367         Tests for module 'idpriv-droptemp'.
48368         * modules/idpriv-droptemp-tests: New file.
48369         * tests/test-idpriv-droptemp.sh: New file.
48370         * tests/test-idpriv-droptemp.su.sh: New file.
48371         * tests/test-idpriv-droptemp.c: New file.
48372
48373         New module 'idpriv-droptemp'.
48374         * lib/idpriv-droptemp.c: New file.
48375         * modules/idpriv-droptemp: New file.
48376
48377 2009-06-08  Bruno Haible  <bruno@clisp.org>
48378
48379         Tests for module 'idpriv-drop'.
48380         * modules/idpriv-drop-tests: New file.
48381         * tests/test-idpriv-drop.sh: New file.
48382         * tests/test-idpriv-drop.su.sh: New file.
48383         * tests/test-idpriv-drop.c: New file.
48384
48385         New module 'idpriv-drop'.
48386         * lib/idpriv.h: New file.
48387         * lib-idpriv-drop.c: New file.
48388         * m4/idpriv.m4: New file.
48389         * modules/idpriv-drop: New file.
48390
48391 2009-06-08  Bruno Haible  <bruno@clisp.org>
48392
48393         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48394         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48395         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48396         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48397         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48398         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48399         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48400
48401 2009-06-08  Eric Blake  <ebb9@byu.net>
48402
48403         test-strstr: use memory fence, when possible
48404         * tests/test-strstr.c (main): Use memory fence, in order to be
48405         more likely to trigger Debian bug 521737.
48406         * modules/strstr-tests (Files): Pull in additional files.
48407
48408         memchr: no longer obsolete, for wider field testing
48409         * modules/memchr (Status, Notice): Delete, this module is no
48410         longer obsolete.
48411         * modules/vasnprintf (Depends-on): Add memchr.
48412
48413 2009-06-07  Jim Meyering  <meyering@redhat.com>
48414
48415         hash: declare some functions with the warn_unused_result attribute
48416         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48417
48418 2009-06-07  Bruno Haible  <bruno@clisp.org>
48419
48420         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48421         Reported by Eric Blake.
48422
48423 2009-06-06  Eric Blake  <ebb9@byu.net>
48424
48425         test-alignof: fix typo with long double
48426         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48427         compiler error.
48428
48429 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48430
48431         Escape non-texinfo { and }s.
48432         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48433         markup error.
48434
48435 2009-06-04  Jim Meyering  <meyering@redhat.com>
48436
48437         gitlog-to-changelog: don't infloop on an empty commit log
48438         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48439         Reported by Boris Petersen <transacid@centerim.org>.
48440
48441 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48442
48443         version-etc: extend for packagers
48444         Add three new configure options, intended for packagers:
48445           --with-packager="packager name"
48446           --with-packager-version="packager-specific version"
48447           --with-packager-bug-reports="packager bug reporting"
48448         An example with coreutils:
48449           $ ./configure \
48450             --with-packager=Gentoo \
48451             --with-packager-bug-report=http://bugs.gentoo.org/ \
48452             --with-packager-version="patchset 1.6"
48453           $ ./src/ls --version | head -n2
48454           ls (GNU coreutils) 7.1-dirty
48455           Packaged by Gentoo (patchset 1.6)
48456         Note that the bug reporting info via --help doesn't show up because
48457         coreutils uses its own custom emit_bug_reporting_address() implementation
48458         in src/system.h.  If it didn't, it'd look like:
48459           $ ./src/ls --help | tail -n4
48460           Report bugs to <bug-coreutils@gnu.org>.
48461           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48462           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48463           General help using GNU software: <http://www.gnu.org/gethelp/>.
48464         * lib/version-etc.c: Print new information, if provided.
48465         * m4/version-etc.m4: New file.
48466         * modules/version-etc (Files): Add m4/version-etc.m4.
48467         (configure.ac): Add gl_VERSION_ETC.
48468
48469 2009-05-31  Bruno Haible  <bruno@clisp.org>
48470
48471         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48472         and 'int64_t'.
48473         * modules/alignof-tests (Dependencies): Add stdint.
48474         Reported by Eric Blake.
48475
48476 2009-05-31  Bruno Haible  <bruno@clisp.org>
48477
48478         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48479         restriction due to compiler bugs.
48480         Reported by Eric Blake.
48481
48482 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48483             Bruno Haible  <bruno@clisp.org>
48484
48485         Fix test-alignof failure.
48486         * lib/alignof.h (alignof_slot): New macro.
48487         (alignof_type): New macro, with the same semantics as the previous
48488         'alignof'.
48489         (alignof): Alias to alignof_slot.
48490         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48491         check that the results are usable as constant expressions.
48492
48493 2009-05-31  Bruno Haible  <bruno@clisp.org>
48494
48495         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48496         * tests/test-memchr.c (main): Check that memchr does not read past the
48497         first occurrence of the byte.
48498         * tests/test-strstr.c (main): Update comment.
48499         Suggested by Eric Blake.
48500
48501 2009-05-30  Bruno Haible  <bruno@clisp.org>
48502
48503         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48504         detail how to use dumpbin.
48505         Reported by David Byron <dbyron@dbyron.com>.
48506
48507 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48508
48509         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48510
48511 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48512
48513         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48514
48515 2009-05-28  Bruno Haible  <bruno@clisp.org>
48516
48517         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48518         build-aux/ files.
48519
48520 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48521
48522         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48523
48524 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48525
48526         * gnulib-tool (sed_transform_main_lib_file)
48527         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48528         regexps.
48529
48530 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48531
48532         * tests/test-strstr.c: Add another self-test.
48533         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48534         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48535
48536 2009-05-23  Bruno Haible  <bruno@clisp.org>
48537
48538         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48539         change.
48540
48541 2009-05-21  Bruno Haible  <bruno@clisp.org>
48542
48543         Simplify use of mode_t varargs.
48544         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48545         uses 'mode_t' or 'int'.
48546         * lib/openat.c (openat): Likewise.
48547         * lib/open-safer.c (open_safer): Likewise.
48548         * m4/mode_t.m4: New file.
48549         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48550         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48551         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48552         * modules/open (Files): Add m4/mode_t.m4.
48553         * modules/openat (Files): Likewise.
48554         * modules/fcntl-safer (Files): Likewise.
48555         Suggested by Eric Blake.
48556
48557 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48558
48559         * doc/glibc-functions/fallocate.texi: New file.
48560         * doc/gnulib.texi: Include it.
48561
48562 2009-05-21  Eric Blake  <ebb9@byu.net>
48563             Bruno Haible  <bruno@clisp.org>
48564
48565         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48566         invocations.
48567         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48568
48569 2009-05-21  Eric Blake  <ebb9@byu.net>
48570             Bruno Haible  <bruno@clisp.org>
48571
48572         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48573         include_next. Fix of 2008-11-20 commit.
48574         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48575         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48576         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48577         NEXT_MATH_H.
48578         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48579         instead of NEXT_MATH_H.
48580
48581 2009-05-21  Bruno Haible  <bruno@clisp.org>
48582
48583         Avoid redefinition warnings for SIZE_MAX.
48584         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48585         Reported by Simon Josefsson.
48586
48587 2009-05-21  Bruno Haible  <bruno@clisp.org>
48588
48589         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48590         AC_CACHE_VAL.
48591
48592 2009-05-20  Bruno Haible  <bruno@clisp.org>
48593
48594         Make zeroptr.h work on mingw.
48595         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48596         mprotect.
48597         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48598         * modules/memchr2-tests (configure.ac): Likewise.
48599         * modules/memcmp-tests (configure.ac): Likewise.
48600         * modules/memmem-tests (configure.ac): Likewise.
48601         * modules/memrchr-tests (configure.ac): Likewise.
48602         Reported by Simon Josefsson.
48603
48604 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48605
48606         * tests/test-glob.c: Include string.h for strcmp prototype.
48607
48608 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48609
48610         * modules/getdelim (Depends-on): Add explicit stdint, although it
48611         was implicitly already pulled in via realloc-posix.
48612         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48613
48614 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48615
48616         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48617         G. Christensen" <tgc@jupiterrise.com>.
48618         * m4/sys_socket_h.m4: Check for sa_family_t.
48619         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48620         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48621         * tests/test-sys_socket.c: Check that sa_family_t works.
48622
48623 2009-05-18  Eric Blake  <ebb9@byu.net>
48624
48625         maint.mk: allow gnulib_dir in VPATH build
48626         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48627
48628 2009-05-15  Jim Meyering  <meyering@redhat.com>
48629
48630         maint.mk: Give gnulib_dir a default definition.
48631         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48632         Thus, most packages no longer need to specify this variable in cfg.mk
48633
48634 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48635
48636         rename.m4: fix typos that would make non-mingw cross-configure fail
48637         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48638
48639 2009-05-13  Eric Blake  <ebb9@byu.net>
48640
48641         mmap-anon: avoid out-of-order autoconf expansion
48642         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48643         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48644         * modules/memchr-tests (Depends-on): Add extensions.
48645         * modules/memchr2-tests (Depends-on): Add extensions.
48646         * modules/memcmp-tests (Depends-on): Add extensions.
48647         * modules/memmem-tests (Depends-on): Add extensions.
48648         * modules/memrchr-tests (Depends-on): Add extensions.
48649
48650 2009-05-13  Bruno Haible  <bruno@clisp.org>
48651
48652         Make some tests ISO C 99 compliant.
48653         * tests/zerosize-ptr.h: New file.
48654         * tests/test-memchr.c: Include zerosize-ptr.h.
48655         (main): Use a zero-size object pointer instead of NULL.
48656         * tests/test-memchr2.c: Include zerosize-ptr.h.
48657         (main): Use a zero-size object pointer instead of NULL.
48658         * tests/test-memcmp.c: Include zerosize-ptr.h.
48659         (main): Use a zero-size object pointer instead of NULL.
48660         * tests/test-memmem.c: Include zerosize-ptr.h.
48661         (main): Use a zero-size object pointer instead of NULL.
48662         * tests/test-memrchr.c: Include zerosize-ptr.h.
48663         (main): Use a zero-size object pointer instead of NULL.
48664         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48665         m4/mmap-anon.m4.
48666         (Depends-on): Add getpagesize.
48667         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48668         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48669         m4/mmap-anon.m4.
48670         (Depends-on): Add getpagesize.
48671         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48672         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48673         m4/mmap-anon.m4.
48674         (Depends-on): Add getpagesize.
48675         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48676         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48677         m4/mmap-anon.m4.
48678         (Depends-on): Add getpagesize.
48679         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48680         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48681         m4/mmap-anon.m4.
48682         (Depends-on): Add getpagesize.
48683         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48684
48685 2009-05-12  Bruno Haible  <bruno@clisp.org>
48686
48687         Tests for module 'alignof'.
48688         * modules/alignof-tests: New file.
48689         * tests/test-alignof.c: New file.
48690
48691 2009-05-12  Bruno Haible  <bruno@clisp.org>
48692
48693         Fix alignof macro.
48694         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48695         vendor compilers that are always correct.
48696
48697 2009-05-12  Bruno Haible  <bruno@clisp.org>
48698
48699         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48700         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48701         not whether its fully works.
48702
48703 2009-05-12  Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48706
48707 2009-05-12  Jim Meyering  <meyering@redhat.com>
48708
48709         * top/maint.mk: Adjust backslash alignment.
48710
48711 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48712
48713         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48714
48715 2009-05-11  Eric Blake  <ebb9@byu.net>
48716
48717         argp: avoid undefined behavior
48718         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48719         macros.
48720
48721 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48722
48723         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48724         user.name to prevent git commit from complaining.
48725
48726 2009-05-10  Bruno Haible  <bruno@clisp.org>
48727
48728         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48729         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48730         it rewrites every file name only once.
48731         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48732
48733 2009-05-08  Bruno Haible  <bruno@clisp.org>
48734
48735         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48736         instead of 'max'.
48737
48738 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48739
48740         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48741         sockaddr_storage test.
48742
48743 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48744
48745         * modules/sys_socket (Makefile.am): Substitute
48746         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48747         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48748         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48749         * tests/test-sys_socket.c: Check sockaddr_storage.
48750
48751 2009-05-08  Bruno Haible  <bruno@clisp.org>
48752
48753         New module 'alignof'.
48754         * lib/alignof.h: New file.
48755         * modules/alignof: New file.
48756
48757 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48758             Bruno Haible  <bruno@clisp.org>
48759
48760         Fix test-file-has-acl on FreeBSD.
48761         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48762         mask is implicitly added.
48763         * tests/test-file-has-acl.c: Include <signal.h>.
48764         (main): Terminate the test after 5 seconds.
48765         * modules/acl-tests (configure.ac): Check for alarm function.
48766
48767 2009-05-04  Bruno Haible  <bruno@clisp.org>
48768
48769         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48770         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48771         * modules/errno (configure.ac): Drop AC_REQUIRE.
48772         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48773         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48774
48775 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48776
48777         * modules/glob-tests: New module.
48778         * tests/test-glob.c: Add.
48779
48780 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48781
48782         * modules/fnmatch-tests: New module.
48783         * tests/test-fnmatch.c: Add.
48784
48785 2009-05-04  Eric Blake  <ebb9@byu.net>
48786
48787         maint: make the new no-submodule-changes rule VPATH-safe
48788         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48789
48790 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48791             Bruno Haible  <bruno@clisp.org>
48792
48793         acl: Fix infinite loop on FreeBSD.
48794         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48795         of return value from acl_get_entry.
48796         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48797         Likewise.
48798
48799 2009-05-03  Bruno Haible  <bruno@clisp.org>
48800
48801         * lib/acl-internal.h (acl_entries): Clarify return value.
48802         * lib/acl_entries.c (acl_entries): Likewise.
48803
48804 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48805
48806         Bug fix in acl module.
48807         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48808
48809 2009-05-03  Bruno Haible  <bruno@clisp.org>
48810
48811         Create gperf-generated file in the source dir, not in the build dir.
48812         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48813         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48814         * modules/unicase/locale-language (unicase/locale-languages.h):
48815         Likewise.
48816         * modules/unicase/special-casing (unicase/special-casing-table.h):
48817         Likewise.
48818         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48819         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48820         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48821         Reported by Ralf Wildenhues.
48822
48823 2009-05-03  Bruno Haible  <bruno@clisp.org>
48824
48825         * modules/fnmatch (Description, configure.ac): Taken from
48826         fnmatch-posix.
48827         * modules/fnmatch-posix: Turn into a symbolic reference to the
48828         'fnmatch' module, and deprecate.
48829         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48830
48831 2009-05-03  Bruno Haible  <bruno@clisp.org>
48832
48833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48834         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48835         Reported by Ralf Wildenhues.
48836
48837 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48838
48839         * m4/fnmatch.m4: Fix fnmatch re-define.
48840
48841 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48842
48843         priv-set: new module and tests; adapt write-any-file
48844         * lib/priv-set.c: New file.
48845         * lib/priv-set.h: New file.
48846         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48847         * lib/write-any-file.c: Simplify by using priv-set module.
48848         * m4/priv-set.m4: New file.
48849         * modules/priv-set: New file.
48850         * modules/unlinkdir: Add dependency on priv-set module.
48851         * modules/write-any-file: Likewise.
48852
48853         Tests for module 'priv-set'.
48854         * modules/priv-set-tests: New file.
48855         * tests/test-priv-set.c: New file.
48856
48857 2009-05-03  Jim Meyering  <meyering@redhat.com>
48858             Bruno Haible  <bruno@clisp.org>
48859
48860         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48861         use the converted UTF-8 variant of the name instead.
48862
48863 2009-05-03  Jim Meyering  <meyering@redhat.com>
48864
48865         tests: tighten some getdate tests
48866         * tests/test-getdate.c (main): Tighten tests: require equality,
48867         not just greater than.  Set TZ envvar to UTC0.
48868
48869 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48870
48871         getdate: correctly interpret "next monday" when run on a Monday
48872         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48873         that e.g., "next tues" (when run on a tuesday) results in a date
48874         that is one week in the future, and not today's date.
48875         I.e., add a week when the wday is the same as the current one.
48876         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48877         and earlier by Martin Bernreuther and Jan Minář.
48878         * tests/test-getdate.c (main): Check that "next DAY" is always in
48879         the future and that "last DAY" is always in the past.
48880
48881 2009-05-02  Jim Meyering  <meyering@redhat.com>
48882
48883         build: ensure that a release build fails when a submodule is unclean
48884         * top/maint.mk (no-submodule-changes): New rule.
48885         (alpha beta major): Depend on it.
48886
48887 2009-05-02  Bruno Haible  <bruno@clisp.org>
48888
48889         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48890         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48891         shell variable gl_fnmatch_required to detect which variant is
48892         requested.
48893         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48894         gl_FUNC_FNMATCH_POSIX.
48895         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48896         exclude fnmatch-posix.
48897
48898 2009-05-02  Bruno Haible  <bruno@clisp.org>
48899
48900         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48901         * modules/mbsrtowcs (License): Change to LGPLv2+.
48902         * modules/strnlen1 (License): Likewise.
48903         Reported by Simon Josefsson.
48904
48905 2009-05-02  Bruno Haible  <bruno@clisp.org>
48906
48907         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48908         "cross".
48909         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48910         gnulib-tool was called with option --source-base=lib.
48911
48912 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48913
48914         Use automake *-local hooks without commands, for extensibility.
48915         * modules/localcharset (Makefile.am): Rename install-exec-local
48916         rule to install-exec-localcharset, and make it a prerequisite of
48917         install-exec-local.  Likewise, rename the uninstall-local rule to
48918         uninstall-localcharset, and make it a prerequisite of the former.
48919
48920 2009-05-01  Bruno Haible  <bruno@clisp.org>
48921
48922         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48923         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48924         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48925         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48926         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48927         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48928         m4/locale-zh.m4, m4/codeset.m4.
48929
48930         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48931         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48932         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48933         m4/locale-zh.m4.
48934
48935         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48936         REPLACE_WCRTOMB if mbstate_t must be replaced.
48937         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48938         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48939
48940 2009-05-01  Bruno Haible  <bruno@clisp.org>
48941
48942         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48943         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48944         dngettext, dcngettext, textdomain, bindtextdomain,
48945         bind_textdomain_codeset): Undefine before redefining.
48946
48947 2009-04-30  Bruno Haible  <bruno@clisp.org>
48948
48949         Fix bug introduced on 2009-04-25.
48950         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48951         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48952         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48953         is defined.
48954         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48955         is defined.
48956         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48957         is defined.
48958         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48959
48960 2009-04-28  Bruno Haible  <bruno@clisp.org>
48961
48962         Comment tweaks.
48963         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48964         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48965         * lib/unicase.h (u*_casexfrm): Likewise.
48966         Reported by Paolo Bonzini.
48967
48968 2009-04-28  Bruno Haible  <bruno@clisp.org>
48969
48970         Fix a compilation error.
48971         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48972         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48973         Reported by Jim Meyering.
48974
48975 2009-04-27  Bruno Haible  <bruno@clisp.org>
48976
48977         New module 'libunistring'.
48978         * modules/libunistring: New file.
48979         * m4/libunistring.m4: New file.
48980         * MODULES.html.sh (Unicode string functions): Add it.
48981
48982 2009-04-27  Eric Blake  <ebb9@byu.net>
48983
48984         maint.mk: allow package-specific header to provide <config.h>
48985         * top/maint.mk (sc_require_config_h): New variable.
48986         (sc_require_config_h, sc_require_config_h_first): Use it.
48987
48988 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48989
48990         * top/maint.mk (sc_avoid_if_before_free): Except
48991         useless-if-before-free script.
48992
48993 2009-04-27  Eric Blake  <ebb9@byu.net>
48994
48995         maintainer-makefile: depend on all required helper scripts
48996         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48997         useless-if-before-free.
48998         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48999         version, rather than assuming gnulib checkout is available.
49000         Reported by Simen Josefsson.
49001
49002 2009-04-26  Bruno Haible  <bruno@clisp.org>
49003
49004         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49005         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49006         "../" or "..".
49007
49008 2009-04-26  Bruno Haible  <bruno@clisp.org>
49009
49010         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49011         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49012         AC_LIB_HAVE_LINKFLAGS.
49013
49014 2009-04-26  Bruno Haible  <bruno@clisp.org>
49015
49016         Simplify calling convention of u*_conv_from_encoding.
49017         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49018         u32_conv_from_encoding): Expect a resultbuf argument and return the
49019         result directly as a pointer.
49020         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49021         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49022         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49023         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49024         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49025         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49026         Update.
49027         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49028         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49029         * lib/vasnprintf.c (VASNPRINTF): Update.
49030         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49031         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49032         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49033         * NEWS: Mention the change.
49034
49035 2009-04-26  Bruno Haible  <bruno@clisp.org>
49036
49037         Simplify calling convention of u*_conv_to_encoding.
49038         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49039         u32_conv_to_encoding): Expect a resultbuf argument and return the
49040         result directly as a pointer.
49041         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49042         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49043         freeing scaled_offsets if mem_iconveha failed.
49044         * lib/unicase/u-casexfrm.h (FUNC): Update.
49045         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49046         * lib/vasnprintf.c (VASNPRINTF): Update.
49047         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49048         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49049         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49050         * NEWS: Mention the change.
49051
49052 2009-04-26  Bruno Haible  <bruno@clisp.org>
49053
49054         Avoid test failures on AIX and OSF/1.
49055         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49056         malloc(0).
49057         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49058         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49059         Likewise.
49060         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49061         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49062         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49063         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49064         * doc/posix-functions/malloc.texi: Document the portability problem
49065         related to malloc(0).
49066
49067 2009-04-26  Bruno Haible  <bruno@clisp.org>
49068
49069         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49070         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49071         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49072
49073 2009-04-25  Bruno Haible  <bruno@clisp.org>
49074
49075         Avoid link error when creating a namespace clean library.
49076         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49077         as macro with arguments if already defined as an alias.
49078         * lib/signbitf.c (gl_signbitf): Don't undefine.
49079         * lib/signbitd.c (gl_signbitd): Don't undefine.
49080         * lib/signbitl.c (gl_signbitl): Don't undefine.
49081
49082 2009-04-25  Jim Meyering  <meyering@redhat.com>
49083
49084         vc-list-files: fix another quoting bug
49085         * build-aux/vc-list-files: Avoid sed backslash expansion
49086         of pathological directory names.
49087
49088 2009-04-25  Eric Blake  <ebb9@byu.net>
49089
49090         vc-list-files: fix shell quoting error
49091         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49092         timestamp.
49093
49094 2009-04-25  Jim Meyering  <meyering@redhat.com>
49095
49096         vc-list-files: restore lost functionality with subdir argument
49097         * build-aux/vc-list-files: When given a non-"." sub-directory
49098         argument, substitute the $dir/ prefix back onto each resulting name.
49099         Otherwise, coreutils' root_tests check would fail.
49100
49101 2009-04-24  Eric Blake  <ebb9@byu.net>
49102
49103         vc-list-files: ignore git symlinks
49104         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49105         than ls-files, to ignore git symlinks.
49106
49107         maint.mk: import improvements from m4
49108         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49109         (move_if_change): Delete unused macro.
49110         (news-date-check, vc-diff-check): Support VPATH builds.
49111         (announcement): Likewise.  Split --bootstrap-tools list...
49112         (boostrap-tools): ...into separate list, which can be overridden
49113         in cfg.mk.
49114         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49115         requiring dependency on useless-if-before-free module.
49116         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49117         Support VPATH builds.
49118
49119 2009-04-24  Jim Meyering  <meyering@redhat.com>
49120
49121         maint.mk: remove coreutils-specific rules and variables
49122         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49123         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49124         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49125
49126         maint.mk: remove obsolete rule
49127         * top/maint.mk (rel-check): Remove rule.
49128         (WGET, WGETFLAGS): Remove now-unused variables.
49129
49130 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49131
49132         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49133         consistency.
49134
49135         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49136         '$(PATH_SEPARATOR)' instead of ':'.
49137
49138 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49139
49140         * lib/getopt1.c (main): Use 'const' for static array.
49141
49142 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49143
49144         * top/maint.mk: Sync with coreutils.
49145         * NEWS: Explain incompatibilities.
49146
49147 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49148             Bruno Haible  <bruno@clisp.org>
49149
49150         Fix cross-compilation results.
49151         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49152         statement, as third argument of AC_TRY_RUN.
49153         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49154         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49155         Likewise.
49156         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49157         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49158         Likewise.
49159         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49160         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49161         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49162
49163 2009-04-20  Bruno Haible  <bruno@clisp.org>
49164
49165         Avoid test failure on mingw.
49166         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49167
49168 2009-04-20  Bruno Haible  <bruno@clisp.org>
49169
49170         Avoid compilation error on mingw.
49171         * modules/localename-tests (Depends-on): Add locale.
49172
49173 2009-04-19  Bruno Haible  <bruno@clisp.org>
49174
49175         Support for building a shared library on Windows platforms.
49176         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49177         (main): Test the presence of UNINORM_NFC here.
49178         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49179         (main): Test the presence of UNINORM_NFD here.
49180         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49181         (main): Test the presence of UNINORM_NFKC here.
49182         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49183         (main): Test the presence of UNINORM_NFKD here.
49184
49185 2009-04-19  Bruno Haible  <bruno@clisp.org>
49186
49187         Avoid a compiler warning.
49188         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49189         Change type of variable 'sequence'.
49190
49191 2009-04-19  Bruno Haible  <bruno@clisp.org>
49192
49193         * modules/configmake (Makefile.am): When the contents of configmake.h
49194         does not change, arrange to preserve its modification time.
49195
49196 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49197
49198         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49199         gettext domain.
49200
49201 2009-04-16  Jim Meyering  <meyering@redhat.com>
49202
49203         useless-if-before-free: improve conversion code
49204         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49205         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49206
49207 2009-04-14  Bruno Haible  <bruno@clisp.org>
49208
49209         * modules/fcntl (Depends-on): Add extensions.
49210         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49211
49212 2009-04-12  Ben Pfaff  <blp@gnu.org>
49213
49214         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49215         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49216
49217 2009-03-20  Ben Pfaff  <blp@gnu.org>
49218
49219         Make rename replace existing destinations on Windows.
49220         * m4/rename.m4: Add test for Mingw.
49221         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49222         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49223         * doc/posix-functions/rename.texi: Document.
49224
49225 2009-04-10  Bruno Haible  <bruno@clisp.org>
49226
49227         New include file "iconveh.h".
49228         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49229         * lib/striconveh.h: Include it.
49230         (enum iconv_ilseq_handler): Remove definition.
49231         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49232         striconveh.h.
49233         * lib/striconveha.c: Include striconveh.h.
49234         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49235         * modules/striconveh (Files): Add lib/iconveh.h.
49236         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49237         lib/striconveh.h.
49238
49239 2009-04-10  Bruno Haible  <bruno@clisp.org>
49240
49241         * lib/uniconv.h: Update comment.
49242
49243 2009-04-10  Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49246         always.
49247         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49248         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49249         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49250         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49251         "unistring-notinline.h", so that the function gets defined always.
49252         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49253         * lib/unistr/u8-uctomb.c: Likewise.
49254         * lib/unistr/u16-mbtouc.c: Likewise.
49255         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49256         * lib/unistr/u16-uctomb.c: Likewise.
49257         * lib/unistr/u32-mbtouc.c: Likewise.
49258         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49259         * lib/unistr/u32-uctomb.c: Likewise.
49260
49261 2009-04-10  Bruno Haible  <bruno@clisp.org>
49262
49263         Mark 'utime' obsolete.
49264         * modules/utime (Status, Notice): New sections.
49265         Suggested by Jim Meyering.
49266
49267         Fix cross-compile guess for utime test.
49268         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49269         autoconf.
49270         * doc/posix-functions/utime.texi: Give more precisions.
49271         Reported by Jan <ipif@ymail.com>.
49272
49273 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49274
49275         filevercmp: correct today's change
49276         * lib/filevercmp.c: Also handle coreutils' test inputs.
49277         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49278
49279         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49280         for reporting it.
49281         * lib/filevercmp.c: Special handle for "", "." and "..".
49282         * tests/test-filevercmp.c: Enlarge the set suite.
49283
49284 2009-04-07  Jim Meyering  <meyering@redhat.com>
49285
49286         useless-if-before-free: show how to remove braced useless free, too
49287         * build-aux/useless-if-before-free: still only in a comment, though.
49288
49289 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49290
49291         maint.mk: import changes to syntax-check macros from coreutils
49292         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49293         Use them in the relevant macros.
49294
49295 2009-04-06  Bruno Haible  <bruno@clisp.org>
49296
49297         Fix unportable use of bit-fields.
49298         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49299         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49300         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49301
49302 2009-04-06  Bruno Haible  <bruno@clisp.org>
49303
49304         Avoid test failures on AIX and OSF/1.
49305         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49306         that malloc(0) = NULL.
49307         * tests/unicase/test-u8-tolower.c (check): Likewise.
49308         * tests/unicase/test-u8-totitle.c (check): Likewise.
49309         * tests/unicase/test-u8-toupper.c (check): Likewise.
49310         * tests/unicase/test-u16-casefold.c (check): Likewise.
49311         * tests/unicase/test-u16-tolower.c (check): Likewise.
49312         * tests/unicase/test-u16-totitle.c (check): Likewise.
49313         * tests/unicase/test-u16-toupper.c (check): Likewise.
49314         * tests/unicase/test-u32-casefold.c (check): Likewise.
49315         * tests/unicase/test-u32-tolower.c (check): Likewise.
49316         * tests/unicase/test-u32-totitle.c (check): Likewise.
49317         * tests/unicase/test-u32-toupper.c (check): Likewise.
49318         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49319         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49320         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49321         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49322         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49323         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49324         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49325         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49326         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49327         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49328         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49329         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49330
49331 2009-04-05  Bruno Haible  <bruno@clisp.org>
49332
49333         Work around an autoconf limitation.
49334         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49335         comment line if it would be longer than 3 KB.
49336
49337 2009-04-05  Bruno Haible  <bruno@clisp.org>
49338
49339         Avoid test failure with libiconv-1.13.
49340         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49341         of the expected test results.
49342
49343 2009-04-05  Bruno Haible  <bruno@clisp.org>
49344
49345         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49346         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49347         that it should be installed.
49348
49349 2009-04-05  Bruno Haible  <bruno@clisp.org>
49350
49351         * gnulib-tool: New option --copy-file.
49352         (func_usage): Document it.
49353         (func_dest_tmpfilename): Moved out of func_import.
49354         (func_add_file, func_update_file): New functions, extracted from
49355         func_import.
49356         (func_import): Update.
49357
49358 2009-04-05  Karl Berry  <karl@gnu.org>
49359
49360         * README: prominently mention gnulib-tool.
49361         Rearrange sections so getting the code is near the top.
49362
49363 2009-04-05  Bruno Haible  <bruno@clisp.org>
49364
49365         * lib/unicase.h: Mention u*_cmp2.
49366         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49367         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49368         * lib/unicase/ulc-casecmp.c: Likewise.
49369         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49370         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49371         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49372         unistr/u8-cmp.
49373         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49374         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49375         unistr/u16-cmp.
49376         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49377         unistr/u32-cmp.
49378
49379         * lib/uninorm.h: Mention u*_cmp2.
49380         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49381         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49382         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49383         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49384         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49385         unistr/u8-cmp.
49386         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49387         unistr/u16-cmp.
49388         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49389         unistr/u32-cmp.
49390
49391         New module 'unistr/u32-cmp2'.
49392         * lib/unistr/u32-cmp2.c: New file.
49393         * modules/unistr/u32-cmp2: New file.
49394
49395         New module 'unistr/u16-cmp2'.
49396         * lib/unistr/u16-cmp2.c: New file.
49397         * modules/unistr/u16-cmp2: New file.
49398
49399         New module 'unistr/u8-cmp2'.
49400         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49401         * lib/unistr/u8-cmp2.c: New file.
49402         * lib/unistr/u-cmp2.h: New file.
49403         * modules/unistr/u8-cmp2: New file.
49404
49405 2009-04-05  Bruno Haible  <bruno@clisp.org>
49406
49407         * lib/unictype.h (uc_property_is_valid): New macro.
49408         * tests/unictype/test-pr_byname.c (main): Use it.
49409
49410         * lib/unistr.h: Doc fixes.
49411         * lib/uniconv.h: Doc fixes.
49412         * lib/unictype.h: Doc fixes.
49413
49414 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49415
49416         Port coreutils 7.2 to Solaris 8.
49417
49418         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49419         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49420         for Solaris 8.  This is a bit of a hack, as it means it's the
49421         caller's responsibility to add -lnsl if needed, but most likely it
49422         won't be needed since only getaddrinfo uses this and getaddrinfo
49423         isn't needed on Solaris 8.
49424
49425         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49426         problem to Solaris 8 encountered with coreutils 7.2, which
49427         resulted in a message "fnmatch.c:292: warning: passing argument 4
49428         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49429         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49430
49431 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49432
49433         * m4/ld-version-script.m4: Add FIXME comment.
49434
49435 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49436
49437         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49438         SOVERSION variable.
49439
49440 2009-04-02  Bruno Haible  <bruno@clisp.org>
49441
49442         * Makefile (info, html, dvi, pdf): Combine the rules.
49443         Suggested by Jim Meyering.
49444
49445 2009-04-01  Bruno Haible  <bruno@clisp.org>
49446
49447         * Makefile (info, html, dvi, pdf): New targets.
49448         Reported by Reuben Thomas <rrt@sc3d.org>.
49449
49450 2009-04-01  Bruno Haible  <bruno@clisp.org>
49451
49452         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49453         can be put into PATH.
49454         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49455
49456 2009-04-01  Bruno Haible  <bruno@clisp.org>
49457
49458         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49459
49460 2009-04-01  Bruno Haible  <bruno@clisp.org>
49461
49462         Rename module 'visibility'.
49463         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49464         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49465         * doc/gnulib.texi: Update.
49466         * MODULES.html.sh (Misc): Update.
49467         * NEWS: Mention the change.
49468
49469 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49470
49471         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49472         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49473         Eric Blake <ebb9@byu.net> for review.
49474         * MODULES.html.sh: Add lib-msvc-compat.
49475         * doc/gnulib.texi: Link to new section.
49476         * m4/ld-output-def.m4: New file.
49477         * doc/ld-output-def.texi: New file.
49478
49479 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49480
49481         Rename ld-version-script to lib-symbol-versions.  Suggested by
49482         Bruno Haible <bruno@clisp.org>.
49483         * modules/ld-version-script: Renamed to lib-symbol-versions.
49484         * doc/ld-version-script.texi: Fix module name.
49485         * MODULES.html.sh: Add lib-symbol-versions.
49486
49487 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49488
49489         * modules/u64-tests: New file.
49490         * tests/test-u64.c: New file.
49491
49492 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49493
49494         * MODULES.html.sh: Mention u64.
49495         * modules/u64: New module.
49496         * modules/crypto/sha512: Depend on u64 module instead of providing
49497         u64.h.
49498
49499 2009-03-27  Eric Blake  <ebb9@byu.net>
49500
49501         test-strerror: make debugging EAI_SYSTEM easier
49502         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49503         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49504         failure was EAI_SYSTEM.
49505
49506 2009-03-25  Bruno Haible  <bruno@clisp.org>
49507
49508         Fix a problem with --enable-relocatable on Solaris 7.
49509         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49510         since 2008-02-24.
49511
49512 2009-03-25  Eric Blake  <ebb9@byu.net>
49513
49514         test-sockets: avoid gcc warning
49515         * tests/test-sockets.c (main): Silence compiler warning.
49516
49517 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49518
49519         New modules nproc, pthread, contributed by Glen Lenker.
49520
49521         * MODULES.html.sh: Add pthread, nproc.
49522         * lib/nproc.c: New file.
49523         * lib/nproc.h: New file.
49524         * lib/pthread.in.h: New file.
49525         * m4/pthread.m4: New file.
49526         * modules/nproc: New file.
49527         * modules/pthread: New file.
49528
49529 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49530
49531         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49532         New variable.
49533
49534 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49535
49536         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49537         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49538         * tests/test-filevercmp.c: Add tests for backup suffixes.
49539
49540 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49541
49542         * modules/stdlib (Depends-on): Add stdint, needed when defining
49543         struct random_data on, for example, HP-UX 10.20.  Reported by
49544         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49545
49546 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49547
49548         * lib/readline.c (readline): Call fflush on stdout after printing
49549         prompt.
49550
49551 2009-03-20  Bruno Haible  <bruno@clisp.org>
49552
49553         Remove dependency from 'close' module to -lws2_32 on native Windows.
49554         * lib/close-hook.h: New file.
49555         * lib/close-hook.c: New file.
49556         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49557         w32sock.h.
49558         (_gl_close_fd_maybe_socket): Remove function.
49559         (rpl_close): Invoke execute_all_close_hooks instead of
49560         _gl_close_fd_maybe_socket.
49561         * lib/sockets.c: Include close-hook.h, w32sock.h.
49562         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49563         (close_sockets_hook): New variable.
49564         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49565         (gl_sockets_cleanup): Unregister it.
49566         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49567         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49568         * modules/close-hook: New file.
49569         * modules/close (Files): Remove lib/w32sock.h.
49570         (Depends-on): Add close-hook.
49571         (Link): Remove section.
49572         * modules/sockets (Files): Add lib/w32sock.h.
49573         (Depends-on): Add close-hook.
49574         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49575         invocation.
49576         * NEWS: Mention that LIB_CLOSE is gone.
49577
49578 2009-03-23  Eric Blake  <ebb9@byu.net>
49579
49580         signal-tests: test previous patch
49581         * tests/test-signal.c: New file.
49582         * modules/signal-tests: Likewise.
49583
49584         signal.h: always support 'volatile sig_atomic_t'
49585         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49586         (gl_SIGNAL_H_DEFAULTS): Add a default.
49587         * modules/signal (Makefile.am): Substitute if needed.
49588         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49589         users can blindly add volatile.
49590         * doc/posix-headers/signal.texi (signal.h): Document it.
49591         Reported by Matthew Woehlke.
49592
49593 2009-03-23  Jim Meyering  <meyering@redhat.com>
49594
49595         pathmax: PATH_MAX: use pathconf only when available
49596         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49597         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49598         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49599         This avoids a link failure in a PSP cross-compilation environment
49600         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49601
49602         * lib/vasnprintf.c (divide): Fix typo in comment.
49603
49604 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49605
49606         * gnulib-tool (func_filter_filelist): Fix comment.
49607
49608 2009-03-20  Bruno Haible  <bruno@clisp.org>
49609
49610         Make sockets.h self-contained.
49611         * lib/sockets.c: Include sockets.h first.
49612         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49613
49614 2009-03-19  Eric Blake  <ebb9@byu.net>
49615
49616         doc: mention more functions added in cygwin 1.7.0
49617         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49618         addition.
49619         * doc/posix-functions/log2f.texi: Likewise.
49620
49621 2009-03-19  Jim Meyering  <meyering@redhat.com>
49622
49623         fsusage: avoid syntax error due to statement-before-declaration
49624         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49625         after all declarations.  Reported by Matthew Woehlke in
49626         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49627
49628 2009-03-18  Eric Blake  <ebb9@byu.net>
49629
49630         build-aux/compile: sync from automake
49631         * build-aux/compile: New file, from automake.
49632         * config/srclist.txt: Mention build-aux/compile.
49633
49634 2009-03-17  Bruno Haible  <bruno@clisp.org>
49635
49636         * lib/git-merge-changelog.c: Fix typo in comment.
49637         Reported by Reuben Thomas <rrt@sc3d.org>.
49638
49639 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49640
49641         * m4/regex.m4: update and improve help for
49642         --without-included-regex.
49643
49644 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49645
49646         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49647         failure on missing include files.
49648
49649 2009-03-17  Eric Blake  <ebb9@byu.net>
49650
49651         doc: mention more functions added in cygwin 1.7.0
49652         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49653         addition.
49654         * doc/posix-functions/fwscanf.texi: Likewise.
49655         * doc/posix-functions/swprintf.texi: Likewise.
49656         * doc/posix-functions/swscanf.texi: Likewise.
49657         * doc/posix-functions/vfwprintf.texi: Likewise.
49658         * doc/posix-functions/vfwscanf.texi: Likewise.
49659         * doc/posix-functions/vswprintf.texi: Likewise.
49660         * doc/posix-functions/vswscanf.texi: Likewise.
49661         * doc/posix-functions/vwprintf.texi: Likewise.
49662         * doc/posix-functions/vwscanf.texi: Likewise.
49663         * doc/posix-functions/wcscasecmp.texi: Likewise.
49664         * doc/posix-functions/wcsdup.texi: Likewise.
49665         * doc/posix-functions/wcsftime.texi: Likewise.
49666         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49667         * doc/posix-functions/wprintf.texi: Likewise.
49668         * doc/posix-functions/wscanf.texi: Likewise.
49669         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49670
49671 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49672
49673         maint.mk: really add $(AM_MAKEFLAGS)
49674         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49675         was inadvertently omitted in the last commit.
49676         Spotted by Bruno Haible.
49677
49678         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49679         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49680         $(AM_MAKEFLAGS)' rather than plain `make'.
49681
49682         gnulib-tool: execute $MAKE not make
49683         * gnulib-tool: Default $MAKE to 'make'.
49684         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49685         than make.  Initialize $MAKE in the do-autobuild script.
49686
49687         gnulib-tool: use $MAKE not make in generated files
49688         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49689         make, in generated files.  Initialize $MAKE in the do-autobuild
49690         script.
49691
49692         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49693
49694         GNUmakefile: disable parallelism only for multiple, recursive targets
49695         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49696         additions in the Makefile.
49697         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49698         by Automake.
49699         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49700         are listed on the command line and at least one of them is
49701         listed in $(ALL_RECURSIVE_TARGETS).
49702
49703 2009-03-14  Bruno Haible  <bruno@clisp.org>
49704
49705         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49706         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49707         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49708         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49709         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49710         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49711         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49712         unistr/u8-uctomb.
49713         * modules/unistr/u8-strchr (Depends-on): Likewise.
49714         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49715         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49716         unistr/u16-uctomb.
49717         * modules/unistr/u16-strchr (Depends-on): Likewise.
49718         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49719
49720 2009-03-12  Bruno Haible  <bruno@clisp.org>
49721
49722         Work around select() bug on Interix 3.5.
49723         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49724         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49725         * m4/select.m4: New file.
49726         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49727         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49728         * modules/select (Files): Add m4/select.m4.
49729         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49730         * modules/nanosleep (Depends-on): Add select.
49731         * modules/poll (Depends-on): Likewise.
49732         * doc/posix-functions/select.texi: Mention the Interix bug.
49733         Reported by Markus Duft <mduft@gentoo.org>.
49734
49735         * lib/select.c: Renamed from lib/winsock-select.c.
49736         * modules/select (Files): Add lib/select.c, remove
49737         lib/winsock-select.c.
49738         (configure.ac): Update.
49739
49740 2009-03-12  Jim Meyering  <meyering@redhat.com>
49741
49742         avoid gcc warnings about unused macro definitions
49743         * lib/readtokens.c (STREQ): Remove unused definition.
49744         * lib/xmalloc.c (SIZE_MAX): Likewise.
49745         * lib/openat-die.c (N_): Likewise.
49746         * lib/mountlist.c (SIZE_MAX): Remove definition.
49747         Instead, include <stdint.h>.
49748         * lib/readutmp.c: Likewise.
49749         * modules/readutmp (Depends-on): Add stdint.
49750         * modules/mountlist (Depends-on): Add stdint.
49751         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49752
49753 2009-03-10  Bruno Haible  <bruno@clisp.org>
49754
49755         Tests for module 'mbmemcasecoll'.
49756         * modules/mbmemcasecoll-tests: New file.
49757         * tests/test-mbmemcasecoll1.sh: New file.
49758         * tests/test-mbmemcasecoll2.sh: New file.
49759         * tests/test-mbmemcasecoll3.sh: New file.
49760         * tests/test-mbmemcasecoll.c: New file.
49761
49762         New module 'mbmemcasecoll'.
49763         * lib/mbmemcasecoll.h: New file.
49764         * lib/mbmemcasecoll.c: New file.
49765         * modules/mbmemcasecoll: New file.
49766
49767         * tests/test-mbmemcasecmp.h: New file, extracted from
49768         tests/test-mbmemcasecmp.c.
49769         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49770         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49771         (main): Update.
49772         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49773
49774 2009-03-09  Bruno Haible  <bruno@clisp.org>
49775
49776         Tests for module 'mbmemcasecmp'.
49777         * modules/mbmemcasecmp-tests: New file.
49778         * tests/test-mbmemcasecmp1.sh: New file.
49779         * tests/test-mbmemcasecmp2.sh: New file.
49780         * tests/test-mbmemcasecmp3.sh: New file.
49781         * tests/test-mbmemcasecmp.c: New file.
49782
49783         New module 'mbmemcasecmp'.
49784         * lib/mbmemcasecmp.h: New file.
49785         * lib/mbmemcasecmp.c: New file.
49786         * modules/mbmemcasecmp: New file.
49787
49788 2009-03-09  Bruno Haible  <bruno@clisp.org>
49789
49790         Tests for module 'unicase/ulc-casecoll'.
49791         * modules/unicase/ulc-casecoll-tests: New file.
49792         * tests/unicase/test-ulc-casecoll1.sh: New file.
49793         * tests/unicase/test-ulc-casecoll2.sh: New file.
49794         * tests/unicase/test-ulc-casecoll.c: New file.
49795
49796         New module 'unicase/ulc-casecoll'.
49797         * lib/unicase.h (ulc_casecoll): New declaration.
49798         * lib/unicase/ulc-casecoll.c: New file.
49799         * modules/unicase/ulc-casecoll: New file.
49800
49801         New module 'unicase/ulc-casexfrm'.
49802         * lib/unicase.h (ulc_casexfrm): New declaration.
49803         * lib/unicase/ulc-casexfrm.c: New file.
49804         * modules/unicase/ulc-casexfrm: New file.
49805
49806 2009-03-09  Bruno Haible  <bruno@clisp.org>
49807
49808         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49809         invocations.
49810
49811         * m4/mbscasecmp.m4: Remove file.
49812         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49813         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49814
49815         * m4/mbscasestr.m4: Remove file.
49816         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49817         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49818
49819         * m4/mbschr.m4: Remove file.
49820         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49821         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49822
49823         * m4/mbscspn.m4: Remove file.
49824         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49825         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49826
49827         * m4/mbslen.m4: Remove file.
49828         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49829         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49830
49831         * m4/mbsncasecmp.m4: Remove file.
49832         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49833         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49834
49835         * m4/mbsnlen.m4: Remove file.
49836         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49837         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49838
49839         * m4/mbspbrk.m4: Remove file.
49840         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49841         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49842
49843         * m4/mbspcasecmp.m4: Remove file.
49844         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49845         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49846
49847         * m4/mbsrchr.m4: Remove file.
49848         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49849         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49850
49851         * m4/mbssep.m4: Remove file.
49852         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49853         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49854
49855         * m4/mbsspn.m4: Remove file.
49856         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49857         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49858
49859         * m4/mbsstr.m4: Remove file.
49860         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49861         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49862
49863         * m4/mbstok_r.m4: Remove file.
49864         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49865         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49866
49867         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49868
49869         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49870         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49871
49872         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49873
49874 2009-03-08  Bruno Haible  <bruno@clisp.org>
49875
49876         Tests for module 'unicase/ulc-casecmp'.
49877         * modules/unicase/ulc-casecmp-tests: New file.
49878         * tests/unicase/test-ulc-casecmp1.sh: New file.
49879         * tests/unicase/test-ulc-casecmp2.sh: New file.
49880         * tests/unicase/test-ulc-casecmp.c: New file.
49881
49882         New module 'unicase/ulc-casecmp'.
49883         * lib/unicase.h (ulc_casecmp): New declaration.
49884         * lib/unicase/ulc-casecmp.c: New file.
49885         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49886         'const SRC_UNIT *'.
49887         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49888         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49889         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49890         * modules/unicase/ulc-casecmp: New file.
49891
49892         Tests for module 'unicase/u32-is-cased'.
49893         * modules/unicase/u32-is-cased-tests: New file.
49894         * tests/unicase/test-u32-is-cased.c: New file.
49895
49896         Tests for module 'unicase/u16-is-cased'.
49897         * modules/unicase/u16-is-cased-tests: New file.
49898         * tests/unicase/test-u16-is-cased.c: New file.
49899
49900         Tests for module 'unicase/u8-is-cased'.
49901         * modules/unicase/u8-is-cased-tests: New file.
49902         * tests/unicase/test-u8-is-cased.c: New file.
49903         * tests/unicase/test-is-cased.h: New file.
49904
49905         New module 'unicase/u32-is-cased'.
49906         * lib/unicase/u32-is-cased.c: New file.
49907         * modules/unicase/u32-is-cased: New file.
49908
49909         New module 'unicase/u16-is-cased'.
49910         * lib/unicase/u16-is-cased.c: New file.
49911         * modules/unicase/u16-is-cased: New file.
49912
49913         New module 'unicase/u8-is-cased'.
49914         * lib/unicase/u8-is-cased.c: New file.
49915         * lib/unicase/u-is-cased.h: New file.
49916         * modules/unicase/u8-is-cased: New file.
49917
49918         Tests for module 'unicase/u32-is-casefolded'.
49919         * modules/unicase/u32-is-casefolded-tests: New file.
49920         * tests/unicase/test-u32-is-casefolded.c: New file.
49921
49922         Tests for module 'unicase/u16-is-casefolded'.
49923         * modules/unicase/u16-is-casefolded-tests: New file.
49924         * tests/unicase/test-u16-is-casefolded.c: New file.
49925
49926         Tests for module 'unicase/u8-is-casefolded'.
49927         * modules/unicase/u8-is-casefolded-tests: New file.
49928         * tests/unicase/test-u8-is-casefolded.c: New file.
49929         * tests/unicase/test-is-casefolded.h: New file.
49930
49931         New module 'unicase/u32-is-casefolded'.
49932         * lib/unicase/u32-is-casefolded.c: New file.
49933         * modules/unicase/u32-is-casefolded: New file.
49934
49935         New module 'unicase/u16-is-casefolded'.
49936         * lib/unicase/u16-is-casefolded.c: New file.
49937         * modules/unicase/u16-is-casefolded: New file.
49938
49939         New module 'unicase/u8-is-casefolded'.
49940         * lib/unicase/u8-is-casefolded.c: New file.
49941         * modules/unicase/u8-is-casefolded: New file.
49942
49943         Tests for module 'unicase/u32-is-titlecase'.
49944         * modules/unicase/u32-is-titlecase-tests: New file.
49945         * tests/unicase/test-u32-is-titlecase.c: New file.
49946
49947         Tests for module 'unicase/u16-is-titlecase'.
49948         * modules/unicase/u16-is-titlecase-tests: New file.
49949         * tests/unicase/test-u16-is-titlecase.c: New file.
49950
49951         Tests for module 'unicase/u8-is-titlecase'.
49952         * modules/unicase/u8-is-titlecase-tests: New file.
49953         * tests/unicase/test-u8-is-titlecase.c: New file.
49954         * tests/unicase/test-is-titlecase.h: New file.
49955
49956         New module 'unicase/u32-is-titlecase'.
49957         * lib/unicase/u32-is-titlecase.c: New file.
49958         * modules/unicase/u32-is-titlecase: New file.
49959
49960         New module 'unicase/u16-is-titlecase'.
49961         * lib/unicase/u16-is-titlecase.c: New file.
49962         * modules/unicase/u16-is-titlecase: New file.
49963
49964         New module 'unicase/u8-is-titlecase'.
49965         * lib/unicase/u8-is-titlecase.c: New file.
49966         * modules/unicase/u8-is-titlecase: New file.
49967
49968         Tests for module 'unicase/u32-is-lowercase'.
49969         * modules/unicase/u32-is-lowercase-tests: New file.
49970         * tests/unicase/test-u32-is-lowercase.c: New file.
49971
49972         Tests for module 'unicase/u16-is-lowercase'.
49973         * modules/unicase/u16-is-lowercase-tests: New file.
49974         * tests/unicase/test-u16-is-lowercase.c: New file.
49975
49976         Tests for module 'unicase/u8-is-lowercase'.
49977         * modules/unicase/u8-is-lowercase-tests: New file.
49978         * tests/unicase/test-u8-is-lowercase.c: New file.
49979         * tests/unicase/test-is-lowercase.h: New file.
49980
49981         New module 'unicase/u32-is-lowercase'.
49982         * lib/unicase/u32-is-lowercase.c: New file.
49983         * modules/unicase/u32-is-lowercase: New file.
49984
49985         New module 'unicase/u16-is-lowercase'.
49986         * lib/unicase/u16-is-lowercase.c: New file.
49987         * modules/unicase/u16-is-lowercase: New file.
49988
49989         New module 'unicase/u8-is-lowercase'.
49990         * lib/unicase/u8-is-lowercase.c: New file.
49991         * modules/unicase/u8-is-lowercase: New file.
49992
49993         Tests for module 'unicase/u32-is-uppercase'.
49994         * modules/unicase/u32-is-uppercase-tests: New file.
49995         * tests/unicase/test-u32-is-uppercase.c: New file.
49996
49997         Tests for module 'unicase/u16-is-uppercase'.
49998         * modules/unicase/u16-is-uppercase-tests: New file.
49999         * tests/unicase/test-u16-is-uppercase.c: New file.
50000
50001         Tests for module 'unicase/u8-is-uppercase'.
50002         * modules/unicase/u8-is-uppercase-tests: New file.
50003         * tests/unicase/test-u8-is-uppercase.c: New file.
50004         * tests/unicase/test-is-uppercase.h: New file.
50005
50006         New module 'unicase/u32-is-uppercase'.
50007         * lib/unicase/u32-is-uppercase.c: New file.
50008         * modules/unicase/u32-is-uppercase: New file.
50009
50010         New module 'unicase/u16-is-uppercase'.
50011         * lib/unicase/u16-is-uppercase.c: New file.
50012         * modules/unicase/u16-is-uppercase: New file.
50013
50014         New module 'unicase/u8-is-uppercase'.
50015         * lib/unicase/u8-is-uppercase.c: New file.
50016         * modules/unicase/u8-is-uppercase: New file.
50017
50018         New module 'unicase/u32-is-invariant'.
50019         * lib/unicase/u32-is-invariant.c: New file.
50020         * modules/unicase/u32-is-invariant: New file.
50021
50022         New module 'unicase/u16-is-invariant'.
50023         * lib/unicase/u16-is-invariant.c: New file.
50024         * modules/unicase/u16-is-invariant: New file.
50025
50026         New module 'unicase/u8-is-invariant'.
50027         * lib/unicase/u8-is-invariant.c: New file.
50028         * lib/unicase/invariant.h: New file.
50029         * lib/unicase/u-is-invariant.h: New file.
50030         * modules/unicase/u8-is-invariant: New file.
50031
50032         Tests for module 'unicase/u32-casecoll'.
50033         * modules/unicase/u32-casecoll-tests: New file.
50034         * tests/unicase/test-u32-casecoll.c: New file.
50035
50036         Tests for module 'unicase/u16-casecoll'.
50037         * modules/unicase/u16-casecoll-tests: New file.
50038         * tests/unicase/test-u16-casecoll.c: New file.
50039
50040         Tests for module 'unicase/u8-casecoll'.
50041         * modules/unicase/u8-casecoll-tests: New file.
50042         * tests/unicase/test-u8-casecoll.c: New file.
50043
50044         New module 'unicase/u32-casecoll'.
50045         * lib/unicase/u32-casecoll.c: New file.
50046         * modules/unicase/u32-casecoll: New file.
50047
50048         New module 'unicase/u16-casecoll'.
50049         * lib/unicase/u16-casecoll.c: New file.
50050         * modules/unicase/u16-casecoll: New file.
50051
50052         New module 'unicase/u8-casecoll'.
50053         * lib/unicase/u8-casecoll.c: New file.
50054         * lib/unicase/u-casecoll.h: New file.
50055         * modules/unicase/u8-casecoll: New file.
50056
50057         New module 'unicase/u32-casexfrm'.
50058         * lib/unicase/u32-casexfrm.c: New file.
50059         * modules/unicase/u32-casexfrm: New file.
50060
50061         New module 'unicase/u16-casexfrm'.
50062         * lib/unicase/u16-casexfrm.c: New file.
50063         * modules/unicase/u16-casexfrm: New file.
50064
50065         New module 'unicase/u8-casexfrm'.
50066         * lib/unicase/u8-casexfrm.c: New file.
50067         * lib/unicase/u-casexfrm.h: New file.
50068         * modules/unicase/u8-casexfrm: New file.
50069
50070         Tests for module 'unicase/u32-casecmp'.
50071         * modules/unicase/u32-casecmp-tests: New file.
50072         * tests/unicase/test-u32-casecmp.c: New file.
50073
50074         Tests for module 'unicase/u16-casecmp'.
50075         * modules/unicase/u16-casecmp-tests: New file.
50076         * tests/unicase/test-u16-casecmp.c: New file.
50077
50078         Tests for module 'unicase/u8-casecmp'.
50079         * modules/unicase/u8-casecmp-tests: New file.
50080         * tests/unicase/test-u8-casecmp.c: New file.
50081         * tests/unicase/test-casecmp.h: New file.
50082
50083         New module 'unicase/u32-casecmp'.
50084         * lib/unicase/u32-casecmp.c: New file.
50085         * modules/unicase/u32-casecmp: New file.
50086
50087         New module 'unicase/u16-casecmp'.
50088         * lib/unicase/u16-casecmp.c: New file.
50089         * modules/unicase/u16-casecmp: New file.
50090
50091         New module 'unicase/u8-casecmp'.
50092         * lib/unicase/u8-casecmp.c: New file.
50093         * lib/unicase/u-casecmp.h: New file.
50094         * modules/unicase/u8-casecmp: New file.
50095
50096         Tests for module 'unicase/u32-casefold'.
50097         * modules/unicase/u32-casefold-tests: New file.
50098         * tests/unicase/test-u32-casefold.c: New file.
50099
50100         Tests for module 'unicase/u16-casefold'.
50101         * modules/unicase/u16-casefold-tests: New file.
50102         * tests/unicase/test-u16-casefold.c: New file.
50103
50104         Tests for module 'unicase/u8-casefold'.
50105         * modules/unicase/u8-casefold-tests: New file.
50106         * tests/unicase/test-u8-casefold.c: New file.
50107
50108         New module 'unicase/u32-casefold'.
50109         * lib/unicase/u32-casefold.c: New file.
50110         * modules/unicase/u32-casefold: New file.
50111
50112         New module 'unicase/u16-casefold'.
50113         * lib/unicase/u16-casefold.c: New file.
50114         * modules/unicase/u16-casefold: New file.
50115
50116         New module 'unicase/u8-casefold'.
50117         * lib/unicase/u8-casefold.c: New file.
50118         * lib/unicase/u-casefold.h: New file.
50119         * modules/unicase/u8-casefold: New file.
50120
50121         New module 'unicase/tocasefold'.
50122         * lib/unicase/casefold.h: New file.
50123         * lib/unicase/tocasefold.c: New file.
50124         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50125         * modules/unicase/tocasefold: New file.
50126
50127         Tests for module 'unicase/u32-totitle'.
50128         * modules/unicase/u32-totitle-tests: New file.
50129         * tests/unicase/test-u32-totitle.c: New file.
50130
50131         Tests for module 'unicase/u16-totitle'.
50132         * modules/unicase/u16-totitle-tests: New file.
50133         * tests/unicase/test-u16-totitle.c: New file.
50134
50135         Tests for module 'unicase/u8-totitle'.
50136         * modules/unicase/u8-totitle-tests: New file.
50137         * tests/unicase/test-u8-totitle.c: New file.
50138
50139         New module 'unicase/u32-totitle'.
50140         * lib/unicase/u32-totitle.c: New file.
50141         * modules/unicase/u32-totitle: New file.
50142
50143         New module 'unicase/u16-totitle'.
50144         * lib/unicase/u16-totitle.c: New file.
50145         * modules/unicase/u16-totitle: New file.
50146
50147         New module 'unicase/u8-totitle'.
50148         * lib/unicase/u8-totitle.c: New file.
50149         * lib/unicase/u-totitle.h: New file.
50150         * modules/unicase/u8-totitle: New file.
50151
50152         Tests for module 'unicase/u32-tolower'.
50153         * modules/unicase/u32-tolower-tests: New file.
50154         * tests/unicase/test-u32-tolower.c: New file.
50155
50156         Tests for module 'unicase/u16-tolower'.
50157         * modules/unicase/u16-tolower-tests: New file.
50158         * tests/unicase/test-u16-tolower.c: New file.
50159
50160         Tests for module 'unicase/u8-tolower'.
50161         * modules/unicase/u8-tolower-tests: New file.
50162         * tests/unicase/test-u8-tolower.c: New file.
50163
50164         New module 'unicase/u32-tolower'.
50165         * lib/unicase/u32-tolower.c: New file.
50166         * modules/unicase/u32-tolower: New file.
50167
50168         New module 'unicase/u16-tolower'.
50169         * lib/unicase/u16-tolower.c: New file.
50170         * modules/unicase/u16-tolower: New file.
50171
50172         New module 'unicase/u8-tolower'.
50173         * lib/unicase/u8-tolower.c: New file.
50174         * modules/unicase/u8-tolower: New file.
50175
50176         Tests for module 'unicase/u32-toupper'.
50177         * modules/unicase/u32-toupper-tests: New file.
50178         * tests/unicase/test-u32-toupper.c: New file.
50179
50180         Tests for module 'unicase/u16-toupper'.
50181         * modules/unicase/u16-toupper-tests: New file.
50182         * tests/unicase/test-u16-toupper.c: New file.
50183
50184         Tests for module 'unicase/u8-toupper'.
50185         * modules/unicase/u8-toupper-tests: New file.
50186         * tests/unicase/test-u8-toupper.c: New file.
50187
50188         New module 'unicase/u32-toupper'.
50189         * lib/unicase/u32-toupper.c: New file.
50190         * modules/unicase/u32-toupper: New file.
50191
50192         New module 'unicase/u16-toupper'.
50193         * lib/unicase/u16-toupper.c: New file.
50194         * modules/unicase/u16-toupper: New file.
50195
50196         New module 'unicase/u8-toupper'.
50197         * lib/unicase/u8-toupper.c: New file.
50198         * modules/unicase/u8-toupper: New file.
50199
50200         New module 'unicase/u32-casemap'.
50201         * lib/unicase/u32-casemap.c: New file.
50202         * modules/unicase/u32-casemap: New file.
50203
50204         New module 'unicase/u16-casemap'.
50205         * lib/unicase/u16-casemap.c: New file.
50206         * modules/unicase/u16-casemap: New file.
50207
50208         New module 'unicase/u8-casemap'.
50209         * lib/unicase/unicasemap.h: New file.
50210         * lib/unicase/u8-casemap.c: New file.
50211         * lib/unicase/u-casemap.h: New file.
50212         * modules/unicase/u8-casemap: New file.
50213
50214         New module 'unicase/special-casing'.
50215         * lib/unicase/special-casing.h: New file.
50216         * lib/unicase/special-casing.c: New file.
50217         * lib/unicase/special-casing-table.gperf: New file, generated by
50218         gen-uni-tables.c.
50219         * modules/unicase/special-casing: New file.
50220
50221         Tests for module 'unicase/locale-language'.
50222         * modules/unicase/locale-language-tests: New file.
50223         * tests/unicase/test-locale-language.sh: New file.
50224         * tests/unicase/test-locale-language.c: New file.
50225
50226         New module 'unicase/locale-language'.
50227         * lib/unicase/locale-language.c: New file.
50228         * lib/unicase/locale-languages.gperf: New file.
50229         * modules/unicase/locale-language: New file.
50230
50231         Generate more tables for case conversion and case folding.
50232         * lib/gen-uni-tables.c (SCC_*): New enum items.
50233         (struct special_casing_rule): New type.
50234         (casing_rules, num_casing_rules, allocated_casing_rules): New
50235         variables.
50236         (add_casing_rule, fill_casing_rules): New functions.
50237         (struct casefold_rule): New type.
50238         (casefolding_rules, num_casefolding_rules,
50239         allocated_casefolding_rules): New variables.
50240         (fill_casefolding_rules): New function.
50241         (unicode_casefold): New variable.
50242         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50243         sort_casing_rules, output_casing_rules): New functions.
50244         (main): Accept to more arguments: SpecialCasing.txt and
50245         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50246         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50247         Output mapping for casefolding.
50248
50249         * lib/unicase.h: Include stdbool.h, uninorm.h.
50250         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50251         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50252         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50253         arguments.
50254         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50255         resultp arguments.
50256         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50257         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50258         resultp arguments.
50259         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50260         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50261         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50262         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50263         declarations.
50264         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50265
50266 2009-03-08  Bruno Haible  <bruno@clisp.org>
50267
50268         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50269         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50270         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50271         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50272
50273 2009-03-07  Bruno Haible  <bruno@clisp.org>
50274
50275         Adjust u*_normcmp, u*_normcoll API.
50276         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50277         u16_normcoll, u32_normcoll): Change failure conventions.
50278         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50279         errno and return -1.
50280         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50281
50282 2009-03-07  Bruno Haible  <bruno@clisp.org>
50283
50284         Tests for module 'uninorm/u32-normcoll'.
50285         * modules/uninorm/u32-normcoll-tests: New file.
50286         * tests/uninorm/test-u32-normcoll.c: New file.
50287
50288         Tests for module 'uninorm/u16-normcoll'.
50289         * modules/uninorm/u16-normcoll-tests: New file.
50290         * tests/uninorm/test-u16-normcoll.c: New file.
50291
50292         Tests for module 'uninorm/u8-normcoll'.
50293         * modules/uninorm/u8-normcoll-tests: New file.
50294         * tests/uninorm/test-u8-normcoll.c: New file.
50295
50296 2009-03-07  Bruno Haible  <bruno@clisp.org>
50297
50298         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50299         tests/uninorm/test-u32-normcmp.c.
50300         * tests/uninorm/test-u32-normcmp.c: Include it.
50301         (test_nonascii): New function, extracted from main. Add some more
50302         tests.
50303         (main): Invoke test_ascii and test_nonascii.
50304         * modules/uninorm/u32-normcmp-tests (Files): Add
50305         tests/uninorm/test-u32-normcmp.h.
50306         (Depends-on): Remove uninorm/u32-normcmp.
50307
50308         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50309         tests/uninorm/test-u16-normcmp.c.
50310         * tests/uninorm/test-u16-normcmp.c: Include it.
50311         (test_nonascii): New function, extracted from main. Add some more
50312         tests.
50313         (main): Invoke test_ascii and test_nonascii.
50314         * modules/uninorm/u16-normcmp-tests (Files): Add
50315         tests/uninorm/test-u16-normcmp.h.
50316         (Depends-on): Remove uninorm/u16-normcmp.
50317
50318         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50319         tests/uninorm/test-u8-normcmp.c.
50320         * tests/uninorm/test-u8-normcmp.c: Include it.
50321         (test_nonascii): New function, extracted from main. Add some more
50322         tests.
50323         (main): Invoke test_ascii and test_nonascii.
50324         * modules/uninorm/u8-normcmp-tests (Files): Add
50325         tests/uninorm/test-u8-normcmp.h.
50326         (Depends-on): Remove uninorm/u8-normcmp.
50327
50328 2009-03-07  Bruno Haible  <bruno@clisp.org>
50329
50330         New module 'uninorm/u32-normcoll'.
50331         * lib/uninorm/u32-normcoll.c: New file.
50332         * modules/uninorm/u32-normcoll: New file.
50333
50334         New module 'uninorm/u16-normcoll'.
50335         * lib/uninorm/u16-normcoll.c: New file.
50336         * modules/uninorm/u16-normcoll: New file.
50337
50338         New module 'uninorm/u8-normcoll'.
50339         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50340         declarations.
50341         * lib/uninorm/u8-normcoll.c: New file.
50342         * lib/uninorm/u-normcoll.h: New file.
50343         * modules/uninorm/u8-normcoll: New file.
50344
50345         New module 'uninorm/u32-normxfrm'.
50346         * lib/uninorm/u32-normxfrm.c: New file.
50347         * modules/uninorm/u32-normxfrm: New file.
50348
50349         New module 'uninorm/u16-normxfrm'.
50350         * lib/uninorm/u16-normxfrm.c: New file.
50351         * modules/uninorm/u16-normxfrm: New file.
50352
50353         New module 'uninorm/u8-normxfrm'.
50354         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50355         declarations.
50356         * lib/uninorm/u8-normxfrm.c: New file.
50357         * lib/uninorm/u-normxfrm.h: New file.
50358         * modules/uninorm/u8-normxfrm: New file.
50359
50360 2009-03-07  Bruno Haible  <bruno@clisp.org>
50361
50362         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50363         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50364         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50365
50366 2009-03-07  Bruno Haible  <bruno@clisp.org>
50367
50368         New module 'memxfrm'.
50369         * lib/memxfrm.h: New file.
50370         * lib/memxfrm.c: New file.
50371         * modules/memxfrm: New file.
50372
50373 2009-03-07  Bruno Haible  <bruno@clisp.org>
50374
50375         New module 'memcmp2'.
50376         * lib/memcmp2.h: New file.
50377         * lib/memcmp2.c: New file.
50378         * modules/memcmp2: New file.
50379
50380 2009-03-07  Bruno Haible  <bruno@clisp.org>
50381
50382         Tests for module 'uninorm/decomposing-form'.
50383         * modules/uninorm/decomposing-form-tests: New file.
50384         * tests/uninorm/test-decomposing-form.c: New file.
50385
50386         New module 'uninorm/decomposing-form'.
50387         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50388         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50389         Add 'decomposing_variant' field.
50390         * lib/uninorm/decomposing-form.c: New file.
50391         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50392         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50393         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50394         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50395         * modules/uninorm/decomposing-form: New file.
50396         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50397         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50398
50399 2009-03-07  Bruno Haible  <bruno@clisp.org>
50400
50401         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50402         strings.
50403
50404 2009-03-06  Bruno Haible  <bruno@clisp.org>
50405
50406         Tests for module 'uninorm/u32-normcmp'.
50407         * tests/uninorm/test-u32-normcmp.c: New file.
50408         * modules/uninorm/u32-normcmp-tests: New file.
50409
50410         Tests for module 'uninorm/u16-normcmp'.
50411         * tests/uninorm/test-u16-normcmp.c: New file.
50412         * modules/uninorm/u16-normcmp-tests: New file.
50413
50414         Tests for module 'uninorm/u8-normcmp'.
50415         * tests/uninorm/test-u8-normcmp.c: New file.
50416         * modules/uninorm/u8-normcmp-tests: New file.
50417
50418         New module 'uninorm/u32-normcmp'.
50419         * lib/uninorm/u32-normcmp.c: New file.
50420         * modules/uninorm/u32-normcmp: New file.
50421
50422         New module 'uninorm/u16-normcmp'.
50423         * lib/uninorm/u16-normcmp.c: New file.
50424         * modules/uninorm/u16-normcmp: New file.
50425
50426         New module 'uninorm/u8-normcmp'.
50427         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50428         declarations.
50429         * lib/uninorm/u8-normcmp.c: New file.
50430         * lib/uninorm/u-normcmp.h: New file.
50431         * modules/uninorm/u8-normcmp: New file.
50432
50433 2009-03-06  Bruno Haible  <bruno@clisp.org>
50434
50435         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50436         Reported by Eric Blake.
50437
50438 2009-03-06  Eric Blake  <ebb9@byu.net>
50439             Bruno Haible  <bruno@clisp.org>
50440
50441         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50442         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50443         condition.
50444         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50445         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50446         condition.
50447         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50448
50449 2009-03-06  Eric Blake  <ebb9@byu.net>
50450
50451         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50452         to avoid compiler warnings.
50453         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50454
50455 2009-03-05  Bruno Haible  <bruno@clisp.org>
50456
50457         * tests/test-ftell.c (main): Disable test beyond end of file on
50458         FreeMiNT.
50459         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50460
50461 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50462
50463         * lib/filevercmp.c: Move hidden files up in ordering.
50464         * tests/test-filevercmp.c: Add tests for hidden files.
50465
50466 2009-03-04  Bruno Haible  <bruno@clisp.org>
50467
50468         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50469         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50470         AM_CFLAGS.
50471         Reported by Simon Josefsson.
50472
50473 2009-03-03  Bruno Haible  <bruno@clisp.org>
50474
50475         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50476         Reported by Simon Josefsson.
50477
50478         * doc/ld-version-script.texi: Update node reference.
50479
50480 2009-03-03  Bruno Haible  <bruno@clisp.org>
50481
50482         * modules/visibility (License): Change to 'unlimited'.
50483         Suggested by Simon Josefsson.
50484
50485 2009-03-03  Jim Meyering  <meyering@redhat.com>
50486
50487         unlinkdir: cannot_unlink_dir may modify process state
50488         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50489         it's neither thread-safe nor appropriate for use in a library.
50490
50491 2009-03-03  Eric Blake  <ebb9@byu.net>
50492
50493         test-closein: silence test under Darwin
50494         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50495         care if it dies from EPIPE or EBADF.
50496
50497 2009-03-03  Bruno Haible  <bruno@clisp.org>
50498
50499         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50500         earlier.
50501         * doc/visibility.texi: Fix @node and @section.
50502
50503 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50504
50505         * doc/gnulib.texi: Link to sections for ld version script and
50506         visibility.
50507         * doc/visibility.texi: Add @node and @section.
50508         * modules/ld-version-script: New module.
50509         * m4/ld-version-script.m4: New file.
50510         * doc/ld-version-script.texi: New file.
50511
50512 2009-03-02  David Lutterkort  <lutter@redhat.com>
50513
50514         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50515         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50516
50517 2009-03-02  Bruno Haible  <bruno@clisp.org>
50518
50519         * doc/visibility.texi: Mention libtool's -export-symbols option.
50520
50521 2009-03-02  Jim Meyering  <meyering@redhat.com>
50522
50523         announce-gen: new option: --no-print-checksums
50524         * build-aux/announce-gen (usage): Describe it.
50525         (print_checksums): Print a newline here, not in the [*] footnote.
50526         (main): Honor it.
50527
50528 2009-03-01  Bruno Haible  <bruno@clisp.org>
50529
50530         Use socklen_t in the native Windows replacements prototypes.
50531         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50532         instead of 'int'.
50533         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50534         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50535         * modules/getsockopt (Depends-on): Add socklen.
50536         * modules/setsockopt (Depends-on): Add socklen.
50537
50538 2009-03-01  Bruno Haible  <bruno@clisp.org>
50539
50540         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50541         least 4.2.
50542
50543 2009-03-01  Eric Blake  <ebb9@byu.net>
50544             Bruno Haible  <bruno@clisp.org>
50545
50546         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50547         error messages.
50548         * lib/wait-process.c (wait_subprocess): Omit error message about
50549         deadly signal sent to the child of termsigp != NULL.
50550
50551 2009-03-01  Eric Blake  <ebb9@byu.net>
50552
50553         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50554
50555 2009-03-01  Bruno Haible  <bruno@clisp.org>
50556
50557         Avoid a gcc warning.
50558         * tests/test-sched.c (b): Make global.
50559         Reported by Eric Blake.
50560
50561 2009-01-19  Martin Lambers  <marlam@marlam.de>
50562
50563         Provide POSIX semantics for socket timeout options on W32.
50564         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50565         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50566         * modules/setsockopt: Depend on sys_time module for struct timeval.
50567         * modules/getsockopt: Depend on sys_time module for struct timeval.
50568
50569 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50570
50571         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50572         __USE_GNU, for consistency with netdb.in.h.
50573         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50574
50575 2009-03-01  Bruno Haible  <bruno@clisp.org>
50576
50577         More support for FreeMiNT.
50578         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50579         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50580
50581 2009-03-01  Bruno Haible  <bruno@clisp.org>
50582
50583         More support for FreeMiNT.
50584         * lib/fpurge.c (fpurge): Correct last commit.
50585         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50586
50587 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50588
50589         Fix unportable awk script in vc-list-files.
50590         * build-aux/vc-list-files: In the replacement awk script, use
50591         substr with a second argument of 1, not zero.
50592         Report by Simon Josefsson.
50593
50594 2009-02-28  Bruno Haible  <bruno@clisp.org>
50595
50596         More support for FreeMiNT.
50597         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50598         to FreeMiNT today.
50599         * lib/fwriting.c (fwriting): Likewise.
50600         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50601
50602 2009-02-28  Bruno Haible  <bruno@clisp.org>
50603
50604         * tests/test-freadseek.c (main): Disable test beyond end of file on
50605         FreeMiNT.
50606         * tests/test-ftello.c (main): Likewise.
50607         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50608
50609 2009-02-28  Bruno Haible  <bruno@clisp.org>
50610
50611         Add tentative support for FreeMiNT.
50612         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50613         * lib/fpurge.c (fpurge): Likewise.
50614         * lib/freadable.c (freadable): Likewise.
50615         * lib/freading.c (freading): Likewise.
50616         * lib/freadptr.c (freadptr): Likewise.
50617         * lib/freadseek.c (freadptrinc): Likewise.
50618         * lib/fseeko.c (rpl_fseeko): Likewise.
50619         * lib/fseterr.c (fseterr): Likewise.
50620         * lib/fwritable.c (fwritable): Likewise.
50621         * lib/fwriting.c (fwriting): Likewise.
50622         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50623         Hourihane.
50624         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50625
50626 2009-02-28  Bruno Haible  <bruno@clisp.org>
50627
50628         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50629         SIGCHLD.
50630         Reported by Jim Meyering.
50631
50632 2009-02-28  Bruno Haible  <bruno@clisp.org>
50633
50634         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50635         Mention the results of these tests on various platforms.
50636         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50637         order.
50638         * doc/posix-functions/printf.texi: Likewise.
50639         * doc/posix-functions/snprintf.texi: Likewise.
50640         * doc/posix-functions/sprintf.texi: Likewise.
50641         * doc/posix-functions/vfprintf.texi: Likewise.
50642         * doc/posix-functions/vprintf.texi: Likewise.
50643         * doc/posix-functions/vsnprintf.texi: Likewise.
50644         * doc/posix-functions/vsprintf.texi: Likewise.
50645         * doc/glibc-functions/obstack_printf.texi: Likewise.
50646         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50647
50648 2009-02-28  Bruno Haible  <bruno@clisp.org>
50649
50650         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50651         Reported by Loïc Minier <lool@dooz.org>.
50652
50653 2009-02-27  Bruno Haible  <bruno@clisp.org>
50654
50655         * gnulib-tool (func_import): Make the sed expression used to create the
50656         sed script for updating the .gitignore file POSIX compliant.
50657         Reported by Eric Blake.
50658
50659 2009-02-27  Bruno Haible  <bruno@clisp.org>
50660
50661         * gnulib-tool (sed): Don't alias as "sed --posix".
50662         Reported by Eric Blake.
50663
50664 2009-02-27  Bruno Haible  <bruno@clisp.org>
50665
50666         Avoid test link errors.
50667         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50668         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50669         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50670         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50672
50673 2009-02-27  Bruno Haible  <bruno@clisp.org>
50674
50675         Avoid spurious "(cached)" in configure output.
50676         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50677         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50678         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50679         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50680         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50681         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50682         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50683         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50684         Reported by Eric Blake.
50685
50686 2009-02-27  Eric Blake  <ebb9@byu.net>
50687
50688         printf: fix regression in previous patch
50689         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50690
50691 2009-02-27  Bruno Haible  <bruno@clisp.org>
50692
50693         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50694         value.
50695         * lib/stdint.in.h: Likewise.
50696         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50697
50698 2009-02-27  Eric Blake  <ebb9@byu.net>
50699
50700         doc: mention more functions added in cygwin 1.7.0
50701         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50702         addition.
50703         * doc/posix-functions/open_wmemstream.texi: Likewise.
50704         * doc/posix-functions/wcsnlen.texi: Likewise.
50705         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50706         * doc/posix-functions/wcstod.texi: Likewise.
50707         * doc/posix-functions/wcstof.texi: Likewise.
50708         * doc/posix-functions/wcstoimax.texi: Likewise.
50709         * doc/posix-functions/wcstok.texi: Likewise.
50710         * doc/posix-functions/wcstoumax.texi: Likewise.
50711
50712         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50713         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50714         * doc/posix-functions/fprintf.texi: Update.
50715         * doc/posix-functions/printf.texi: Update.
50716         * doc/posix-functions/snprintf.texi: Update.
50717         * doc/posix-functions/sprintf.texi: Update.
50718         * doc/posix-functions/vfprintf.texi: Update.
50719         * doc/posix-functions/vprintf.texi: Update.
50720         * doc/posix-functions/vsnprintf.texi: Update.
50721         * doc/posix-functions/vsprintf.texi: Update.
50722         * doc/glibc-functions/obstack_printf.texi: Update.
50723         * doc/glibc-functions/obstack_vprintf.texi: Update.
50724
50725 2009-02-26  Eric Blake  <ebb9@byu.net>
50726
50727         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50728         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50729         compilation bug by using runtime conversion.
50730         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50731         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50732         * modules/ceill-tests (Files): Use nan.h.
50733         * modules/floorl-tests (Files): Likewise.
50734         * modules/frexpl-tests (Files): Likewise.
50735         * modules/isnanl-tests (Files): Likewise.
50736         * modules/ldexpl-tests (Files): Likewise.
50737         * modules/roundl-tests (Files): Likewise.
50738         * modules/truncl-tests (Files): Likewise.
50739         * tests/test-ceill.c (main): Use a working NaN.
50740         * tests/test-floorl.c (main): Likewise.
50741         * tests/test-frexpl.c (main): Likewise.
50742         * tests/test-isnan.c (test_long_double): Likewise.
50743         * tests/test-isnanl.h (main): Likewise.
50744         * tests/test-ldexpl.h (main): Likewise.
50745         * tests/test-roundl.h (main): Likewise.
50746         * tests/test-truncl.h (main): Likewise.
50747         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50748
50749 2009-02-26  Eric Blake  <ebb9@byu.net>
50750             Bruno Haible  <bruno@clisp.org>
50751
50752         Work around a *printf bug with %ls on Solaris.
50753         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50754         precision is specified, sprintf stops converting the wide string
50755         argument when the number of bytes that have been produced by this
50756         conversion equals or exceeds the precision.
50757         * doc/posix-functions/fprintf.texi: Update.
50758         * doc/posix-functions/printf.texi: Update.
50759         * doc/posix-functions/snprintf.texi: Update.
50760         * doc/posix-functions/sprintf.texi: Update.
50761         * doc/posix-functions/vfprintf.texi: Update.
50762         * doc/posix-functions/vprintf.texi: Update.
50763         * doc/posix-functions/vsnprintf.texi: Update.
50764         * doc/posix-functions/vsprintf.texi: Update.
50765         * doc/glibc-functions/obstack_printf.texi: Update.
50766         * doc/glibc-functions/obstack_vprintf.texi: Update.
50767
50768 2009-02-26  Eric Blake  <ebb9@byu.net>
50769
50770         stdlib: favor compiler check of random.h
50771         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50772         to avoid an ObjC random.h installed by Swarm.
50773
50774 2009-02-26  Bruno Haible  <bruno@clisp.org>
50775
50776         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50777         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50778         Reported by Gary V. Vaughan <gary@gnu.org>.
50779
50780 2009-02-26  Bruno Haible  <bruno@clisp.org>
50781
50782         Fix *printf behaviour regarding the %ls directive.
50783         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50784         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50785         NEED_PRINTF_DIRECTIVE_LS.
50786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50787         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50788         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50789         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50790         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50791         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50792         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50794         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50796         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50797         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50798         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50799         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50800         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50801         * doc/posix-functions/fprintf.texi: Update.
50802         * doc/posix-functions/printf.texi: Update.
50803         * doc/posix-functions/snprintf.texi: Update.
50804         * doc/posix-functions/sprintf.texi: Update.
50805         * doc/posix-functions/vfprintf.texi: Update.
50806         * doc/posix-functions/vprintf.texi: Update.
50807         * doc/posix-functions/vsnprintf.texi: Update.
50808         * doc/posix-functions/vsprintf.texi: Update.
50809         * doc/glibc-functions/obstack_printf.texi: Update.
50810         * doc/glibc-functions/obstack_vprintf.texi: Update.
50811         Reported by Eric Blake.
50812
50813 2009-02-25  Bruno Haible  <bruno@clisp.org>
50814
50815         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50816         with known value.
50817         Reported by Gary V. Vaughan <gary@gnu.org>.
50818
50819 2009-02-25  Bruno Haible  <bruno@clisp.org>
50820
50821         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50822         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50823         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50824         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50825         Reported by Gary V. Vaughan <gary@gnu.org>.
50826
50827 2009-02-25  Bruno Haible  <bruno@clisp.org>
50828
50829         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50830         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50831         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50832         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50833         Reported by Gary V. Vaughan <gary@gnu.org>.
50834
50835 2009-02-25  Eric Blake  <ebb9@byu.net>
50836
50837         tests: skip fseek/ftell tests if ungetc is broken
50838         * m4/ungetc.m4: New file.
50839         * modules/fseek-tests: Split test, so ungetc dependency is
50840         separate from rest of test.
50841         * modules/fseeko-tests: Likewise.
50842         * modules/ftell-tests: Likewise.
50843         * modules/ftello-tests: Likewise.
50844         * tests/test-fseek.c (main): Isolate ungetc dependency.
50845         * tests/test-fseeko.c (main): Likewise.
50846         * tests/test-ftell.c (main): Likewise.
50847         * tests/test-ftello.c (main): Likewise.
50848         * tests/test-fseek2.sh: New file.
50849         * tests/test-fseeko2.sh: Likewise.
50850         * tests/test-ftell2.sh: Likewise.
50851         * tests/test-ftello2.sh: Likewise.
50852
50853 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
50854
50855         test-getaddrinfo: fix usage of skip return code 77
50856         * tests/test-gettaddrinfo.c: Return skip code 77 only
50857         for first occurrence of skip (4x77 is not 77)
50858
50859 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50860
50861         strtod: avoid C99 decl-after-statement
50862         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50863
50864 2009-02-24  Eric Blake  <ebb9@byu.net>
50865
50866         strtod: detect HP-UX 11.31 bug
50867         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50868         Reported by Gary V. Vaughan.
50869
50870 2009-02-23  Bruno Haible  <bruno@clisp.org>
50871
50872         Fix invalid read past end of memory block.
50873         * lib/vasnprintf.c (DCHAR_SET): Define.
50874         (local_wcslen): Define only when needed.
50875         (local_strnlen, local_wcsnlen): New functions.
50876         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50877         directives that involve a conversion ourselves.
50878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50879         wcsnlen, mbrtowc, wcrtomb.
50880         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50881         * tests/test-vasprintf-posix.c (test_function): Likewise.
50882         * tests/test-snprintf-posix.h (test_function): Likewise.
50883         * tests/test-sprintf-posix.h (test_function): Likewise.
50884         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50885
50886 2009-02-22  Bruno Haible  <bruno@clisp.org>
50887
50888         Implement new clarified decomposition of Hangul syllables.
50889         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50890         of type LTV, return only a pairwise decomposition.
50891         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50892         Likewise.
50893         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50894         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50895         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50896
50897 2009-02-22  Bruno Haible  <bruno@clisp.org>
50898
50899         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50900         zero-length results and shrink excess allocated memory.
50901         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50902         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50903         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50904         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50905         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50906         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50907         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50908         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50909         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50910         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50911         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50912         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50913
50914 2009-02-21  Bruno Haible  <bruno@clisp.org>
50915
50916         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50917         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50918         spaces after a period. Put a space between a macro name and its
50919         argument list. Trivial rewordings.
50920         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50921         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50922         (main): Return 0 explicitly.
50923
50924 2009-02-21  Bruno Haible  <bruno@clisp.org>
50925
50926         Tests for module 'uninorm/filter'.
50927         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50928         * modules/uninorm/filter-tests: New file.
50929
50930         New module 'uninorm/filter'.
50931         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50932         uninorm_filter_flush, uninorm_filter_free): New declarations.
50933         * lib/uninorm/uninorm-filter.c: New file.
50934         * modules/uninorm/filter: New file.
50935
50936 2009-02-21  Bruno Haible  <bruno@clisp.org>
50937
50938         Tests for module 'uninorm/nfkc'.
50939         * tests/uninorm/test-nfkc.c: New file.
50940         * tests/uninorm/test-u8-nfkc.c: New file.
50941         * tests/uninorm/test-u16-nfkc.c: New file.
50942         * tests/uninorm/test-u32-nfkc.c: New file.
50943         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50944         * tests/uninorm/test-u32-nfkc-big.c: New file.
50945         * modules/uninorm/nfkc-tests: New file.
50946
50947         New module 'uninorm/nfkc'.
50948         * lib/uninorm/nfkc.c: New file.
50949         * modules/uninorm/nfkc: New file.
50950
50951         Tests for module 'uninorm/nfkd'.
50952         * tests/uninorm/test-nfkd.c: New file.
50953         * tests/uninorm/test-u8-nfkd.c: New file.
50954         * tests/uninorm/test-u16-nfkd.c: New file.
50955         * tests/uninorm/test-u32-nfkd.c: New file.
50956         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50957         * tests/uninorm/test-u32-nfkd-big.c: New file.
50958         * modules/uninorm/nfkd-tests: New file.
50959
50960         New module 'uninorm/nfkd'.
50961         * lib/uninorm/nfkd.c: New file.
50962         * modules/uninorm/nfkd: New file.
50963
50964         Tests for module 'uninorm/nfc'.
50965         * tests/uninorm/test-nfc.c: New file.
50966         * tests/uninorm/test-u8-nfc.c: New file.
50967         * tests/uninorm/test-u16-nfc.c: New file.
50968         * tests/uninorm/test-u32-nfc.c: New file.
50969         * tests/uninorm/test-u32-nfc-big.sh: New file.
50970         * tests/uninorm/test-u32-nfc-big.c: New file.
50971         * modules/uninorm/nfc-tests: New file.
50972
50973         New module 'uninorm/nfc'.
50974         * lib/uninorm/nfc.c: New file.
50975         * modules/uninorm/nfc: New file.
50976
50977         Tests for module 'uninorm/nfd'.
50978         * tests/uninorm/test-nfd.c: New file.
50979         * tests/uninorm/test-u8-nfd.c: New file.
50980         * tests/uninorm/test-u16-nfd.c: New file.
50981         * tests/uninorm/test-u32-nfd.c: New file.
50982         * tests/uninorm/test-u32-nfd-big.sh: New file.
50983         * tests/uninorm/test-u32-nfd-big.c: New file.
50984         * tests/uninorm/test-u32-normalize-big.h: New file.
50985         * tests/uninorm/test-u32-normalize-big.c: New file.
50986         * tests/uninorm/NormalizationTest.txt: New file, created from
50987         Unicode 5.1.0 NormalizationTest.txt.
50988         * modules/uninorm/nfd-tests: New file.
50989
50990         New module 'uninorm/nfd'.
50991         * lib/uninorm/nfd.c: New file.
50992         * modules/uninorm/nfd: New file.
50993
50994         New module 'uninorm/u32-normalize'.
50995         * lib/uninorm/u32-normalize.c: New file.
50996         * modules/uninorm/u32-normalize: New file.
50997
50998         New module 'uninorm/u16-normalize'.
50999         * lib/uninorm/u16-normalize.c: New file.
51000         * modules/uninorm/u16-normalize: New file.
51001
51002         New module 'uninorm/u8-normalize'.
51003         * lib/uninorm/u8-normalize.c: New file.
51004         * lib/uninorm/normalize-internal.h: New file.
51005         * lib/uninorm/u-normalize-internal.h: New file.
51006         * modules/uninorm/u8-normalize: New file.
51007
51008         New module 'uninorm/decompose-internal'.
51009         * lib/uninorm/decompose-internal.c: New file.
51010         * modules/uninorm/decompose-internal: New file.
51011
51012         Tests for module 'uninorm/composition'.
51013         * tests/uninorm/test-composition.c: New file.
51014         * modules/uninorm/composition-tests: New file.
51015
51016         New module 'uninorm/composition'.
51017         * lib/uninorm/composition.c: New file.
51018         * lib/uninorm/composition-table.gperf: New file, generated by
51019         gen-uni-tables.
51020         * modules/uninorm/composition: New file.
51021
51022         Tests for module 'uninorm/compat-decomposition'.
51023         * tests/uninorm/test-compat-decomposition.c: New file.
51024         * modules/uninorm/compat-decomposition-tests: New file.
51025
51026         New module 'uninorm/compat-decomposition'.
51027         * lib/uninorm/decompose-internal.h: New file.
51028         * lib/uninorm/compat-decomposition.c: New file.
51029         * modules/uninorm/compat-decomposition: New file.
51030
51031         Tests for module 'uninorm/canonical-decomposition'.
51032         * tests/uninorm/test-canonical-decomposition.c: New file.
51033         * modules/uninorm/canonical-decomposition-tests: New file.
51034
51035         New module 'uninorm/canonical-decomposition'.
51036         * lib/uninorm/canonical-decomposition.c: New file.
51037         * modules/uninorm/canonical-decomposition: New file.
51038
51039         Tests for module 'uninorm/decomposition'.
51040         * tests/uninorm/test-decomposition.c: New file.
51041         * modules/uninorm/decomposition-tests: New file.
51042
51043         New module 'uninorm/decomposition'.
51044         * lib/uninorm/decomposition.c: New file.
51045         * modules/uninorm/decomposition: New file.
51046
51047         New module 'uninorm/decomposition-table'.
51048         * lib/uninorm/decomposition-table.h: New file.
51049         * lib/uninorm/decomposition-table.c: New file.
51050         * lib/uninorm/decomposition-table1.h: New file, generated by
51051         gen-uni-tables.
51052         * lib/uninorm/decomposition-table2.h: New file, generated by
51053         gen-uni-tables.
51054         * modules/uninorm/decomposition-table: New file.
51055
51056         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51057         (UC_DECOMP_*): New enumeration items.
51058         (get_decomposition): New function.
51059         (struct decomp_table): New type.
51060         (output_decomposition, output_decomposition_tables): New functions.
51061         (unicode_composition_exclusions): New variable.
51062         (fill_composition_exclusions, debug_output_composition_tables): New
51063         functions.
51064         (main): Accept one more argument. Invoke fill_composition_exclusions.
51065         Output decomposition and composition tables.
51066
51067         New module 'uninorm/base'.
51068         * lib/uninorm.h: New file.
51069         * lib/unictype.h: Update comment.
51070         * modules/uninorm/base: New file.
51071
51072 2009-02-21  David Lutterkort  <lutter@redhat.com>
51073
51074         Tests for module 'safe-alloc'.
51075         * tests/test-safe-alloc.c: New file.
51076         * modules/safe-alloc-tests: New file.
51077
51078         New module 'safe-alloc'.
51079         * lib/safe-alloc.h: New file.
51080         * lib/safe-alloc.c: New file.
51081         * m4/safe-alloc.m4: New file.
51082         * modules/safe-alloc: New file.
51083         * doc/safe-alloc.texi: New file.
51084         * doc/gnulib.texi: Include it.
51085         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51086         safe-alloc.
51087
51088 2009-02-18  Bruno Haible  <bruno@clisp.org>
51089
51090         Fix link error on non-glibc systems.
51091         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51092         variable.
51093         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51094
51095 2009-02-18  Jim Meyering  <meyering@redhat.com>
51096
51097         fts: avoid used-uninitialized error due to recent change
51098         * lib/fts.c (fts_read): Guard uses of the new member,
51099         parent->fts_n_dirs_remaining, since it's not relevant for
51100         the parent of a directory specified on the command-line.
51101
51102 2009-02-17  James Youngman  <jay@gnu.org>
51103             Bruno Haible  <bruno@clisp.org>
51104
51105         * m4/include_next.m4: Reformulate comment.
51106
51107 2009-02-16  Jim Meyering  <meyering@redhat.com>
51108
51109         fts: add #if guards so that the fts_lgpl module still builds
51110         * lib/fts.c: Guard just-added hash-table-using parts with
51111         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51112         Reported by Simon Josefsson.
51113
51114 2009-02-15  Bruno Haible  <bruno@clisp.org>
51115
51116         * modules/array-mergesort-tests: New file.
51117         * tests/test-array-mergesort.c: New file.
51118
51119         New module 'array-mergesort'.
51120         * modules/array-mergesort: New file.
51121         * lib/array-mergesort.h: New file.
51122
51123 2009-02-15  Bruno Haible  <bruno@clisp.org>
51124
51125         Fix 2009-02-07 commit.
51126         * lib/gen-uni-tables.c (output_predicate, output_category,
51127         output_combclass, output_bidi_category, output_decimal_digit,
51128         output_digit, output_numeric, output_mirror, output_scripts,
51129         output_ident_category, output_simple_mapping): Fix format directives.
51130         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51131
51132 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51133
51134         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51135         fixes are available from IBM.
51136
51137 2009-02-13  Jim Meyering  <meyering@redhat.com>
51138
51139         fts: arrange not to stat non-directories in more cases
51140         This makes GNU find (when it doesn't need to stat each file)
51141         *much* more efficient at traversing reiserfs file systems.
51142         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51143         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51144         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51145         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51146         (leaf_optimization_applies): New function.
51147         (LCO_hash, LCO_compare): New helper functions.
51148         (link_count_optimize_ok): New function.
51149         (fts_stat): Initialize new member (if dir).
51150         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51151         we've just stat'ed a directory.  Skip the stat call when possible.
51152         ---
51153         Note this AFS-related exchange:
51154         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51155         and note find's pioctl call in find/fstype.c.
51156         But that is necessary only if you want to enable the
51157         optimization for AFS, and for now, I don't.
51158
51159         fts: move a function definition "up" (no semantic change)
51160         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51161         "up" to precede upcoming use of a related function.
51162
51163 2009-02-11  Jim Meyering  <meyering@redhat.com>
51164
51165         fts: correct internal computation of nlinks (optimization-related)
51166         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51167         whether the current entry is a directory, so don't test it.
51168
51169 2009-02-10  Bruno Haible  <bruno@clisp.org>
51170
51171         Tests for module 'uniwbrk/ulc-wordbreaks'.
51172         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51173         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51174         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51175
51176         Tests for module 'uniwbrk/u32-wordbreaks'.
51177         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51178         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51179
51180         Tests for module 'uniwbrk/u16-wordbreaks'.
51181         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51182         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51183
51184         Tests for module 'uniwbrk/u8-wordbreaks'.
51185         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51186         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51187
51188 2009-02-10  Bruno Haible  <bruno@clisp.org>
51189
51190         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51191         property.
51192         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51193         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51194         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51195
51196 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51197
51198         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51199         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51200
51201 2009-02-10  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51204         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51205         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51206         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51207         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51208         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51209
51210 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51211
51212         * lib/sockets.h (gl_fd_to_handle): New function.
51213
51214         * tests/test-sockets.c: Call gl_fd_to_handle.
51215
51216 2009-02-09  Bruno Haible  <bruno@clisp.org>
51217
51218         * doc/havelib.texi: Document the conventions on bi-arch systems.
51219
51220 2009-02-08  Bruno Haible  <bruno@clisp.org>
51221
51222         Document the AC_LIB_LINKFLAGS macro.
51223         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51224         * doc/gnulib.texi: Include it.
51225
51226 2009-02-08  Bruno Haible  <bruno@clisp.org>
51227
51228         Fix wrong order of sections, compared to TOC.
51229         * doc/gnulib.texi: Include relocatable-maint.texi after the
51230         "Regular expressions" node, not before.
51231
51232 2009-02-08  Bruno Haible  <bruno@clisp.org>
51233
51234         Tests for module 'unicase/totitle'.
51235         * modules/unicase/totitle-tests: New file.
51236
51237         Tests for module 'unicase/tolower'.
51238         * modules/unicase/tolower-tests: New file.
51239
51240         Tests for module 'unicase/toupper'.
51241         * modules/unicase/toupper-tests: New file.
51242         * tests/unicase/test-mapping-part1.h: New file.
51243         * tests/unicase/test-mapping-part2.h: New file.
51244
51245         New module 'unicase/totitle'.
51246         * modules/unicase/totitle: New file.
51247         * lib/unicase/totitle.c: New file.
51248
51249         New module 'unicase/tolower'.
51250         * modules/unicase/tolower: New file.
51251         * lib/unicase/tolower.c: New file.
51252
51253         New module 'unicase/toupper'.
51254         * modules/unicase/toupper: New file.
51255         * lib/unicase/toupper.c: New file.
51256         * lib/unicase/simple-mapping.h: New file.
51257
51258         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51259         (mapping_table): New structure.
51260         (output_simple_mapping): New function.
51261         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51262         * modules/gen-uni-tables (Description): Update.
51263         * lib/unicase/toupper.h: New file, automatically generated by
51264         gen-uni-tables.
51265         * lib/unicase/tolower.h: New file, automatically generated by
51266         gen-uni-tables.
51267         * lib/unicase/totitle.h: New file, automatically generated by
51268         gen-uni-tables.
51269         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51270         gen-uni-tables.
51271         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51272         gen-uni-tables.
51273         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51274         gen-uni-tables.
51275
51276         New module 'unicase/base'.
51277         * modules/unicase/base: New file.
51278         * lib/unicase.h: New file.
51279
51280 2009-02-08  Bruno Haible  <bruno@clisp.org>
51281
51282         New module 'uniwbrk/ulc-wordbreaks'.
51283         * modules/uniwbrk/ulc-wordbreaks: New file.
51284         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51285
51286         New module 'uniwbrk/u32-wordbreaks'.
51287         * modules/uniwbrk/u32-wordbreaks: New file.
51288         * lib/uniwbrk/u32-wordbreaks.c: New file.
51289
51290         New module 'uniwbrk/u16-wordbreaks'.
51291         * modules/uniwbrk/u16-wordbreaks: New file.
51292         * lib/uniwbrk/u16-wordbreaks.c: New file.
51293
51294         New module 'uniwbrk/u8-wordbreaks'.
51295         * modules/uniwbrk/u8-wordbreaks: New file.
51296         * lib/uniwbrk/u8-wordbreaks.c: New file.
51297         * lib/uniwbrk/u-wordbreaks.h: New file.
51298
51299         New module 'uniwbrk/table'.
51300         * modules/uniwbrk/table: New file.
51301         * lib/uniwbrk/wbrktable.h: New file.
51302         * lib/uniwbrk/wbrktable.c: New file.
51303
51304         New module 'uniwbrk/wordbreak-property'.
51305         * modules/uniwbrk/wordbreak-property: New file.
51306         * lib/uniwbrk/wordbreak-property.c: New file.
51307
51308         * lib/gen-uni-tables.c (WBP_*): New enum items.
51309         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51310         (unicode_org_wbp): New variable.
51311         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51312         New functions.
51313         (wbp_table): New structure.
51314         (output_wbp, output_wbrk_tables): New functions.
51315         (main): Accept additional argument. Invoke fill_org_wbp,
51316         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51317         output_wbrk_tables.
51318         * modules/gen-uni-tables (Description): Update.
51319         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51320         gen-uni-tables.
51321
51322         New module 'uniwbrk/base'.
51323         * modules/uniwbrk/base: New file.
51324         * lib/uniwbrk.h: New file.
51325
51326 2009-02-08  Bruno Haible  <bruno@clisp.org>
51327
51328         Update to Unicode 5.1.0.
51329         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51330         U+2185..U+2188.
51331         (is_property_default_ignorable_code_point): Don't include characters
51332         of category Cc or Cs and not-a-characters.
51333         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51334         U+0D79, U+109E, U+109F, U+A60C.
51335         * lib/unictype/bidi_of.h: Regenerated.
51336         * lib/unictype/blocks.h: Regenerated.
51337         * lib/unictype/categ_C.h: Regenerated.
51338         * lib/unictype/categ_Cf.h: Regenerated.
51339         * lib/unictype/categ_Cn.h: Regenerated.
51340         * lib/unictype/categ_L.h: Regenerated.
51341         * lib/unictype/categ_Ll.h: Regenerated.
51342         * lib/unictype/categ_Lm.h: Regenerated.
51343         * lib/unictype/categ_Lo.h: Regenerated.
51344         * lib/unictype/categ_Lu.h: Regenerated.
51345         * lib/unictype/categ_M.h: Regenerated.
51346         * lib/unictype/categ_Mc.h: Regenerated.
51347         * lib/unictype/categ_Me.h: Regenerated.
51348         * lib/unictype/categ_Mn.h: Regenerated.
51349         * lib/unictype/categ_N.h: Regenerated.
51350         * lib/unictype/categ_Nd.h: Regenerated.
51351         * lib/unictype/categ_Nl.h: Regenerated.
51352         * lib/unictype/categ_No.h: Regenerated.
51353         * lib/unictype/categ_P.h: Regenerated.
51354         * lib/unictype/categ_Pd.h: Regenerated.
51355         * lib/unictype/categ_Pe.h: Regenerated.
51356         * lib/unictype/categ_Pf.h: Regenerated.
51357         * lib/unictype/categ_Pi.h: Regenerated.
51358         * lib/unictype/categ_Po.h: Regenerated.
51359         * lib/unictype/categ_Ps.h: Regenerated.
51360         * lib/unictype/categ_S.h: Regenerated.
51361         * lib/unictype/categ_Sk.h: Regenerated.
51362         * lib/unictype/categ_Sm.h: Regenerated.
51363         * lib/unictype/categ_So.h: Regenerated.
51364         * lib/unictype/categ_of.h: Regenerated.
51365         * lib/unictype/combining.h: Regenerated.
51366         * lib/unictype/ctype_alnum.h: Regenerated.
51367         * lib/unictype/ctype_alpha.h: Regenerated.
51368         * lib/unictype/ctype_graph.h: Regenerated.
51369         * lib/unictype/ctype_lower.h: Regenerated.
51370         * lib/unictype/ctype_print.h: Regenerated.
51371         * lib/unictype/ctype_punct.h: Regenerated.
51372         * lib/unictype/ctype_upper.h: Regenerated.
51373         * lib/unictype/decdigit.h: Regenerated.
51374         * lib/unictype/digit.h: Regenerated.
51375         * lib/unictype/mirror.h: Regenerated.
51376         * lib/unictype/numeric.h: Regenerated.
51377         * lib/unictype/pr_alphabetic.h: Regenerated.
51378         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51379         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51380         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51381         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51382         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51383         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51384         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51385         * lib/unictype/pr_combining.h: Regenerated.
51386         * lib/unictype/pr_dash.h: Regenerated.
51387         * lib/unictype/pr_decimal_digit.h: Regenerated.
51388         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51389         * lib/unictype/pr_deprecated.h: Regenerated.
51390         * lib/unictype/pr_diacritic.h: Regenerated.
51391         * lib/unictype/pr_extender.h: Regenerated.
51392         * lib/unictype/pr_format_control.h: Regenerated.
51393         * lib/unictype/pr_grapheme_base.h: Regenerated.
51394         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51395         * lib/unictype/pr_grapheme_link.h: Regenerated.
51396         * lib/unictype/pr_id_continue.h: Regenerated.
51397         * lib/unictype/pr_id_start.h: Regenerated.
51398         * lib/unictype/pr_ideographic.h: Regenerated.
51399         * lib/unictype/pr_ignorable_control.h: Regenerated.
51400         * lib/unictype/pr_lowercase.h: Regenerated.
51401         * lib/unictype/pr_math.h: Regenerated.
51402         * lib/unictype/pr_numeric.h: Regenerated.
51403         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51404         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51405         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51406         * lib/unictype/pr_other_id_continue.h: Regenerated.
51407         * lib/unictype/pr_other_lowercase.h: Regenerated.
51408         * lib/unictype/pr_other_math.h: Regenerated.
51409         * lib/unictype/pr_punctuation.h: Regenerated.
51410         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51411         * lib/unictype/pr_soft_dotted.h: Regenerated.
51412         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51413         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51414         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51415         * lib/unictype/pr_uppercase.h: Regenerated.
51416         * lib/unictype/pr_xid_continue.h: Regenerated.
51417         * lib/unictype/pr_xid_start.h: Regenerated.
51418         * lib/unictype/pr_zero_width.h: Regenerated.
51419         * lib/unictype/scripts.h: Regenerated.
51420         * lib/unictype/scripts_byname.gperf: Regenerated.
51421         * lib/unictype/sy_java_ident.h: Regenerated.
51422         * lib/unilbrk/lbrkprop1.h: Regenerated.
51423         * lib/unilbrk/lbrkprop2.h: Regenerated.
51424         * tests/unictype/test-categ_C.c: Regenerated.
51425         * tests/unictype/test-categ_Cf.c: Regenerated.
51426         * tests/unictype/test-categ_Cn.c: Regenerated.
51427         * tests/unictype/test-categ_L.c: Regenerated.
51428         * tests/unictype/test-categ_Ll.c: Regenerated.
51429         * tests/unictype/test-categ_Lm.c: Regenerated.
51430         * tests/unictype/test-categ_Lo.c: Regenerated.
51431         * tests/unictype/test-categ_Lu.c: Regenerated.
51432         * tests/unictype/test-categ_M.c: Regenerated.
51433         * tests/unictype/test-categ_Mc.c: Regenerated.
51434         * tests/unictype/test-categ_Me.c: Regenerated.
51435         * tests/unictype/test-categ_Mn.c: Regenerated.
51436         * tests/unictype/test-categ_N.c: Regenerated.
51437         * tests/unictype/test-categ_Nd.c: Regenerated.
51438         * tests/unictype/test-categ_Nl.c: Regenerated.
51439         * tests/unictype/test-categ_No.c: Regenerated.
51440         * tests/unictype/test-categ_P.c: Regenerated.
51441         * tests/unictype/test-categ_Pd.c: Regenerated.
51442         * tests/unictype/test-categ_Pe.c: Regenerated.
51443         * tests/unictype/test-categ_Pf.c: Regenerated.
51444         * tests/unictype/test-categ_Pi.c: Regenerated.
51445         * tests/unictype/test-categ_Po.c: Regenerated.
51446         * tests/unictype/test-categ_Ps.c: Regenerated.
51447         * tests/unictype/test-categ_S.c: Regenerated.
51448         * tests/unictype/test-categ_Sk.c: Regenerated.
51449         * tests/unictype/test-categ_Sm.c: Regenerated.
51450         * tests/unictype/test-categ_So.c: Regenerated.
51451         * tests/unictype/test-ctype_alnum.c: Regenerated.
51452         * tests/unictype/test-ctype_alpha.c: Regenerated.
51453         * tests/unictype/test-ctype_graph.c: Regenerated.
51454         * tests/unictype/test-ctype_lower.c: Regenerated.
51455         * tests/unictype/test-ctype_print.c: Regenerated.
51456         * tests/unictype/test-ctype_punct.c: Regenerated.
51457         * tests/unictype/test-ctype_upper.c: Regenerated.
51458         * tests/unictype/test-decdigit.h: Regenerated.
51459         * tests/unictype/test-digit.h: Regenerated.
51460         * tests/unictype/test-numeric.h: Regenerated.
51461         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51462         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51463         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51464         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51465         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51466         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51467         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51468         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51469         * tests/unictype/test-pr_combining.c: Regenerated.
51470         * tests/unictype/test-pr_dash.c: Regenerated.
51471         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51472         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51473         * tests/unictype/test-pr_deprecated.c: Regenerated.
51474         * tests/unictype/test-pr_diacritic.c: Regenerated.
51475         * tests/unictype/test-pr_extender.c: Regenerated.
51476         * tests/unictype/test-pr_format_control.c: Regenerated.
51477         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51478         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51479         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51480         * tests/unictype/test-pr_id_continue.c: Regenerated.
51481         * tests/unictype/test-pr_id_start.c: Regenerated.
51482         * tests/unictype/test-pr_ideographic.c: Regenerated.
51483         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51484         * tests/unictype/test-pr_lowercase.c: Regenerated.
51485         * tests/unictype/test-pr_math.c: Regenerated.
51486         * tests/unictype/test-pr_numeric.c: Regenerated.
51487         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51488         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51489         Regenerated.
51490         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51491         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51492         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51493         * tests/unictype/test-pr_other_math.c: Regenerated.
51494         * tests/unictype/test-pr_punctuation.c: Regenerated.
51495         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51496         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51497         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51498         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51499         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51500         * tests/unictype/test-pr_uppercase.c: Regenerated.
51501         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51502         * tests/unictype/test-pr_xid_start.c: Regenerated.
51503         * tests/unictype/test-pr_zero_width.c: Regenerated.
51504
51505         Update to Unicode 5.1.0.
51506         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51507         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51508         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51509         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51510         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51511         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51512         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51513         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51514         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51515         (nonspacing_table_ind): Update.
51516         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51517
51518         Update to Unicode 5.1.0.
51519         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51520         code transform.
51521         * lib/uniname/uniname.c (unicode_character_name,
51522         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51523         * lib/uniname/uninames.h: Regenerated.
51524         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51525
51526 2009-02-07  Bruno Haible  <bruno@clisp.org>
51527
51528         Merge gen-ctype and gen-lbrk into a single program.
51529         * lib/gen-uni-tables.c: New file, incorporating
51530         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51531         Add directory prefixes to the names of the generated files.
51532         * lib/unictype/gen-ctype.c: Remove file.
51533         * lib/unilbrk/gen-lbrk.c: Remove file.
51534         * modules/gen-uni-tables: New file.
51535         * modules/unictype/gen-ctype: Remove file.
51536         * modules/unilbrk/gen-lbrk: Remove file.
51537
51538 2009-02-07  Bruno Haible  <bruno@clisp.org>
51539
51540         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51541
51542         New module 'unistr/u32-strcoll'.
51543         * modules/unistr/u32-strcoll: New file.
51544         * lib/unistr/u32-strcoll.c: New file.
51545
51546         New module 'unistr/u16-strcoll'.
51547         * modules/unistr/u16-strcoll: New file.
51548         * lib/unistr/u16-strcoll.c: New file.
51549
51550         New module 'unistr/u8-strcoll'.
51551         * modules/unistr/u8-strcoll: New file.
51552         * lib/unistr/u8-strcoll.c: New file.
51553         * lib/unistr/u-strcoll.h: New file.
51554
51555 2009-02-07  Bruno Haible  <bruno@clisp.org>
51556
51557         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51558         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51559         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51560         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51561         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51562         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51563
51564 2009-02-07  Bruno Haible  <bruno@clisp.org>
51565
51566         Make 64-bit clean.
51567         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51568         output_combclass, output_bidi_category, output_decimal_digit,
51569         output_digit, output_numeric, output_mirror, output_scripts,
51570         output_ident_category): Use proper width specifier in format strings.
51571
51572 2009-02-07  Bruno Haible  <bruno@clisp.org>
51573
51574         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51575         failure behaviour.
51576
51577 2009-02-07  Jim Meyering  <meyering@redhat.com>
51578
51579         regex: avoid compilation failure with upcoming gcc-4.4
51580         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51581         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51582         "... error: integer overflow in preprocessor expression".
51583
51584 2009-02-05  Ben Pfaff  <blp@gnu.org>
51585
51586         Fix link errors on Windows when close module is used.
51587         * modules/close: Add $(LIB_CLOSE) to Link section.
51588         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51589         $(LIB_CLOSE) on Windows.
51590
51591 2009-02-05  Jim Meyering  <meyering@redhat.com>
51592
51593         still avoid unused-parameter warnings, but do it cleanly
51594         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51595         (get_fs_usage): Cast to void instead.
51596         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51597         (dev_from_mount_options, read_file_system_list): Cast to void.
51598         Prompted by Bruno Haible.
51599
51600 2009-02-04  Jim Meyering  <meyering@redhat.com>
51601
51602         fsusage.c: correct copyright year
51603         * lib/fsusage.c: Reflect year in which the change is pushed into
51604
51605         avoid misc. warnings
51606         * lib/fsusage.c (UNUSED_PARAM): Define.
51607         (get_fs_usage): Mark parameter "disk" as unused.
51608         * lib/getugroups.c (getgrent): Use "void" in prototype.
51609         * lib/mountlist.c: Mark unused parameters.
51610         (read_file_system_list): Declare a local with "const".
51611         * lib/nanosleep.c (getnow): Declare static.
51612         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51613
51614         dirfd: set errno upon failure
51615         * lib/dirfd.c: Include <errno.h>.
51616         Set errno to ENOTSUP when returning -1.
51617         * modules/dirfd (Depends-on): Add errno.
51618         Suggested by John Kodis <kodis@comcast.net>.
51619
51620 2009-02-01  Bruno Haible  <bruno@clisp.org>
51621
51622         Don't assume sizeof (long) >= sizeof (void *).
51623         * lib/memcmp.c: Include stdint.h.
51624         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51625         srcp2 to 'const byte *'.
51626         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51627         types to uintptr_t.
51628         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51629         * modules/memcmp (Depends-on): Add stdint.
51630         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51631
51632 2009-01-30  Eric Blake  <ebb9@byu.net>
51633
51634         fix more require-before-expand issues
51635         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51636         expand, AC_PROG_AWK.
51637         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51638
51639 2009-01-28  Eric Blake  <ebb9@byu.net>
51640
51641         version-etc: use consistent URL formatting
51642         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51643         Improve formatting.  Use fputs for string without %.
51644
51645 2009-01-28  Jim Meyering  <meyering@redhat.com>
51646
51647         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51648         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51649         "underquoted definition of NAME" from autoconf-2.59.
51650
51651 2009-01-28  Bruno Haible  <bruno@clisp.org>
51652
51653         * doc/gnulib.texi: Add "Obsolete modules" to index.
51654
51655 2009-01-28  Jim Meyering  <meyering@redhat.com>
51656
51657         useless-if-before-free: recognize more variants
51658         * build-aux/useless-if-before-free: Also recognize e.g.,
51659         if (NULL != p) free (p);
51660
51661 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51662
51663         test-getaddrinfo: skip (don't fail) this test when there's no network
51664         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51665         on the presumption that it means you lack network access.
51666
51667 2009-01-26  Jim Meyering  <meyering@redhat.com>
51668
51669         fflush: avoid warnings on modern systems
51670         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51671         pos and result, into scopes where they're used.
51672
51673 2009-01-26  Eric Blake  <ebb9@byu.net>
51674
51675         Silence warning reintroduced by recent extensions patch.
51676         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51677         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51678         autoconf.
51679
51680         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51681         * m4/00gnulib.m4: New file.
51682         * gnulib-tool (func_get_filelist): Always use it.
51683         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51684         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51685
51686 2009-01-25  Bruno Haible  <bruno@clisp.org>
51687
51688         Make test-quotearg work on MacOS X and AIX.
51689         * tests/test-quotearg.sh: New file.
51690         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51691         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51692         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51693         include <libintl.h>.
51694         (fake_locale): Remove variable.
51695         (gettext, dgettext, dcgettext): Remove functions.
51696         (main): Instead of setting a fake locale, set a real locale. Call
51697         textdomain and bindtextdomain.
51698         * modules/quotearg-tests (Files): Add the new files.
51699         (Depends-on): Add gettext, setenv, unsetenv.
51700         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51701         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51702         Augment TESTS_ENVIRONMENT.
51703
51704 2009-01-25  Bruno Haible  <bruno@clisp.org>
51705
51706         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51707         fr_FR.ISO8859-1 locale on MacOS X.
51708         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51709         ja_JP.eucJP locale on MacOS X.
51710         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51711         zh_CN.GB18030 locale on MacOS X.
51712
51713 2009-01-25  Bruno Haible  <bruno@clisp.org>
51714
51715         Avoid link errors on MacOS X 10.3.
51716         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51717         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51718
51719 2009-01-25  Bruno Haible  <bruno@clisp.org>
51720
51721         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51722         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51723         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51724         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51725         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51726         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51727         posix_spawnattr_init, posix_spawnattr_setsigmask,
51728         posix_spawnattr_setflags, posix_spawnattr_destroy.
51729
51730         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51731         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51732         * modules/execute (Files): Remove m4/posix_spawn.m4.
51733         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51734         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51735         posix_spawnattr_init, posix_spawnattr_setsigmask,
51736         posix_spawnattr_setflags, posix_spawnattr_destroy.
51737
51738 2009-01-25  Bruno Haible  <bruno@clisp.org>
51739
51740         * lib/glthread/threadlib.c: Include <stdlib.h>.
51741
51742 2009-01-25  Bruno Haible  <bruno@clisp.org>
51743
51744         * lib/glthread/threadlib.c (dummy): New declaration.
51745
51746 2009-01-25  Bruno Haible  <bruno@clisp.org>
51747
51748         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51749         multibyte characters also for the GB18030 encoding. Don't crash when
51750         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51751
51752 2009-01-25  Bruno Haible  <bruno@clisp.org>
51753
51754         Avoid redefining 'struct random_data' on OSF/1 5.1.
51755         * lib/stdlib.in.h: Include <random.h> if it exists.
51756         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51757         HAVE_RANDOM_H. Include <random.h> when testing whether
51758         'struct random_data' exists.
51759         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51760
51761 2009-01-25  Bruno Haible  <bruno@clisp.org>
51762
51763         Don't install charset.alias on MacOS X >= 10.3.
51764         * lib/localcharset.c (DARWIN7): New macro.
51765         (get_charset_aliases): Hardcode the result for Darwin7.
51766         * modules/localcharset (install-exec-local): Don't install
51767         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51768
51769 2009-01-25  Bruno Haible  <bruno@clisp.org>
51770
51771         Don't install charset.alias on mingw and Cygwin.
51772         * modules/localcharset (install-exec-local): Don't install
51773         charset.alias on mingw and Cygwin, if the file does not yet exist.
51774         The result for these platforms is hardcoded in localcharset.c.
51775
51776 2009-01-25  Bruno Haible  <bruno@clisp.org>
51777
51778         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51779         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51780         before requiring AC_USE_SYSTEM_EXTENSIONS.
51781
51782 2009-01-25  Jim Meyering  <meyering@redhat.com>
51783
51784         c-strtod: avoid warnings
51785         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51786         "assignment discards qualifiers from pointer target type" warnings.
51787
51788 2009-01-24  Bruno Haible  <bruno@clisp.org>
51789
51790         Add support for non-UTF-8 locales on MacOS X.
51791         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51792         canonical encodings. For Darwin 7 and newer, don't map traditional
51793         encodings to UTF-8.
51794         Reported by Vincent Lefevre <vincent@vinc17.org>
51795         at <http://savannah.gnu.org/bugs/?25235>.
51796
51797 2009-01-24  Bruno Haible  <bruno@clisp.org>
51798
51799         * doc/gnulib.texi (Obsolete modules): New section.
51800         Reported by Mike Frysinger <vapier@gentoo.org>.
51801
51802 2009-01-24  Bruno Haible  <bruno@clisp.org>
51803
51804         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51805         (%.dvi): New rule.
51806
51807 2009-01-24  Bruno Haible  <bruno@clisp.org>
51808
51809         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51810         Reported by Eric Blake.
51811
51812 2009-01-24  Bruno Haible  <bruno@clisp.org>
51813
51814         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51815         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51816         Reported by Gary V. Vaughan <gary@gnu.org>.
51817
51818 2009-01-24  Bruno Haible  <bruno@clisp.org>
51819
51820         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51821
51822 2009-01-23  Bruno Haible  <bruno@clisp.org>
51823
51824         Make c-strtod, c-strtold usable in libraries.
51825         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51826         (C_STRTOD): Call strdup instead of xstrdup.
51827         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51828         * modules/c-strtold (Depends-on): Likewise.
51829         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51830         * NEWS: Mention the change.
51831         Reported by Michael Gold <mgold@ncf.ca>.
51832
51833 2009-01-23  Jim Meyering  <meyering@redhat.com>
51834
51835         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51836         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51837         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51838
51839 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51840
51841         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51842         GNU CoreUtils.
51843         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51844         * modules/version-etc (Description): Update.
51845
51846 2009-01-22  Bruno Haible  <bruno@clisp.org>
51847
51848         Cache the C locale object.
51849         * lib/c-strtod.c (c_locale_cache): New variable.
51850         (c_locale): New function.
51851         (C_STRTOD): Use it, and don't call freelocale.
51852         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51853         Suggested by Paolo Bonzini.
51854
51855 2009-01-21  Bruno Haible  <bruno@clisp.org>
51856
51857         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51858         conditions other than overflow.
51859
51860 2009-01-21  Bruno Haible  <bruno@clisp.org>
51861
51862         * lib/c-strtod.c: Include errno.h.
51863         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51864         value from STRTOD_L and STRTOD.
51865
51866 2009-01-21  Bruno Haible  <bruno@clisp.org>
51867         and Jim Meyering  <meyering@redhat.com>
51868
51869         nanosleep: skip configure test (fail it) for apple universal builds
51870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51871         universal builds, assume that nanosleep does not work.
51872         * modules/nanosleep (Depends-on): Add multiarch.
51873
51874         mktime: skip configure test (fail it) for apple universal builds
51875         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51876         universal builds, assume that mktime does not work.
51877         * modules/mktime (Depends-on): Add multiarch.
51878
51879 2009-01-21  Eric Blake  <ebb9@byu.net>
51880
51881         multiarch: avoid expand-before-require warning
51882         * modules/multiarch (configure.ac): Require, rather than expand,
51883         gl_MULTIARCH.
51884         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51885         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51886         enforce that all clients require it.  Partial reversion of
51887         2008-12-29 patch.
51888
51889         error: avoid expand-before-require warning
51890         * modules/errno (configure.ac): Require, rather than expand,
51891         gl_HEADER_ERRNO_H.
51892         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51893         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51894         enforce that all clients require it.
51895
51896         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51897         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51898         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51899         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51900
51901 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51902
51903         Revert:
51904         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51905
51906         regex: do not depend on obsolete modules.
51907         * modules/regex: Remove memcmp and memmove.
51908
51909 2009-01-20  Bruno Haible  <bruno@clisp.org>
51910
51911         Make the 'link' module link on Windows NT 4.
51912         * lib/link.c (_WIN32_WINNT): Don't define.
51913         (CreateHardLinkFuncType): New type.
51914         (CreateHardLinkFunc, initialized): New variables.
51915         (initialize): New function.
51916         (link): Invoke CreateHardLink indirectly through the function pointer.
51917
51918 2009-01-20  Bruno Haible  <bruno@clisp.org>
51919
51920         Fix compilation failure on mingw.
51921         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51922
51923 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51924
51925         * doc/c-strtod.texi: Mention a couple of restrictions.
51926
51927 2009-01-20  Jim Meyering  <meyering@redhat.com>
51928
51929         gettimeofday: move more declarations out of functions
51930         * lib/gettimeofday.c: Move extern declarations of tzset and
51931         gmtime out of containing functions.  Prompted by Bruno Haible.
51932
51933 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51934
51935         regex: do not depend on obsolete modules.
51936         * modules/regex: Remove memcmp and memmove.
51937
51938 2009-01-19  Bruno Haible  <bruno@clisp.org>
51939
51940         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51941         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51942         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51943         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51944         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51945
51946 2009-01-19  Bruno Haible  <bruno@clisp.org>
51947
51948         * tests/test-link.c: Include <errno.h>.
51949         (main): Exit with code 77 when a hard link cannot be created due to
51950         the file system.
51951         * tests/test-link.sh: Skip test when a hard link cannot be created due
51952         to the file system.
51953         Suggested by Eric Blake.
51954
51955 2009-01-19  Martin Lambers  <marlam@marlam.de>
51956
51957         * modules/link-tests: New file.
51958         * tests/test-link.sh: New file.
51959         * tests/test-link.c: New file.
51960
51961 2009-01-19  Eric Blake  <ebb9@byu.net>
51962
51963         doc: mention another function added in cygwin 1.7.0
51964         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51965         Another new function in cygwin 1.7.
51966
51967 2009-01-19  Bruno Haible  <bruno@clisp.org>
51968
51969         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51970         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51971         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51972         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51973         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51974         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51975         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51976         * m4/md4.m4 (gl_MD4): Likewise.
51977         * m4/md5.m4 (gl_MD5): Likewise.
51978         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51979         * m4/sha1.m4 (gl_SHA1): Likewise.
51980         * m4/sha256.m4 (gl_SHA256): Likewise.
51981         * m4/sha512.m4 (gl_SHA512): Likewise.
51982
51983 2009-01-19  Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/uniname/uniname-tests (Depends-on): Add progname.
51986         * tests/uniname/test-uninames.c: Include progname.h.
51987         (main): Call set_program_name.
51988
51989         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51990         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51991         (main): Call set_program_name.
51992
51993         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51994         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51995         (main): Call set_program_name.
51996
51997         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51998         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51999         (main): Call set_program_name.
52000
52001         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52002         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52003         (main): Call set_program_name.
52004
52005         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52006         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52007         (main): Call set_program_name.
52008
52009         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52010         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52011         (main): Call set_program_name.
52012
52013         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52014         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52015         (main): Call set_program_name.
52016
52017         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52018         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52019         (main): Call set_program_name.
52020
52021 2009-01-19  Eric Blake  <ebb9@byu.net>
52022
52023         test-unistd: test previous patch
52024         * tests/test-unistd.c: Test *_FILENO macros.
52025
52026         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52027         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52028         Guarantee a definition.
52029         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52030         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52031         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52032         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52033         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52034         Likewise.
52035         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52036         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52037         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52038         Likewise.
52039         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52040         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52041         (STDERR_FILENO): Likewise.
52042         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52043         (STDERR_FILENO): Likewise.
52044         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52045         (STDERR_FILENO): Likewise.
52046         Reported by Elbert Pol.
52047
52048 2009-01-19  Eric Blake  <ebb9@byu.net>
52049
52050         doc: mention more functions added in cygwin 1.7.0
52051         * doc/posix-functions/abort.texi (abort): Update wording related
52052         to cygwin.
52053         * doc/posix-functions/daylight.texi (daylight): Likewise.
52054         * doc/posix-functions/optarg.texi (optarg): Likewise.
52055         * doc/posix-functions/optarg.texi (opterr): Likewise.
52056         * doc/posix-functions/optarg.texi (optind): Likewise.
52057         * doc/posix-functions/optarg.texi (optopt): Likewise.
52058         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52059         worked in 1.5.x, and was withdrawn in 1.7.
52060         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52061         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52062         cygwin versions.
52063         * doc/posix-functions/perror.texi (perror): Likewise.
52064         * doc/posix-functions/printf.texi (printf): Likewise.
52065         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52066         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52067         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52068         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52069         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52070         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52071         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52072         Likewise.
52073         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52074         Likewise.
52075         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52076         this function.
52077         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52078         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52079         Likewise.
52080         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52081         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52082         * doc/posix-functions/confstr.texi (confstr): Likewise.
52083         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52084         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52085         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52086         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52087         * doc/posix-functions/fputws.texi (fputws): Likewise.
52088         * doc/posix-functions/fwide.texi (fwide): Likewise.
52089         * doc/posix-functions/getwc.texi (getwc): Likewise.
52090         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52091         * doc/posix-functions/putwc.texi (putwc): Likewise.
52092         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52093         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52094         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52095         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52096         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52097         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52098         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52099         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52100         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52101         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52102         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52103
52104 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52105
52106         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52107         * lib/ioctl.c: Include <sys/ioctl.h>.
52108
52109 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52110
52111         * modules/getdate-tests (Depends-on): Add progname.
52112         * tests/test-getdate.c: Use progname module, to avoid link errors
52113         on non-glibc systems.
52114
52115 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52116
52117         * modules/filenamecat-tests (Depends-on): Add progname.
52118         * modules/fstrcmp-tests (Depends-on): Likewise.
52119
52120         * tests/test-filenamecat.c: Use progname module, to avoid link
52121         errors on non-glibc systems.
52122         * tests/test-fstrcmp.c: Likewise.
52123
52124 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52125
52126         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52127         * lib/gettimeofday.c: Move extern declaration out of function.
52128
52129 2009-01-18  Bruno Haible  <bruno@clisp.org>
52130
52131         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52132         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52133         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52134
52135 2009-01-18  Bruno Haible  <bruno@clisp.org>
52136
52137         * lib/strftime.c (MEMPCPY): Remove unused macro.
52138         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52139
52140 2009-01-18  Martin Lambers  <marlam@marlam.de>
52141
52142         New module 'link'.
52143         * lib/unistd.in.h (link): New declaration.
52144         * lib/link.c: New file.
52145         * m4/link.m4: New file.
52146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52147         HAVE_LINK.
52148         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52149         * modules/link: New file.
52150         * doc/posix-functions/link.texi: Mention the new module.
52151
52152 2009-01-18  Bruno Haible  <bruno@clisp.org>
52153
52154         * tests/test-avltree_list.c (main): Call set_program_name.
52155         * tests/test-avltree_oset.c (main): Likewise.
52156         * tests/test-obstack-printf.c: Include progname.h.
52157         (main): Call set_program_name.
52158         * tests/test-quotearg.c: Include progname.h.
52159         (main): Call set_program_name.
52160         * tests/test-xmemdup0.c: Include progname.h.
52161         (main): Call set_program_name.
52162
52163 2009-01-18  Bruno Haible  <bruno@clisp.org>
52164
52165         New module 'alphasort'.
52166         * lib/dirent.in.h (alphasort): New declaration.
52167         * lib/alphasort.c: New file, from glibc with modifications.
52168         * m4/alphasort.m4: New file.
52169         * modules/alphasort: New file.
52170         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52171         HAVE_ALPHASORT.
52172         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52173         HAVE_ALPHASORT.
52174         * doc/posix-functions/alphasort.texi: Mention the new module and the
52175         portability problems.
52176
52177 2009-01-18  Bruno Haible  <bruno@clisp.org>
52178
52179         New module 'scandir'.
52180         * lib/dirent.in.h (scandir): New declaration.
52181         * lib/scandir.c: New file, from glibc with modifications.
52182         * m4/scandir.m4: New file.
52183         * modules/scandir: New file.
52184         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52185         HAVE_SCANDIR.
52186         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52187         HAVE_SCANDIR.
52188         * doc/posix-functions/scandir.texi: Mention the new module and the
52189         portability problems.
52190
52191 2009-01-17  Bruno Haible  <bruno@clisp.org>
52192
52193         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52194         Update documentation.
52195         (func_remove_suffix): Escape all dots in the suffix. Update
52196         documentation.
52197         (func_filter_filelist): Update documentation.
52198         Reported by Ralf Wildenhues.
52199
52200 2009-01-17  Bruno Haible  <bruno@clisp.org>
52201
52202         * modules/dprintf-posix-tests: New file.
52203         * tests/test-dprintf-posix.sh: New file.
52204         * tests/test-dprintf-posix.c: New file.
52205
52206         New modules 'dprintf', 'dprintf-posix'.
52207         * lib/stdio.in.h (dprintf): New declaration.
52208         * lib/dprintf.c: New file.
52209         * m4/dprintf.m4: New file.
52210         * m4/dprintf-posix.m4: New file.
52211         * modules/dprintf: New file.
52212         * modules/dprintf-posix: New file.
52213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52214         HAVE_DPRINTF, REPLACE_DPRINTF.
52215         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52216         HAVE_DPRINTF, REPLACE_DPRINTF.
52217         * doc/posix-functions/dprintf.texi: Mention the new modules.
52218
52219 2009-01-17  Bruno Haible  <bruno@clisp.org>
52220
52221         * modules/vdprintf-posix-tests: New file.
52222         * tests/test-vdprintf-posix.sh: New file.
52223         * tests/test-vdprintf-posix.c: New file.
52224
52225         New modules 'vdprintf', 'vdprintf-posix'.
52226         * lib/stdio.in.h (vdprintf): New declaration.
52227         * lib/vdprintf.c: New file.
52228         * m4/vdprintf.m4: New file.
52229         * m4/vdprintf-posix.m4: New file.
52230         * modules/vdprintf: New file.
52231         * modules/vdprintf-posix: New file.
52232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52233         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52234         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52235         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52236         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52237
52238 2009-01-17  Bruno Haible  <bruno@clisp.org>
52239
52240         Fix replacement of fopen on mingw.
52241         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52242         mingw.
52243
52244 2009-01-17  Bruno Haible  <bruno@clisp.org>
52245
52246         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52247         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52248
52249 2009-01-17  Bruno Haible  <bruno@clisp.org>
52250
52251         Avoid test-fflush2.sh failure on mingw.
52252         * tests/test-fflush2.c: Include binary-io.h.
52253         (main): Put standard input into binary mode.
52254         * modules/fflush-tests (Depends-on): Add binary-io.
52255
52256 2009-01-17  Bruno Haible  <bruno@clisp.org>
52257
52258         * lib/wchar.in.h: In another particular situation, include only the
52259         system's <wchar.h> file.
52260         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52261         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52262         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52263
52264 2009-01-17  Bruno Haible  <bruno@clisp.org>
52265
52266         Support for stripping executables in --enable-relocatable.
52267         * build-aux/install-reloc: Expect one more argument, or an environment
52268         variable RELOC_STRIP_PROG. If set, strip the destination program and
52269         its wrapper.
52270         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52271         RELOC_STRIP_PROG.
52272         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52273         to set RELOCATABLE_STRIP.
52274         * NEWS: Mention the new Makefile requirement.
52275
52276 2009-01-17  Bruno Haible  <bruno@clisp.org>
52277
52278         * build-aux/install-reloc: Remove debugging information left over by
52279         C compiler on MacOS X.
52280
52281 2009-01-17  Bruno Haible  <bruno@clisp.org>
52282
52283         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52284         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52285         _NSGetExecutablePath.
52286
52287 2009-01-16  Jim Meyering  <meyering@redhat.com>
52288
52289         strerror: avoid warnings about discarding "const"
52290         * lib/strerror.c (rpl_strerror): Instead of returning a const
52291         string from each and every "case", use a variable, and add a single
52292         cast after the switch.
52293
52294 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52295
52296         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52297
52298 2009-01-16  Bruno Haible  <bruno@clisp.org>
52299
52300         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52301         array initializer syntax that also works in C++ mode.
52302         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52303
52304 2009-01-16  Jim Meyering  <meyering@redhat.com>
52305
52306         poll: suppress a warning
52307         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52308         to ignore "...unsigned expression < 0 is always false" warnings.
52309
52310 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52311
52312         poll: remove declarations of unused variables
52313         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52314         sockbuf and optlen.
52315
52316 2009-01-15  Bruno Haible  <bruno@clisp.org>
52317
52318         Make fflush-after-ungetc POSIX compliant on BSD systems.
52319         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52320         (clear_ungetc_buffer): Implement also for other systems.
52321         (rpl_fflush): On glibc systems, invoke
52322         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52323         clear_ungetc_buffer after fetching the stream's position, not before.
52324
52325 2009-01-15  Bruno Haible  <bruno@clisp.org>
52326
52327         Make fflush-after-ungetc POSIX compliant on glibc systems.
52328         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52329         after ungetc.
52330         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52331         (rpl_fflush): On glibc systems, simply call the system's fflush
52332         function after clearing the ungetc buffer.
52333         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52334         Instead, lseek only to the end of file, then use the system's fseeko
52335         for the rest. On glibc systems, reset the EOF indicator bit.
52336
52337 2009-01-15  Jim Meyering  <meyering@redhat.com>
52338
52339         openmp.m4: revert quote-adding change, for portability to older autoconf
52340         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52341         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52342         Simon Josefsson noticed the problem when using autoconf-2.61.
52343
52344 2009-01-15  Bruno Haible  <bruno@clisp.org>
52345
52346         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52347         * tests/test-fflush2.c (ASSERT): Always fail.
52348         (main): Add two tests for fflush() after ungetc(), taking into account
52349         the Austin Group's clarification.
52350         Suggested by Eric Blake.
52351
52352 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52353
52354         mktime.m4: remove K&R-style function prototypes
52355         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52356         for the Sun C++ compiler.
52357
52358 2009-01-14  Bruno Haible  <bruno@clisp.org>
52359
52360         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52361         while including <wchar.h>.
52362         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52363         the system's <wchar.h> file.
52364         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52365
52366 2009-01-14  Bruno Haible  <bruno@clisp.org>
52367
52368         * m4/csharp.m4: Don't mention gettext on the serial number line.
52369         * m4/csharpexec.m4: Likewise.
52370         * m4/eaccess.m4: Likewise.
52371         * m4/javaexec.m4: Likewise.
52372         * m4/sig_atomic_t.m4: Likewise.
52373         * m4/tmpdir.m4: Likewise.
52374         * m4/intldir.m4: Bump gettext version.
52375         * m4/lib-ld.m4: Likewise.
52376
52377 2009-01-14  Bruno Haible  <bruno@clisp.org>
52378
52379         * lib/progname.c (set_program_name): Add more comments.
52380         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52381
52382 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52383
52384         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52385         were sys/stat.h does not define it.
52386
52387 2009-01-14  Jim Meyering  <meyering@redhat.com>
52388
52389         many *.m4 files: improve m4 quoting
52390         99% of this change was performed by running the following commands:
52391         git ls-files | grep '\.m4$' | xargs perl -pi \
52392           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52393           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52394           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52395           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52396         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52397         The remainder were to add Copyright dates, increment serial numbers,
52398         undo some changes in comments, exclude m4/intl.m4, and add quotes
52399         around the "1" in ",1" where the unusual spacing prohibited the
52400         above regexps from doing the job.  For more details, see
52401         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52402         * m4/acl.m4: Modified.
52403         * m4/afs.m4: Likewise.
52404         * m4/alloca.m4: Likewise.
52405         * m4/argp.m4: Likewise.
52406         * m4/argz.m4: Likewise.
52407         * m4/atexit.m4: Likewise.
52408         * m4/bison-i18n.m4: Likewise.
52409         * m4/bison.m4: Likewise.
52410         * m4/byteswap.m4: Likewise.
52411         * m4/c-stack.m4: Likewise.
52412         * m4/c-strtod.m4: Likewise.
52413         * m4/calloc.m4: Likewise.
52414         * m4/canonicalize-lgpl.m4: Likewise.
52415         * m4/chown.m4: Likewise.
52416         * m4/clock_time.m4: Likewise.
52417         * m4/codeset.m4: Likewise.
52418         * m4/copy-file.m4: Likewise.
52419         * m4/csharp.m4: Likewise.
52420         * m4/csharpcomp.m4: Likewise.
52421         * m4/csharpexec.m4: Likewise.
52422         * m4/d-ino.m4: Likewise.
52423         * m4/d-type.m4: Likewise.
52424         * m4/dirfd.m4: Likewise.
52425         * m4/double-slash-root.m4: Likewise.
52426         * m4/eaccess.m4: Likewise.
52427         * m4/eealloc.m4: Likewise.
52428         * m4/environ.m4: Likewise.
52429         * m4/errno_h.m4: Likewise.
52430         * m4/euidaccess.m4: Likewise.
52431         * m4/execute.m4: Likewise.
52432         * m4/fatal-signal.m4: Likewise.
52433         * m4/fchdir.m4: Likewise.
52434         * m4/fcntl_h.m4: Likewise.
52435         * m4/fileblocks.m4: Likewise.
52436         * m4/filenamecat.m4: Likewise.
52437         * m4/findprog.m4: Likewise.
52438         * m4/flexmember.m4: Likewise.
52439         * m4/fnmatch.m4: Likewise.
52440         * m4/fopen.m4: Likewise.
52441         * m4/fpending.m4: Likewise.
52442         * m4/fprintf-posix.m4: Likewise.
52443         * m4/free.m4: Likewise.
52444         * m4/frexp.m4: Likewise.
52445         * m4/frexpl.m4: Likewise.
52446         * m4/fsusage.m4: Likewise.
52447         * m4/ftruncate.m4: Likewise.
52448         * m4/gc-camellia.m4: Likewise.
52449         * m4/gc-random.m4: Likewise.
52450         * m4/gc.m4: Likewise.
52451         * m4/getaddrinfo.m4: Likewise.
52452         * m4/getcwd-abort-bug.m4: Likewise.
52453         * m4/getcwd-path-max.m4: Likewise.
52454         * m4/getdate.m4: Likewise.
52455         * m4/getdomainname.m4: Likewise.
52456         * m4/getgroups.m4: Likewise.
52457         * m4/gethostname.m4: Likewise.
52458         * m4/gethrxtime.m4: Likewise.
52459         * m4/getline.m4: Likewise.
52460         * m4/getloadavg.m4: Likewise.
52461         * m4/getndelim2.m4: Likewise.
52462         * m4/getpass.m4: Likewise.
52463         * m4/gettext.m4: Likewise.
52464         * m4/gettime.m4: Likewise.
52465         * m4/gettimeofday.m4: Likewise.
52466         * m4/gnulib-common.m4: Likewise.
52467         * m4/group-member.m4: Likewise.
52468         * m4/host-os.m4: Likewise.
52469         * m4/iconv.m4: Likewise.
52470         * m4/iconv_open.m4: Likewise.
52471         * m4/inet_ntop.m4: Likewise.
52472         * m4/inet_pton.m4: Likewise.
52473         * m4/inline.m4: Likewise.
52474         * m4/intldir.m4: Likewise.
52475         * m4/intlmacosx.m4: Likewise.
52476         * m4/intmax.m4: Likewise.
52477         * m4/intmax_t.m4: Likewise.
52478         * m4/inttypes.m4: Likewise.
52479         * m4/inttypes_h.m4: Likewise.
52480         * m4/inttypes-pri.m4: Likewise.
52481         * m4/isapipe.m4: Likewise.
52482         * m4/isnand.m4: Likewise.
52483         * m4/isnanf.m4: Likewise.
52484         * m4/isnanl.m4: Likewise.
52485         * m4/javacomp.m4: Likewise.
52486         * m4/javaexec.m4: Likewise.
52487         * m4/jm-winsz1.m4: Likewise.
52488         * m4/jm-winsz2.m4: Likewise.
52489         * m4/lchown.m4: Likewise.
52490         * m4/lcmessage.m4: Likewise.
52491         * m4/ldexpl.m4: Likewise.
52492         * m4/lib-ld.m4: Likewise.
52493         * m4/lib-link.m4: Likewise.
52494         * m4/libsigsegv.m4: Likewise.
52495         * m4/link-follow.m4: Likewise.
52496         * m4/localcharset.m4: Likewise.
52497         * m4/locale-fr.m4: Likewise.
52498         * m4/locale-ja.m4: Likewise.
52499         * m4/locale-tr.m4: Likewise.
52500         * m4/locale-zh.m4: Likewise.
52501         * m4/lock.m4: Likewise.
52502         * m4/longlong.m4: Likewise.
52503         * m4/ls-mntd-fs.m4: Likewise.
52504         * m4/lstat.m4: Likewise.
52505         * m4/malloc.m4: Likewise.
52506         * m4/mathl.m4: Likewise.
52507         * m4/mbrtowc.m4: Likewise.
52508         * m4/mbstate_t.m4: Likewise.
52509         * m4/mbswidth.m4: Likewise.
52510         * m4/memchr.m4: Likewise.
52511         * m4/memcmp.m4: Likewise.
52512         * m4/memcpy.m4: Likewise.
52513         * m4/memmem.m4: Likewise.
52514         * m4/memmove.m4: Likewise.
52515         * m4/mempcpy.m4: Likewise.
52516         * m4/memrchr.m4: Likewise.
52517         * m4/memset.m4: Likewise.
52518         * m4/minmax.m4: Likewise.
52519         * m4/mkdir-slash.m4: Likewise.
52520         * m4/mkdtemp.m4: Likewise.
52521         * m4/mktime.m4: Likewise.
52522         * m4/mmap-anon.m4: Likewise.
52523         * m4/mountlist.m4: Likewise.
52524         * m4/nanosleep.m4: Likewise.
52525         * m4/nls.m4: Likewise.
52526         * m4/nocrash.m4: Likewise.
52527         * m4/open.m4: Likewise.
52528         * m4/openat.m4: Likewise.
52529         * m4/openmp.m4: Likewise.
52530         * m4/pathmax.m4: Likewise.
52531         * m4/perl.m4: Likewise.
52532         * m4/physmem.m4: Likewise.
52533         * m4/pipe.m4: Likewise.
52534         * m4/po.m4: Likewise.
52535         * m4/poll.m4: Likewise.
52536         * m4/posixtm.m4: Likewise.
52537         * m4/posixver.m4: Likewise.
52538         * m4/printf-frexp.m4: Likewise.
52539         * m4/printf-frexpl.m4: Likewise.
52540         * m4/printf-posix.m4: Likewise.
52541         * m4/printf-posix-rpl.m4: Likewise.
52542         * m4/printf.m4: Likewise.
52543         * m4/progtest.m4: Likewise.
52544         * m4/putenv.m4: Likewise.
52545         * m4/readline.m4: Likewise.
52546         * m4/readlink.m4: Likewise.
52547         * m4/readutmp.m4: Likewise.
52548         * m4/realloc.m4: Likewise.
52549         * m4/regex.m4: Likewise.
52550         * m4/relocatable.m4: Likewise.
52551         * m4/relocatable-lib.m4: Likewise.
52552         * m4/rename-dest-slash.m4: Likewise.
52553         * m4/rename.m4: Likewise.
52554         * m4/rmdir-errno.m4: Likewise.
52555         * m4/rmdir.m4: Likewise.
52556         * m4/roundf.m4: Likewise.
52557         * m4/roundl.m4: Likewise.
52558         * m4/rpmatch.m4: Likewise.
52559         * m4/save-cwd.m4: Likewise.
52560         * m4/selinux-selinux-h.m4: Likewise.
52561         * m4/setenv.m4: Likewise.
52562         * m4/settime.m4: Likewise.
52563         * m4/sig2str.m4: Likewise.
52564         * m4/sig_atomic_t.m4: Likewise.
52565         * m4/signalblocking.m4: Likewise.
52566         * m4/signbit.m4: Likewise.
52567         * m4/sigpipe.m4: Likewise.
52568         * m4/sockets.m4: Likewise.
52569         * m4/sockpfaf.m4: Likewise.
52570         * m4/st_dm_mode.m4: Likewise.
52571         * m4/stat-time.m4: Likewise.
52572         * m4/stdbool.m4: Likewise.
52573         * m4/stdint.m4: Likewise.
52574         * m4/stdint_h.m4: Likewise.
52575         * m4/stpcpy.m4: Likewise.
52576         * m4/stpncpy.m4: Likewise.
52577         * m4/strcase.m4: Likewise.
52578         * m4/strchrnul.m4: Likewise.
52579         * m4/strcspn.m4: Likewise.
52580         * m4/strdup.m4: Likewise.
52581         * m4/strftime.m4: Likewise.
52582         * m4/strndup.m4: Likewise.
52583         * m4/strnlen.m4: Likewise.
52584         * m4/strpbrk.m4: Likewise.
52585         * m4/strptime.m4: Likewise.
52586         * m4/strsep.m4: Likewise.
52587         * m4/strtod.m4: Likewise.
52588         * m4/strtoimax.m4: Likewise.
52589         * m4/strtok_r.m4: Likewise.
52590         * m4/strtol.m4: Likewise.
52591         * m4/strtoll.m4: Likewise.
52592         * m4/strtoul.m4: Likewise.
52593         * m4/strtoull.m4: Likewise.
52594         * m4/strtoumax.m4: Likewise.
52595         * m4/strverscmp.m4: Likewise.
52596         * m4/threadlib.m4: Likewise.
52597         * m4/timegm.m4: Likewise.
52598         * m4/tm_gmtoff.m4: Likewise.
52599         * m4/tmpdir.m4: Likewise.
52600         * m4/tmpfile.m4: Likewise.
52601         * m4/tzset.m4: Likewise.
52602         * m4/uintmax_t.m4: Likewise.
52603         * m4/unlinkdir.m4: Likewise.
52604         * m4/unlocked-io.m4: Likewise.
52605         * m4/uptime.m4: Likewise.
52606         * m4/userspec.m4: Likewise.
52607         * m4/utimbuf.m4: Likewise.
52608         * m4/utime.m4: Likewise.
52609         * m4/utimes-null.m4: Likewise.
52610         * m4/utimes.m4: Likewise.
52611         * m4/vararrays.m4: Likewise.
52612         * m4/vasnprintf.m4: Likewise.
52613         * m4/vfprintf-posix.m4: Likewise.
52614         * m4/vprintf-posix.m4: Likewise.
52615         * m4/wait-process.m4: Likewise.
52616         * m4/wchar_t.m4: Likewise.
52617         * m4/wint_t.m4: Likewise.
52618         * m4/write-any-file.m4: Likewise.
52619         * m4/yield.m4: Likewise.
52620
52621 2009-01-13  Bruno Haible  <bruno@clisp.org>
52622
52623         Avoid test-copy-file.sh failures when ACL support insufficient.
52624         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52625         TESTS_ENVIRONMENT.
52626         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52627         Reported by Jim Meyering.
52628
52629 2009-01-13  Bruno Haible  <bruno@clisp.org>
52630
52631         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52632         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52633         * modules/unistdio/u8-printf-parse (Files): Likewise.
52634         * modules/unistdio/u32-printf-parse (Files): Likewise.
52635         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52636
52637 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52638
52639         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52640         and m4/inttypes_h.m4 too.
52641
52642 2009-01-12  Eric Blake  <ebb9@byu.net>
52643
52644         tests: IRIX 6.2 cc can't compile -0.0 into .data
52645         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52646         rather than at compile-time.
52647         * tests/test-floorl.c (minus_zero): Likewise.
52648         * tests/test-frexpl.c (minus_zero): Likewise.
52649         * tests/test-isnan.c (minus_zerol): Likewise.
52650         * tests/test-isnanl.h (minus_zero): Likewise.
52651         * tests/test-ldexpl.c (minus_zero): Likewise.
52652         * tests/test-roundl.c (minus_zero): Likewise.
52653         * tests/test-signbit.c (minus_zerol): Likewise.
52654         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52655         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52656         * tests/test-truncl.c (minus_zero): Likewise.
52657         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52658         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52659         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52660
52661 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52662
52663         regex: fix glibc bug 9697
52664         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52665         handling.
52666
52667 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52668
52669         regex: fix glibc bug 697
52670         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52671         being NULL also if there are no backreferences.
52672
52673 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52674
52675         regex: merge glibc changes
52676         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52677         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52678         re_string_skip_chars, re_string_reconstruct): Likewise.
52679         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52680
52681 2009-01-07  Jim Meyering  <meyering@redhat.com>
52682
52683         poll: filter through cppi
52684         * lib/poll.c: Indent cpp directives to reflect nesting.
52685
52686 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52687
52688         poll: don't return uninitialized
52689         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52690
52691 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52692
52693         avoid compile failure on AIX 6.1
52694         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52695         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52696
52697 2009-01-04  Jim Meyering  <meyering@redhat.com>
52698
52699         remove duplicate inclusion of <stdio.h>
52700         * tests/test-fprintf-posix.c: Likewise.
52701         * tests/test-printf-posix.c: Likewise.
52702         * tests/test-snprintf-posix.c: Likewise.
52703         * tests/test-sprintf-posix.c: Likewise.
52704         * tests/test-vasprintf-posix.c: Likewise.
52705         * tests/test-vfprintf-posix.c: Likewise.
52706         * tests/test-vprintf-posix.c: Likewise.
52707         * tests/test-vsnprintf-posix.c: Likewise.
52708         * tests/test-vsprintf-posix.c: Likewise.
52709
52710 2009-01-03  Jim Meyering  <meyering@redhat.com>
52711
52712         gnulib-tool: fix sed-based filtering
52713         * gnulib-tool (func_filter_filelist): Remove extra backslash
52714         in sed_fff_filter definition.
52715
52716 2009-01-02  Jim Meyering  <meyering@redhat.com>
52717
52718         strftime: avoid compilation failure on Solaris 2.6
52719         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52720         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52721         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52722         be available.  Reported by Tom G. Christensen.  Details in
52723         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52724
52725 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52726             Bruno Haible  <bruno@clisp.org>
52727
52728         Speed up gnulib-tool by doing more string processing through shell
52729         built-ins.
52730         * gnulib-tool (fast_func_append): New variable.
52731         (func_remove_prefix, func_remove_suffix): New functions.
52732         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52733         (func_filter_filelist): New function.
52734         (func_get_dependencies): Use func_remove_suffix instead of sed.
52735         (func_get_automake_snippet): Use func_filter_filelist instead of a
52736         subshell and sed invocation.
52737
52738 2009-01-01  Bruno Haible  <bruno@clisp.org>
52739
52740         Fix a security bug.
52741         * gnulib-tool (func_import, import, update): Don't allow the characters
52742         '"', '$', '`', '\' in macro arguments that become part of commands that
52743         are evaluated.
52744
52745 2009-01-01  Bruno Haible  <bruno@clisp.org>
52746
52747         * gnulib-tool (func_reset_sigpipe): Add more comments.
52748
52749 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52750
52751         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52752         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52753         already know the answer.
52754
52755 2009-01-01  Jim Meyering  <meyering@redhat.com>
52756
52757         * lib/version-etc.c (version_etc_va): Update copyright year.
52758
52759 2008-12-30  Bruno Haible  <bruno@clisp.org>
52760
52761         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52762         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52763         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52764
52765 2008-12-29  Eric Blake  <ebb9@byu.net>
52766
52767         multiarch: avoid autoconf AC_REQUIRE bug
52768         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52769         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52770         2.63 and older.
52771         Reported by Bruno Haible, and analyzed in
52772         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52773
52774 2008-12-29  Bruno Haible  <bruno@clisp.org>
52775
52776         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52777         files in subdirectories correctly.
52778         Reported by Ralf Wildenhues.
52779
52780 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52781
52782         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52783         rather than 'join FILE -', for Solaris join.
52784
52785 2008-12-29  Bruno Haible  <bruno@clisp.org>
52786
52787         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52788         quoting.
52789         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52790         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52791         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52792         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52793         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52794         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52795         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52796         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52797         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52798         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52799         * m4/nls.m4 (AM_NLS): Likewise.
52800         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52801         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52802         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52803         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52804         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52805         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52806         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52807         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52808         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52809         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52810         * m4/xsize.m4 (gl_XSIZE): Likewise.
52811         Suggested by Jim Meyering.
52812
52813 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52814
52815         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52816         * lib/parse-duration.c: use a switch instead of cascading if's.
52817
52818 2008-12-29  Eric Blake  <ebb9@byu.net>
52819
52820         wchar.h: supply WEOF on Irix 5.3
52821         * lib/wchar.in.h (wint_t): Also supply WEOF.
52822         * lib/wctype.in.h (wint_t): Likewise.
52823         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52824         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52825         Reported by Tom G. Christensen.
52826
52827 2008-12-26  Bruno Haible  <bruno@clisp.org>
52828
52829         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52830         i486, i586, i686.
52831
52832 2008-12-26  Bruno Haible  <bruno@clisp.org>
52833
52834         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52835
52836 2008-12-26  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52839         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52840         not __STDC_CONSTANT_MACROS.
52841         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52842
52843 2008-12-25  Bruno Haible  <bruno@clisp.org>
52844
52845         Add support for universal builds to vasnprintf.
52846         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52847         universal builds, guess no.
52848         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52849         * modules/vasprintf-posix (Depends-on): Likewise.
52850         * modules/fprintf-posix (Depends-on): Likewise.
52851         * modules/vfprintf-posix (Depends-on): Likewise.
52852         * modules/snprintf-posix (Depends-on): Likewise.
52853         * modules/vsnprintf-posix (Depends-on): Likewise.
52854         * modules/sprintf-posix (Depends-on): Likewise.
52855         * modules/vsprintf-posix (Depends-on): Likewise.
52856         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52857         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52858         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52859         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52860         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52861         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52862         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52863
52864         Add support for universal builds to <inttypes.h>.
52865         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52866         _SCNu64_PREFIX): In Apple
52867         universal builds, define directly, using _LP64.
52868         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52869         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52870         * modules/inttypes (Depends-on): Add multiarch.
52871         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52872
52873         Add support for universal builds to <stdint.h>.
52874         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52875         universal builds, define directly, using _LP64.
52876         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52877         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52878         and size_t.
52879         * modules/stdint (Depends-on): Add multiarch.
52880         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52881
52882         New module 'multiarch'.
52883         * modules/multiarch: New file.
52884         * m4/multiarch.m4: New file.
52885
52886 2008-12-25  Bruno Haible  <bruno@clisp.org>
52887
52888         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52889
52890 2008-12-25  Bruno Haible  <bruno@clisp.org>
52891
52892         * modules/btowc (License): Relicense under LGPLv2+.
52893         * modules/mbsinit (License): Likewise.
52894         * modules/mbrtowc (License): Likewise.
52895         * modules/wcrtomb (License): Likewise.
52896         * modules/streq (License): Likewise.
52897         Reported by David Lutterkort <lutter@redhat.com>.
52898
52899 2008-12-23  Bruno Haible  <bruno@clisp.org>
52900
52901         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52902
52903 2008-12-23  Bruno Haible  <bruno@clisp.org>
52904
52905         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52907         GETADDRINFO_LIB, not in LIBS.
52908         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52909         * modules/canon-host (Link): Likewise.
52910         * NEWS: Mention the change.
52911         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52912         GETADDRINFO_LIB.
52913
52914 2008-12-22  Bruno Haible  <bruno@clisp.org>
52915
52916         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52917         * doc/posix-functions/iswalpha_l.texi: Likewise.
52918         * doc/posix-functions/iswblank_l.texi: Likewise.
52919         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52920         * doc/posix-functions/iswctype_l.texi: Likewise.
52921         * doc/posix-functions/iswdigit_l.texi: Likewise.
52922         * doc/posix-functions/iswgraph_l.texi: Likewise.
52923         * doc/posix-functions/iswlower_l.texi: Likewise.
52924         * doc/posix-functions/iswprint_l.texi: Likewise.
52925         * doc/posix-functions/iswpunct_l.texi: Likewise.
52926         * doc/posix-functions/iswspace_l.texi: Likewise.
52927         * doc/posix-functions/iswupper_l.texi: Likewise.
52928         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52929         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52930         * doc/posix-functions/open_wmemstream.texi: Likewise.
52931         * doc/posix-functions/swscanf.texi: Likewise.
52932         * doc/posix-functions/towctrans_l.texi: Likewise.
52933         * doc/posix-functions/towlower.texi: Likewise.
52934         * doc/posix-functions/towlower_l.texi: Likewise.
52935         * doc/posix-functions/towupper.texi: Likewise.
52936         * doc/posix-functions/towupper_l.texi: Likewise.
52937         * doc/posix-functions/vfwprintf.texi: Likewise.
52938         * doc/posix-functions/vfwscanf.texi: Likewise.
52939         * doc/posix-functions/vswscanf.texi: Likewise.
52940         * doc/posix-functions/vwprintf.texi: Likewise.
52941         * doc/posix-functions/vwscanf.texi: Likewise.
52942         * doc/posix-functions/wcpcpy.texi: Likewise.
52943         * doc/posix-functions/wcpncpy.texi: Likewise.
52944         * doc/posix-functions/wcscasecmp.texi: Likewise.
52945         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52946         * doc/posix-functions/wcscoll_l.texi: Likewise.
52947         * doc/posix-functions/wcsdup.texi: Likewise.
52948         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52949         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52950         * doc/posix-functions/wcsnlen.texi: Likewise.
52951         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52952         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52953         * doc/posix-functions/wctrans_l.texi: Likewise.
52954         * doc/posix-functions/wctype_l.texi: Likewise.
52955         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52956         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52957         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52958         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52959         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52960         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52961         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52962         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52963         * doc/glibc-functions/wcschrnul.texi: Likewise.
52964         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52965         * doc/glibc-functions/wcstod_l.texi: Likewise.
52966         * doc/glibc-functions/wcstof_l.texi: Likewise.
52967         * doc/glibc-functions/wcstol_l.texi: Likewise.
52968         * doc/glibc-functions/wcstold_l.texi: Likewise.
52969         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52970         * doc/glibc-functions/wcstoq.texi: Likewise.
52971         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52972         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52973         * doc/glibc-functions/wcstouq.texi: Likewise.
52974         * doc/glibc-functions/wmempcpy.texi: Likewise.
52975
52976 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52977             Eric Blake  <ebb9@byu.net>
52978             Paolo Bonzini  <bonzini@gnu.org>
52979             Bruno Haible  <bruno@clisp.org>
52980
52981         Make c-stack work on Haiku.
52982         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52983         (c_stack_action): Use SA_ONSTACK flag.
52984
52985 2008-12-22  Bruno Haible  <bruno@clisp.org>
52986
52987         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52988
52989 2008-12-22  Bruno Haible  <bruno@clisp.org>
52990
52991         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52992         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52993         being overridden.
52994         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52995         New macros.
52996         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52997         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52998         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52999         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53000
53001 2008-12-22  Bruno Haible  <bruno@clisp.org>
53002
53003         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53004         from test code.
53005
53006 2008-12-22  Eric Blake  <ebb9@byu.net>
53007
53008         Avoid gcc warnings on cygwin.
53009         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53010         Avoid unused variable.
53011         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53012         Likewise.
53013
53014 2008-12-22  Bruno Haible  <bruno@clisp.org>
53015
53016         Remove HAVE_MBRTOWC conditionals.
53017         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53018         (mbscasecmp): Assume mbrtowc function.
53019         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53020         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53021         * lib/mbschr.c: Include mbuiter.h unconditionally.
53022         (mbschr): Assume mbrtowc function.
53023         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53024         (mbscspn): Assume mbrtowc function.
53025         * lib/mbslen.c: Include mbuiter.h unconditionally.
53026         (mbslen): Assume mbrtowc function.
53027         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53028         (mbsncasecmp): Assume mbrtowc function.
53029         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53030         (mbsnlen): Assume mbrtowc function.
53031         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53032         (mbspbrk): Assume mbrtowc function.
53033         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53034         (mbspcasecmp): Assume mbrtowc function.
53035         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53036         (mbsrchr): Assume mbrtowc function.
53037         * lib/mbssep.c: Include mbuiter.h unconditionally.
53038         (mbssep): Assume mbrtowc function.
53039         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53040         (mbsspn): Assume mbrtowc function.
53041         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53042         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53043         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53044         (mbstok_r): Assume mbrtowc function.
53045         * lib/propername.c: Include mbuiter.h unconditionally.
53046         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53047         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53048         (trim2): Assume mbrtowc function.
53049         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53050         (mbsnwidth): Assume mbrtowc function.
53051         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53052         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53053         fallback definitions.
53054         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53055
53056 2008-12-22  Bruno Haible  <bruno@clisp.org>
53057
53058         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53059
53060 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53061
53062         * modules/regex: Request emulations for the mb*/wc* functions we need.
53063         * m4/regex.m4: Don't look for those functions here.
53064         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53065
53066 2008-12-22  Bruno Haible  <bruno@clisp.org>
53067
53068         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53069
53070 2008-12-21  Bruno Haible  <bruno@clisp.org>
53071
53072         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53073         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53074         (Include): Remove conditionalization.
53075         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53076         (Include): Remove conditionalization.
53077         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53078         (Include): Remove conditionalization.
53079         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53080         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53081         * NEWS: Mention the change.
53082         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53083         via Sergey Poznyakoff <gray@gnu.org.ua>.
53084
53085 2008-12-21  Bruno Haible  <bruno@clisp.org>
53086
53087         * MODULES.html.sh (Extended multibyte and wide character utilities
53088         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53089         wcrtomb, wcsrtombs.
53090         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53091         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53092         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53093         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53094
53095 2008-12-21  Bruno Haible  <bruno@clisp.org>
53096
53097         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53098
53099 2008-12-21  Bruno Haible  <bruno@clisp.org>
53100
53101         * modules/wcsnrtombs-tests: New file.
53102         * tests/test-wcsnrtombs1.sh: New file.
53103         * tests/test-wcsnrtombs2.sh: New file.
53104         * tests/test-wcsnrtombs3.sh: New file.
53105         * tests/test-wcsnrtombs4.sh: New file.
53106         * tests/test-wcsnrtombs.c: New file.
53107
53108         New module 'wcsnrtombs'.
53109         * lib/wchar.in.h (wcsnrtombs): New declaration.
53110         * lib/wcsnrtombs.c: New file.
53111         * lib/wcsrtombs-state.c: New file.
53112         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53113         (internal_state): Remove variable.
53114         * m4/wcsnrtombs.m4: New file.
53115         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53116         compilation units.
53117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53118         HAVE_WCSNRTOMBS.
53119         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53120         HAVE_WCSNRTOMBS.
53121         * modules/wcsnrtombs: New file.
53122         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53123         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53124
53125 2008-12-21  Bruno Haible  <bruno@clisp.org>
53126
53127         * modules/wcsrtombs-tests: New file.
53128         * tests/test-wcsrtombs1.sh: New file.
53129         * tests/test-wcsrtombs2.sh: New file.
53130         * tests/test-wcsrtombs3.sh: New file.
53131         * tests/test-wcsrtombs4.sh: New file.
53132         * tests/test-wcsrtombs.c: New file.
53133
53134         New module 'wcsrtombs'.
53135         * lib/wchar.in.h (wcsrtombs): New declaration.
53136         * lib/wcsrtombs.c: New file.
53137         * m4/wcsrtombs.m4: New file.
53138         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53139         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53141         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53142         * modules/wcsrtombs: New file.
53143         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53144         bugs.
53145
53146 2008-12-21  Bruno Haible  <bruno@clisp.org>
53147
53148         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53149         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53150         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53151         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53152         if not correct.
53153         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53154         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53155         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53156         m4/locale-zh.m4, m4/codeset.m4.
53157         * doc/posix-functions/wcrtomb.texi: Document the bug.
53158
53159 2008-12-21  Bruno Haible  <bruno@clisp.org>
53160
53161         Work around a btowc() bug on IRIX 6.5.
53162         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53163         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53164         REPLACE_WTOBC if not.
53165         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53166         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53167         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53168
53169 2008-12-21  Bruno Haible  <bruno@clisp.org>
53170
53171         * modules/wcrtomb-tests: New file.
53172         * tests/test-wcrtomb.sh: New file.
53173         * tests/test-wcrtomb.c: New file.
53174
53175         New module 'wcrtomb'.
53176         * lib/wchar.in.h (wcrtomb): New declaration.
53177         * lib/wcrtomb.c: New file.
53178         * m4/wcrtomb.m4: New file.
53179         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53180         HAVE_WCRTOMB.
53181         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53182         HAVE_WCRTOMB.
53183         * modules/wcrtomb: New file.
53184         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53185
53186 2008-12-21  Bruno Haible  <bruno@clisp.org>
53187
53188         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53189         * modules/mbsrtowcs (Files): Likewise.
53190         * modules/wctob (Files): Likewise.
53191         * modules/c-strcase-tests (Files): Likewise.
53192         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53193         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53194         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53195         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53196         * modules/vasnprintf-posix-tests (Files): Likewise.
53197
53198 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53199
53200         gitlog-to-changelog: pass all command-line arguments to git-log
53201         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53202         it is sometimes convenient to filter the commits in various ways.
53203         gitlog-to-changelog only allows --since to specify a start date,
53204         but git-log itself supports many other filtering mechanisms.
53205         At the moment, I want to filter by branch name.  Rather than
53206         adding a --branch option to gitlog-to-changelog, it seems more
53207         flexible to simply pass all options directly to git-log and let
53208         git do the work.  Notice that this effectively makes --since a
53209         redundant option for gitlog-to-changelog, but removing it would
53210         require current usage to change since calls would then require
53211         an additional '--'.
53212
53213 2008-12-21  Bruno Haible  <bruno@clisp.org>
53214
53215         * modules/mbsnrtowcs-tests: New file.
53216         * tests/test-mbsnrtowcs1.sh: New file.
53217         * tests/test-mbsnrtowcs2.sh: New file.
53218         * tests/test-mbsnrtowcs3.sh: New file.
53219         * tests/test-mbsnrtowcs4.sh: New file.
53220         * tests/test-mbsnrtowcs.c: New file.
53221
53222         New module 'mbsnrtowcs'.
53223         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53224         * lib/mbsnrtowcs.c: New file.
53225         * lib/mbsrtowcs-state.c: New file.
53226         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53227         (internal_state): Remove variable.
53228         * m4/mbsnrtowcs.m4: New file.
53229         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53230         compilation units.
53231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53232         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53233         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53234         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53235         * modules/mbsnrtowcs: New file.
53236         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53237         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53238         portability problem.
53239
53240 2008-12-21  Bruno Haible  <bruno@clisp.org>
53241
53242         Work around mbsrtowcs bug.
53243         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53244         (gl_FUNC_MBSRTOWCS): Invoke it.
53245         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53246         m4/locale-zh.m4.
53247         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53248
53249 2008-12-21  Bruno Haible  <bruno@clisp.org>
53250
53251         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53252
53253 2008-12-21  Bruno Haible  <bruno@clisp.org>
53254
53255         Update doc for AIX.
53256         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53257         16-bit wchar_t type.
53258         * doc/posix-functions/btowc.texi: Likewise.
53259         * doc/posix-functions/fgetwc.texi: Likewise.
53260         * doc/posix-functions/fgetws.texi: Likewise.
53261         * doc/posix-functions/fputwc.texi: Likewise.
53262         * doc/posix-functions/fputws.texi: Likewise.
53263         * doc/posix-functions/fwide.texi: Likewise.
53264         * doc/posix-functions/fwprintf.texi: Likewise.
53265         * doc/posix-functions/fwscanf.texi: Likewise.
53266         * doc/posix-functions/getwchar.texi: Likewise.
53267         * doc/posix-functions/getwc.texi: Likewise.
53268         * doc/posix-functions/iswalnum.texi: Likewise.
53269         * doc/posix-functions/iswalpha.texi: Likewise.
53270         * doc/posix-functions/iswblank.texi: Likewise.
53271         * doc/posix-functions/iswcntrl.texi: Likewise.
53272         * doc/posix-functions/iswctype.texi: Likewise.
53273         * doc/posix-functions/iswdigit.texi: Likewise.
53274         * doc/posix-functions/iswgraph.texi: Likewise.
53275         * doc/posix-functions/iswlower.texi: Likewise.
53276         * doc/posix-functions/iswprint.texi: Likewise.
53277         * doc/posix-functions/iswpunct.texi: Likewise.
53278         * doc/posix-functions/iswspace.texi: Likewise.
53279         * doc/posix-functions/iswupper.texi: Likewise.
53280         * doc/posix-functions/iswxdigit.texi: Likewise.
53281         * doc/posix-functions/mbrtowc.texi: Likewise.
53282         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53283         * doc/posix-functions/mbstowcs.texi: Likewise.
53284         * doc/posix-functions/mbtowc.texi: Likewise.
53285         * doc/posix-functions/putwchar.texi: Likewise.
53286         * doc/posix-functions/putwc.texi: Likewise.
53287         * doc/posix-functions/swprintf.texi: Likewise.
53288         * doc/posix-functions/tolower.texi: Likewise.
53289         * doc/posix-functions/toupper.texi: Likewise.
53290         * doc/posix-functions/towctrans.texi: Likewise.
53291         * doc/posix-functions/ungetwc.texi: Likewise.
53292         * doc/posix-functions/vswprintf.texi: Likewise.
53293         * doc/posix-functions/wcrtomb.texi: Likewise.
53294         * doc/posix-functions/wcscat.texi: Likewise.
53295         * doc/posix-functions/wcschr.texi: Likewise.
53296         * doc/posix-functions/wcscmp.texi: Likewise.
53297         * doc/posix-functions/wcscoll.texi: Likewise.
53298         * doc/posix-functions/wcscpy.texi: Likewise.
53299         * doc/posix-functions/wcscspn.texi: Likewise.
53300         * doc/posix-functions/wcsftime.texi: Likewise.
53301         * doc/posix-functions/wcslen.texi: Likewise.
53302         * doc/posix-functions/wcsncat.texi: Likewise.
53303         * doc/posix-functions/wcsncmp.texi: Likewise.
53304         * doc/posix-functions/wcsncpy.texi: Likewise.
53305         * doc/posix-functions/wcspbrk.texi: Likewise.
53306         * doc/posix-functions/wcsrchr.texi: Likewise.
53307         * doc/posix-functions/wcsrtombs.texi: Likewise.
53308         * doc/posix-functions/wcsspn.texi: Likewise.
53309         * doc/posix-functions/wcsstr.texi: Likewise.
53310         * doc/posix-functions/wcstod.texi: Likewise.
53311         * doc/posix-functions/wcstof.texi: Likewise.
53312         * doc/posix-functions/wcstoimax.texi: Likewise.
53313         * doc/posix-functions/wcstok.texi: Likewise.
53314         * doc/posix-functions/wcstold.texi: Likewise.
53315         * doc/posix-functions/wcstoll.texi: Likewise.
53316         * doc/posix-functions/wcstol.texi: Likewise.
53317         * doc/posix-functions/wcstombs.texi: Likewise.
53318         * doc/posix-functions/wcstoull.texi: Likewise.
53319         * doc/posix-functions/wcstoul.texi: Likewise.
53320         * doc/posix-functions/wcstoumax.texi: Likewise.
53321         * doc/posix-functions/wcswidth.texi: Likewise.
53322         * doc/posix-functions/wcsxfrm.texi: Likewise.
53323         * doc/posix-functions/wctob.texi: Likewise.
53324         * doc/posix-functions/wctomb.texi: Likewise.
53325         * doc/posix-functions/wctrans.texi: Likewise.
53326         * doc/posix-functions/wctype.texi: Likewise.
53327         * doc/posix-functions/wcwidth.texi: Likewise.
53328         * doc/posix-functions/wmemchr.texi: Likewise.
53329         * doc/posix-functions/wmemcmp.texi: Likewise.
53330         * doc/posix-functions/wmemcpy.texi: Likewise.
53331         * doc/posix-functions/wmemmove.texi: Likewise.
53332         * doc/posix-functions/wmemset.texi: Likewise.
53333         * doc/posix-functions/wprintf.texi: Likewise.
53334         * doc/posix-functions/wscanf.texi: Likewise.
53335
53336 2008-12-21  Bruno Haible  <bruno@clisp.org>
53337
53338         Update doc for HP-UX 11.11.
53339         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53340         in HP-UX version 11.00, not in all versions of HP-UX 11.
53341         * doc/posix-functions/fwide.texi: Likewise.
53342         * doc/posix-functions/fwprintf.texi: Likewise.
53343         * doc/posix-functions/fwscanf.texi: Likewise.
53344         * doc/posix-functions/inet_ntop.texi: Likewise.
53345         * doc/posix-functions/inet_pton.texi: Likewise.
53346         * doc/posix-functions/mbrlen.texi: Likewise.
53347         * doc/posix-functions/mbrtowc.texi: Likewise.
53348         * doc/posix-functions/mbsinit.texi: Likewise.
53349         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53350         * doc/posix-functions/swprintf.texi: Likewise.
53351         * doc/posix-functions/swscanf.texi: Likewise.
53352         * doc/posix-functions/towctrans.texi: Likewise.
53353         * doc/posix-functions/vfwprintf.texi: Likewise.
53354         * doc/posix-functions/vswprintf.texi: Likewise.
53355         * doc/posix-functions/vwprintf.texi: Likewise.
53356         * doc/posix-functions/wcrtomb.texi: Likewise.
53357         * doc/posix-functions/wcsrtombs.texi: Likewise.
53358         * doc/posix-functions/wcsstr.texi: Likewise.
53359         * doc/posix-functions/wctob.texi: Likewise.
53360         * doc/posix-functions/wctrans.texi: Likewise.
53361         * doc/posix-functions/wmemchr.texi: Likewise.
53362         * doc/posix-functions/wmemcmp.texi: Likewise.
53363         * doc/posix-functions/wmemcpy.texi: Likewise.
53364         * doc/posix-functions/wmemmove.texi: Likewise.
53365         * doc/posix-functions/wmemset.texi: Likewise.
53366         * doc/posix-functions/wprintf.texi: Likewise.
53367         * doc/posix-functions/wscanf.texi: Likewise.
53368
53369 2008-12-21  Bruno Haible  <bruno@clisp.org>
53370
53371         Work around a portability problem.
53372         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53373         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53374
53375 2008-12-20  Bruno Haible  <bruno@clisp.org>
53376
53377         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53378         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53379         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53380         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53381         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53382
53383         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53384         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53385         set.
53386         (GNULIB_defined_mbstate_t): New macro.
53387         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53388         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53389         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53390         reuses the system's mbrtowc function but works around the bugs.
53391         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53392         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53393         macros.
53394         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53395         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53396         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53397         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53398         REPLACE_MBSINIT if mbsinit needs to be overridden.
53399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53400         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53401         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53402         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53403         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53404         m4/locale-zh.m4.
53405         (Depends): Add mbsinit.
53406         * modules/mbsinit (Depends): Add mbrtowc.
53407         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53408
53409 2008-12-20  Bruno Haible  <bruno@clisp.org>
53410
53411         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53412         so that there are no conversion errors on AIX.
53413         * tests/test-mbsrtowcs.c (main): LIkewise.
53414
53415 2008-12-20  Bruno Haible  <bruno@clisp.org>
53416
53417         Work around wctob bug on Solaris <= 9.
53418         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53419         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53420         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53421         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53422         * modules/wctob (Files): Add m4/locale-fr.m4.
53423         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53424
53425 2008-12-20  Bruno Haible  <bruno@clisp.org>
53426
53427         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53428         /dev/null.
53429         * tests/test-select-in.sh: Likewise.
53430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53431
53432 2008-12-20  Bruno Haible  <bruno@clisp.org>
53433
53434         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53435         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53436         Cygwin 1.5.x.
53437
53438 2008-12-20  Bruno Haible  <bruno@clisp.org>
53439
53440         Ensure mbstate_t is defined on HP-UX 11.11.
53441         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53442         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53443         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53444         AC_USE_SYSTEM_EXTENSIONS.
53445         * modules/fnmatch (Depends-on): Add extensions.
53446         * modules/mbrlen (Depends-on): Likewise.
53447         * modules/mbrtowc (Depends-on): Likewise.
53448         * modules/mbsinit (Depends-on): Likewise.
53449         * modules/mbsrtowcs (Depends-on): Likewise.
53450         * modules/mbswidth (Depends-on): Likewise.
53451         * modules/quotearg (Depends-on): Likewise.
53452         * modules/strftime (Depends-on): Likewise.
53453
53454 2008-12-20  Bruno Haible  <bruno@clisp.org>
53455
53456         Ensure wctob is declared on IRIX 6.5.
53457         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53458         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53459         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53460         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53461         of HAVE_WCTOB.
53462         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53463         HAVE_WCTOB.
53464         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53465
53466 2008-12-19  Bruno Haible  <bruno@clisp.org>
53467
53468         * modules/mbsrtowcs-tests: New file.
53469         * tests/test-mbsrtowcs1.sh: New file.
53470         * tests/test-mbsrtowcs2.sh: New file.
53471         * tests/test-mbsrtowcs3.sh: New file.
53472         * tests/test-mbsrtowcs4.sh: New file.
53473         * tests/test-mbsrtowcs.c: New file.
53474
53475         New module 'mbsrtowcs'.
53476         * lib/wchar.in.h (mbsrtowcs): New declaration.
53477         * lib/mbsrtowcs.c: New file.
53478         * m4/mbsrtowcs.m4: New file.
53479         * modules/mbsrtowcs: New file.
53480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53481         HAVE_MBSRTOWCS.
53482         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53483         HAVE_MBSRTOWCS.
53484         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53485
53486 2008-12-19  Bruno Haible  <bruno@clisp.org>
53487
53488         New module 'mbrlen'.
53489         * lib/wchar.in.h (mbrlen): New declaration.
53490         * lib/mbrlen.c: New file.
53491         * m4/mbrlen.m4: New file.
53492         * modules/mbrlen: New file.
53493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53494         HAVE_MBRLEN.
53495         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53496         HAVE_MBRLEN.
53497         * doc/posix-functions/mbrlen.texi: Document the new module.
53498
53499 2008-12-19  Bruno Haible  <bruno@clisp.org>
53500
53501         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53502         * modules/mbrtowc (Depends-on): Add verify.
53503         Suggested by Paul Eggert.
53504
53505 2008-12-18  Bruno Haible  <bruno@clisp.org>
53506
53507         * modules/mbsinit-tests: New file.
53508         * tests/test-mbsinit.sh: New file.
53509         * tests/test-mbsinit.c: New file.
53510
53511 2008-12-18  Bruno Haible  <bruno@clisp.org>
53512
53513         * modules/mbrtowc-tests: New file.
53514         * tests/test-mbrtowc1.sh: New file.
53515         * tests/test-mbrtowc2.sh: New file.
53516         * tests/test-mbrtowc3.sh: New file.
53517         * tests/test-mbrtowc4.sh: New file.
53518         * tests/test-mbrtowc.c: New file.
53519
53520         New module 'mbrtowc'.
53521         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53522         mbsinit and mbrtowc.
53523         (mbrtowc): New declaration.
53524         * lib/mbrtowc.c: New file.
53525         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53526         * modules/mbrtowc: New file.
53527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53528         HAVE_MBRTOWC.
53529         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53530         HAVE_MBRTOWC.
53531         * doc/posix-functions/mbrtowc.texi: Document the new module.
53532
53533 2008-12-18  Bruno Haible  <bruno@clisp.org>
53534
53535         New module 'wctob'.
53536         * lib/wchar.in.h (wctob): New declaration.
53537         * lib/wctob.c: New file.
53538         * m4/wctob.m4: New file.
53539         * modules/wctob: New file.
53540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53541         HAVE_WCTOB.
53542         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53543         * doc/posix-functions/wctob.texi: Document the new module.
53544
53545 2008-12-18  Bruno Haible  <bruno@clisp.org>
53546
53547         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53548         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53549
53550 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53551
53552         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53553         G. Christensen" <tgc@jupiterrise.com>.
53554
53555         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53556         G. Christensen" <tgc@jupiterrise.com>.
53557
53558         * lib/flock.c: Need to include string.h.  Reported by "Tom
53559         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53560         <ebb9@byu.net>.
53561
53562 2008-12-18  Bruno Haible  <bruno@clisp.org>
53563
53564         * m4/locale-ja.m4: New file, from GNU gettext.
53565
53566 2008-12-17  Bruno Haible  <bruno@clisp.org>
53567
53568         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53569         Suggested by Eric Blake.
53570
53571 2008-12-17  Bruno Haible  <bruno@clisp.org>
53572
53573         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53574
53575 2008-12-17  Bruno Haible  <bruno@clisp.org>
53576
53577         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53578         * modules/mbsinit (Depends-on): Add verify.
53579         Suggested by Paul Eggert.
53580
53581 2008-12-17  Bruno Haible  <bruno@clisp.org>
53582
53583         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53584         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53585         gl_FUNC_MBRTOWC.
53586         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53587         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53588         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53589         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53590         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53591         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53592         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53593         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53594         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53595         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53596         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53597         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53598         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53599         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53600         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53601         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53602         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53603         * modules/trim (configure.ac): Likewise.
53604
53605 2008-12-17  Bruno Haible  <bruno@clisp.org>
53606
53607         * modules/btowc-tests: New file.
53608         * tests/test-btowc1.sh: New file.
53609         * tests/test-btowc2.sh: New file.
53610         * tests/test-btowc.c: New file.
53611
53612         New module 'btowc'.
53613         * lib/wchar.in.h (btowc): New declaration.
53614         * lib/btowc.c: New file.
53615         * m4/btowc.m4: New file.
53616         * modules/btowc: New file.
53617         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53618         HAVE_BTOWC.
53619         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53620         * doc/posix-functions/btowc.texi: Document the new module.
53621
53622 2008-12-17  Bruno Haible  <bruno@clisp.org>
53623
53624         New module 'mbsinit'.
53625         * lib/wchar.in.h (mbsinit): New declaration.
53626         * lib/mbsinit.c: New file.
53627         * m4/mbsinit.m4: New file.
53628         * modules/mbsinit: New file.
53629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53630         HAVE_MBSINIT.
53631         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53632         HAVE_MBSINIT.
53633         * doc/posix-functions/mbsinit.texi: Document the new module.
53634
53635 2008-12-16  Bruno Haible  <bruno@clisp.org>
53636
53637         * lib/unistd.in.h: Add comment.
53638         * tests/test-environ.c: Don't include <stdlib.h>.
53639
53640 2008-12-16  Bruno Haible  <bruno@clisp.org>
53641
53642         * lib/parse-duration.h (parse_duration): Document return value
53643         convention.
53644         * lib/parse-duration.c: Include specification header first. Add
53645         comments.
53646         (_): Remove macro.
53647         (parse_year_month_day, parse_hour_minute_second): Move side effects
53648         outside of strchr call.
53649         (parse_non_iso8601): Move side effects outside of isspace call.
53650         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53651         call.
53652
53653 2008-12-16  Bruno Haible  <bruno@clisp.org>
53654
53655         * tests/test-parse-duration.sh: Produce no output when the test
53656         succeeds.
53657
53658 2008-12-16  Bruno Haible  <bruno@clisp.org>
53659
53660         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53661         expressions.
53662
53663 2008-12-15  Bruno Haible  <bruno@clisp.org>
53664
53665         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53666         * doc/glibc-functions/flistxattr.texi: Likewise.
53667         * doc/glibc-functions/fopencookie.texi: Likewise.
53668         * doc/glibc-functions/fremovexattr.texi: Likewise.
53669         * doc/glibc-functions/fsetxattr.texi: Likewise.
53670         * doc/glibc-functions/getxattr.texi: Likewise.
53671         * doc/glibc-functions/lgetxattr.texi: Likewise.
53672         * doc/glibc-functions/listxattr.texi: Likewise.
53673         * doc/glibc-functions/llistxattr.texi: Likewise.
53674         * doc/glibc-functions/lremovexattr.texi: Likewise.
53675         * doc/glibc-functions/lsetxattr.texi: Likewise.
53676         * doc/glibc-functions/removexattr.texi: Likewise.
53677         * doc/glibc-functions/setxattr.texi: Likewise.
53678         * doc/posix-functions/open_memstream.texi: Likewise.
53679
53680 2008-12-15  Eric Blake  <ebb9@byu.net>
53681
53682         Update doc for cygwin 1.7.
53683         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53684         functions.
53685         * doc/posix-functions/fchmodat.texi: Likewise.
53686         * doc/posix-functions/fchownat.texi: Likewise.
53687         * doc/posix-functions/fdopendir.texi: Likewise.
53688         * doc/posix-functions/fmemopen.texi: Likewise.
53689         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53690         * doc/posix-functions/fstatat.texi: Likewise.
53691         * doc/posix-functions/futimens.texi: Likewise.
53692         * doc/posix-functions/gai_strerror.texi: Likewise.
53693         * doc/posix-functions/getaddrinfo.texi: Likewise.
53694         * doc/posix-functions/getnameinfo.texi: Likewise.
53695         * doc/posix-functions/if_freenameindex.texi: Likewise.
53696         * doc/posix-functions/if_indextoname.texi: Likewise.
53697         * doc/posix-functions/if_nameindex.texi: Likewise.
53698         * doc/posix-functions/if_nametoindex.texi: Likewise.
53699         * doc/posix-functions/insque.texi: Likewise.
53700         * doc/posix-functions/linkat.texi: Likewise.
53701         * doc/posix-functions/llrint.texi: Likewise.
53702         * doc/posix-functions/llrintf.texi: Likewise.
53703         * doc/posix-functions/llrintl.texi: Likewise.
53704         * doc/posix-functions/lockf.texi: Likewise.
53705         * doc/posix-functions/lrintl.texi: Likewise.
53706         * doc/posix-functions/mkdirat.texi: Likewise.
53707         * doc/posix-functions/mkfifoat.texi: Likewise.
53708         * doc/posix-functions/mknodat.texi: Likewise.
53709         * doc/posix-functions/mq_close.texi: Likewise.
53710         * doc/posix-functions/mq_getattr.texi: Likewise.
53711         * doc/posix-functions/mq_notify.texi: Likewise.
53712         * doc/posix-functions/mq_open.texi: Likewise.
53713         * doc/posix-functions/mq_receive.texi: Likewise.
53714         * doc/posix-functions/mq_send.texi: Likewise.
53715         * doc/posix-functions/mq_setattr.texi: Likewise.
53716         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53717         * doc/posix-functions/mq_timedsend.texi: Likewise.
53718         * doc/posix-functions/mq_unlink.texi: Likewise.
53719         * doc/posix-functions/open_memstream.texi: Likewise.
53720         * doc/posix-functions/openat.texi: Likewise.
53721         * doc/posix-functions/posix_fadvise.texi: Likewise.
53722         * doc/posix-functions/posix_fallocate.texi: Likewise.
53723         * doc/posix-functions/posix_madvise.texi: Likewise.
53724         * doc/posix-functions/posix_memalign.texi: Likewise.
53725         * doc/posix-functions/posix_openpt.texi: Likewise.
53726         * doc/posix-functions/readlinkat.texi: Likewise.
53727         * doc/posix-functions/remque.texi: Likewise.
53728         * doc/posix-functions/renameat.texi: Likewise.
53729         * doc/posix-functions/rintl.texi: Likewise.
53730         * doc/posix-functions/sem_unlink.texi: Likewise.
53731         * doc/posix-functions/shm_open.texi: Likewise.
53732         * doc/posix-functions/shm_unlink.texi: Likewise.
53733         * doc/posix-functions/signgam.texi: Likewise.
53734         * doc/posix-functions/sigset.texi: Likewise.
53735         * doc/posix-functions/stpcpy.texi: Likewise.
53736         * doc/posix-functions/stpncpy.texi: Likewise.
53737         * doc/posix-functions/strerror.texi: Likewise.
53738         * doc/posix-functions/strtod.texi: Likewise.
53739         * doc/posix-functions/symlinkat.texi: Likewise.
53740         * doc/posix-functions/unlinkat.texi: Likewise.
53741         * doc/posix-functions/utimensat.texi: Likewise.
53742         * doc/glibc-functions/bindresvport.texi: Likewise.
53743         * doc/glibc-functions/dn_expand.texi: Likewise.
53744         * doc/glibc-functions/exp10.texi: Likewise.
53745         * doc/glibc-functions/exp10f.texi: Likewise.
53746         * doc/glibc-functions/fgetxattr.texi: Likewise.
53747         * doc/glibc-functions/flistxattr.texi: Likewise.
53748         * doc/glibc-functions/fopencookie.texi: Likewise.
53749         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53750         * doc/glibc-functions/fremovexattr.texi: Likewise.
53751         * doc/glibc-functions/fsetxattr.texi: Likewise.
53752         * doc/glibc-functions/getifaddrs.texi: Likewise.
53753         * doc/glibc-functions/getxattr.texi: Likewise.
53754         * doc/glibc-functions/lgetxattr.texi: Likewise.
53755         * doc/glibc-functions/listxattr.texi: Likewise.
53756         * doc/glibc-functions/llistxattr.texi: Likewise.
53757         * doc/glibc-functions/lremovexattr.texi: Likewise.
53758         * doc/glibc-functions/lsetxattr.texi: Likewise.
53759         * doc/glibc-functions/pow10.texi: Likewise.
53760         * doc/glibc-functions/pow10f.texi: Likewise.
53761         * doc/glibc-functions/rcmd_af.texi: Likewise.
53762         * doc/glibc-functions/removexattr.texi: Likewise.
53763         * doc/glibc-functions/res_init.texi: Likewise.
53764         * doc/glibc-functions/res_mkquery.texi: Likewise.
53765         * doc/glibc-functions/res_query.texi: Likewise.
53766         * doc/glibc-functions/res_querydomain.texi: Likewise.
53767         * doc/glibc-functions/res_send.texi: Likewise.
53768         * doc/glibc-functions/rresvport_af.texi: Likewise.
53769         * doc/glibc-functions/setxattr.texi: Likewise.
53770         * doc/glibc-functions/strcasestr.texi: Likewise.
53771
53772 2008-12-15  Bruno Haible  <bruno@clisp.org>
53773
53774         Fix compilation error on OSF/1 4.0.
53775         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53776         <sys/time.h>, simply delegate to the system header.
53777         Reported by Daniel Richard G. <oss@teragram.com>.
53778
53779 2008-12-15  Bruno Haible  <bruno@clisp.org>
53780
53781         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53782         * doc/posix-functions/fchmodat.texi: Likewise.
53783         * doc/posix-functions/fchownat.texi: Likewise.
53784         * doc/posix-functions/fdopendir.texi: Likewise.
53785         * doc/posix-functions/fstatat.texi: Likewise.
53786         * doc/posix-functions/mkdirat.texi: Likewise.
53787         * doc/posix-functions/unlinkat.texi: Likewise.
53788
53789 2008-12-14  Bruno Haible  <bruno@clisp.org>
53790
53791         Update doc for POSIX:2008.
53792         * doc/posix-functions/faccessat.texi: New file.
53793         * doc/posix-functions/fchmodat.texi: New file.
53794         * doc/posix-functions/fchownat.texi: New file.
53795         * doc/posix-functions/fdopendir.texi: New file.
53796         * doc/posix-functions/fstatat.texi: New file.
53797         * doc/posix-functions/futimens.texi: New file.
53798         * doc/posix-functions/linkat.texi: New file.
53799         * doc/posix-functions/mkdirat.texi: New file.
53800         * doc/posix-functions/mkfifoat.texi: New file.
53801         * doc/posix-functions/mknodat.texi: New file.
53802         * doc/posix-functions/open_wmemstream.texi: New file.
53803         * doc/posix-functions/openat.texi: New file.
53804         * doc/posix-functions/psiginfo.texi: New file.
53805         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53806         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53807         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53808         * doc/posix-functions/readlinkat.texi: New file.
53809         * doc/posix-functions/renameat.texi: New file.
53810         * doc/posix-functions/strerror_l.texi: New file.
53811         * doc/posix-functions/symlinkat.texi: New file.
53812         * doc/posix-functions/unlinkat.texi: New file.
53813         * doc/posix-functions/utimensat.texi: New file.
53814         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53815
53816 2008-12-14  Bruno Haible  <bruno@clisp.org>
53817
53818         Update doc for POSIX:2008.
53819         * doc/posix-functions/alphasort.texi: Renamed from
53820         doc/glibc-functions/alphasort.texi.
53821         * doc/posix-functions/dirfd.texi: Renamed from
53822         doc/glibc-functions/dirfd.texi.
53823         * doc/posix-functions/dprintf.texi: Renamed from
53824         doc/glibc-functions/dprintf.texi.
53825         * doc/posix-functions/duplocale.texi: Renamed from
53826         doc/glibc-functions/duplocale.texi.
53827         * doc/posix-functions/fexecve.texi: Renamed from
53828         doc/glibc-functions/fexecve.texi.
53829         * doc/posix-functions/fmemopen.texi: Renamed from
53830         doc/glibc-functions/fmemopen.texi.
53831         * doc/posix-functions/freelocale.texi: Renamed from
53832         doc/glibc-functions/freelocale.texi.
53833         * doc/posix-functions/getdate_err.texi: Renamed from
53834         doc/glibc-functions/getdate_err.texi.
53835         * doc/posix-functions/isalnum_l.texi: Renamed from
53836         doc/glibc-functions/isalnum_l.texi.
53837         * doc/posix-functions/isalpha_l.texi: Renamed from
53838         doc/glibc-functions/isalpha_l.texi.
53839         * doc/posix-functions/isblank_l.texi: Renamed from
53840         doc/glibc-functions/isblank_l.texi.
53841         * doc/posix-functions/iscntrl_l.texi: Renamed from
53842         doc/glibc-functions/iscntrl_l.texi.
53843         * doc/posix-functions/isdigit_l.texi: Renamed from
53844         doc/glibc-functions/isdigit_l.texi.
53845         * doc/posix-functions/isgraph_l.texi: Renamed from
53846         doc/glibc-functions/isgraph_l.texi.
53847         * doc/posix-functions/islower_l.texi: Renamed from
53848         doc/glibc-functions/islower_l.texi.
53849         * doc/posix-functions/isprint_l.texi: Renamed from
53850         doc/glibc-functions/isprint_l.texi.
53851         * doc/posix-functions/ispunct_l.texi: Renamed from
53852         doc/glibc-functions/ispunct_l.texi.
53853         * doc/posix-functions/isspace_l.texi: Renamed from
53854         doc/glibc-functions/isspace_l.texi.
53855         * doc/posix-functions/isupper_l.texi: Renamed from
53856         doc/glibc-functions/isupper_l.texi.
53857         * doc/posix-functions/iswalnum_l.texi: Renamed from
53858         doc/glibc-functions/iswalnum_l.texi.
53859         * doc/posix-functions/iswalpha_l.texi: Renamed from
53860         doc/glibc-functions/iswalpha_l.texi.
53861         * doc/posix-functions/iswblank_l.texi: Renamed from
53862         doc/glibc-functions/iswblank_l.texi.
53863         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53864         doc/glibc-functions/iswcntrl_l.texi.
53865         * doc/posix-functions/iswctype_l.texi: Renamed from
53866         doc/glibc-functions/iswctype_l.texi.
53867         * doc/posix-functions/iswdigit_l.texi: Renamed from
53868         doc/glibc-functions/iswdigit_l.texi.
53869         * doc/posix-functions/iswgraph_l.texi: Renamed from
53870         doc/glibc-functions/iswgraph_l.texi.
53871         * doc/posix-functions/iswlower_l.texi: Renamed from
53872         doc/glibc-functions/iswlower_l.texi.
53873         * doc/posix-functions/iswprint_l.texi: Renamed from
53874         doc/glibc-functions/iswprint_l.texi.
53875         * doc/posix-functions/iswpunct_l.texi: Renamed from
53876         doc/glibc-functions/iswpunct_l.texi.
53877         * doc/posix-functions/iswspace_l.texi: Renamed from
53878         doc/glibc-functions/iswspace_l.texi.
53879         * doc/posix-functions/iswupper_l.texi: Renamed from
53880         doc/glibc-functions/iswupper_l.texi.
53881         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53882         doc/glibc-functions/iswxdigit_l.texi.
53883         * doc/posix-functions/isxdigit_l.texi: Renamed from
53884         doc/glibc-functions/isxdigit_l.texi.
53885         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53886         doc/glibc-functions/mbsnrtowcs.texi.
53887         * doc/posix-functions/mkdtemp.texi: Renamed from
53888         doc/glibc-functions/mkdtemp.texi.
53889         * doc/posix-functions/newlocale.texi: Renamed from
53890         doc/glibc-functions/newlocale.texi.
53891         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53892         doc/glibc-functions/nl_langinfo_l.texi.
53893         * doc/posix-functions/open_memstream.texi: Renamed from
53894         doc/glibc-functions/open_memstream.texi.
53895         * doc/posix-functions/opterr.texi: Renamed from
53896         doc/glibc-functions/opterr.texi.
53897         * doc/posix-functions/optind.texi: Renamed from
53898         doc/glibc-functions/optind.texi.
53899         * doc/posix-functions/optopt.texi: Renamed from
53900         doc/glibc-functions/optopt.texi.
53901         * doc/posix-functions/psignal.texi: Renamed from
53902         doc/glibc-functions/psignal.texi.
53903         * doc/posix-functions/scandir.texi: Renamed from
53904         doc/glibc-functions/scandir.texi.
53905         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53906         doc/glibc-functions/sched_get_priority_min.texi.
53907         * doc/posix-functions/signgam.texi: Renamed from
53908         doc/glibc-functions/signgam.texi.
53909         * doc/posix-functions/stpcpy.texi: Renamed from
53910         doc/glibc-functions/stpcpy.texi.
53911         * doc/posix-functions/stpncpy.texi: Renamed from
53912         doc/glibc-functions/stpncpy.texi.
53913         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53914         doc/glibc-functions/strcasecmp_l.texi.
53915         * doc/posix-functions/strcoll_l.texi: Renamed from
53916         doc/glibc-functions/strcoll_l.texi.
53917         * doc/posix-functions/strfmon_l.texi: Renamed from
53918         doc/glibc-functions/strfmon_l.texi.
53919         * doc/posix-functions/strftime_l.texi: Renamed from
53920         doc/glibc-functions/strftime_l.texi.
53921         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53922         doc/glibc-functions/strncasecmp_l.texi.
53923         * doc/posix-functions/strndup.texi: Renamed from
53924         doc/glibc-functions/strndup.texi.
53925         * doc/posix-functions/strnlen.texi: Renamed from
53926         doc/glibc-functions/strnlen.texi.
53927         * doc/posix-functions/strsignal.texi: Renamed from
53928         doc/glibc-functions/strsignal.texi.
53929         * doc/posix-functions/strxfrm_l.texi: Renamed from
53930         doc/glibc-functions/strxfrm_l.texi.
53931         * doc/posix-functions/timer_gettime.texi: Renamed from
53932         doc/glibc-functions/timer_gettime.texi.
53933         * doc/posix-functions/tolower_l.texi: Renamed from
53934         doc/glibc-functions/tolower_l.texi.
53935         * doc/posix-functions/toupper_l.texi: Renamed from
53936         doc/glibc-functions/toupper_l.texi.
53937         * doc/posix-functions/towctrans_l.texi: Renamed from
53938         doc/glibc-functions/towctrans_l.texi.
53939         * doc/posix-functions/towlower_l.texi: Renamed from
53940         doc/glibc-functions/towlower_l.texi.
53941         * doc/posix-functions/towupper_l.texi: Renamed from
53942         doc/glibc-functions/towupper_l.texi.
53943         * doc/posix-functions/uselocale.texi: Renamed from
53944         doc/glibc-functions/uselocale.texi.
53945         * doc/posix-functions/vdprintf.texi: Renamed from
53946         doc/glibc-functions/vdprintf.texi.
53947         * doc/posix-functions/wcpcpy.texi:
53948         Renamed from doc/glibc-functions/wcpcpy.texi.
53949         * doc/posix-functions/wcpncpy.texi: Renamed from
53950         doc/glibc-functions/wcpncpy.texi.
53951         * doc/posix-functions/wcscasecmp.texi: Renamed from
53952         doc/glibc-functions/wcscasecmp.texi.
53953         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53954         doc/glibc-functions/wcscasecmp_l.texi.
53955         * doc/posix-functions/wcscoll_l.texi: Renamed from
53956         doc/glibc-functions/wcscoll_l.texi.
53957         * doc/posix-functions/wcsdup.texi: Renamed from
53958         doc/glibc-functions/wcsdup.texi.
53959         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53960         doc/glibc-functions/wcsncasecmp.texi.
53961         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53962         doc/glibc-functions/wcsncasecmp_l.texi.
53963         * doc/posix-functions/wcsnlen.texi: Renamed from
53964         doc/glibc-functions/wcsnlen.texi.
53965         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53966         doc/glibc-functions/wcsnrtombs.texi.
53967         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53968         doc/glibc-functions/wcsxfrm_l.texi.
53969         * doc/posix-functions/wctrans_l.texi: Renamed from
53970         doc/glibc-functions/wctrans_l.texi.
53971         * doc/posix-functions/wctype_l.texi: Renamed from
53972         doc/glibc-functions/wctype_l.texi.
53973         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53974         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53975         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53976         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53977         these subsections.
53978         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53979         Remove sections.
53980
53981 2008-12-14  Bruno Haible  <bruno@clisp.org>
53982
53983         Update doc for POSIX:2008.
53984         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53985
53986 2008-12-14  Bruno Haible  <bruno@clisp.org>
53987
53988         Update doc for POSIX:2008.
53989         * doc/pastposix-functions/bcmp.texi: Renamed from
53990         doc/posix-functions/bcmp.texi.
53991         * doc/pastposix-functions/bcopy.texi: Renamed from
53992         doc/posix-functions/bcopy.texi.
53993         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53994         doc/posix-functions/bsd_signal.texi.
53995         * doc/pastposix-functions/bzero.texi: Renamed from
53996         doc/posix-functions/bzero.texi.
53997         * doc/pastposix-functions/ecvt.texi: Renamed from
53998         doc/posix-functions/ecvt.texi.
53999         * doc/pastposix-functions/fcvt.texi: Renamed from
54000         doc/posix-functions/fcvt.texi.
54001         * doc/pastposix-functions/ftime.texi: Renamed from
54002         doc/posix-functions/ftime.texi.
54003         * doc/pastposix-functions/gcvt.texi: Renamed from
54004         doc/posix-functions/gcvt.texi.
54005         * doc/pastposix-functions/getcontext.texi: Renamed from
54006         doc/posix-functions/getcontext.texi.
54007         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54008         doc/posix-functions/gethostbyaddr.texi.
54009         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54010         doc/posix-functions/gethostbyname.texi.
54011         * doc/pastposix-functions/getwd.texi: Renamed from
54012         doc/posix-functions/getwd.texi.
54013         * doc/pastposix-functions/h_errno.texi: Renamed from
54014         doc/posix-functions/h_errno.texi.
54015         * doc/pastposix-functions/index.texi: Renamed from
54016         doc/posix-functions/index.texi.
54017         * doc/pastposix-functions/makecontext.texi: Renamed from
54018         doc/posix-functions/makecontext.texi.
54019         * doc/pastposix-functions/mktemp.texi: Renamed from
54020         doc/posix-functions/mktemp.texi.
54021         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54022         doc/posix-functions/pthread_attr_getstackaddr.texi.
54023         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54024         doc/posix-functions/pthread_attr_setstackaddr.texi.
54025         * doc/pastposix-functions/rindex.texi: Renamed from
54026         doc/posix-functions/rindex.texi.
54027         * doc/pastposix-functions/scalb.texi: Renamed from
54028         doc/posix-functions/scalb.texi.
54029         * doc/pastposix-functions/setcontext.texi: Renamed from
54030         doc/posix-functions/setcontext.texi.
54031         * doc/pastposix-functions/swapcontext.texi: Renamed from
54032         doc/posix-functions/swapcontext.texi.
54033         * doc/pastposix-functions/ualarm.texi: Renamed from
54034         doc/posix-functions/ualarm.texi.
54035         * doc/pastposix-functions/usleep.texi: Renamed from
54036         doc/posix-functions/usleep.texi.
54037         * doc/pastposix-functions/vfork.texi: Renamed from
54038         doc/posix-functions/vfork.texi.
54039         * doc/pastposix-functions/wcswcs.texi: Renamed from
54040         doc/posix-functions/wcswcs.texi.
54041         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54042         (Function Substitutes): Update.
54043
54044 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54045
54046         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54047         m4/strerror.m4.
54048
54049 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54050             Bruno Haible  <bruno@clisp.org>
54051
54052         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54053
54054 2008-12-13  Bruno Haible  <bruno@clisp.org>
54055
54056         * modules/strtoull (Depends-on): Remove unistd.
54057
54058 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54059
54060         * modules/strtoull (Depends-on): Add stdlib.
54061
54062 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54063
54064         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54065
54066 2008-12-10  Jim Meyering  <meyering@redhat.com>
54067
54068         gl_ASSERT: don't say assertions are disabled when they're not
54069         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54070         "checking whether to enable assertions... no", when they are in
54071         fact enabled.  This is solely a bug in the output of configure.
54072         In spite of saying "no", NDEBUG was not defined in that case.
54073         Also, as noted by Eric Blake, leave assertions enabled upon
54074         --enable-assert=INVALID.
54075
54076 2008-12-10  Bruno Haible  <bruno@clisp.org>
54077
54078         Change MODULES.html to refer to POSIX:2008 where possible.
54079         * MODULES.html.sh (POSIX2008_URL): New variable.
54080         (posix_headers): Remove sys/timeb, ucontext.
54081         (posix2001_headers): New variable.
54082         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54083         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54084         index, makecontext, mktemp, pthread_attr_getstackaddr,
54085         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54086         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54087         (posix2001_functions): New variable.
54088         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54089         otherwise.
54090
54091 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54092
54093         add missing include to parse-duration.c
54094         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54095         * modules/parse-duration (Depends-on): Add xalloc.
54096
54097         fix sed script reading maint.mk
54098         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54099         (syntax-check-rules): Use it.
54100
54101 2008-12-09  Bruno Haible  <bruno@clisp.org>
54102
54103         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54104         MacOS X 10.4/PowerPC.
54105         Reported by Simon Josefsson.
54106
54107 2008-12-08  Jim Meyering  <meyering@redhat.com>
54108
54109         work around mingw's lack of some S_IF definitions
54110         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54111         Reported by Simon Josefsson.
54112
54113 2008-12-08  Bruno Haible  <bruno@clisp.org>
54114
54115         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54116         applied to variables. Needed on MacOS X 10.4/PowerPC.
54117         Reported by Simon Josefsson.
54118
54119 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54120         and Eric Blake  <ebb9@byu.net>
54121
54122         assert: honor --enable-assert
54123         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54124         order to honor --enable-assert, rather than treating it as a
54125         synonym for --disable-assert.
54126
54127 2008-12-08  Jim Meyering  <meyering@redhat.com>
54128
54129         * lib/posixtm.c: Remove now-useless declaration of mktime.
54130
54131         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54132
54133 2008-12-07  Bruno Haible  <bruno@clisp.org>
54134
54135         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54136         test_once): Mark functions as static.
54137         * tests/test-tls.c (test_tls): Likewise.
54138
54139 2008-12-07  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54142         iconv_register_autodetect.
54143
54144 2008-12-07  Jim Meyering  <meyering@redhat.com>
54145
54146         posixtm.c: avoid a warning
54147         * lib/posixtm.c (posixtime): Don't initialize tm0.
54148         It's no longer needed to placate gcc4's -Wuninitialized,
54149         and the attempt to placate would elicit a new warning.
54150
54151         unicodeio.c: mark unused parameters
54152         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54153         (fallback_failure_callback): Likewise.
54154
54155 2008-12-07  Bruno Haible  <bruno@clisp.org>
54156
54157         * gnulib-tool (func_create_testdir): When building the tests
54158         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54159         Reported by Simon Josefsson.
54160
54161 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54162
54163         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54164
54165 2008-12-06  Bruno Haible  <bruno@clisp.org>
54166
54167         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54168         Suggested by Eric Blake.
54169
54170 2008-12-06  Bruno Haible  <bruno@clisp.org>
54171
54172         Fix a c-stack test failure on MacOS X.
54173         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54174         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54175         handler for SIGBUS as well.
54176         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54177         install a signal handler for SIGBUS as well.
54178         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54179
54180 2008-12-06  Bruno Haible  <bruno@clisp.org>
54181
54182         Advocacy documentation.
54183         * doc/gnulib-intro.texi (Benefits): New section.
54184         * doc/gnulib.texi: Update.
54185
54186 2008-12-06  Bruno Haible  <bruno@clisp.org>
54187
54188         Document the 'manywarnings' module.
54189         * doc/manywarnings.texi: New file.
54190         * doc/gnulib.texi: Include it.
54191
54192 2008-12-05  Eric Blake  <ebb9@byu.net>
54193
54194         tests: silence some gcc warnings
54195         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54196         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54197         type mismatches.
54198
54199 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54200             Bruno Haible  <bruno@clisp.org>
54201
54202         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54203
54204 2008-11-29  Jim Meyering  <meyering@redhat.com>
54205
54206         unicodeio.c: mark unused parameters
54207         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54208         (fallback_failure_callback): Likewise.
54209
54210         fts: fix a thinko
54211         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54212         (set_stat_type): Return S_IF*-valued "type" directly.
54213         Prompted by James Youngman's spotting a related bug.
54214         Confirmed by further testing through find.
54215
54216         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54217         * lib/fts.c (D_TYPE): Define.
54218         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54219         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54220         (s_ifmt_shift_bits): New function.
54221         (set_stat_type): New function.
54222         (fts_build): When not calling fts_stat, call set_stat_type
54223         to propagate dirent.d_type info to fts_read caller.
54224         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54225         fts_statp->st_mode type information may be valid.
54226
54227 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54228
54229         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54230         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54231         <sds@gnu.org>.
54232
54233 2008-11-20  Bruno Haible  <bruno@clisp.org>
54234
54235         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54236         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54237         INCLUDE_NEXT.
54238         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54239         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54240         * modules/math (Makefile.am): Substitute
54241         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54242         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54243
54244 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54245             Bruno Haible  <bruno@clisp.org>
54246
54247         * lib/stdint.in.h: Define all type macros so that their expansion is
54248         a single typedef'ed token. Fixes a compilation failure in Boost which
54249         does "using ::int8_t;".
54250
54251 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54252
54253         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54254         gl_MANYWARN_ALL_GCC.
54255         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54256         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54257         * modules/manywarnings: New file.
54258         * MODULES.html.sh: Mention manywarnings module.
54259
54260 2008-11-18  Bruno Haible  <bruno@clisp.org>
54261
54262         * doc/gnulib-tool.texi (Unit tests): New section.
54263
54264 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54265
54266         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54267         paths like 'lib/po/foo.po'.
54268
54269 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54270
54271         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54272         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54273
54274 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54275
54276         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54277         parameter works.
54278
54279 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54280
54281         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54282
54283 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54284
54285         * modules/parse-duration-tests: New file.
54286         * tests/test-parse-duration.sh: New file.
54287         * tests/test-parse-duration.c: New file.
54288
54289         New module 'parse-duration'.
54290         * lib/parse-duration.h: New file.
54291         * lib/parse-duration.c: New file.
54292         * modules/parse-duration: New file.
54293
54294 2008-11-17  Bruno Haible  <bruno@clisp.org>
54295
54296         * tests/test-select-out.sh: Comment out the first pipe test.
54297         Reported by Simon Josefsson.
54298
54299 2008-11-17  Bruno Haible  <bruno@clisp.org>
54300
54301         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54302         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54303         gl_HOSTENT.
54304
54305 2008-11-17  Bruno Haible  <bruno@clisp.org>
54306
54307         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54308         -lnetwork and -lnet. Needed for Haiku and BeOS.
54309
54310 2008-11-16  Bruno Haible  <bruno@clisp.org>
54311
54312         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54313
54314 2008-11-16  Bruno Haible  <bruno@clisp.org>
54315
54316         Avoid test failure on Haiku.
54317         * tests/test-fsync.c: Include <errno.h>.
54318         (main): Don't require that fsync (0) fails.
54319
54320 2008-11-15  Bruno Haible  <bruno@clisp.org>
54321
54322         New module 'hostent'.
54323         * modules/hostent: New file.
54324         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54325
54326 2008-11-15  Bruno Haible  <bruno@clisp.org>
54327
54328         New module 'servent'.
54329         * modules/servent: New file.
54330         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54331
54332 2008-11-15  Bruno Haible  <bruno@clisp.org>
54333
54334         Avoid generating same test program with two different rules.
54335         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54336         test-frexp to test-frexp-nolibm.
54337         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54338         test-frexpl to test-frexpl-nolibm.
54339
54340 2008-11-15  Bruno Haible  <bruno@clisp.org>
54341
54342         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54343         $(FREXPL_LIBM).
54344
54345 2008-11-15  Bruno Haible  <bruno@clisp.org>
54346
54347         * lib/netdb.in.h: Activate the definitions also when the system's
54348         <netdb.h> has 'struct addrinfo'.
54349         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54350         EAI_OVERFLOW or AI_NUMERICSERV.
54351         * doc/posix-headers/netdb.texi: Document the problem.
54352
54353 2008-11-15  Bruno Haible  <bruno@clisp.org>
54354
54355         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54356
54357         Make the 'sched' module work on platforms where <sched.h> exists but
54358         is incomplete (such as Haiku).
54359         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54360         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54361         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54362         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54363         HAVE_STRUCT_SCHED_PARAM.
54364         * modules/sched (Depends-on): Add include_next.
54365         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54366         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54367         * doc/posix-headers/sched.texi: Document the issue.
54368
54369 2008-11-13  Jim Meyering  <meyering@redhat.com>
54370
54371         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54372         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54373         test would fail due to the difference in the Report bugs to ...
54374         line.  The expected address is empty, "<>", while the actual
54375         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54376
54377 2008-11-12  Bruno Haible  <bruno@clisp.org>
54378
54379         lstat: don't compile lstat.c on systems lacking lstat
54380         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54381         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54382         Reported by Daniel P. Berrange via Jim Meyering.
54383
54384 2008-11-12  Jim Meyering  <meyering@redhat.com>
54385
54386         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54387
54388 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54389
54390         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54391         instead.
54392
54393 2008-11-12  Bruno Haible  <bruno@clisp.org>
54394
54395         * lib/unicodeio.c: Include unistr.h.
54396         (utf8_wctomb): Remove function.
54397         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54398
54399 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54400
54401         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54402         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54403         <bruno@clisp.org>.
54404         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54405
54406 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54407
54408         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54409         * doc/gnulib.texi: Add section for warnings.
54410
54411 2008-11-11  Bruno Haible  <bruno@clisp.org>
54412
54413         * lib/sockets.h: Add a comment.
54414
54415 2008-11-11  Karl Berry  <karl@gnu.org>
54416
54417         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54418
54419 2008-11-11  Eric Blake  <ebb9@byu.net>
54420
54421         fdl.texi: avoid git symlinks
54422         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54423
54424 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54425
54426         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54427
54428 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54429
54430         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54431         (gl_WARN_ADD): Substitute $2 if literal.
54432
54433 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54434
54435         * m4/warning.m4: Remove.
54436
54437 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54438
54439         * m4/warnings.m4: Almost complete rewrite. :-)
54440
54441 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54442
54443         * modules/warnings: New module.
54444         * m4/warnings.m4: New file.
54445         * MODULES.html.sh: Mention warnings module.
54446         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54447         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54448
54449 2008-11-10  Eric Blake  <ebb9@byu.net>
54450
54451         fdl.texi: make a symlink to the latest version
54452         * doc/standards.texi: Revert today's earlier change.
54453         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54454         * doc/fdl.texi: ...and replace this with a symlink to the newer
54455         fdl-1.3.texi.
54456
54457 2008-11-10  Bruno Haible  <bruno@clisp.org>
54458
54459         * tests/test-select-fd.c (main): Accept the result file name as fourth
54460         argument.
54461         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54462         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54463
54464 2008-11-10  Bruno Haible  <bruno@clisp.org>
54465
54466         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54467         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54468         as autoconf-substituted macros.
54469         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54470         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54471         gl_NETDB_H_DEFAULTS. Set these variables.
54472         * modules/netdb (Makefile.am): Substitute these variables.
54473
54474 2008-11-10  Eric Blake  <ebb9@byu.net>
54475
54476         standards.texi: include correct file for FDL 1.3
54477         * doc/standards.texi (GNU Free Documentation License): Change
54478         include file to pull in FDL 1.3, not 1.2.
54479
54480         fdl.texi: revert accidental change to license
54481         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54482
54483 2008-11-10  Bruno Haible  <bruno@clisp.org>
54484
54485         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54486         cross-compiling guesses also when the native compile gives no result.
54487
54488 2008-11-10  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/spawni.c (__spawni): Force variable into the stack.
54491
54492 2008-11-10  Bruno Haible  <bruno@clisp.org>
54493
54494         Add support for Haiku.
54495         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54496         glibc and BeOS, but also on Haiku.
54497         * lib/fpurge.c (fpurge): Likewise.
54498         * lib/freadable.c (freadable): Likewise.
54499         * lib/freadahead.c (freadahead): Likewise.
54500         * lib/freading.c (freading): Likewise.
54501         * lib/freadptr.c (freadptr): Likewise.
54502         * lib/freadseek.c (freadptrinc): Likewise.
54503         * lib/fseeko.c (rpl_fseeko): Likewise.
54504         * lib/fseterr.c (fseterr): Likewise.
54505         * lib/fwritable.c (fwritable): Likewise.
54506         * lib/fwriting.c (fwriting): Likewise.
54507         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54508
54509 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54510
54511         * lib/config.charset: Treat Haiku like BeOS.
54512
54513 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54514
54515         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54516         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54517
54518 2008-11-08  Bruno Haible  <bruno@clisp.org>
54519
54520         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54521         AC_CACHE_CHECK.
54522
54523 2008-11-08  Bruno Haible  <bruno@clisp.org>
54524
54525         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54526
54527 2008-11-08  Bruno Haible  <bruno@clisp.org>
54528
54529         * tests/test-select-fd.c: New file.
54530         * tests/test-select-in.sh: New file.
54531         * tests/test-select-out.sh: New file.
54532         * tests/test-select-stdin.c: New file.
54533         * modules/select-tests (Files): Add the new files.
54534         (Depends-on): Add gettimeofday.
54535         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54536         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54537         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54538
54539 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54540             Bruno Haible  <bruno@clisp.org>
54541
54542         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54543
54544 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54545
54546         * build-aux/pmccabe2html: Added support for C++ source files.
54547
54548 2008-11-05  Ben Pfaff  <blp@gnu.org>
54549
54550         Fix lib/close.c build on Windows.
54551         * modules/close (Files): Add lib/w32sock.h.
54552
54553 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54554
54555         Accept Bison's NEWS format.
54556         * build-aux/announce-gen (print_news_deltas): Tweak
54557         $re_prefix.
54558
54559 2008-11-04  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/random_r (Maintainer): Add glibc.
54562
54563 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54564
54565         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54566         by karl@freefriends.org (Karl Berry).
54567         * doc/alloca.texi: Likewise.
54568         * doc/c-ctype.texi: Likewise.
54569         * doc/c-strcase.texi: Likewise.
54570         * doc/c-strcaseeq.texi: Likewise.
54571         * doc/c-strcasestr.texi: Likewise.
54572         * doc/c-strstr.texi: Likewise.
54573         * doc/c-strtod.texi: Likewise.
54574         * doc/c-strtold.texi: Likewise.
54575         * doc/ctime.texi: Likewise.
54576         * doc/error.texi: Likewise.
54577         * doc/fdl.texi: Likewise.
54578         * doc/gcd.texi: Likewise.
54579         * doc/getdate.texi: Likewise.
54580         * doc/gnulib-intro.texi: Likewise.
54581         * doc/gnulib-tool.texi: Likewise.
54582         * doc/gnulib.texi: Likewise.
54583         * doc/inet_ntoa.texi: Likewise.
54584         * doc/maintain.texi: Likewise.
54585         * doc/make-stds.texi: Likewise.
54586         * doc/quote.texi: Likewise.
54587         * doc/regexprops-generic.texi: Likewise.
54588         * doc/standards.texi: Likewise.
54589         * doc/verify.texi: Likewise.
54590         * doc/visibility.texi: Likewise.
54591         * doc/gnulib.texi (GNU Free Documentation License): Include
54592         fdl-1.3.texi instead of fdl.texi.
54593
54594 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54595
54596         * doc/fdl-1.3.texi: New file, from
54597         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54598         * modules/fdl-1.3: Add.
54599         * MODULES.html.sh: Add fdl-1.3.
54600
54601 2008-11-03  Bruno Haible  <bruno@clisp.org>
54602
54603         Make determination of absolute name of header file work with AIX xlc.
54604         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54605         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54606         preprocessing.
54607         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54608         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54609
54610 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54611
54612         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54613         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54614         <ludo@gnu.org>.
54615
54616 2008-11-02  Bruno Haible  <bruno@clisp.org>
54617
54618         Mark 'strpbrk' obsolete.
54619         * modules/strpbrk (Status, Notice): New sections.
54620         * modules/strtok_r (Depends-on): Add strpbrk.
54621
54622 2008-11-02  Bruno Haible  <bruno@clisp.org>
54623
54624         Mark 'strdup' obsolete.
54625         * modules/strdup (Status, Notice): New sections.
54626         * modules/findprog (Depends-on): Add strdup.
54627         * modules/getaddrinfo (Depends-on): Likewise.
54628         * modules/localename (Depends-on): Likewise.
54629         * modules/relocatable-lib (Depends-on): Likewise.
54630         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54631         * modules/relocatable-prog (Depends-on): Likewise.
54632         * modules/trim (Depends-on): Likewise.
54633         * modules/unictype/gen-ctype (Depends-on): Likewise.
54634         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54635
54636 2008-11-02  Bruno Haible  <bruno@clisp.org>
54637
54638         Mark 'strcspn' obsolete.
54639         * modules/strcspn (Status, Notice): New sections.
54640
54641 2008-11-02  Bruno Haible  <bruno@clisp.org>
54642
54643         Mark 'rmdir' obsolete.
54644         * modules/rmdir (Status, Notice): New sections.
54645         * modules/clean-temp (Depends-on): Add rmdir.
54646         * modules/openat (Depends-on): Likewise.
54647
54648 2008-11-02  Bruno Haible  <bruno@clisp.org>
54649
54650         Mark 'raise' obsolete.
54651         * modules/raise (Status, Notice): New sections.
54652         (Include): Specify <signal.h>.
54653         * modules/stdio (Depends-on): Add raise.
54654         * modules/write (Depends-on): Likewise.
54655
54656 2008-11-02  Bruno Haible  <bruno@clisp.org>
54657
54658         Mark 'memset' obsolete.
54659         * modules/memset (Status, Notice): New sections.
54660
54661 2008-11-02  Bruno Haible  <bruno@clisp.org>
54662
54663         Mark 'memmove' obsolete.
54664         * modules/memmove (Status, Notice): New sections.
54665         * modules/argp (Depends-on): Add memmove.
54666         * modules/argz (Depends-on): Likewise.
54667         * modules/canonicalize (Depends-on): Likewise.
54668         * modules/canonicalize-lgpl (Depends-on): Likewise.
54669         * modules/fts (Depends-on): Likewise.
54670         * modules/getcwd (Depends-on): Likewise.
54671         * modules/human (Depends-on): Likewise.
54672         * modules/regex (Depends-on): Likewise.
54673         * modules/striconveh (Depends-on): Likewise.
54674         * modules/trim (Depends-on): Likewise.
54675         * modules/unistr/u8-move (Depends-on): Likewise.
54676         * modules/unistr/u16-move (Depends-on): Likewise.
54677         * modules/unistr/u32-move (Depends-on): Likewise.
54678
54679 2008-11-02  Bruno Haible  <bruno@clisp.org>
54680
54681         Mark 'memcpy' obsolete.
54682         * modules/memcpy (Status, Notice): New sections.
54683
54684 2008-11-02  Bruno Haible  <bruno@clisp.org>
54685
54686         Mark 'memcmp' obsolete.
54687         * modules/memcmp (Status, Notice): New sections.
54688         * modules/argmatch (Depends-on): Add memchr.
54689         * modules/backupfile (Depends-on): Likewise.
54690         * modules/c-strcasestr (Depends-on): Likewise.
54691         * modules/crypto/des (Depends-on): Likewise.
54692         * modules/csharpcomp (Depends-on): Likewise.
54693         * modules/fnmatch (Depends-on): Likewise.
54694         * modules/git-merge-changelog (Depends-on): Likewise.
54695         * modules/isnand (Depends-on): Likewise.
54696         * modules/isnand-nolibm (Depends-on): Likewise.
54697         * modules/isnanf (Depends-on): Likewise.
54698         * modules/isnanf-nolibm (Depends-on): Likewise.
54699         * modules/isnanl (Depends-on): Likewise.
54700         * modules/isnanl-nolibm (Depends-on): Likewise.
54701         * modules/mbchar (Depends-on): Likewise.
54702         * modules/memcoll (Depends-on): Likewise.
54703         * modules/quotearg (Depends-on): Likewise.
54704         * modules/regex (Depends-on): Likewise.
54705         * modules/relocatable-prog (Depends-on): Likewise.
54706         * modules/same (Depends-on): Likewise.
54707         * modules/signbit (Depends-on): Likewise.
54708         * modules/strcasestr-simple (Depends-on): Likewise.
54709         * modules/unictype/gen-ctype (Depends-on): Likewise.
54710         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54711         * modules/uniname/uniname (Depends-on): Likewise.
54712         * modules/unistr/u8-cmp (Depends-on): Likewise.
54713
54714 2008-11-02  Bruno Haible  <bruno@clisp.org>
54715
54716         Mark 'memchr' obsolete.
54717         * modules/memchr (Status, Notice): New sections.
54718         * modules/argp (Depends-on): Add memchr.
54719         * modules/base64 (Depends-on): Likewise.
54720         * modules/c-strcasestr (Depends-on): Likewise.
54721         * modules/chdir-long (Depends-on): Likewise.
54722         * modules/fnmatch (Depends-on): Likewise.
54723         * modules/getsubopt (Depends-on): Likewise.
54724         * modules/git-merge-changelog (Depends-on): Likewise.
54725         * modules/glob (Depends-on): Likewise.
54726         * modules/strcasestr-simple (Depends-on): Likewise.
54727         * modules/strnlen (Depends-on): Likewise.
54728
54729 2008-11-02  Bruno Haible  <bruno@clisp.org>
54730
54731         Mark 'atexit' obsolete.
54732         * modules/atexit (Status, Notice): New sections.
54733         * modules/chdir-long (Depends-on): Add atexit.
54734         * modules/wait-process (Depends-on): Likewise.
54735
54736 2008-11-02  Bruno Haible  <bruno@clisp.org>
54737
54738         * gnulib-tool: New option --with-obsolete.
54739         (func_usage): Document it.
54740         (func_modules_transitive_closure): Drop obsolete dependencies if
54741         incobsolete is not true.
54742         (func_import): Read and save the incobsolete variable to the cache.
54743
54744 2008-11-02  Bruno Haible  <bruno@clisp.org>
54745
54746         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54747         * gnulib-tool: New option --extract-status.
54748         (func_usage): Document it.
54749         (sed_extract_prog): Recognize it.
54750         (func_get_status): New function.
54751
54752 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54753
54754         * modules/sockets (License): Change from LGPL to LGPLv2+.
54755
54756 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54757
54758         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54759
54760 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54761
54762         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54763         Mention times and sys_times.
54764         * modules/sys_times, modules/sys_times-tests: New modules.
54765         * modules/times, modules/times-tests: Likewise
54766         * m4/sys_times_h.m4: New file.
54767         * lib/sys_times.in.h: Likewise
54768         * lib/times.c: Likewise.
54769         * tests/test-sys_times.c: Likewise.
54770         * tests/test-times.c: Likewise.
54771         * doc/posix-headers/sys_times.texi: Update.
54772         * doc/posix-functions/times.texi: Update.
54773
54774 2008-10-28  Jim Meyering  <meyering@redhat.com>
54775
54776         * modules/tempname (Depends-on): Add lstat.
54777
54778         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54779
54780 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54781
54782         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54783         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54784         using idiom used elsewhere in gnulib.
54785
54786 2008-10-27  Jim Meyering  <meyering@redhat.com>
54787
54788         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54789
54790 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54791
54792         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54793         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54794         programs.
54795         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54796
54797 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54798
54799         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54800
54801 2008-10-27  Bruno Haible  <bruno@clisp.org>
54802
54803         * tests/test-lstat.c: Include <stdio.h>.
54804
54805 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54806
54807         * modules/lstat-tests: New module.
54808         * tests/test-lstat.c: New file.
54809
54810 2008-10-26  Jim Meyering  <meyering@redhat.com>
54811
54812         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54813
54814 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54815             Bruno Haible  <bruno@clisp.org>
54816
54817         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54818         * modules/configmake (Include): Add a note that the include must come
54819         after all system headers.
54820         * lib/javaversion.c: Include configmake.h after all other includes.
54821
54822 2008-10-26  Bruno Haible  <bruno@clisp.org>
54823
54824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54825         HAVE_STRUCT_RANDOM_DATA to 1.
54826         (gl_STDLIB_H): Simplify.
54827
54828 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54829
54830         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54831         substitute HAVE_STRUCT_RANDOM_DATA.
54832         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54833         random_data.
54834         * modules/stdlib (Makefile.am): Substitute
54835         HAVE_STRUCT_RANDOM_DATA.
54836
54837 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54838
54839         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54840         * doc/gnulib-intro.texi (Copyright): Likewise.
54841
54842 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54843
54844         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54845         findings.
54846
54847 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54848             Bruno Haible  <bruno@clisp.org>
54849
54850         * lib/unistd.in.h: Include <winsock2.h>.
54851         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54852         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54853         Provide dummy declarations.
54854         (gethostname): Override.
54855         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54856         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54857         gl_PREREQ_SYS_H_WINSOCK2.
54858         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54859         * doc/posix-functions/gethostname.texi: More details.
54860
54861 2008-10-25  Bruno Haible  <bruno@clisp.org>
54862
54863         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54864         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54865         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54866
54867         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54868         here ...
54869         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54870         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54871         gl_UNISTD_H_DEFAULTS.
54872
54873 2008-10-25  Eric Blake  <ebb9@byu.net>
54874
54875         signbit: avoid spurious compiler failure
54876         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54877         declarations inside function.
54878
54879 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54880             Bruno Haible  <bruno@clisp.org>
54881
54882         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54883         * modules/random_r (Depends-on): Add stdint.
54884
54885 2008-10-24  Bruno Haible  <bruno@clisp.org>
54886
54887         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54888         Eggert.
54889         * modules/strerror (License): Likewise.
54890
54891 2008-10-24  Jim Meyering  <meyering@redhat.com>
54892
54893         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54894         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54895
54896 2008-10-24  Eric Blake  <ebb9@byu.net>
54897
54898         getgroups: fix compilation when getgroups is available
54899         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54900         but with <config.h> override of getgroups disabled.
54901
54902 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54903
54904         * doc/gnulib.texi (Header files): Add note about C++ problems.
54905         Explained by Bruno Haible <bruno@clisp.org>.
54906
54907 2008-10-23  Bruno Haible  <bruno@clisp.org>
54908
54909         Define a dummy SA_NODEFER macro on Interix.
54910         * lib/signal.in.h (SA_NODEFER): Define fallback.
54911         Reported by Aleksey Cheusov <cheusov@tut.by> via
54912         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54913
54914 2008-10-23  Bruno Haible  <bruno@clisp.org>
54915
54916         * modules/freadahead (License): Change to LGPLv2+.
54917         Suggested by Simon Josefsson.
54918
54919 2008-10-23  Jim Meyering  <meyering@redhat.com>
54920
54921         random_r: new module
54922         * modules/random_r: New file.
54923         * m4/random_r.m4: New file.
54924         * lib/random_r.c: New file, from glibc.
54925         * modules/random_r-tests: New file.
54926         * tests/test-random_r.c: New file.
54927         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54928          Declare.
54929         (RAND_MAX): Define.
54930         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54931         * modules/stdlib: Substitute them, too.
54932         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54933         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54934         * doc/glibc-functions/random_r.texi: Likewise.
54935         * doc/glibc-functions/setstate_r.texi: Likewise.
54936         * doc/glibc-functions/srandom_r.texi: Likewise.
54937         * config/srclist.txt: Mention it.
54938
54939 2008-10-23  David Lutterkort  <lutter@redhat.com>
54940
54941         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54942         link requirement
54943
54944 2008-10-23  Jim Meyering  <meyering@redhat.com>
54945
54946         selinux-h: mark parameters of stub functions as intentionally unused
54947         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54948         * lib/se-context.in.h: Likewise.
54949
54950 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54951
54952         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54953
54954 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54955
54956         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54957
54958 2008-10-22  Eric Blake  <ebb9@byu.net>
54959
54960         glthread/thread: avoid compiler warning
54961         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54962         Add unreachable abort to silence compiler.
54963
54964 2008-10-22  Eric Blake  <ebb9@byu.net>
54965
54966         netdb: also supply struct addrinfo for cygwin 1.5.x
54967         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54968         older cygwin.
54969         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54970         cygwin.
54971         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54972
54973 2008-10-22  Bruno Haible  <bruno@clisp.org>
54974
54975         * users.txt: Update entry about pspp.
54976
54977 2008-10-21  Bruno Haible  <bruno@clisp.org>
54978
54979         Simplification.
54980         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54981         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54982
54983         Simplification.
54984         * lib/ioctl.c (ioctl): Don't undefine.
54985         * lib/socket.c (socket): Don't undefine.
54986
54987         Remove unused module indicator macros.
54988         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54989         GNULIB_$1 as a C macro.
54990
54991         * doc/posix-functions/close.texi: Undo last change.
54992         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54993         Windows platforms.
54994
54995 2008-10-21  Bruno Haible  <bruno@clisp.org>
54996
54997         Add gethostname() declaration to <unistd.h>.
54998         * lib/unistd.in.h (gethostname): New declaration.
54999         * lib/gethostname.c: Include <unistd.h>.
55000         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55001         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55003         and HAVE_GETHOSTNAME.
55004         * modules/gethostname (Depends-on): Add unistd.
55005         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55006         (Include): Specify <unistd.h>.
55007         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55008         HAVE_GETHOSTNAME.
55009         * tests/test-gethostname.c: Include <unistd.h> first.
55010
55011 2008-10-21  Bruno Haible  <bruno@clisp.org>
55012
55013         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55014         * modules/select-tests (Depends-on): Likewise.
55015         Reported by Simon Josefsson.
55016
55017 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55018
55019         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55020         * lib/accept.c: New file, based on winsock.c.
55021         * lib/bind.c: New file, based on winsock.c.
55022         * lib/connect.c: New file, based on winsock.c.
55023         * lib/getpeername.c: New file, based on winsock.c.
55024         * lib/getsockname.c: New file, based on winsock.c.
55025         * lib/getsockopt.c: New file, based on winsock.c.
55026         * lib/ioctl.c: New file, based on winsock.c.
55027         * lib/listen.c: New file, based on winsock.c.
55028         * lib/recv.c: New file, based on winsock.c.
55029         * lib/recvfrom.c: New file, based on winsock.c.
55030         * lib/send.c: New file, based on winsock.c.
55031         * lib/sendto.c: New file, based on winsock.c.
55032         * lib/setsockopt.c: New file, based on winsock.c.
55033         * lib/shutdown.c: New file, based on winsock.c.
55034         * lib/socket.c: New file, based on winsock.c.
55035         * lib/w32sock.h: New file, based on winsock.c.
55036         * lib/winsock.c: Remove file.
55037         * modules/accept: Likewise.
55038         * modules/bind: Likewise.
55039         * modules/connect: Likewise.
55040         * modules/getpeername: Likewise.
55041         * modules/getsockname: Likewise.
55042         * modules/getsockopt: Likewise.
55043         * modules/ioctl: Likewise.
55044         * modules/listen: Likewise.
55045         * modules/recv: Likewise.
55046         * modules/recvfrom: Likewise.
55047         * modules/send: Likewise.
55048         * modules/sendto: Likewise.
55049         * modules/setsockopt: Likewise.
55050         * modules/shutdown: Likewise.
55051         * modules/socket: Use socket.c instead of winsock.c.
55052         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55053         * doc/posix-functions/accept.texi: Doc fix.
55054         * doc/posix-functions/bind.texi: Doc fix.
55055         * doc/posix-functions/close.texi: Doc fix.
55056         * doc/posix-functions/connect.texi: Doc fix.
55057         * doc/posix-functions/getpeername.texi: Doc fix.
55058         * doc/posix-functions/getsockname.texi: Doc fix.
55059         * doc/posix-functions/getsockopt.texi: Doc fix.
55060         * doc/posix-functions/ioctl.texi: Doc fix.
55061         * doc/posix-functions/listen.texi: Doc fix.
55062         * doc/posix-functions/recv.texi: Doc fix.
55063         * doc/posix-functions/recvfrom.texi: Doc fix.
55064         * doc/posix-functions/send.texi: Doc fix.
55065         * doc/posix-functions/sendto.texi: Doc fix.
55066         * doc/posix-functions/setsockopt.texi: Doc fix.
55067         * doc/posix-functions/shutdown.texi: Doc fix.
55068         * doc/posix-functions/socket.texi: Doc fix.
55069
55070 2008-10-20  Bruno Haible  <bruno@clisp.org>
55071
55072         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55073         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55074         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55075         as an alias for SIGABRT.
55076         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55077         (sigaction): Map it to SIGABRT.
55078         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55079
55080 2008-10-20  Bruno Haible  <bruno@clisp.org>
55081
55082         * lib/fts.c: Don't include lstat.h.
55083         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55084
55085         Move the lstat() declaration to <sys/stat.h>.
55086         * lib/lstat.h: Remove file.
55087         * lib/sys_stat.in.h: Add special invocation convention.
55088         (lstat): New declaration.
55089         * lib/lstat.c (orig_lstat): New function.
55090         (rpl_lstat): Use orig_lstat instead of lstat.
55091         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55092         AC_C_INLINE. Set REPLACE_LSTAT.
55093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55094         and REPLACE_LSTAT.
55095         * modules/lstat (Files): Remove lib/lstat.h.
55096         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55097         (Include): Specify <sys/stat.h> instead of lstat.h.
55098         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55099         REPLACE_LSTAT.
55100         * NEWS: Mention the change.
55101
55102 2008-10-20  Bruno Haible  <bruno@clisp.org>
55103
55104         * modules/posix_spawn-tests: New file.
55105         * tests/test-posix_spawn3.c: New file.
55106
55107 2008-10-20  Bruno Haible  <bruno@clisp.org>
55108
55109         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55110         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55111         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55112         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55113         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55114
55115 2008-10-20  Bruno Haible  <bruno@clisp.org>
55116
55117         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55118         of posix_spawn on AIX 5.3.
55119
55120 2008-10-20  Bruno Haible  <bruno@clisp.org>
55121
55122         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55123
55124 2008-10-20  Bruno Haible  <bruno@clisp.org>
55125
55126         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55127         of AC_LANG_PROGRAM.
55128
55129 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55130
55131         * lib/netdb.in.h: Don't define GNU specific constants until they
55132         are supported or needed.  Reported by Bruno Haible
55133         <bruno@clisp.org>.
55134
55135 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55136
55137         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55138
55139 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55140
55141         * lib/getaddrinfo.h: Remove file.
55142         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55143         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55144         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55145         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55146         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55147         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55148         * tests/test-getaddrinfo.c: Likewise.
55149         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55150         * NEWS: Mention change.
55151
55152 2008-10-19  Bruno Haible  <bruno@clisp.org>
55153
55154         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55155
55156 2008-10-19  Bruno Haible  <bruno@clisp.org>
55157
55158         * lib/wait-process.c: Include simply <sys/wait.h>.
55159         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55160         WIFSTOPPED): Remove fallback definitions.
55161         * modules/wait-process (Depends-on): Add sys_wait.
55162
55163         New module 'sys_wait'.
55164         * modules/sys_wait: New file.
55165         * lib/sys_wait.in.h: New file, partially copied from
55166         lib/wait-process.c.
55167         * m4/sys_wait_h.m4: New file.
55168         * doc/posix-headers/sys_wait.texi: Mention the new module.
55169
55170 2008-10-19  Bruno Haible  <bruno@clisp.org>
55171
55172         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55173
55174 2008-10-19  Bruno Haible  <bruno@clisp.org>
55175
55176         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55177         * lib/wait-process.c (WAIT_T): Remove type.
55178         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55179         (wait_subprocess): Update.
55180
55181 2008-10-19  Bruno Haible  <bruno@clisp.org>
55182
55183         New module 'atoll'.
55184         * modules/atoll: New file.
55185         * lib/stdlib.in.h (atoll): New declaration.
55186         * lib/atoll.c: New file, from glibc with modifications.
55187         * m4/atoll.m4: New file.
55188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55189         HAVE_ATOLL.
55190         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55191         * doc/posix-functions/atoll.texi: Mention the new module.
55192
55193 2008-10-19  Bruno Haible  <bruno@clisp.org>
55194
55195         Add strtoull() declaration to <stdlib.h>.
55196         * lib/stdlib.in.h (strtoull): New declaration.
55197         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55198         Set HAVE_STRTOULL.
55199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55200         HAVE_STRTOULL.
55201         * modules/strtoull (Depends-on): Add stdlib.
55202         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55203         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55204         HAVE_STRTOULL.
55205
55206 2008-10-19  Bruno Haible  <bruno@clisp.org>
55207
55208         Add strtoll() declaration to <stdlib.h>.
55209         * lib/stdlib.in.h (strtoll): New declaration.
55210         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55211         Set HAVE_STRTOLL.
55212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55213         HAVE_STRTOLL.
55214         * modules/strtoll (Depends-on): Add stdlib.
55215         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55216         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55217
55218 2008-10-19  Bruno Haible  <bruno@clisp.org>
55219
55220         * modules/bcopy (Depends-on): Add strings.
55221         (Include): Specify <strings.h>.
55222
55223 2008-10-19  Bruno Haible  <bruno@clisp.org>
55224
55225         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55226
55227 2008-10-19  Bruno Haible  <bruno@clisp.org>
55228
55229         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55230         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55231         mingw.
55232
55233 2008-10-19  Bruno Haible  <bruno@clisp.org>
55234
55235         * lib/atanl.c: Don't include isnanl.h.
55236         * lib/cosl.c: Likewise.
55237         * lib/ldexpl.c: Likewise.
55238         * lib/logl.c: Likewise.
55239         * lib/sinl.c: Likewise.
55240         * lib/sqrtl.c: Likewise.
55241         * lib/tanl.c: Likewise.
55242
55243         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55244         * lib/isnanf.h: Remove file.
55245         * lib/isnand.h: Remove file.
55246         * lib/isnanl.h: Remove file.
55247         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55248         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55249         macros.
55250         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55251         HAVE_ISNANF, don't define it as a C macro.
55252         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55253         HAVE_ISNAND, don't define it as a C macro.
55254         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55255         HAVE_ISNANL, don't define it as a C macro.
55256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55257         HAVE_ISNAN[FDL].
55258         * modules/isnanf (Files): Remove lib/isnanf.h.
55259         (Depends-on): Add math.
55260         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55261         (Include): Specify <math.h> instead of isnanf.h.
55262         * modules/isnand (Files): Remove lib/isnand.h.
55263         (Depends-on): Add math.
55264         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55265         (Include): Specify <math.h> instead of isnand.h.
55266         * modules/isnanl (Files): Remove lib/isnanl.h.
55267         (Depends-on): Add math.
55268         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55269         (Include): Specify <math.h> instead of isnanl.h.
55270         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55271         HAVE_ISNAN[FDL].
55272         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55273         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55274         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55275         * NEWS: Mention the change.
55276
55277 2008-10-18  Bruno Haible  <bruno@clisp.org>
55278
55279         Add getusershell(), setusershell(), endusershell() declarations to
55280         <unistd.h>.
55281         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55282         declarations.
55283         * lib/getusershell.c: Include unistd.h.
55284         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55285         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55286         HAVE_GETUSERSHELL.
55287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55288         and HAVE_GETUSERSHELL.
55289         * modules/getusershell (Depends-on): Add unistd, extensions.
55290         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55291         (Include): Specify <unistd.h>.
55292         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55293         HAVE_GETUSERSHELL.
55294
55295 2008-10-18  Bruno Haible  <bruno@clisp.org>
55296
55297         Add a getloadavg() declaration to <stdlib.h>.
55298         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55299         getloadavg declaration.
55300         (getloadavg): New declaration.
55301         * lib/getloadavg.c: Include <stdlib.h> first.
55302         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55303         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55304         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55306         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55307         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55308         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55309         (Include): Specify <stdlib.h>.
55310         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55311         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55312
55313 2008-10-18  Bruno Haible  <bruno@clisp.org>
55314
55315         * lib/dirchownmod.c: Don't include lchmod.h.
55316
55317         Move the lchmod() declaration to <sys/stat.h>.
55318         * lib/lchmod.h: Remove file.
55319         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55320         (lchmod): New declaration, moved here from lib/lchown.h.
55321         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55322         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55323         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55324         and HAVE_LCHMOD.
55325         * modules/lchmod (Files): Remove lib/lchmod.h.
55326         (Depends-on): Add sys_stat, extensions.
55327         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55328         (Include): Specify <sys/stat.h> instead of lchmod.h.
55329         * modules/sys_stat (Depends-on): Add link-warning.
55330         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55331         definition of GL_LINK_WARNING.
55332         * NEWS: Mention the change.
55333
55334 2008-10-18  Bruno Haible  <bruno@clisp.org>
55335
55336         * lib/fchdir.c: Don't include dirfd.h.
55337         * lib/fts.c: Likewise.
55338         * lib/getcwd.c: Likewise.
55339         * lib/glob.c: Likewise.
55340
55341         Move the dirfd() declaration to <dirent.h>.
55342         * lib/dirfd.h: Remove file.
55343         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55344         (dirfd): New declaration.
55345         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55346         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55347         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55348         HAVE_DECL_DIRFD.
55349         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55350         HAVE_DECL_DIRFD.
55351         * modules/dirfd (Files): Remove lib/dirfd.h.
55352         (Depends-on): Add dirent, extensions.
55353         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55354         (Include): Specify <dirent.h> instead of dirfd.h.
55355         * modules/dirent (Depends-on): Add link-warning.
55356         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55357         definition of GL_LINK_WARNING.
55358         * NEWS: Mention the change.
55359
55360 2008-10-18  Bruno Haible  <bruno@clisp.org>
55361
55362         Move the euidaccess() declaration to <unistd.h>.
55363         * lib/euidaccess.h: Remove file.
55364         * lib/unistd.in.h (euidaccess): New declaration.
55365         * lib/euidaccess.c: Don't include euidaccess.h.
55366         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55367         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55369         and HAVE_EUIDACCESS.
55370         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55371         (Depends-on): Add unistd.
55372         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55373         (Include): Specify <unistd.h> instead of euidaccess.h.
55374         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55375         HAVE_EUIDACCESS.
55376         * NEWS: Mention the change.
55377
55378 2008-10-18  Bruno Haible  <bruno@clisp.org>
55379
55380         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55381
55382         Move the getdomainname() declaration to <unistd.h>.
55383         * lib/getdomainname.h: Remove file.
55384         * lib/unistd.in.h (getdomainname): New declaration.
55385         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55386         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55387         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55388         HAVE_GETDOMAINNAME.
55389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55390         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55391         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55392         (Depends-on): Add unistd, extensions.
55393         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55394         (Includes): Specify <unistd.h> instead of getdomainname.h.
55395         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55396         HAVE_GETDOMAINNAME.
55397         * NEWS: Mention the change.
55398
55399 2008-10-18  Bruno Haible  <bruno@clisp.org>
55400
55401         * modules/dirent: New file.
55402         * m4/dirent_h.m4: New file.
55403         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55404         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55405         * modules/fchdir (Files): Remove lib/dirent.in.h.
55406         (Depends-on): Add dirent.
55407         (Makefile.am): Move rules to modules/dirent.
55408         * doc/posix-headers/dirent.texi: Mention the new module.
55409
55410 2008-10-18  Bruno Haible  <bruno@clisp.org>
55411
55412         Avoid -Wunused-parameter warnings in public gnulib header files.
55413         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55414         macro.
55415         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55416
55417 2008-10-18  Bruno Haible  <bruno@clisp.org>
55418
55419         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55420         * doc/glibc-functions/error.texi: Mention the module 'error'.
55421         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55422         * doc/glibc-functions/getdomainname.texi: Mention the module
55423         'getdomainname'.
55424         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55425         * doc/glibc-functions/getpagesize.texi: Mention the module
55426         'getpagesize'.
55427         * doc/glibc-functions/getusershell.texi: Mention the module
55428         'getusershell'.
55429         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55430         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55431         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55432         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55433         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55434         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55435         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55436         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55437         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55438         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55439         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55440         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55441         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55442         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55443
55444 2008-10-17  Bruno Haible  <bruno@clisp.org>
55445
55446         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55447         HP-UX and IRIX, use -0.0L.
55448         * tests/test-ceill.c (minus_zero): Likewise.
55449         * tests/test-floorl.c (minus_zero): Likewise.
55450         * tests/test-frexpl.c (minus_zero): Likewise.
55451         * tests/test-isnan.c (minus_zerol): Likewise.
55452         * tests/test-isnanl.h (minus_zero): Likewise.
55453         * tests/test-ldexpl.c (minus_zero): Likewise.
55454         * tests/test-roundl.c (minus_zero): Likewise.
55455         * tests/test-signbit.c (minus_zerol): Likewise.
55456         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55457         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55458         * tests/test-truncl.c (minus_zero): Likewise.
55459         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55460         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55461         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55462         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55463
55464 2008-10-17  Bruno Haible  <bruno@clisp.org>
55465
55466         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55467         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55468         that it gets activated only for gcc >= 3.0.
55469         * lib/dirent.in.h: Likewise.
55470         * lib/errno.in.h: Likewise.
55471         * lib/fcntl.in.h: Likewise.
55472         * lib/float.in.h: Likewise.
55473         * lib/iconv.in.h: Likewise.
55474         * lib/inttypes.in.h: Likewise.
55475         * lib/locale.in.h: Likewise.
55476         * lib/math.in.h: Likewise.
55477         * lib/netdb.in.h: Likewise.
55478         * lib/netinet_in.in.h: Likewise.
55479         * lib/search.in.h: Likewise.
55480         * lib/signal.in.h: Likewise.
55481         * lib/spawn.in.h: Likewise.
55482         * lib/stdarg.in.h: Likewise.
55483         * lib/stdint.in.h: Likewise.
55484         * lib/stdio.in.h: Likewise.
55485         * lib/stdlib.in.h: Likewise.
55486         * lib/string.in.h: Likewise.
55487         * lib/strings.in.h: Likewise.
55488         * lib/sys_file.in.h: Likewise.
55489         * lib/sys_ioctl.in.h: Likewise.
55490         * lib/sys_select.in.h: Likewise.
55491         * lib/sys_socket.in.h: Likewise.
55492         * lib/sys_stat.in.h: Likewise.
55493         * lib/sys_time.in.h: Likewise.
55494         * lib/sysexits.in.h: Likewise.
55495         * lib/time.in.h: Likewise.
55496         * lib/unistd.in.h: Likewise.
55497         * lib/wchar.in.h: Likewise.
55498         * lib/wctype.in.h: Likewise.
55499         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55500
55501 2008-10-17  Jim Meyering  <meyering@redhat.com>
55502
55503         ignore-value: don't depend on inline module
55504         * modules/ignore-value (Depends-on): Remove 'inline'.
55505         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55506         Suggestion from Bruno Haible.
55507
55508 2008-10-17  Bruno Haible  <bruno@clisp.org>
55509
55510         New implementation of condition variables for Win32.
55511         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55512         (gl_linked_waitqueue_t): New type.
55513         (gl_cond_t): Use it.
55514         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55515         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55516         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55517         (glthread_cond_init_func, glthread_cond_wait_func,
55518         glthread_cond_timedwait_func, glthread_cond_signal_func,
55519         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55520         Reimplemented on the basis of gl_linked_waitqueue_t.
55521         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55522         gl_waitqueue_t.
55523         (gl_rwlock_t): Update.
55524         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55525
55526 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55527
55528         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55529         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55530
55531 2008-10-17  Jim Meyering  <meyering@redhat.com>
55532
55533         ignore-value: new module
55534         * modules/ignore-value: New file.
55535         * lib/ignore-value.h: New file.
55536         * MODULES.html.sh (Compiler warning management): New section,
55537         just for this module.  More to come.
55538
55539 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55540
55541         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55542         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55543         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55544
55545 2008-10-16  Jim Meyering  <meyering@redhat.com>
55546
55547         openat-die.c: avoid 'no previous prototype' warning
55548         * lib/openat-die.c: Include "openat.h".
55549         Reported by Reuben Thomas <rrt@sc3d.org>.
55550
55551 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55552
55553         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55554         * lib/netdb.in.h: Fix typo.
55555         Reported by Bruno Haible  <bruno@clisp.org>
55556
55557         * lib/netdb.in.h: Include sys/socket.h for platforms without
55558         netdb.h, to get structures like hostent on MinGW.
55559         * modules/netdb (Depends-on): Add sys_socket.
55560
55561 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55562
55563         * modules/netdb, modules/netdb-tests: New file.
55564         * m4/netdb_h.m4: New file.
55565         * lib/netdb.in.h: Add, currently just an empty file pending
55566         definitions.
55567         * tests/test-netdb.c: New file.
55568         * doc/posix-headers/netdb.texi: Mention that we replace it if
55569         needed.
55570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55571         netdb.
55572
55573 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55574
55575         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55576         with code.
55577
55578 2008-10-13  Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/glthread/cond.c (glthread_cond_wait_func,
55581         glthread_cond_timedwait_func): Add a comment.
55582
55583 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55584
55585         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55586         * tests/test-select.c: Likewise,
55587
55588 2008-10-13  Bruno Haible  <bruno@clisp.org>
55589
55590         * lib/glthread/cond.c (glthread_cond_wait_func,
55591         glthread_cond_timedwait_func): Fix variable name.
55592         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55593
55594 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55595
55596         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55597         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55598         struct sockaddr.sa_len.
55599         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55600
55601 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55602
55603         * build-aux/pmccabe2html: Add css and css_url parameters.
55604
55605 2008-10-12  Bruno Haible  <bruno@clisp.org>
55606
55607         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55608         calling aclx_get.
55609         Reported by Rainer Tammer <tammer@tammer.net>.
55610
55611 2008-10-12  Bruno Haible  <bruno@clisp.org>
55612
55613         Use msvcrt aware primitives for creation/termination of Win32 threads.
55614         * lib/glthread/thread.c: Include <process.h>.
55615         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55616         (wrapper_func): Update signature.
55617         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55618
55619 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55620             Bruno Haible  <bruno@clisp.org>
55621
55622         Provide a Win32 implementation of the 'cond' module.
55623         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55624         * lib/glthread/cond.c (glthread_cond_init_func,
55625         glthread_cond_wait_func, glthread_cond_timedwait_func,
55626         glthread_cond_signal_func, glthread_cond_broadcast_func,
55627         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55628         * modules/cond (Dependencies): Add gettimeofday.
55629
55630 2008-10-11  Bruno Haible  <bruno@clisp.org>
55631
55632         Make sleep work on older versions of mingw.
55633         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55634         only whether it exists.
55635         * doc/posix-functions/sleep.texi: Mention the problem with older
55636         versions of mingw.
55637
55638 2008-10-11  Bruno Haible  <bruno@clisp.org>
55639
55640         New module 'shutdown'.
55641         * modules/shutdown: New file.
55642         * lib/sys_socket.in.h (shutdown): New declaration.
55643         * lib/winsock.c (shutdown): New function.
55644         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55645         GNULIB_SHUTDOWN.
55646         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55647         * doc/posix-functions/shutdown.texi: Document the new module.
55648
55649 2008-10-11  Jim Meyering  <meyering@redhat.com>
55650
55651         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55652
55653 2008-10-11  Bruno Haible  <bruno@clisp.org>
55654
55655         New module 'fclose'.
55656         * modules/fclose: New file.
55657         * lib/stdio.in.h (fclose): New declaration.
55658         * lib/fclose.c: New file.
55659         * m4/fclose.m4: New file.
55660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55661         REPLACE_FCLOSE.
55662         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55663         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55664         REPLACE_FCLOSE.
55665         * modules/close (Depends-on): fclose.
55666         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55667
55668 2008-10-11  Bruno Haible  <bruno@clisp.org>
55669
55670         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55671         set errno and don't call _close.
55672
55673 2008-10-10  Bruno Haible  <bruno@clisp.org>
55674
55675         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55676         ACL, not afterwards. Fixes test failure on Cygwin.
55677
55678 2008-10-09  Ben Pfaff  <blp@gnu.org>
55679
55680         * build-aux/announce-gen: Fix gnulib version related part of usage
55681         message.  Die with a useful error message if no tarballs are
55682         found.
55683
55684 2008-10-10  Jim Meyering  <meyering@redhat.com>
55685
55686         bootstrap: use git's --depth=N option only if it's supported
55687         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55688         recognize the --depth option.  Reported by Pádraig Brady.
55689
55690 2008-10-09  Bruno Haible  <bruno@clisp.org>
55691
55692         New module 'ioctl'.
55693         * modules/ioctl: New file.
55694         * lib/sys_socket.in.h (ioctl): Remove declaration.
55695         * lib/winsock.c: Include <sys/ioctl.h>.
55696         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55697         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55698         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55699         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55700         * doc/posix-functions/ioctl.texi: Mention the new module.
55701
55702 2008-10-09  Bruno Haible  <bruno@clisp.org>
55703
55704         New module 'sys_ioctl'.
55705         * lib/sys_ioctl.in.h: New file.
55706         * m4/sys_ioctl_h.m4: New file.
55707         * modules/sys_ioctl: New file.
55708         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55709
55710 2008-10-09  Bruno Haible  <bruno@clisp.org>
55711
55712         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55713         * lib/winsock.c: Include <stdarg.h>.
55714         (rpl_ioctl): Change to second argument 'int' and then varargs.
55715
55716 2008-10-09  Bruno Haible  <bruno@clisp.org>
55717
55718         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55719         when the sys_socket module is present and the system has <winsock2.h>.
55720
55721 2008-10-09  Bruno Haible  <bruno@clisp.org>
55722
55723         * doc/posix-functions/close.texi: Mention module 'close' instead of
55724         module 'sys_socket'.
55725
55726 2008-10-09  Bruno Haible  <bruno@clisp.org>
55727
55728         * doc/glibc-headers/sys_ioctl.texi: New file.
55729         * doc/gnulib.texi: Include it.
55730
55731 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55732             Bruno Haible  <bruno@clisp.org>
55733
55734         Combine the two replacements of 'close'.
55735         * lib/sys_socket.in.h (close): Define to a reminder to include
55736         <unistd.h>.
55737         (_gl_close_fd_maybe_socket): New declaration.
55738         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55739         * lib/winsock.c (close): Remove undefinition.
55740         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55741         needed for the gnulib module 'close'.
55742         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55743         define to an error symbol or to a warning, if suitable.
55744         * lib/close.c: Include <sys/socket.h>.
55745         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55746         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55747         UNISTD_H_HAVE_WINSOCK2_H.
55748         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55750         UNISTD_H_HAVE_WINSOCK2_H.
55751         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55752         (configure.ac): Set a module indicator.
55753         (Makefile.am): Substitute GNULIB_CLOSE.
55754         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55755         * modules/poll-tests (Depends-on): Add close.
55756         * modules/select-tests (Depends-on): Likewise.
55757
55758 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55759             Bruno Haible  <bruno@clisp.org>
55760
55761         New module 'close'.
55762         * modules/close: New file.
55763         * lib/unistd.in.h (close): Move declaration out of the
55764         FCHDIR_REPLACEMENT scope.
55765         (_gl_unregister_fd): New declaration.
55766         * lib/close.c: New file.
55767         * lib/fchdir.c (rpl_close): Remove function.
55768         * m4/close.m4: New file.
55769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55770         close.
55771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55772         REPLACE_CLOSE.
55773         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55774         REPLACE_CLOSE.
55775         * modules/fchdir (Depends-on): Add close.
55776
55777 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55778             Bruno Haible  <bruno@clisp.org>
55779
55780         * lib/fcntl.in.h (open): Simplify conditionals.
55781         (_gl_register_fd): New declaration.
55782         * lib/fchdir.c (rpl_open): Remove function.
55783         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55784         also.
55785         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55787         open.
55788
55789 2008-10-09  Jim Meyering  <meyering@redhat.com>
55790
55791         GNUmakefile: use the more name-space-friendly "_version"
55792         * top/GNUmakefile (_dummy): Update.
55793         (_version): Rename from "version".
55794
55795 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55796             Bruno Haible  <bruno@clisp.org>
55797
55798         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55799         rpl_close.
55800         (_gl_register_fd): New function, extracted from rpl_open.
55801         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55802         (rpl_open, rpl_opendir): Use _gl_register_fd.
55803
55804 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55805
55806         Fix organization of 'open' replacement.
55807         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55808         (gl_FUNC_OPEN): Use it.
55809         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55810
55811 2008-10-08  Bruno Haible  <bruno@clisp.org>
55812
55813         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55814
55815 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55816
55817         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55818         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55819         listen).
55820
55821 2008-10-08  Eric Blake  <ebb9@byu.net>
55822
55823         GNUmakefile: add 'make version' target
55824         * top/GNUmakefile (_curr-ver): Split version update rules...
55825         (version): ...into a target.
55826
55827 2008-10-07  Bruno Haible  <bruno@clisp.org>
55828
55829         Use a more portable replacement expression for -0.0L.
55830         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55831         instead of -0.0L. Fix m4 quotation.
55832
55833         * tests/test-signbit.c: Include <float.h>.
55834         (minus_zero): New variable.
55835         (test_signbitl): Use minus_zero instead of -zero.
55836         * modules/signbit-tests (Depends-on): Add float.
55837
55838         * tests/test-ceill.c: Include <float.h>.
55839         (zero): Remove variable.
55840         (minus_zero): New variable.
55841         (main): Use minus_zero instead of -zero.
55842         * modules/ceill-tests (Depends-on): Add float.
55843
55844         * tests/test-floorl.c: Include <float.h>.
55845         (zero): Remove variable.
55846         (minus_zero): New variable.
55847         (main): Use minus_zero instead of -zero.
55848         * modules/floorl-tests (Depends-on): Add float.
55849
55850         * tests/test-roundl.c: Include <float.h>.
55851         (zero): Remove variable.
55852         (minus_zero): New variable.
55853         (main): Use minus_zero instead of -zero.
55854         * modules/roundl-tests (Depends-on): Add float.
55855
55856         * tests/test-truncl.c: Include <float.h>.
55857         (zero): Remove variable.
55858         (minus_zero): New variable.
55859         (main): Use minus_zero instead of -zero.
55860         * modules/truncl-tests (Depends-on): Add float.
55861
55862         * tests/test-frexpl.c (zero): Remove variable.
55863         (minus_zero): New variable.
55864         (main): Use minus_zero instead of -zero.
55865         * modules/frexpl-tests (Depends-on): Add float.
55866
55867         * tests/test-isnan.c (zerol): Remove variable.
55868         (minus_zerol): New variable.
55869         (test_long_double): Use minus_zerol instead of -zerol.
55870         * modules/isnan-tests (Depends-on): Add float.
55871
55872         * tests/test-isnanl.h (zero): Remove variable.
55873         (minus_zero): New variable.
55874         (main): Use minus_zero instead of -zero.
55875         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55876         * modules/isnanl-tests (Depends-on): Add float.
55877
55878         * tests/test-ldexpl.c (zero): Remove variable.
55879         (minus_zero): New variable.
55880         (main): Use minus_zero instead of -zero.
55881         * modules/ldexpl-tests (Depends-on): Add float.
55882
55883         * tests/test-snprintf-posix.h (zerol): Remove variable.
55884         (minus_zerol): New variable.
55885         (test_function): Use minus_zerol instead of -zerol.
55886         * modules/snprintf-posix-tests (Depends-on): Add float.
55887         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55888
55889         * tests/test-sprintf-posix.h (zerol): Remove variable.
55890         (minus_zerol): New variable.
55891         (test_function): Use minus_zerol instead of -zerol.
55892         * modules/sprintf-posix-tests (Depends-on): Add float.
55893         * modules/vsprintf-posix-tests (Depends-on): Add float.
55894
55895         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55896         (minus_zerol): New variable.
55897         (test_function): Use minus_zerol instead of -zerol.
55898         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55899
55900         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55901         (minus_zerol): New variable.
55902         (test_function): Use minus_zerol instead of -zerol.
55903         * modules/vasprintf-posix-tests (Depends-on): Add float.
55904
55905 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55906
55907         * MODULES.html.sh (Support for building documentation): Mention
55908         pmccabe2html.  Sort entries.
55909
55910         Add pmccabe2html module, from gnupdf.
55911         * build-aux/pmccabe.css: New file.
55912         * build-aux/pmccabe2html: New file.
55913         * m4/pmccabe2html.m4: New file.
55914         * modules/pmccabe2html: New file.
55915
55916 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55917
55918         flock: new module
55919         * MODULES.html.sh: Add to list of modules.
55920         * lib/flock.c: flock implementation for Windows and Unix systems
55921         which have fcntl.
55922         * doc/glibc-functions/flock.texi: Update documentation.
55923         * lib/sys_file.in.h: <sys/file.h> header file.
55924         * m4/flock.m4: M4 macros.
55925         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55926         * modules/flock: flock module.
55927         * modules/flock-tests: flock tests module.
55928         * modules/sys_file: sys/file.h module.
55929         * tests/test-flock.c: test suite for flock.
55930
55931 2008-10-06  Jim Meyering  <meyering@redhat.com>
55932
55933         bootstrap: check for LT_INIT more portably still ;-)
55934         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55935         Spotted by Bruno Haible.
55936
55937 2008-10-06  Eric Blake  <ebb9@byu.net>
55938
55939         test-signbit: avoid tripping Irix cc bug on -0.0L
55940         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55941         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55942         entire testsuite consistent and avoids an Irix 6.2 bug.
55943
55944 2008-10-05  Bruno Haible  <bruno@clisp.org>
55945             Jim Meyering  <jim@meyering.net>
55946
55947         Add an option for ignoring EPIPE during close_stdout.
55948         * lib/closeout.h: Include <stdbool.h>.
55949         (close_stdout_set_ignore_EPIPE): New declaration.
55950         * lib/closeout.c: Include <stdbool.h>.
55951         (ignore_EPIPE): New variable.
55952         (close_stdout_set_ignore_EPIPE): New function.
55953         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55954         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55955         failure.
55956         * modules/closeout (Depends-on): Add stdbool.
55957
55958 2008-10-05  Bruno Haible  <bruno@clisp.org>
55959
55960         * modules/accept: New file.
55961         * modules/bind: New file.
55962         * modules/connect: New file.
55963         * modules/getpeername: New file.
55964         * modules/getsockname: New file.
55965         * modules/getsockopt: New file.
55966         * modules/listen: New file.
55967         * modules/recv: New file.
55968         * modules/recvfrom: New file.
55969         * modules/send: New file.
55970         * modules/sendto: New file.
55971         * modules/setsockopt: New file.
55972         * modules/socket: New file.
55973         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55974         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55975         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55976         the particular module is requested. Add a link warning when the
55977         particular module is not requested.
55978         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55979         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55980         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55981         the particular module is requested.
55982         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55983         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55984         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55985         * modules/sys_socket (Depends-on): Add link-warning.
55986         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55987         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55988         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55989         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55990         GL_LINK_WARNING.
55991         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55992         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55993         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55994         * doc/posix-functions/getpeername.texi: Mention the new module
55995         'getpeername'.
55996         * doc/posix-functions/getsockname.texi: Mention the new module
55997         'getsockname'.
55998         * doc/posix-functions/getsockopt.texi: Mention the new module
55999         'getsockopt'.
56000         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56001         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56002         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56003         * doc/posix-functions/send.texi: Mention the new module 'send'.
56004         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56005         * doc/posix-functions/setsockopt.texi: Mention the new module
56006         'setsockopt'.
56007         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56008         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56009         listen, connect, accept.
56010         * modules/select-tests (Depends-on): Likewise.
56011
56012 2008-10-05  Bruno Haible  <bruno@clisp.org>
56013
56014         * lib/winsock.c (strerror): Remove unused #undef.
56015         (rpl_close): Remove unused local variable.
56016
56017         * modules/sys_socket (Depends-on); Add errno.
56018
56019 2008-10-05  Bruno Haible  <bruno@clisp.org>
56020
56021         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56022         (select): Add a link warning when the 'select' module is not used.
56023         * modules/sys_select (Depends-on): Add link-warning.
56024         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56025         Suggested by Paolo Bonzini.
56026
56027 2008-10-05  Jim Meyering  <meyering@redhat.com>
56028
56029         bootstrap: check for LT_INIT more portably
56030         * build-aux/bootstrap: Avoid using grep -E, since it's not
56031         portable enough.  Suggestion from Bruno Haible.
56032
56033 2008-10-05  Bruno Haible  <bruno@clisp.org>
56034
56035         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56036         as being fixed by gnulib.
56037
56038 2008-10-05  Bruno Haible  <bruno@clisp.org>
56039
56040         * modules/select-tests: New file, mostly copied from
56041         modules/sys_select-tests.
56042         * tests/test-select.c: New file, mostly copied from
56043         tests/test-sys_select.c.
56044         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56045         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56046         (Makefile.am): Remove test_sys_select_LDADD.
56047
56048         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56049         to an undefined symbol, for an error message.
56050         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56051         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56052         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56053         winsock-select.c here.
56054         * modules/sys_select (Files): Remove lib/winsock-select.c.
56055         (Depends-on): Remove alloca.
56056         (Makefile.am): Substitute GNULIB_SELECT.
56057         * modules/select: New file.
56058         * doc/posix-functions/select.texi: Update.
56059
56060 2008-10-05  Bruno Haible  <bruno@clisp.org>
56061
56062         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56063         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56064         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56065         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56066         getdtablesize.
56067         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56068         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56069
56070 2008-10-05  Bruno Haible  <bruno@clisp.org>
56071
56072         * modules/getdtablesize-tests: New file.
56073         * tests/test-getdtablesize.c: New file.
56074
56075         New module 'getdtablesize'.
56076         * lib/unistd.in.h (getdtablesize): New declaration.
56077         * lib/getdtablesize.c: New file.
56078         * m4/getdtablesize.m4: New file.
56079         * modules/getdtablesize: New file.
56080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56081         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56082         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56083         HAVE_GETDTABLESIZE.
56084         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56085
56086 2008-10-05  Bruno Haible  <bruno@clisp.org>
56087
56088         * modules/sched (Makefile.am): Fix typo.
56089         Reported by Simon Josefsson.
56090
56091 2008-10-05  Jim Meyering  <meyering@redhat.com>
56092
56093         bootstrap: check for LT_INIT, too
56094         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56095         are deprecated.  Suggestion from Ralf Wildenhues.
56096
56097 2008-10-05  Bruno Haible  <bruno@clisp.org>
56098
56099         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56100         overriding them by ours.
56101         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56102
56103 2008-10-05  Jim Meyering  <meyering@redhat.com>
56104
56105         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56106         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56107         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56108
56109 2008-10-04  Bruno Haible  <bruno@clisp.org>
56110
56111         * modules/dup2 (License): Change to LGPLv2+.
56112         * modules/sleep (License): Likewise.
56113         * modules/perror (License): Likewise.
56114         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56115         Blake.
56116         * modules/signal (License): Likewise.
56117         * modules/sigprocmask (License): Likewise.
56118         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56119         Meyering.
56120
56121 2008-10-04  Bruno Haible  <bruno@clisp.org>
56122
56123         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56124         Reported by Rainer Tammer <tammer@tammer.net>.
56125
56126 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56127             Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56130         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56131         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56132
56133 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56134
56135         filevercmp: new module
56136         * lib/filevercmp.h: New function filevercmp comparing version strings.
56137         * lib/filevercmp.c: Implementation of filevercmp function.
56138         * modules/filevercmp: Module metadata.
56139         * tests/test-filevercmp.c: Unit test for new module.
56140         * modules/filevercmp-tests: Unit test metadata.
56141         * MODULES.html.sh: Add filevercmp module.
56142
56143 2008-10-03  Bruno Haible  <bruno@clisp.org>
56144
56145         * lib/c-ctype.h: Add comment.
56146         Reported by Jim Meyering.
56147
56148 2008-10-02  Bruno Haible  <bruno@clisp.org>
56149
56150         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56151
56152 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56153
56154         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56155         name of bootstrap.conf accordingly.
56156
56157 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56158
56159         * build-aux/bootstrap: Install git-merge-changelog configuration
56160         items into .gitconfig if needed.
56161
56162 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56163
56164         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56165         git repository, and initialize/update it accordingly.
56166
56167 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56168
56169         * modules/fsync-tests: New file.
56170         * tests/test-fsync.c: New file.
56171
56172         New module 'fsync'.
56173         * lib/fsync.c: New file.
56174         * m4/fsync.m4: New file.
56175         * modules/fsync: New file.
56176         * lib/unistd.in.h (fsync): New declaration.
56177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56178         GNULIB_FSYNC and HAVE_FSYNC.
56179         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56180         * MODULES.html.sh (posix_functions): Add fsync.
56181         * doc/posix-functions/fsync.texi: Mention the new module.
56182
56183 2008-10-02  Jim Meyering  <meyering@redhat.com>
56184
56185         fts.c: sync with similar code from coreutils' remove.c
56186         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56187         Guard also with "#if defined __linux__", since for now at least,
56188         this code is Linux-kernel-specific.
56189
56190 2008-10-02  Jim Meyering  <meyering@redhat.com>
56191
56192         fts: bug fixes
56193         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56194         Include <sys/vfs.h>, not <sys/statfs.h>.
56195
56196         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56197         Include <sys/vfs.h>, not <sys/statfs.h>.
56198
56199 2008-10-01  Bruno Haible  <bruno@clisp.org>
56200
56201         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56202         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56203         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56204         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56205         * doc/posix-functions/posix_spawnp.texi: Likewise.
56206         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56207         whether posix_spawn actually works.
56208         * m4/pipe.m4 (gl_PIPE): Likewise.
56209         * modules/execute (Files): Add m4/posix_spawn.m4.
56210         * modules/pipe (Files): Add m4/posix_spawn.m4.
56211         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56212
56213 2008-10-01  Jim Meyering  <meyering@redhat.com>
56214
56215         remove trailing spaces
56216         * NEWS: Likewise.
56217         * lib/poll.c (poll): Likewise.
56218         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56219         * lib/winsock.c (rpl_close): Likewise.
56220         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56221         * modules/yield: Likewise.
56222         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56223         * tests/test-sys_select.c (connect_to_socket): Likewise.
56224
56225         fts.c: adjust a new interface to be more generally useful
56226         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56227         (fts_build): Adjust caller.
56228
56229 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56230
56231         * modules/cond-tests: New file.
56232         * tests/test-cond.c: New file.
56233
56234 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56235             Bruno Haible  <bruno@clisp.org>
56236
56237         * modules/cond (Dependencies): Add errno, time.
56238         * lib/glthread/cond.h: Include <time.h>.
56239         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56240         across platforms.
56241
56242 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56243             Bruno Haible  <bruno@clisp.org>
56244
56245         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56246
56247 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56248             Bruno Haible  <bruno@clisp.org>
56249
56250         * modules/tls-tests (Depends-on): Add thread, yield.
56251         (configure.ac): Remove all checks.
56252         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56253         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56254         gl_thread_self): Remove definitions. Include glthread/thread.h and
56255         glthread/yield.h instead.
56256         (test_tls): Pass an additional NULL argument to gl_thread_join.
56257
56258 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56259             Bruno Haible  <bruno@clisp.org>
56260
56261         * modules/lock-tests (Depends-on): Add thread, yield.
56262         (configure.ac): Remove all checks.
56263         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56264         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56265         gl_thread_self): Remove definitions. Include glthread/thread.h and
56266         glthread/yield.h instead.
56267         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56268         additional NULL argument to gl_thread_join.
56269
56270 2008-09-30  Bruno Haible  <bruno@clisp.org>
56271
56272         Fix the Win32 implementation of the 'thread' module.
56273         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56274         pointer type.
56275         (gl_thread_self): Invoke gl_thread_self_func.
56276         (gl_thread_self_func): New declaration.
56277         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56278         (do_init_self_key, init_self_key): New functions.
56279         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56280         Remove some fields.
56281         (running_threads, running_lock): Remove variables.
56282         (get_current_thread_handle): New function.
56283         (gl_thread_self_func, wrapper_func, glthread_create_func,
56284         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56285         simplified.
56286
56287 2008-09-30  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56290         files.
56291
56292 2008-09-30  Jim Meyering  <meyering@redhat.com>
56293
56294         fts.m4: correct the test for statfs.f_type
56295         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56296         when checking for statfs.f_type.
56297
56298 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56299
56300         tests: avoid some compiler warnings
56301         * tests/test-memchr.c (main): Pass NULL indirectly.
56302         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56303
56304 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
56305
56306         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56307         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56308         exactly specified dayshifts.
56309         (dayshift): New rule.
56310         (rel): Add dayshift.
56311         (relative_time_table) [tomorrow, yesterday, today, now]:
56312         Use tDAY_SHIFT in place of tDAY_UNIT.
56313         * tests/test-getdate.c: Add tests for now-disallowed countable
56314         dayshifts, e.g., "4 yesterday ago".
56315
56316 2008-09-29  Bruno Haible  <bruno@clisp.org>
56317
56318         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56319         * tests/test-posix_spawn1.in.sh: Renamed from
56320         tests/test-posix_spawn.in.sh.
56321         * tests/test-posix_spawn2.c: New file.
56322         * tests/test-posix_spawn2.in.sh: New file.
56323         * modules/posix_spawnp-tests (Files): Update.
56324         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56325
56326 2008-09-29  Bruno Haible  <bruno@clisp.org>
56327
56328         Propagate effects of putenv/setenv/unsetenv to child processes.
56329         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56330         * lib/pipe.c (create_pipe): Likewise.
56331
56332 2008-09-29  Bruno Haible  <bruno@clisp.org>
56333
56334         Enable use of shell scripts as executables in mingw.
56335         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56336         run the program as a shell script.
56337         * lib/pipe.c (create_pipe): Likewise.
56338         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56339         resulting array.
56340
56341 2008-09-29  Eric Blake  <ebb9@byu.net>
56342
56343         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56344
56345 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56346
56347         * doc/posix-functions/accept.texi: Update mingw problems.
56348         * doc/posix-functions/bind.texi: Update mingw problems.
56349         * doc/posix-functions/close.texi: Update mingw problems.
56350         * doc/posix-functions/connect.texi: Update mingw problems.
56351         * doc/posix-functions/getpeername.texi: Update mingw problems.
56352         * doc/posix-functions/getsockname.texi: Update mingw problems.
56353         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56354         * doc/posix-functions/ioctl.texi: Update mingw problems.
56355         * doc/posix-functions/listen.texi: Update mingw problems.
56356         * doc/posix-functions/recv.texi: Update mingw problems.
56357         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56358         * doc/posix-functions/select.texi: Update mingw problems.
56359         * doc/posix-functions/send.texi: Update mingw problems.
56360         * doc/posix-functions/sendto.texi: Update mingw problems.
56361         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56362         * doc/posix-functions/socket.texi: Update mingw problems.
56363
56364 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56365             Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/sys_select.in.h: Include sys/time.h.
56368         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56369         * modules/sys_select: Depend on sys_time.
56370         * tests/test-sys_select.c: Test that sys/select.h defines struct
56371         timeval fully.
56372
56373 2008-09-29  Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56376         * lib/sys_select.in.h: Likewise.
56377
56378 2008-09-29  Bruno Haible  <bruno@clisp.org>
56379
56380         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56381
56382 2008-09-29  Bruno Haible  <bruno@clisp.org>
56383
56384         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56385         Set LIBSOCKET instead of augmenting LIBS.
56386         * modules/sockets (Link): New section.
56387         * modules/sockets-tests (test_sockets_LDADD): New variable.
56388         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56389         * modules/poll-tests (test_poll_LDADD): New variable.
56390         * NEWS: Document the change.
56391
56392 2008-09-29  Bruno Haible  <bruno@clisp.org>
56393
56394         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56395         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56396         ARPA_INET_H directly.
56397         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56398
56399 2008-09-28  Bruno Haible  <bruno@clisp.org>
56400
56401         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56402         from gl_HEADER_SYS_SOCKET.
56403         (gl_HEADER_SYS_SOCKET): Invoke it.
56404         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56405
56406 2008-09-28  Bruno Haible  <bruno@clisp.org>
56407
56408         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56409         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56410         Needed on OSF/1 4.0.
56411
56412 2008-09-28  Bruno Haible  <bruno@clisp.org>
56413
56414         Override open more carefully.
56415         * lib/open.c (orig_open): New function.
56416         (rpl_open): Use orig_open instead of open.
56417         * lib/fcntl.in.h: Add special invocation convention.
56418         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56419         (gl_FUNC_OPEN): Invoke it.
56420
56421         Override freopen more carefully.
56422         * lib/freopen.c (orig_freopen): New function.
56423         (rpl_freopen): Use orig_freopen instead of freopen.
56424         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56425         (gl_FUNC_FREOPEN): Invoke it.
56426
56427         Override fopen more carefully.
56428         * lib/fopen.c (orig_fopen): New function.
56429         (rpl_fopen): Use orig_fopen instead of fopen.
56430         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56431         (gl_FUNC_FOPEN): Invoke it.
56432         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56433
56434 2008-09-28  Bruno Haible  <bruno@clisp.org>
56435
56436         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56437         SIGPIPE.
56438
56439 2008-09-28  Bruno Haible  <bruno@clisp.org>
56440
56441         * tests/test-sigaction.c (handler, main): Disable the check whether
56442         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56443         glibc systems with LinuxThreads.
56444
56445 2008-09-28  Bruno Haible  <bruno@clisp.org>
56446
56447         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56448
56449         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56450         with AIX xlc.
56451         * lib/fcntl.in.h (open): Likewise.
56452         Reported by Rainer Tammer <tammer@tammer.net>.
56453
56454 2008-09-28  Bruno Haible  <bruno@clisp.org>
56455
56456         * modules/posix_spawnp-tests: New file.
56457         * tests/test-posix_spawn.c: New file.
56458         * tests/test-posix_spawn.in.sh: New file.
56459
56460         New module 'posix_spawnp'.
56461         * modules/posix_spawnp: New file.
56462         * lib/spawnp.c: New file, from GNU libc with modifications.
56463         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56464
56465         New module 'posix_spawn'.
56466         * modules/posix_spawn: New file.
56467         * lib/spawn.c: New file, from GNU libc with modifications.
56468         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56469
56470         New module 'posix_spawnattr_destroy'.
56471         * modules/posix_spawnattr_destroy: New file.
56472         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56473         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56474         module.
56475
56476         New module 'posix_spawnattr_setsigmask'.
56477         * modules/posix_spawnattr_setsigmask: New file.
56478         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56479         modifications.
56480         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56481         new module.
56482
56483         New module 'posix_spawnattr_getsigmask'.
56484         * modules/posix_spawnattr_getsigmask: New file.
56485         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56486         modifications.
56487         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56488         new module.
56489
56490         New module 'posix_spawnattr_setsigdefault'.
56491         * modules/posix_spawnattr_setsigdefault: New file.
56492         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56493         modifications.
56494         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56495         new module.
56496
56497         New module 'posix_spawnattr_getsigdefault'.
56498         * modules/posix_spawnattr_getsigdefault: New file.
56499         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56500         modifications.
56501         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56502         new module.
56503
56504         New module 'posix_spawnattr_setschedpolicy'.
56505         * modules/posix_spawnattr_setschedpolicy: New file.
56506         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56507         modifications.
56508         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56509         new module.
56510
56511         New module 'posix_spawnattr_getschedpolicy'.
56512         * modules/posix_spawnattr_getschedpolicy: New file.
56513         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56514         modifications.
56515         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56516         new module.
56517
56518         New module 'posix_spawnattr_setschedparam'.
56519         * modules/posix_spawnattr_setschedparam: New file.
56520         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56521         modifications.
56522         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56523         new module.
56524
56525         New module 'posix_spawnattr_getschedparam'.
56526         * modules/posix_spawnattr_getschedparam: New file.
56527         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56528         modifications.
56529         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56530         new module.
56531
56532         New module 'posix_spawnattr_setpgroup'.
56533         * modules/posix_spawnattr_setpgroup: New file.
56534         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56535         modifications.
56536         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56537         module.
56538
56539         New module 'posix_spawnattr_getpgroup'.
56540         * modules/posix_spawnattr_getpgroup: New file.
56541         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56542         modifications.
56543         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56544         module.
56545
56546         New module 'posix_spawnattr_setflags'.
56547         * modules/posix_spawnattr_setflags: New file.
56548         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56549         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56550         module.
56551
56552         New module 'posix_spawnattr_getflags'.
56553         * modules/posix_spawnattr_getflags: New file.
56554         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56555         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56556         module.
56557
56558         New module 'posix_spawnattr_init'.
56559         * modules/posix_spawnattr_init: New file.
56560         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56561         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56562         module.
56563
56564         New module 'posix_spawn_file_actions_destroy'.
56565         * modules/posix_spawn_file_actions_destroy: New file.
56566         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56567         modifications.
56568         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56569         the new module.
56570
56571         New module 'posix_spawn_file_actions_addopen'.
56572         * modules/posix_spawn_file_actions_addopen: New file.
56573         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56574         modifications.
56575         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56576         the new module.
56577
56578         New module 'posix_spawn_file_actions_adddup2'.
56579         * modules/posix_spawn_file_actions_adddup2: New file.
56580         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56581         modifications.
56582         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56583         the new module.
56584
56585         New module 'posix_spawn_file_actions_addclose'.
56586         * modules/posix_spawn_file_actions_addclose: New file.
56587         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56588         modifications.
56589         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56590         the new module.
56591
56592         New module 'posix_spawn_file_actions_init'.
56593         * modules/posix_spawn_file_actions_init: New file.
56594         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56595         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56596         new module.
56597
56598         New module 'posix_spawn-internal'.
56599         * modules/posix_spawn-internal: New file.
56600         * lib/spawn_int.h: New file, from GNU libc with modifications.
56601         * lib/spawni.c: New file, from GNU libc with modifications.
56602         * m4/posix_spawn.m4: New file.
56603
56604         New module 'spawn'.
56605         * modules/spawn: New file.
56606         * lib/spawn.in.h: New file, from GNU libc with modifications.
56607         * m4/spawn_h.m4: New file.
56608         * doc/posix-headers/spawn.texi: Mention the new module.
56609
56610 2008-09-28  Bruno Haible  <bruno@clisp.org>
56611
56612         * modules/sched-tests: New file.
56613         * tests/test-sched.c: New file.
56614
56615         New module 'sched'.
56616         * modules/sched: New file.
56617         * lib/sched.in.h: New file.
56618         * m4/sched_h.m4: New file.
56619         * doc/posix-headers/sched.texi: Mention the new module.
56620
56621 2008-09-27  Eric Blake  <ebb9@byu.net>
56622
56623         Fix previous patch, and tweak references to $0.
56624         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56625         (func_version, func_gnulib_dir): Don't call this program
56626         gnulib-tool.
56627         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56628         with using $0 in function.
56629         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56630         (func_fatal_error): Reuse the name the user invoked us with.
56631
56632 2008-09-27  Bruno Haible  <bruno@clisp.org>
56633
56634         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56635         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56636         (gl_ICONV_H): Not here.
56637         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56638         instead of assigning ICONV_H directly.
56639
56640         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56642         WCHAR_H directly.
56643
56644 2008-09-27  Bruno Haible  <bruno@clisp.org>
56645
56646         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56647         * modules/arpa_inet (Depends-on): Add link-warning.
56648         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56649         * modules/unistd (Makefile.am): Likewise.
56650
56651 2008-09-26  Bruno Haible  <bruno@clisp.org>
56652
56653         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56654         variables.
56655         (func_version): Essentially copied from gnulib-tool.
56656         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56657         func_readlink): Copied from gnulib-tool.
56658
56659 2008-09-26  Bruno Haible  <bruno@clisp.org>
56660
56661         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56662         invoking git-version-gen.
56663
56664 2008-09-26  Bruno Haible  <bruno@clisp.org>
56665
56666         * posix-modules: Update to directory names changed on 2008-01-19.
56667         Remove commas in output before splitting into words. No more need to
56668         avoid 'ftruncate' since 2007-02-19.
56669
56670 2008-09-26  Bruno Haible  <bruno@clisp.org>
56671
56672         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56673
56674 2008-09-26  Bruno Haible  <bruno@clisp.org>
56675
56676         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56677         * modules/fwriteerror (Depends-on): Add errno.
56678
56679 2008-09-26  Bruno Haible  <bruno@clisp.org>
56680
56681         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56682         * tests/test-vc-list-files-cvs.sh: Likewise.
56683
56684 2008-09-26  Bruno Haible  <bruno@clisp.org>
56685
56686         * doc/posix-headers/sys_resource.texi: Reorder items.
56687
56688 2008-09-26  Jim Meyering  <meyering@redhat.com>
56689
56690         fts: tweak inode comparison function
56691         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56692         inode numbers, as documented.
56693
56694         fts: sort dirent entries on inode number before traversing
56695         This avoids a quadratic, seek-related performance penalty when
56696         operating on a directory containing many entries (measurable at 10k;
56697         3.5 hours at 2 million entries with a cold cache) on certain types
56698         of file systems, including ext3 and ext4, but not tmpfs.
56699         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56700         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56701         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56702         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56703         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56704         (fts_build): Set the stat.st_ino member from D_INO.
56705         If it is likely to be useful, sort dirent entries on inode number.
56706
56707         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56708         and the struct statfs.f_type member.
56709         * modules/fts (Depends-on): Add d-ino.
56710
56711 2008-09-26  Bruno Haible  <bruno@clisp.org>
56712
56713         * modules/sigpipe-die (Depends-on): Add sigpipe.
56714
56715         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56716         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56717         and GNULIB_STDIO_H_SIGPIPE are set.
56718         * lib/stdio-write.c: New file.
56719         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56720         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56721         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56722         REPLACE_STDIO_WRITE_FUNCS.
56723         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56724         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56725         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56726         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56727         * modules/stdio (Files): Add lib/stdio-write.c.
56728         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56729         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56730         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56731         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56732         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56733         REPLACE_FPRINTF_POSIX.
56734         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56735         REPLACE_PRINTF_POSIX.
56736         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56737         REPLACE_VFPRINTF_POSIX.
56738         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56739         REPLACE_VPRINTF_POSIX.
56740         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56741         SIGPIPE issue.
56742         * doc/posix-functions/fputc.texi: Likewise.
56743         * doc/posix-functions/fputs.texi: Likewise.
56744         * doc/posix-functions/fwrite.texi: Likewise.
56745         * doc/posix-functions/printf.texi: Likewise.
56746         * doc/posix-functions/putc.texi: Likewise.
56747         * doc/posix-functions/putchar.texi: Likewise.
56748         * doc/posix-functions/puts.texi: Likewise.
56749         * doc/posix-functions/vfprintf.texi: Likewise.
56750         * doc/posix-functions/vprintf.texi: Likewise.
56751
56752         * modules/safe-write (Depends-on): Add write.
56753
56754         * modules/sigpipe-tests: New file.
56755         * tests/test-sigpipe.c: New file.
56756         * tests/test-sigpipe.sh: New file.
56757
56758         * modules/write: New file.
56759         * lib/unistd.in.h: Include <sys/types.h>.
56760         (write): New declaration.
56761         * lib/write.c: New file.
56762         * m4/write.m4: New file.
56763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56764         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56765         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56766         GNULIB_WRITE, REPLACE_WRITE.
56767         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56768         and the SIGPIPE issue.
56769
56770         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56771         (raise): New declaration.
56772         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56773         (ext_signal): New function.
56774         (rpl_raise): New function.
56775         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56776         GNULIB_SIGNAL_H_SIGPIPE.
56777         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56778         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56779
56780         * modules/sigpipe: New file.
56781         * m4/sigpipe.m4: New file.
56782
56783 2008-09-25  Derek Price  <derek@ximbiot.com>
56784             Bruno Haible  <bruno@clisp.org>
56785
56786         * gnulib-tool (func_import): Report all license incompatibilities, not
56787         just the first one.
56788
56789 2008-09-25  Bruno Haible  <bruno@clisp.org>
56790
56791         * gnulib-tool (func_import): When computing the edits, consider not
56792         only the Makefile.ams that exist but also those that will be generated.
56793
56794 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56795
56796         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56797         fixes gnulib-tool --test warning about duplicate dependency.
56798
56799 2008-09-25  Bruno Haible  <bruno@clisp.org>
56800
56801         * gnulib-tool: Don't ask the user to perform edits in the generated
56802         Makefile.ams.
56803         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56804         apply to the Makefile.am being generated.
56805         (func_emit_tests_Makefile_am): Execute edits that apply to the
56806         Makefile.am being generated.
56807         (func_import): Setup list of Makefile.am edits before emitting the
56808         Makefile.ams, not at the end.
56809         (func_create_testdir): Update.
56810         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56811
56812 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56813
56814         * gnulib-tool (func_import): Store the --tests-base option in the
56815         comment in gnulib-cache.m4.
56816
56817 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56818
56819         * NEWS: Document increased portability that sys_select now provides.
56820
56821         * lib/sys_select.in.h: Install select wrapper.
56822         * lib/sys_socket.in.h: Use more descriptive name when there is no
56823         select wrapper.
56824         * lib/winsock-select.c: New.
56825         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56826         Require gl_HEADER_SYS_SOCKET.
56827         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56828         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56829         * tests/test-sys_select.c: Add functional tests.
56830
56831 2008-09-24  Eric Blake  <ebb9@byu.net>
56832
56833         open, fopen: close fd leak in last patch
56834         * lib/open.c (rpl_open): Close fd before returning error.
56835         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56836         * doc/posix-functions/open.texi (open): Document that Irix also
56837         has the bug.
56838         * doc/posix-functions/fopen.texi (fopen): Likewise.
56839         Reported by Paolo Bonzini.
56840
56841 2008-09-24  Bruno Haible  <bruno@clisp.org>
56842
56843         Ensure that a filename ending in a slash cannot be used to access a
56844         non-directory.
56845         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56846         to check whether it's really a directory.
56847         * lib/fopen.c: Include fcntl.h, unistd.h.
56848         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56849         and fdopen().
56850         * modules/fopen (Depends-on): Add unistd.
56851         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56852         * tests/test-fopen.c (main): Likewise.
56853         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56854         * doc/posix-functions/fopen.texi: Likewise.
56855         Reported by Eric Blake.
56856
56857 2008-09-23  Eric Blake  <ebb9@byu.net>
56858
56859         c-stack: avoid compiler optimizations when provoking overflow
56860         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56861         recursion harder to optimize, to ensure a stack overflow occurs.
56862         * tests/test-c-stack.c (recurse): Likewise.
56863         Borrowed from libsigsegv.
56864
56865         c-stack: work around Irix sigaltstack bug
56866         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56867         whether sigaltstack uses wrong end of stack_t (copied in part from
56868         libsigsegv).
56869         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56870         Irix bug, without requiring an over-allocation.
56871         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56872         bug.
56873
56874         fopen: document mingw bug on directories
56875         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56876         not allowing a stream visiting a directory, even though reading
56877         from such a stream is not portable.
56878
56879 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56880
56881         * lib/poll.c: Rewrite.
56882         * modules/poll: Depend on alloca.
56883
56884 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56885
56886         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56887         instead define prototypes for a full set of wrappers.  Ensure
56888         that Cygwin does not use the compatibility code, which is only
56889         for MinGW.
56890         * lib/winsock.c: New.
56891         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56892         * modules/sys_socket: Add lib/winsock.c.
56893
56894         * modules/poll-tests: Add errno and perror.
56895         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56896
56897 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56898
56899         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56900
56901 2008-09-23  Bruno Haible  <bruno@clisp.org>
56902
56903         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56904         * doc/glibc-functions/*: Likewise.
56905
56906 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56907
56908         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56909         success.
56910
56911 2008-09-22  Eric Blake  <ebb9@byu.net>
56912             Bruno Haible  <bruno@clisp.org>
56913
56914         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56915         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56916         supply %A but mishandle pseudo-NaN.
56917         Reported by Simon Josefsson.
56918
56919 2008-09-21  Bruno Haible  <bruno@clisp.org>
56920
56921         * tests/test-lock.c (main): Tweak skip message.
56922         * tests/test-tls.c (main): Likewise.
56923
56924 2008-09-21  Bruno Haible  <bruno@clisp.org>
56925
56926         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56927         whether 'struct sigaction' has sa_sigaction here...
56928         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56929         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56930
56931 2008-09-21  Bruno Haible  <bruno@clisp.org>
56932
56933         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56934         section.
56935         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56936         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56937         the new section.
56938         (Support for obsolete systems lacking POSIX:2001): New section.
56939         (String handling <string.h>): Move strdup to the new section.
56940         Suggested by Simon Josefsson and Paolo Bonzini.
56941
56942 2008-09-21  Bruno Haible  <bruno@clisp.org>
56943
56944         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56945         exponents in %e and %g results on 'long double'. Needed for mingw's
56946         improved *printf functions.
56947         * tests/test-vasprintf-posix.c (test_function): Likewise.
56948         * tests/test-snprintf-posix.h (test_function): Likewise.
56949         * tests/test-sprintf-posix.h (test_function): Likewise.
56950         Reported by Eric Blake.
56951
56952 2008-09-21  Bruno Haible  <bruno@clisp.org>
56953
56954         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56955         * tests/test-sprintf-posix.h (test_function): Likewise.
56956
56957 2008-09-21  Bruno Haible  <bruno@clisp.org>
56958
56959         * modules/getpass (Depends-on): Add strdup-posix.
56960
56961         New module 'strdup-posix'.
56962         * modules/strdup-posix: New file.
56963         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56964         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56966         REPLACE_STRDUP.
56967         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56968         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56970         strdup-posix.
56971
56972         * modules/strdup (Depends-on): Remove malloc-posix.
56973
56974 2008-09-20  Bruno Haible  <bruno@clisp.org>
56975
56976         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56977         Wildenhues.
56978
56979 2008-09-20  Bruno Haible  <bruno@clisp.org>
56980
56981         Ensure that wint_t gets defined on IRIX 5.3.
56982         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56983         * lib/wctype.in.h (wint_t): Likewise.
56984         (__wctype_wint_t): Remove type.
56985         (isw*): Use wint_t instead of __wctype_wint_t.
56986         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56987         * modules/wchar (Files): Add m4/wint_t.m4.
56988         (Makefile.am): Substitute HAVE_WINT_T.
56989         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56990         * tests/test-wctype.c: Check that wint_t is defined.
56991         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56992         * doc/posix-headers/wctype.texi: Likewise.
56993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56994
56995 2008-09-18  Bruno Haible  <bruno@clisp.org>
56996
56997         * gnulib-tool (func_exit): Update comment.
56998
56999 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57000
57001         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57002         assumes strdup exists and does not depend on strdup to return
57003         ENOMEM on out of memory conditions.
57004
57005 2008-09-18  Bruno Haible  <bruno@clisp.org>
57006
57007         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57008         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57009         digits for the exponent.
57010
57011 2008-09-18  Jim Meyering  <meyering@redhat.com>
57012             Bruno Haible  <bruno@clisp.org>
57013
57014         * lib/vasnprintf.c (decimal_point_char): Define also if
57015         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57016
57017 2008-09-16  Bruno Haible  <bruno@clisp.org>
57018         and Eric Blake  <ebb9@byu.net>
57019
57020         vasnprintf: support Irix 5.3
57021         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57022         that mishandle long double infinity.
57023         Reported by Tom G. Christensen.
57024
57025 2008-09-16  Bruno Haible  <bruno@clisp.org>
57026
57027         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57028         Solaris 9.
57029         * doc/glibc-functions/alphasort.texi: Likewise.
57030         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57031
57032 2008-09-16  Jim Meyering  <meyering@redhat.com>
57033
57034         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57035         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57036         a umask modification leak out of a subshell.  Otherwise, the
57037         opensolaris /bin/sh would be accepted and thus cause unwarranted
57038         failures in the coreutils test suite.
57039
57040 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57041
57042         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57043         to succeed.
57044
57045 2008-09-16  Jim Meyering  <meyering@redhat.com>
57046
57047         avoid spurious test failure when library is built without ACL support
57048         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57049         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57050         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57051         * tests/test-copy-acl.sh: Likewise.
57052
57053 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57054
57055         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57056         based on character occurrence counts.
57057
57058 2008-09-15  Eric Blake  <ebb9@byu.net>
57059
57060         tests: avoid some compiler warnings
57061         * tests/test-memchr.c (main): Pass NULL indirectly.
57062         * tests/test-closein.c (main): Avoid unused variable.
57063
57064 2008-09-15  Bruno Haible  <bruno@clisp.org>
57065
57066         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57067         are missing on OpenBSD 4.0 individually.
57068         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57069
57070 2008-09-15  Bruno Haible  <bruno@clisp.org>
57071
57072         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57073         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57074         * doc/posix-functions/perror.texi: Likewise.
57075         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57076         is missing.
57077         Reported by Eric Blake.
57078
57079         * lib/errno.in.h: Use replacement values >= 2000.
57080         Reported by Eric Blake.
57081
57082 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57083
57084         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57085         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57086         limit.
57087         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57088         compareseq was aborted.
57089
57090 2008-09-14  Bruno Haible  <bruno@clisp.org>
57091
57092         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57093         yvec_edit_count.
57094         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57095         (fstrcmp_bounded): Simplify result computation accordingly.
57096
57097 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57098
57099         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57100         (fstrcmp): Define in terms of fstrcmp_bounded.
57101         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57102         lower_bound argument.
57103         Return quickly if the result is certainly < lower_bound.
57104         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57105
57106 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57107
57108         * lib/diffseq.h (EARLY_ABORT): New macro.
57109         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57110         evaluates to true.
57111
57112 2008-09-14  Bruno Haible  <bruno@clisp.org>
57113
57114         * modules/perror-tests: New file.
57115         * tests/test-perror.sh: New file.
57116         * tests/test-perror.c: New file.
57117
57118         New module 'perror'.
57119         * lib/stdio.in.h (perror): New declaration.
57120         * lib/perror.c: New file.
57121         * m4/perror.m4: New file.
57122         * modules/perror: New file.
57123         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57124         * doc/posix-functions/perror.texi: Mention the perror module.
57125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57126         REPLACE_PERROR.
57127         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57128         REPLACE_PERROR.
57129
57130 2008-09-14  Bruno Haible  <bruno@clisp.org>
57131
57132         * modules/stdio (Makefile.am): Reorder to match the order in
57133         lib/stdio.in.h.
57134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57135
57136 2008-09-13  Bruno Haible  <bruno@clisp.org>
57137
57138         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57139
57140 2008-09-13  Bruno Haible  <bruno@clisp.org>
57141
57142         Extend strerror to cover the added errno values.
57143         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57144         (rpl_strerror): Provide error messages for the added errno values and
57145         for the WSA* values.
57146         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57147         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57148         strerror.
57149         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57150         * modules/strerror (Depends-on): Add errno.
57151         * doc/posix-functions/strerror.texi: Document the change.
57152         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57153         and EOVERFLOW.
57154
57155 2008-09-13  Bruno Haible  <bruno@clisp.org>
57156
57157         * modules/EOVERFLOW: Remove file.
57158         * m4/eoverflow.m4: Remove file.
57159         * modules/EOVERFLOW-tests: Remove file.
57160         * tests/test-EOVERFLOW.c: Remove file.
57161         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57162         * modules/ftell (Depends-on): Likewise.
57163         * modules/getdelim (Depends-on): Likewise.
57164         * modules/getugroups (Depends-on): Likewise.
57165         * modules/poll (Depends-on): Likewise.
57166         * modules/snprintf (Depends-on): Likewise.
57167         * modules/sprintf-posix (Depends-on): Likewise.
57168         * modules/vasnprintf (Depends-on): Likewise.
57169         * modules/vasprintf (Depends-on): Likewise.
57170         * modules/vfprintf-posix (Depends-on): Likewise.
57171         * modules/vsnprintf (Depends-on): Likewise.
57172         * modules/vsprintf-posix (Depends-on): Likewise.
57173         * modules/xvasprintf (Depends-on): Likewise.
57174         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57175         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57176         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57177         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57178         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57179         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57180         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57181         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57182         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57183         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57184         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57185         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57186         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57187         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57188         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57189         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57190         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57191         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57192         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57193         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57194         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57195         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57196         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57197         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57198         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57199         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57200         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57201         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57202         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57203         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57204         * MODULES.html.sh: Remove EOVERFLOW.
57205         * NEWS: Mention the change.
57206
57207 2008-09-13  Bruno Haible  <bruno@clisp.org>
57208
57209         * modules/errno-tests: New file.
57210         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57211
57212         * lib/errno.in.h: New file.
57213         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57214         * modules/errno: New file.
57215         * doc/posix-headers/errno.texi: Update documentation.
57216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57217
57218 2008-09-13  Bruno Haible  <bruno@clisp.org>
57219
57220         * tests/test-poll.c: Use #if for native Windows, rather than testing
57221         __MSVCRT__.
57222
57223 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57224             Bruno Haible  <bruno@clisp.org>
57225
57226         * lib/glob.c: Don't include <pwd.h> on native Windows.
57227         (WINDOWS32): New macro.
57228         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57229
57230 2008-09-13  Bruno Haible  <bruno@clisp.org>
57231
57232         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57233         (ETIMEDOUT): Remove macro.
57234         (glthread_cond_timedwait_multithreaded): New declaration.
57235         (glthread_cond_timedwait): Use it.
57236         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57237         (glthread_cond_timedwait_multithreaded): New function.
57238
57239 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57240
57241         * modules/poll-tests: Do not check for io.h.
57242         * tests/test-poll.c: Check for __MSVCRT__ instead.
57243
57244 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57245
57246         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57247         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57248         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57249
57250 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57251
57252         * modules/poll-tests: New.
57253         * tests/test-poll.c: New.
57254
57255 2008-09-12  Eric Blake  <ebb9@byu.net>
57256
57257         frexp: test for NetBSD failure on -0.0
57258         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57259         not all, bugs from NetBSD 3.0 have been fixed.
57260         * doc/posix-functions/frexp.texi (frexp): Document bug.
57261         Reported by Thomas Klausner.
57262
57263         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57264         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57265         literal -0.0.
57266         Reported by Jonathan C. Patschke <jp@centtech.com>.
57267
57268 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57269
57270         * lib/glthread/cond.h: Use dummy implementation also if
57271         USE_WIN32_THREADS.
57272
57273 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57274
57275         * modules/fnmatch-posix (License): Change to LGPLv2+.
57276         * modules/fnmatch-gnu (License): Likewise.
57277
57278 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57279
57280         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57281
57282 2008-09-11  Jim Meyering  <meyering@redhat.com>
57283
57284         * users.txt: Add gtk-vnc.
57285
57286 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57287
57288         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57289         rotate amounts.
57290
57291         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57292         required for 16-bit and 8-bit rotates.
57293         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57294         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57295         UINT8_MAX instead of hard-coded constants.
57296         Suggested by Paul Eggert.
57297
57298 2008-09-07  Bruno Haible  <bruno@clisp.org>
57299
57300         * tests/test-striconveh.c (main): Check behaviour when converting from
57301         UTF-7.
57302
57303         Make striconveh work better with stateful encodings.
57304         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57305         that iconv does not increment the inptr when returning -1/EINVAL.
57306
57307 2008-09-07  Bruno Haible  <bruno@clisp.org>
57308
57309         * build-aux/config.rpath: Update according to libtool-2.2.6.
57310         * build-aux/config.libpath: Likewise.
57311
57312 2008-09-06  Bruno Haible  <bruno@clisp.org>
57313
57314         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57315         * lib/freadptr.c (freadptr): Likewise.
57316         * lib/freadseek.c (freadptrinc): Likewise.
57317         Reported by Simon Josefsson.
57318
57319 2008-09-06  Bruno Haible  <bruno@clisp.org>
57320
57321         * modules/freadptr (License): Change to LGPLv2+.
57322         * modules/freadseek (License): Likewise.
57323         Suggested by Eric Blake.
57324
57325         * modules/memchr2 (License): Change to LGPLv2+.
57326         Approved by Eric Blake.
57327
57328 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57329             Bruno Haible  <bruno@clisp.org>
57330
57331         Make gnulib-tool work with native 'sed' on AIX.
57332         * gnulib-tool (sed_noop): New variable.
57333         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57334         func_add_or_update, func_create_testdir): Use it to initialize sed
57335         script variables.
57336         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57337
57338 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57339             Bruno Haible  <bruno@clisp.org>
57340
57341         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57342         also works after #include directives.
57343
57344 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
57345
57346         getdate.y: reject an out-of-range timezone value
57347         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57348         the range [-24...+24].  When specified with only one or two digits,
57349         * tests/test-getdate.c: Tests for the fix.
57350         * doc/getdate.texi: Document this change.
57351
57352 2008-09-03  Bruno Haible  <bruno@clisp.org>
57353
57354         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57355
57356 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57357
57358         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57359         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57360         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57361         Blake <ebb9@byu.net>.
57362
57363         * tests/test-bitrotate.c: Add more test vectors.
57364
57365 2008-09-02  Eric Blake  <ebb9@byu.net>
57366
57367         vasnprintf-posix: handle large precision via %.*d
57368         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57369         when handling it ourselves.
57370         * tests/test-vasnprintf-posix.c (test_function): Add test.
57371         * tests/test-snprintf-posix.h (test_function): Likewise.
57372         * tests/test-sprintf-posix.h (test_function): Likewise.
57373         * tests/test-vasprintf-posix.c (test_function): Likewise.
57374         Reported by Alain Guibert.
57375
57376 2008-09-01  Eric Blake  <ebb9@byu.net>
57377
57378         c-stack: make configure-time check more robust
57379         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57380         successful sigaction call.
57381         Reported by Tom G. Christensen.
57382
57383 2008-09-01  Bruno Haible  <bruno@clisp.org>
57384
57385         New module 'findprog-lgpl'.
57386         * modules/findprog-lgpl: New file.
57387         * lib/findprog-lgpl.c: New file.
57388         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57389         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57390         to decide whether to use strdup or xstrdup, concatenated_filename or
57391         xconcatenated_filename.
57392
57393 2008-09-01  Bruno Haible  <bruno@clisp.org>
57394
57395         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57396         'xconcat-filename' (GPL).
57397         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57398         (License): Change to LGPLv2+.
57399         * modules/xconcat-filename: New file.
57400         * lib/concat-filename.h (concatenated_filename): Change specification.
57401         (xconcatenated_filename): New declaration.
57402         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57403         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57404         memory situations.
57405         * lib/xconcat-filename.c: New file.
57406         * NEWS: Mention the change.
57407         * lib/findprog.c: Include concat-filename.h, not filename.h.
57408         (find_in_path): Use xconcatenated_filename instead of
57409         concatenated_filename.
57410         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57411         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57412         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57413         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57414         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57415         instead of concatenated_filename.
57416         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57417         (execute_java_class): Use xconcatenated_filename instead of
57418         concatenated_filename.
57419         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57420         * modules/javacomp (Depends-on): Likewise.
57421         * modules/javaexec (Depends-on): Likewise.
57422
57423 2008-09-01  Bruno Haible  <bruno@clisp.org>
57424
57425         Split module 'filename' into 'filename' and 'concat-filename'.
57426         * modules/filename: Keep only lib/filename.h.
57427         (License): Change to LGPLv2+.
57428         * modules/concat-filename: New file, extracted from modules/filename.
57429         * lib/filename.h (concatenated_filename): Remove declaration.
57430         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57431         * lib/concat-filename.c: Include concat-filename.h.
57432         * NEWS: Mention the change.
57433
57434 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57435
57436         * lib/bitrotate.h (rotl8, rotr8): Add.
57437
57438         * modules/bitrotate (configure.ac): Need
57439         AC_REQUIRE([AC_C_INLINE]).
57440         (Description): Mention stdint.h.  Reported by Bruno Haible
57441         <bruno@clisp.org>.
57442
57443         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57444         Paolo Bonzini <bonzini@gnu.org>.
57445
57446 2008-08-31  Bruno Haible  <bruno@clisp.org>
57447
57448         Assume Solaris specific bi-arch conventions on Solaris systems.
57449         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57450         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57451         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57452         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57453         like acl_libdirstem.
57454         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57455         acl_libdirstem.
57456         * NEWS: Mention the change.
57457         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57458
57459 2008-08-31  Jim Meyering  <meyering@redhat.com>
57460
57461         * lib/strftime.h: Add comments describing the two added arguments.
57462
57463         remove duplicate #include directives
57464         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57465         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57466
57467 2008-08-31  Bruno Haible  <bruno@clisp.org>
57468
57469         New module 'sigpipe-die'.
57470         * modules/sigpipe-die: New file.
57471         * lib/sigpipe-die.h: New file.
57472         * lib/sigpipe-die.c: New file.
57473         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57474
57475 2008-08-31  Bruno Haible  <bruno@clisp.org>
57476
57477         Don't override previously installed signal handlers.
57478         * lib/fatal-signal.c (saved_sigactions): New variable.
57479         (uninstall_handlers): Reset the signal to the saved handler, not
57480         to SIG_DFL (except when ignored).
57481         (install_handlers): Save the previous handlers.
57482
57483 2008-08-30  Bruno Haible  <bruno@clisp.org>
57484
57485         * gnulib-tool (func_reset_sigpipe): New function.
57486         (func_get_automake_snippet, func_modules_transitive_closure,
57487         func_import): Invoke it before a join command that reads from stdin,
57488         to avoid "echo: write error: Broken pipe" error messages on stderr.
57489         Reported by Sam Steingold <sds@gnu.org>.
57490
57491 2008-08-30  Bruno Haible  <bruno@clisp.org>
57492
57493         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57494         Code copied from m4/open.m4.
57495         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57496         access and the filename ends in a slash. Code copied from lib/open.c.
57497         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57498         * tests/test-fopen.c (main): Check against bug with trailing slash.
57499
57500 2008-08-29  Bruno Haible  <bruno@clisp.org>
57501
57502         Avoid some "gcc -pedantic" warnings.
57503         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57504         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57505         * lib/dirent.in.h: Likewise.
57506         * lib/fcntl.in.h: Likewise.
57507         * lib/float.in.h: Likewise.
57508         * lib/iconv.in.h: Likewise.
57509         * lib/inttypes.in.h: Likewise.
57510         * lib/locale.in.h: Likewise.
57511         * lib/math.in.h: Likewise.
57512         * lib/netinet_in.in.h: Likewise.
57513         * lib/search.in.h: Likewise.
57514         * lib/signal.in.h: Likewise.
57515         * lib/stdarg.in.h: Likewise.
57516         * lib/stdint.in.h: Likewise.
57517         * lib/stdio.in.h: Likewise.
57518         * lib/stdlib.in.h: Likewise.
57519         * lib/string.in.h: Likewise.
57520         * lib/strings.in.h: Likewise.
57521         * lib/sys_select.in.h: Likewise.
57522         * lib/sys_socket.in.h: Likewise.
57523         * lib/sys_stat.in.h: Likewise.
57524         * lib/sys_time.in.h: Likewise.
57525         * lib/sysexits.in.h: Likewise.
57526         * lib/time.in.h: Likewise.
57527         * lib/unistd.in.h: Likewise.
57528         * lib/wchar.in.h: Likewise.
57529         * lib/wctype.in.h: Likewise.
57530         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57531         * modules/fchdir (Makefile.am): Likewise.
57532         * modules/fcntl (Makefile.am): Likewise.
57533         * modules/float (Makefile.am): Likewise.
57534         * modules/iconv_open (Makefile.am): Likewise.
57535         * modules/inttypes (Makefile.am): Likewise.
57536         * modules/locale (Makefile.am): Likewise.
57537         * modules/math (Makefile.am): Likewise.
57538         * modules/netinet_in (Makefile.am): Likewise.
57539         * modules/search (Makefile.am): Likewise.
57540         * modules/signal (Makefile.am): Likewise.
57541         * modules/stdarg (Makefile.am): Likewise.
57542         * modules/stdint (Makefile.am): Likewise.
57543         * modules/stdio (Makefile.am): Likewise.
57544         * modules/stdlib (Makefile.am): Likewise.
57545         * modules/string (Makefile.am): Likewise.
57546         * modules/strings (Makefile.am): Likewise.
57547         * modules/sys_select (Makefile.am): Likewise.
57548         * modules/sys_socket (Makefile.am): Likewise.
57549         * modules/sys_stat (Makefile.am): Likewise.
57550         * modules/sys_time (Makefile.am): Likewise.
57551         * modules/sysexits (Makefile.am): Likewise.
57552         * modules/time (Makefile.am): Likewise.
57553         * modules/unistd (Makefile.am): Likewise.
57554         * modules/wchar (Makefile.am): Likewise.
57555         * modules/wctype (Makefile.am): Likewise.
57556         Reported by Reuben Thomas <rrt@sc3d.org>.
57557
57558 2008-08-29  Bruno Haible  <bruno@clisp.org>
57559
57560         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57561         any more.
57562
57563 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57564
57565         * MODULES.html.sh (Misc): Add bitrotate.
57566
57567         * modules/bitrotate: New file.
57568
57569         * lib/bitrotate.h: New file.
57570
57571         * modules/bitrotate-tests: New file.
57572
57573         * tests/test-bitrotate.c: New file.
57574
57575         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57576         on the bitrotate module.
57577
57578         * lib/arctwo.c: Use new bitrotate module.
57579
57580 2008-08-29  Jim Meyering  <meyering@redhat.com>
57581
57582         bootstrap: merge changes from coreutils
57583         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57584         of copied files.  Remove a kludge, now that this is fixed.
57585         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57586         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57587         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57588
57589 2008-08-29  Bruno Haible  <bruno@clisp.org>
57590
57591         * MODULES.html.sh: Remove --cvs-urls option.
57592
57593 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57594
57595         maint.mk: adjust to file name change
57596         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57597
57598 2008-08-28  Jim Meyering  <meyering@redhat.com>
57599
57600         * modules/getndelim2 (License): Relicense to LGPLv2+.
57601         Approved by Richard Stallman for the version of 1995, and by
57602         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57603
57604 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57605
57606         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57607         dummy if one is not available.  Do not touch them if
57608         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57609         (getc_maybe_unlocked): New.
57610         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57611
57612 2008-08-26  Eric Blake  <ebb9@byu.net>
57613
57614         doc/INSTALL: resync from autoconf
57615         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57616         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57617         moving...
57618         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57619         * INSTALL: Regenerate.
57620         * INSTALL.ISO: New file.
57621         * INSTALL.UTF-8: Likewise.
57622
57623 2008-08-26  Jim Meyering  <meyering@redhat.com>
57624
57625         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57626         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57627         these definitions conditional, so that they may be overridden, too.
57628
57629 2008-08-26  Bruno Haible  <bruno@clisp.org>
57630
57631         Generate INSTALL file variants with prettier quotes.
57632         * doc/Makefile (INSTALL_PRELUDE): New macro.
57633         (INSTALL): Use it.
57634         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57635
57636 2008-08-26  Bruno Haible  <bruno@clisp.org>
57637
57638         Run makeinfo in an English locale.
57639         * doc/Makefile (MAKEINFO): New variable.
57640
57641 2008-08-26  Bruno Haible  <bruno@clisp.org>
57642
57643         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57644         Suggested by Eric Blake.
57645
57646 2008-08-25  Bruno Haible  <bruno@clisp.org>
57647
57648         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57649
57650 2008-08-25  Eric Blake  <ebb9@byu.net>
57651
57652         c-stack: test that stack overflow can be caught
57653         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57654         that platform allows handling stack overflow; at least OS/2 EMX
57655         has sigaltstack, but crashes before transferring control to
57656         handler on stack overflow.
57657         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57658         check for HAVE_STACK_OVERFLOW_HANDLING.
57659         Reported by Elbert Pol.
57660
57661 2008-08-25  Bruno Haible  <bruno@clisp.org>
57662
57663         * doc/posix-functions/strftime.texi: Fix description of strftime
57664         module.
57665
57666 2008-08-24  Bruno Haible  <bruno@clisp.org>
57667
57668         * tests/uniwidth/test-uc_width2.c: New file.
57669         * tests/uniwidth/test-uc_width2.sh: New file.
57670         * modules/uniwidth/width-tests (Files): Add the new files.
57671         (TESTS): Add uniwidth/test-uc_width2.sh.
57672         (TESTS_ENVIRONMENT): New variable.
57673         (check_PROGRAMS): Add test-uc_width2.
57674         (test_uc_width2_SOURCES): New variable.
57675
57676         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57677         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57678         not 0x00AB.
57679         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57680
57681 2008-08-22  Eric Blake  <ebb9@byu.net>
57682
57683         test-lock, test-tls: mention why a test is skipped
57684         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57685         skipped.
57686         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57687
57688         count-one-bits: relax license
57689         * modules/count-one-bits (License): Relicense to LGPLv2+.
57690         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57691
57692 2008-08-22  Andreas Schwab  <schwab@suse.de>
57693
57694         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57695         Remove spurious space in assignment.
57696
57697 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57698
57699         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57700         Paul Eggert <eggert@CS.UCLA.EDU>.
57701
57702 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57703
57704         * modules/gettext: Add m4/threadlib.m4.
57705
57706 2008-08-19  Eric Blake  <ebb9@byu.net>
57707
57708         test-c-stack: fix compilation failure on FreeBSD 5.0
57709         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57710         headers before <sys/resource.h>.
57711         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57712         the bug.
57713         Reported by Nelson H. F. Beebe.
57714
57715         strverscmp: migrate from "strverscmp.h" to <string.h>
57716         * modules/string (Makefile.am): Add new hooks.
57717         * modules/strverscmp (Files): Remove strverscmp.h.
57718         (Depends-on): Add string.
57719         (configure.ac): Add indicator.
57720         (Include): Mention new header.
57721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57722         defaults.
57723         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57724         results.
57725         * lib/strverscmp.h: Delete.
57726         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57727         * tests/test-strverscmp.c (includes): Adjust client.
57728         * lib/check-version.c (includes): Likewise.
57729         * NEWS: Document the change.
57730
57731         strverscmp: add unit test
57732         * modules/strverscmp-tests: New file.
57733         * tests/test-strverscmp.c: Likewise.
57734
57735 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57736
57737         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57738         regarding Windows crypto stuff, from Mono.
57739
57740 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57741
57742         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57743         if present, for intel RND.  Return error on failures.
57744
57745 2008-08-18  Ben Pfaff  <blp@gnu.org>
57746
57747         gitlog-to-changelog: give better diagnostic for failed pipe-open
57748         * build-aux/gitlog-to-changelog: Improve error message: suggest
57749         that the version of Git may be too old.
57750
57751 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57752
57753         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57754         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57755
57756 2008-08-18  Bruno Haible  <bruno@clisp.org>
57757
57758         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57759         pthread_in_use().
57760
57761 2008-08-18  Bruno Haible  <bruno@clisp.org>
57762
57763         * lib/glthread/threadlib.c: Include <pthread.h>.
57764
57765 2008-08-18  Bruno Haible  <bruno@clisp.org>
57766
57767         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57768         glthread_recursive_lock_* macros.
57769         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57770         Fix syntax error.
57771
57772 2008-08-18  Bruno Haible  <bruno@clisp.org>
57773
57774         * lib/glthread/thread.c: Avoid forcing a context switch right after
57775         thread creation.
57776
57777 2008-08-17  Bruno Haible  <bruno@clisp.org>
57778
57779         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57780         * lib/glthread/thread.h: Provide Win32 specific implementation.
57781         * modules/thread (Files): Add lib/glthread/thread.c.
57782         (Depends-on): Add lock.
57783         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57784
57785 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57786
57787         New module 'yield'.
57788         * modules/yield: New file.
57789         * lib/glthread/yield.h: New file.
57790         * m4/yield.m4: New file.
57791         * MODULES.html.sh (Multithreading): Add yield.
57792
57793 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57794
57795         New module 'thread'.
57796         * modules/thread: New file.
57797         * lib/glthread/thread.h: New file.
57798         * m4/thread.m4: New file.
57799         * MODULES.html.sh (Multithreading): Add thread.
57800
57801 2008-08-17  Bruno Haible  <bruno@clisp.org>
57802
57803         * lib/glthread/lock.h: Include <stdlib.h> always.
57804         * lib/glthread/tls.h: Likewise.
57805         * lib/glthread/cond.h: Likewise.
57806
57807 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57808
57809         New module 'cond'.
57810         * modules/cond: New file.
57811         * lib/glthread/cond.h: New file.
57812         * lib/glthread/cond.c: New file.
57813         * m4/cond.m4: New file.
57814         * MODULES.html.sh (Multithreading): Add cond.
57815
57816 2008-08-16  Eric Blake  <ebb9@byu.net>
57817
57818         c-stack: fix regression on Irix 5.3 from 2008-06-21
57819         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57820         sa_sigaction...
57821         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57822         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57823         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57824         * modules/signal (Makefile.am): Use the value.
57825         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57826         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57827         * doc/posix-headers/signal.texi (signal.h): Document this
57828         portability issue.
57829         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57830         Reported by Tom G. Christensen.
57831
57832 2008-08-17  Bruno Haible  <bruno@clisp.org>
57833
57834         New module 'threadlib'.
57835         * modules/threadlib: New file.
57836         * lib/glthread/threadlib.c: New file, extracted from
57837         lib/glthread/lock.c.
57838         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57839         functions.
57840         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57841         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57842         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57843         macros.
57844         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57845         (gl_DISABLE_THREADS): Remove macro.
57846         * modules/lock (Files): Remove build-aux/config.rpath.
57847         (Depends-on): Remove havelib. Add threadlib.
57848         (configure.ac-early): Remove section.
57849         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57850         * modules/tls (Depends-on): Remove lock. Add threadlib.
57851         (Link): New section, copied from threadlib.
57852         * MODULES.html.sh (Multithreading): Add threadlib.
57853
57854 2008-08-14  Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57857         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57858         glthread_rwlock_unlock, glthread_rwlock_destroy,
57859         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57860         glthread_recursive_lock_destroy): Define as macros always.
57861         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57862         glthread_lock_lock.
57863         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57864         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57865         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57866         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57867         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57868         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57869         (glthread_recursive_lock_lock_func): Renamed from
57870         glthread_recursive_lock_lock.
57871         (glthread_recursive_lock_unlock_func): Renamed from
57872         glthread_recursive_lock_unlock.
57873         (glthread_recursive_lock_destroy_func): Renamed from
57874         glthread_recursive_lock_destroy.
57875
57876 2008-08-14  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/glthread/lock.h: Renamed from lib/lock.h.
57879         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57880         * lib/glthread/tls.h: Renamed from lib/tls.h.
57881         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57882         * lib/fstrcmp.c: Update includes.
57883         * lib/strsignal.c: Update includes.
57884         * modules/lock (Files, Makefile.am): Update.
57885         (Include): Change to "glthread/lock.h".
57886         * modules/tls (Files, Makefile.am): Update.
57887         (Include): Change to "glthread/tls.h".
57888         * tests/test-lock.c: Update includes.
57889         * tests/test-tls.c: Update includes.
57890         * NEWS: Mention the renamed header files.
57891
57892 2008-08-11  Jim Meyering  <meyering@redhat.com>
57893
57894         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57895
57896 2008-08-11  Eric Blake  <ebb9@byu.net>
57897
57898         test-c-stack: avoid C99-ism
57899         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57900         before statement.
57901         Reported by Alain Guibert.
57902
57903 2008-08-10  Jim Meyering  <meyering@redhat.com>
57904
57905         ensure that return value of uinttostr et al are not ignored
57906         * lib/inttostr.h (__GNUC_PREREQ): Define.
57907         (__attribute_warn_unused_result__): Define.
57908         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57909
57910 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57911
57912         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57913         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57914
57915 2008-08-07  Jim Meyering  <meyering@redhat.com>
57916
57917         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57918
57919         * modules/mkstemp (License): Relicense under LGPLv2+.
57920         * modules/tempname (License): Likewise.
57921
57922 2008-08-06  Bruno Haible  <bruno@clisp.org>
57923
57924         * lib/poll.c (poll): Further micro-optimization.
57925
57926 2008-08-06  Jim Meyering  <meyering@redhat.com>
57927
57928         inet_pton.c: use locale-independent tolower
57929         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57930         (inet_pton6): Use c_tolower rather than tolower.
57931         * modules/inet_pton (Depends-on): Add c-ctype.
57932
57933 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57934
57935         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57936         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57937
57938 2008-08-06  Jim Meyering  <meyering@redhat.com>
57939
57940         * modules/inet_pton (License): Relicense under LGPLv2+.
57941
57942 2008-08-03  Bruno Haible  <bruno@clisp.org>
57943
57944         Additional non-aborting API for lock and tls.
57945         * lib/lock.h: Include <errno.h>.
57946         (glthread_lock_init): New macro/function.
57947         (gl_lock_init): Define as wrapper around glthread_lock_init.
57948         (glthread_lock_lock): New macro/function.
57949         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57950         (glthread_lock_unlock): New macro/function.
57951         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57952         (glthread_lock_destroy): New macro/function.
57953         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57954         (glthread_rwlock_init): New macro/function.
57955         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57956         (glthread_rwlock_rdlock): New macro/function.
57957         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57958         (glthread_rwlock_wrlock): New macro/function.
57959         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57960         (glthread_rwlock_unlock): New macro/function.
57961         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57962         (glthread_rwlock_destroy): New macro/function.
57963         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57964         (glthread_recursive_lock_init): New macro/function.
57965         (gl_recursive_lock_init): Define as wrapper around
57966         glthread_recursive_lock_init.
57967         (glthread_recursive_lock_lock): New macro/function.
57968         (gl_recursive_lock_lock): Define as wrapper around
57969         glthread_recursive_lock_lock.
57970         (glthread_recursive_lock_unlock): New macro/function.
57971         (gl_recursive_lock_unlock): Define as wrapper around
57972         glthread_recursive_lock_unlock.
57973         (glthread_recursive_lock_destroy): New macro/function.
57974         (gl_recursive_lock_destroy): Define as wrapper around
57975         glthread_recursive_lock_destroy.
57976         (glthread_once): New macro/function.
57977         (gl_once): Define as wrapper around glthread_once.
57978         Update function declarations.
57979         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57980         glthread_rwlock_init. Return error code.
57981         (glthread_rwlock_rdlock_multithreaded): Renamed from
57982         glthread_rwlock_rdlock. Return error code.
57983         (glthread_rwlock_wrlock_multithreaded): Renamed from
57984         glthread_rwlock_wrlock. Return error code.
57985         (glthread_rwlock_unlock_multithreaded): Renamed from
57986         glthread_rwlock_unlock. Return error code.
57987         (glthread_rwlock_destroy_multithreaded): Renamed from
57988         glthread_rwlock_destroy. Return error code.
57989         (glthread_recursive_lock_init_multithreaded): Renamed from
57990         glthread_recursive_lock_init. Return error code.
57991         (glthread_recursive_lock_lock_multithreaded): Renamed from
57992         glthread_recursive_lock_lock. Return error code.
57993         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57994         glthread_recursive_lock_unlock. Return error code.
57995         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57996         glthread_recursive_lock_destroy. Return error code.
57997         (glthread_once_call): Make static.
57998         (glthread_once_multithreaded): Renamed from glthread_once.
57999         * lib/tls.h: Include <errno.h>.
58000         (glthread_tls_key_init): New macro/function.
58001         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58002         (glthread_tls_set): New macro/function.
58003         (gl_tls_set): Define as wrapper around glthread_tls_set.
58004         (glthread_tls_key_destroy): New macro/function.
58005         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58006         Update function declarations.
58007         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58008         glthread_tls_get.
58009         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58010
58011 2008-08-04  Eric Blake  <ebb9@byu.net>
58012
58013         gnumakefile: use space, not TAB, outside of targets
58014         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58015
58016 2008-08-02  Jim Meyering  <meyering@redhat.com>
58017
58018         getdate.y: avoid locale-dependent date parsing failure
58019         In Turkish locales, getdate would fail to recognize keywords
58020         containing a lowercase "i".  The solution is not to rely on
58021         locale-sensitive case-conversion.
58022         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58023         (lookup_word): Use c_toupper in place of toupper.
58024         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58025         Reported by Vefa Bicakci <bicave@superonline.com> in
58026         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58027         * modules/getdate (Depends-on): Add c-ctype.
58028
58029 2008-08-02  Bruno Haible  <bruno@clisp.org>
58030
58031         * gnulib-tool (func_import): When updating or creating a .gitignore
58032         file, prepend each added line with a slash, and ignore leading slashes
58033         from the existing lines.
58034         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58035
58036 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58037
58038         Portability fix for GNU make 3.79.1.
58039         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58040         versions do not understand.
58041
58042 2008-08-01  Bruno Haible  <bruno@clisp.org>
58043
58044         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58045         * tests/test-isnanf.h (zero): New variable.
58046         (main): Avoid literal -0.0f.
58047         * tests/test-isnand.h (zero): New variable.
58048         (main): Avoid literal -0.0.
58049         * tests/test-isnanl.h (zero): New variable.
58050         (main): Avoid literal -0.0L.
58051         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58052         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58053         -0.0, -0.0L.
58054         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58055         (test_signbitd): Avoid literal -0.0.
58056         (test_signbitl): Avoid literal -0.0L.
58057         * tests/test-ceilf1.c (zero): New variable.
58058         (main): Avoid literal -0.0f.
58059         * tests/test-ceill.c (zero): New variable.
58060         (main): Avoid literal -0.0L.
58061         * tests/test-floorf1.c (zero): New variable.
58062         (main): Avoid literal -0.0f.
58063         * tests/test-floorl.c (zero): New variable.
58064         (main): Avoid literal -0.0L.
58065         * tests/test-roundf1.c (zero): New variable.
58066         (main): Avoid literal -0.0f.
58067         * tests/test-round1.c (zero): New variable.
58068         (main): Avoid literal -0.0.
58069         * tests/test-roundl.c (zero): New variable.
58070         (main): Avoid literal -0.0L.
58071         * tests/test-truncf1.c (zero): New variable.
58072         (main): Avoid literal -0.0f.
58073         * tests/test-trunc1.c (zero): New variable.
58074         (main): Avoid literal -0.0.
58075         * tests/test-truncl.c (zero): New variable.
58076         (main): Avoid literal -0.0L.
58077         * tests/test-frexp.c (zero): New variable.
58078         (main): Avoid literal -0.0.
58079         * tests/test-frexpl.c (zero): New variable.
58080         (main): Avoid literal -0.0L.
58081         * tests/test-ldexpl.c (zero): New variable.
58082         (main): Avoid literal -0.0L.
58083         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58084         (zerod, zerol): New variables.
58085         (test_function): Avoid literals -0.0, -0.0L.
58086         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58087         (zerod, zerol): New variables.
58088         (test_function): Avoid literals -0.0, -0.0L.
58089         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58090         (zerod, zerol): New variables.
58091         (test_function): Avoid literals -0.0, -0.0L.
58092         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58093         (zerod, zerol): New variables.
58094         (test_function): Avoid literals -0.0, -0.0L.
58095         * tests/test-strtod.c (zero): New variable.
58096         (main): Avoid literal -0.0.
58097         Reported by Jonathan C. Patschke <jp@centtech.com>.
58098
58099 2008-07-31  Jim Meyering  <meyering@redhat.com>
58100
58101         sha256.h: correct definition of SHA224_DIGEST_SIZE
58102         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58103         Reported by Paulie Pena IV <paulie4@gmail.com>.
58104         Define as 224 / 8, rather than as a literal.
58105         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58106         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58107         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58108
58109 2008-07-31  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58112         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58113         Reported by Jonathan Patschke <jp@centtech.com>.
58114
58115 2008-07-31  Bruno Haible  <bruno@clisp.org>
58116
58117         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58118         Reported by Paolo Bonzini <bonzini@gnu.org>.
58119
58120 2008-07-30  Eric Blake  <ebb9@byu.net>
58121
58122         test-strtod: allow compilation without -lm
58123         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58124         Reported by Dennis Clarke <blastwave@gmail.com>.
58125
58126 2008-07-28  Jim Meyering  <meyering@redhat.com>
58127
58128         bootstrap: work also when there are no .po files in po/
58129         * build-aux/bootstrap (update_po_files): Complete the change
58130         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58131
58132 2008-07-27  Jim Meyering  <meyering@redhat.com>
58133
58134         * users.txt: Add zile.
58135
58136 2008-07-26  Ben Pfaff  <blp@gnu.org>
58137
58138         Add missing dependencies on new m4/exponent[fdl].m4 files.
58139         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58140         * modules/isnand-nolibm: Add m4/exponentd.m4.
58141         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58142         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58143         m4/isnan[fdl].m4, because the macros actually used moved.
58144         Reported by Jim Meyering.
58145
58146 2008-07-14  Ben Pfaff  <blp@gnu.org>
58147
58148         Add isinf module.
58149         * lib/isinf.c: New file.
58150         * lib/math.in.h: Define isinf macro if we have decided to replace
58151         it.
58152         * m4/isinf.m4: New file.
58153         * m4/math_h.m4: Initialize and substitute variables for isinf
58154         module.
58155         * modules/isinf: New file.
58156         * modules/isinf-tests: New file.
58157         * modules/math: Add substitutions for new module.
58158         * tests/test-isinf.c: New file.
58159         * doc/posix-functions/isinf.texi: Mention new module.
58160         * MODULES.html.sh: Mention new module.
58161
58162 2008-07-14  Ben Pfaff  <blp@gnu.org>
58163
58164         Factor out some macros for use by additional modules.
58165         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58166         exponentf.m4.
58167         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58168         exponentd.m4.
58169         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58170         file exponentl.m4.
58171         * m4/exponentf.m4: New file.
58172         * m4/exponentd.m4: New file.
58173         * m4/exponentl.m4: New file.
58174         * modules/isnanf: Use new file m4/exponentf.m4.
58175         * modules/isnand: Use new file m4/exponentd.m4.
58176         * modules/isnanl: Use new file m4/exponentl.m4.
58177
58178 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58179
58180         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58181         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58182         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58183         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58184
58185         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58186         readlink on platforms without PATH_MAX.
58187
58188 2008-07-21  Eric Blake  <ebb9@byu.net>
58189
58190         Warn, not fail, on stale version.
58191         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58192
58193         Don't allow installation with stale devel version number.
58194         * top/GNUmakefile (_is-install-target): New macro.
58195         (_curr-ver): Forbid installation with stale version number.
58196
58197 2008-07-20  Bruno Haible  <bruno@clisp.org>
58198
58199         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58200         TESTS_ENVIRONMENT.
58201         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58202
58203 2008-07-20  Bruno Haible  <bruno@clisp.org>
58204
58205         * lib/c-stack.h (c_stack_action): Add documentation.
58206         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58207
58208 2008-07-20  Bruno Haible  <bruno@clisp.org>
58209
58210         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58211         * modules/readlink (License): Likewise.
58212
58213 2008-07-17  Eric Blake  <ebb9@byu.net>
58214
58215         * modules/c-stack (Link): Fix typo.
58216
58217         Make c-stack use libsigsegv, when available.
58218         * modules/c-stack (Depends-on): Add libsigsegv.
58219         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58220         needed.
58221         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58222         (segv_handler, overflow_handler, c_stack_action)
58223         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58224         implementation when libsigsegv is available, but only when using
58225         the library is necessary.
58226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58227         comment, explaining why XSI check fails on Linux.
58228         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58229         * tests/test-c-stack2.sh: Tweak skip message.
58230         * NEWS: Document new link-time requirements.
58231
58232 2008-07-16  Eric Blake  <ebb9@byu.net>
58233
58234         c-stack: Expose false positives when not using libsigsegv.
58235         * modules/c-stack-tests (Files): Expand test.
58236         * tests/test-c-stack.c (main): Add means to conditionally trigger
58237         non-overflow SIGSEGV.
58238         * tests/test-c-stack2.sh: New file.
58239
58240 2008-07-14  Bruno Haible  <bruno@clisp.org>
58241
58242         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58243         Reported by Eric Blake.
58244
58245 2008-07-14  Sam Steingold  <sds@gnu.org>
58246             Bruno Haible  <bruno@clisp.org>
58247
58248         New module libsigsegv.
58249         * modules/libsigsegv: New file.
58250         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58251         modifications.
58252         * MODULES.html.sh (Signal handling): New section.
58253
58254 2008-07-14  Bruno Haible  <bruno@clisp.org>
58255
58256         * modules/unictype/ctype-* (Description): Add the word "function".
58257         Improves the resulting doc in MODULES.html.
58258
58259 2008-07-12  Ben Pfaff  <blp@gnu.org>
58260
58261         Add longlong module.
58262         * modules/longlong: New file.
58263
58264 2008-07-12  Bruno Haible  <bruno@clisp.org>
58265
58266         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58267         to empty.
58268
58269 2008-07-10  Ben Pfaff  <blp@gnu.org>
58270
58271         Add isnan module.
58272         * doc/posix-functions/isnan.texi: Mention new module.
58273         * lib/math.in.h: Define isnan macro if we have decided to replace
58274         it.
58275         * m4/isnan.m4: New file.
58276         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58277         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58278         also.
58279         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58280         redundancy.
58281         * m4/math_h.m4: Initialize and substitute variables for isnan
58282         module.
58283         * modules/isnan: New file.
58284         * modules/isnan-tests: New file.
58285         * modules/math: Add substitutions for new module.
58286         * tests/test-isnan.c: New file.
58287         * MODULES.html.sh: Mention new module.
58288
58289 2008-07-10  Ben Pfaff  <blp@gnu.org>
58290
58291         Add isnanf module.
58292         * lib/isnanf.m4: New file.
58293         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58294         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58295         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58296         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58297         * modules/isnanf: New file.
58298         * modules/isnanf-tests: New file.
58299         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58300         files.
58301         * tests/test-isnanf-nolibm.c: factored most of its contents into
58302         new file tests/test-isnanf.h.
58303         * tests/test-isnanf.h: New file.
58304         * tests/test-isnanf.c: New file.
58305         * MODULES.html.sh: Mention new module.
58306         * doc/glibc-functions/isnanf.texi: Mention new module.
58307
58308 2008-07-10  Ben Pfaff  <blp@gnu.org>
58309
58310         Add isnand module.
58311         * lib/isnand.h: New file.
58312         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58313         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58314         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58315         functionality also.
58316         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58317         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58318         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58319         * modules/isnand: New file.
58320         * modules/isnand-tests: New file.
58321         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58322         files.
58323         * tests/test-isnand-nolibm.c: factored most of its contents into
58324         new file tests/test-isnand.h.
58325         * tests/test-isnand.h: New file.
58326         * tests/test-isnand.c: New file.
58327         * MODULES.html.sh: Mention new module.
58328
58329 2008-07-10  Ben Pfaff  <blp@gnu.org>
58330
58331         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58332         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58333         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58334         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58335         * modules/isnanf-nolibm: Update references to renamed files.
58336         * modules/isnand-nolibm: Likewise.
58337         * modules/isnanf-nolibm-tests: Likewise.
58338         * modules/isnand-nolibm-tests: Likewise.
58339         * lib/frexp.c: Likewise.
58340         * lib/isfinite.c: Likewise.
58341         * lib/signbitd.c: Likewise.
58342         * lib/signbitf.c: Likewise.
58343         * lib/vasnprintf.c: Likewise.
58344         * tests/test-ceilf1.c: Likewise.
58345         * tests/test-ceilf2.c: Likewise.
58346         * tests/test-floorf1.c: Likewise.
58347         * tests/test-floorf2.c: Likewise.
58348         * tests/test-frexp.c: Likewise.
58349         * tests/test-round1.c: Likewise.
58350         * tests/test-round2.c: Likewise.
58351         * tests/test-roundf1.c: Likewise.
58352         * tests/test-strtod.c: Likewise.
58353         * tests/test-trunc1.c: Likewise.
58354         * tests/test-trunc2.c: Likewise.
58355         * tests/test-truncf1.c: Likewise.
58356         * tests/test-truncf2.c: Likewise.
58357         * NEWS: Mention the renamed header files.
58358
58359 2008-07-11  Jim Meyering  <meyering@redhat.com>
58360
58361         vc-list-files: make the last-resort awk code more portable
58362         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58363         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58364         does not support it.
58365
58366 2008-07-10  Eric Blake  <ebb9@byu.net>
58367
58368         Work with tar's bootstrap.
58369         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58370         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58371         an m4 comment.
58372
58373 2008-07-09  Jim Meyering  <meyering@redhat.com>
58374
58375         posix-shell.m4: fix typo that made this test malfunction
58376         * m4/posix-shell.m4: Remove capitalization in variable name.
58377
58378 2008-07-08  Bruno Haible  <bruno@clisp.org>
58379
58380         * m4/onceonly.m4: Update comments.
58381         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58382
58383 2008-07-04  Jim Meyering  <meyering@redhat.com>
58384
58385         * users.txt: Add vc-dwim.
58386         (bison, coreutils): Use the gitweb URL.
58387
58388 2008-07-03  Jim Meyering  <meyering@redhat.com>
58389
58390         * users.txt: Add libffcall.  From Sam Steingold.
58391
58392 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
58393
58394         getdate.y: do not ignore TZ with relative day, month or year offset
58395         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58396         relative-date-handling, since otherwise, the latter would clobber the
58397         sole output (an updated Start value) of the tz-handling block.
58398         * tests/test-getdate.c: Tests for the fix
58399
58400 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58401
58402         Recognize 'foo_LIBRARIES += libgnu.a'.
58403         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58404         makefile snippet has already specified an installation location,
58405         also using '+='.
58406
58407 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
58408
58409         getdate.y: factor out common actions
58410         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58411         Use them in place of open-coded actions.
58412
58413 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58414
58415         Add self-test for getdate module.
58416         * modules/getdate-tests: New file.
58417         * tests/test-getdate.c: New file.
58418
58419 2008-06-29  Bruno Haible  <bruno@clisp.org>
58420
58421         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58422         .gitignore.
58423         Reported by Sylvain Beucler <beuc@beuc.net>.
58424
58425 2008-06-29  Bruno Haible  <bruno@clisp.org>
58426
58427         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58428         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58429
58430 2008-06-29  Bruno Haible  <bruno@clisp.org>
58431
58432         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58433         EXTRA_DIST.
58434         Reported by Sylvain Beucler <beuc@beuc.net>.
58435
58436 2008-06-26  Jim Meyering  <meyering@redhat.com>
58437
58438         make several modules depend on the "open" module
58439         This provides slightly increased consistency when opening-for-write
58440         the name of a non-directory spelled with a trailing slash.
58441         * modules/chdir-safer: Likewise.
58442         * modules/chown: Likewise.
58443         * modules/clean-temp: Likewise.
58444         * modules/copy-file: Likewise.
58445         * modules/fchdir: Likewise.
58446         * modules/fcntl-safer: Likewise.
58447         * modules/pipe: Likewise.
58448         * modules/utime: Likewise.
58449         Prompted by Eric Blake and Bruno Haible.
58450
58451 2008-06-24  Andreas Schwab  <schwab@suse.de>
58452
58453         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58454         literals can be used as initializers for global variables.
58455
58456 2008-06-23  Eric Blake  <ebb9@byu.net>
58457
58458         Make gnulib-cache.m4 easier to diff.
58459         * gnulib-tool (func_import): Allow newlines when reading cached
58460         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58461
58462 2008-06-23  Bruno Haible  <bruno@clisp.org>
58463
58464         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58465         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58466         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58467         m4/signalblocking.m4.
58468         (gl_PREREQ_SIGACTION): Don't invoke it.
58469         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58470         gl_PREREQ_SIG_HANDLER_H.
58471         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58472         Don't check for sigaction here.
58473
58474 2008-06-23  Bruno Haible  <bruno@clisp.org>
58475
58476         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58477         (install_handlers): Don't set the SA_RESETHAND flag.
58478
58479 2008-06-23  Bruno Haible  <bruno@clisp.org>
58480
58481         * m4/sigaction.m4: Comment fixes.
58482         * lib/signal.in.h: Likewise.
58483
58484 2008-06-23  Eric Blake  <ebb9@byu.net>
58485
58486         Fix typo.
58487         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58488
58489         Avoid SA_ namespace.
58490         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58491         Reported by Ralf Wildenhues.
58492
58493         Avoid test failure due to SA_RESTORER.
58494         * tests/test-sigaction.c (SA_MASK): New macro.
58495         (main): Avoid failing due to extension flags being set.
58496         Reported by Jim Meyering.
58497
58498         Revert use of sig-handler.h in sigprocmask.c.
58499         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58500         it requires the existence of struct sigaction.
58501         * lib/sigprocmask.c (handler_t): Restore typedef.
58502         (rpl_signal, old_handlers): Use local type.
58503
58504 2008-06-22  Bruno Haible  <bruno@clisp.org>
58505
58506         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58507         conditionally.
58508         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58509
58510 2008-06-22  Bruno Haible  <bruno@clisp.org>
58511
58512         * doc/posix-functions/siginterrupt.texi: Move note.
58513
58514         * lib/signal.in.h (SA_RESTART): New macro.
58515         * lib/sigaction.c: Update comment.
58516
58517         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58518
58519         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58520         (gl_PREREQ_SIGPROCMASK): Invoke it.
58521         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58522
58523         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58524
58525         * lib/sigprocmask.c: Update a comment.
58526
58527 2008-06-21  Eric Blake  <ebb9@byu.net>
58528
58529         Use sigaction module rather than signal().
58530         * modules/c-stack (Depends-on): Add sigaction.
58531         * modules/fatal-signal (Depends-on): Likewise.
58532         * modules/nanosleep (Depends-on): Likewise.
58533         * modules/sigprocmask (Files): Add sig-handler.h.
58534         * modules/sigaction (Files): Likewise.
58535         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58536         Eggert.
58537         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58538         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58539         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58540         (init_fatal_signals): Likewise.
58541         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58542         (siginterrupt): Delete fallback.
58543         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58544         instead.
58545         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58546         siginterrupt.
58547
58548         New module sigaction, for mingw.
58549         * modules/sigaction: New module...
58550         * modules/sigaction-tests: ...and its test.
58551         * m4/sigaction.m4: New file.
58552         * lib/sigaction.c: Likewise.
58553         * tests/test-sigaction.c: Likewise.
58554         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58555         * modules/signal (Makefile.am): Likewise.
58556         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58557         needed.
58558         * doc/posix-headers/signal.texi (signal.h): Mention provided
58559         types.
58560         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58561         that sigaction is preferable.
58562         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58563         module.
58564         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58565         sigaction.
58566
58567         Improve robustness of sigprocmask by overriding signal.
58568         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58569         is in use.
58570         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58571         (SIGKILL, SIGSTOP): Provide fallbacks.
58572         (rpl_signal): Implement.
58573         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58574         signal can be called inside handlers.
58575
58576         Fix nanosleep module on mingw.
58577         * modules/nanosleep (Depends-on): Add sys_select.
58578         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58579
58580         Fix licensing of sigprocmask.
58581         * modules/raise (License): Relicense as LGPL.
58582
58583 2008-06-21  Bruno Haible  <bruno@clisp.org>
58584
58585         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58586         result if it contains question marks.
58587         Reported by Michael Geng <linux@michaelgeng.de>.
58588
58589 2008-06-19  Bruno Haible  <bruno@clisp.org>
58590
58591         Fix CVS-ism.
58592         * doc/gnulib.texi: Include updated-stamp.texi.
58593         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58594         (updated-stamp.texi): New rule.
58595         (gnulib.info): Depend on it.
58596         * doc/.gitignore: Add updated-stamp.texi.
58597         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58598
58599 2008-06-19  Bruno Haible  <bruno@clisp.org>
58600
58601         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58602         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58603
58604 2008-06-19  Eric Blake  <ebb9@byu.net>
58605
58606         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58607         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58608         Reported by Stepan Kasal.
58609
58610 2008-06-18  Bruno Haible  <bruno@clisp.org>
58611
58612         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58613         Reported by Eric Blake.
58614
58615 2008-06-18  Eric Blake  <ebb9@byu.net>
58616
58617         Work around cygwin 1.5.25 strsignal bug.
58618         * tests/test-strsignal.c: Allow for const char *.
58619         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58620
58621 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58622
58623         * users.txt: Update URL to article and add author/date
58624         information.
58625
58626 2008-06-17  Bruno Haible  <bruno@clisp.org>
58627
58628         New macro gl_DISABLE_THREADS.
58629         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58630         if the user did not pass --enable-threads or --disable-threads option.
58631         (gl_DISABLE_THREADS): New macro.
58632         Reported by Eric Blake <ebb9@byu.net>.
58633
58634 2008-06-17  Bruno Haible  <bruno@clisp.org>
58635
58636         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58637         when the macro ignores it.
58638         Based on a patch by Eric Blake <ebb9@byu.net>.
58639
58640 2008-06-17  Bruno Haible  <bruno@clisp.org>
58641
58642         * modules/tls (License): Change to LGPLv2+.
58643         Reported by Eric Blake.
58644
58645 2008-06-17  Eric Blake  <ebb9@byu.net>
58646
58647         Simplify c-stack prerequisites.
58648         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58649         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58650         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58651         check.
58652         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58653         <sys/resource.h>.
58654
58655         Move c-stack test into testsuite.
58656         * modules/c-stack-tests: New file.
58657         * lib/c-stack.c [DEBUG]: Move test program...
58658         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58659         fail test if sigaltstack is lacking.
58660         * tests/test-c-stack.sh: New driver file.
58661
58662 2008-06-16  Eric Blake  <ebb9@byu.net>
58663
58664         Use raise module consistently.
58665         * modules/fatal-signal (Depends-on): Add raise.
58666         * modules/sigprocmask (Depends-on): Likewise.
58667         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58668         * lib/sigprocmask.c (sigprocmask): Likewise.
58669         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58670         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58671
58672         Fix compliance bug in sigpending.
58673         * lib/sigprocmask.c (sigpending): Return pending array via
58674         parameter, not return value.
58675
58676 2008-06-14  Eric Blake  <ebb9@byu.net>
58677
58678         Improve obstack-printf test code.
58679         * tests/test-obstack-printf.c (test_function): Fix comment, and
58680         simplify usage of obstack_* in macros.  Add a test for coverage.
58681         Reported by Bruno Haible.
58682
58683 2008-06-14  Bruno Haible  <bruno@clisp.org>
58684
58685         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58686         array size as a constant, not as a const variable.
58687         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58688         AC_USE_SYSTEM_EXTENSIONS.
58689         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58690         Test whether the obstack_printf function actually exists.
58691         * modules/obstack-printf (Depends-on): Add extensions.
58692         (Include): Remove obstack.h.
58693         * modules/obstack-printf-posix (Depends-on): Add extensions.
58694         (Include): Remove obstack.h.
58695
58696 2008-06-13  Eric Blake  <ebb9@byu.net>
58697
58698         Add obstack-printf and obstack-printf-posix modules.
58699         * modules/obstack-printf: New file.
58700         * modules/obstack-printf-posix: Likewise.
58701         * MODULES.html.sh (Misc): Mention them.
58702         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58703         Likewise.
58704         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58705         Likewise.
58706         * modules/stdio (Makefile.am): Accomodate new modules.
58707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58708         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58709         Declare.
58710         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58711         functions.
58712         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58713         (gl_REPLACE_OBSTACK_PRINTF): New macros
58714         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58715         * tests/test-obstack-printf.c: New file.
58716         * modules/obstack-printf-tests: Likewise.
58717         * modules/obstack-printf-posix-tests: Likewise.
58718
58719 2008-06-11  Bruno Haible  <bruno@clisp.org>
58720
58721         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58722         * lib/open.c: Include errno.h.
58723         (open): Fail when attempting to write to a file that has a trailing
58724         slash.
58725         * tests/test-open.c (main): Test against trailing slash bug.
58726         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58727
58728 2008-06-10  Bruno Haible  <bruno@clisp.org>
58729
58730         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58731         for $? to work inside the trap command, with various /bin/sh-s.
58732         * tests/test-vc-list-files-cvs.sh: Likewise.
58733
58734 2008-06-10  Bruno Haible  <bruno@clisp.org>
58735
58736         * lib/acl-internal.h: Don't include gettext.h here.
58737         * lib/set-mode-acl.c: Include gettext.h here.
58738         * lib/copy-acl.c: Likewise.
58739
58740 2008-06-10  Bruno Haible  <bruno@clisp.org>
58741
58742         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58743         * lib/wait-process.c (wait_subprocess): Likewise.
58744         * lib/execute.h (execute): Add termsigp argument.
58745         * lib/execute.c (execute): Likewise.
58746         * lib/csharpcomp.c (compile_csharp_using_pnet,
58747         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58748         * lib/csharpexec.c (execute_csharp_using_pnet,
58749         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58750         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58751         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58752         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58753         is_jikes_present): Update.
58754         * lib/javaexec.c (execute_java_class): Update.
58755         * lib/javaversion.c (execute_and_read_line): Update.
58756         * NEWS: Document the changes.
58757         Reported by Eric Blake.
58758
58759 2008-06-10  Eric Blake  <ebb9@byu.net>
58760
58761         Add missing include.
58762         * tests/test-strstr.c (includes): Add <signal.h>.
58763         * tests/test-strcasestr.c (includes): Likewise.
58764         * tests/test-memmem.c (includes): Likewise.
58765
58766 2008-06-10  Bruno Haible  <bruno@clisp.org>
58767
58768         * lib/wait-process.c (wait_subprocess): Add an assertion.
58769
58770 2008-06-10  Bruno Haible  <bruno@clisp.org>
58771
58772         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58773
58774 2008-06-10  Bruno Haible  <bruno@clisp.org>
58775
58776         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58777         using alarm().
58778         * tests/test-strcasestr.c (main): Likewise.
58779         * tests/test-strstr.c (main): Likewise.
58780
58781 2008-06-09  Bruno Haible  <bruno@clisp.org>
58782
58783         Work around the Solaris 10 ACE ACLs ABI change.
58784         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58785         declare if ACL_NO_TRIVIAL is present.
58786         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58787         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58788         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58789         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58790         define if ACL_NO_TRIVIAL is present.
58791         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58792         and use the current ABI.
58793         (file_has_acl): Use same #if condition as elsewhere.
58794         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58795         in use, and use the current ABI.
58796         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58797         Reported by Jim Meyering.
58798
58799 2008-06-09  Eric Blake  <ebb9@byu.net>
58800
58801         Work around environments that (stupidly) ignore SIGALRM.
58802         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58803         before using alarm().
58804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58805         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58806         Reported by Ian Beckwith <ianb@erislabs.net>.
58807
58808         Produce autobuild blurb earlier in log.
58809         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58810
58811 2008-06-09  Jim Meyering  <meyering@redhat.com>
58812         and Ondřej Vašík  <ovasik@redhat.com>
58813
58814         utimens.c: correct kernel bug work-around
58815         Ondřej Vašík found that the invalid return value of 280 indicates
58816         failure, not success, and the kernel bug we're trying to work
58817         around affects not just the utimensat call, but also the fallback
58818         futimens call.
58819         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58820         not success.
58821         [HAVE_FUTIMENS]: Use the same work-around, here.
58822
58823 2008-06-09  Jim Meyering  <meyering@redhat.com>
58824
58825         add more guards around definition of ACE_-related code
58826         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58827         ALLOW and ACE_OWNER are also defined.
58828
58829 2008-06-08  Bruno Haible  <bruno@clisp.org>
58830
58831         * lib/acl-internal.h: Add me as co-author.
58832         * lib/file-has-acl.c: Likewise.
58833         * lib/set-mode-acl.c: Likewise.
58834         * lib/copy-acl.c: Likewise.
58835
58836 2008-06-08  Bruno Haible  <bruno@clisp.org>
58837
58838         Add support for AIX ACLs.
58839         * lib/acl-internal.h (acl_nontrivial): New declaration.
58840         * lib/file-has-acl.c (acl_nontrivial): New function.
58841         (file_has_acl): Add implementation using AIX 4 ACL API.
58842         * lib/set-mode-acl.c (qset_acl): Likewise.
58843         * lib/copy-acl.c (qcopy_acl): Likewise.
58844
58845 2008-06-08  Bruno Haible  <bruno@clisp.org>
58846
58847         Add support for HP-UX ACLs.
58848         * lib/acl-internal.h (acl_nontrivial): New declaration.
58849         * lib/file-has-acl.c (acl_nontrivial): New function.
58850         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58851         * lib/set-mode-acl.c (qset_acl): Likewise.
58852         * lib/copy-acl.c (qcopy_acl): Likewise.
58853
58854 2008-06-08  Bruno Haible  <bruno@clisp.org>
58855
58856         Add support for Cygwin ACLs.
58857         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58858         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58859         the chmod_or_fchmod call.
58860         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58861
58862 2008-06-08  Bruno Haible  <bruno@clisp.org>
58863
58864         Fix bug with setuid modes in Solaris 10+ code.
58865         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58866         succeeded, when the mode contains some special bits.
58867
58868 2008-06-08  Bruno Haible  <bruno@clisp.org>
58869
58870         Add support for Solaris 7..10 ACLs.
58871         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58872         declarations.
58873         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58874         functions.
58875         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58876         * lib/set-mode-acl.c (qset_acl): Likewise.
58877         * lib/copy-acl.c (qcopy_acl): Likewise.
58878
58879 2008-06-08  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58882         declaration.
58883         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58884         (acl_access_nontrivial): Remove MacOS X case.
58885         (file_has_acl): Use acl_extended_nontrivial.
58886         * lib/copy-acl.c (qcopy_acl): Likewise.
58887
58888 2008-06-08  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58891
58892 2008-06-08  Jim Meyering  <meyering@redhat.com>
58893
58894         * modules/acl (Maintainer): Add Bruno Haible.
58895
58896 2008-06-07  Bruno Haible  <bruno@clisp.org>
58897
58898         Improve support for Tru64 ACLs.
58899         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58900         ACL on OSF/1.
58901
58902 2008-06-07  Bruno Haible  <bruno@clisp.org>
58903
58904         Add support for MacOS X ACLs.
58905         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58906         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58907         * lib/set-mode-acl.c (qset_acl): Likewise.
58908         * lib/copy-acl.c (qcopy_acl): Likewise.
58909
58910 2008-06-07  Bruno Haible  <bruno@clisp.org>
58911
58912         Fix memory leak introduced on 2008-05-22.
58913         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58914         use.
58915
58916 2008-06-07  Bruno Haible  <bruno@clisp.org>
58917
58918         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58919         to construct an empty ACL.
58920
58921 2008-06-07  Bruno Haible  <bruno@clisp.org>
58922
58923         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58924         precisely.
58925         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58926
58927 2008-06-07  Bruno Haible  <bruno@clisp.org>
58928
58929         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58930         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58931
58932 2008-06-07  Bruno Haible  <bruno@clisp.org>
58933
58934         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58935         regardless of POSIX.
58936         * doc/posix-functions/_longjmp.texi: Likewise.
58937         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58938         SystemV platform in this case.
58939
58940 2008-06-06  Eric Blake  <ebb9@byu.net>
58941
58942         Document abort() bugs.
58943         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58944
58945         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58946         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58947         sigsetjmp.
58948         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58949         siglongjmp, but only as a macro.
58950         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58951         is obsolete.
58952         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58953
58954         Tweak documentation to cover cygwin argz bugs.
58955         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58956         argz bug fix; no code change needed since no cygwin releases
58957         occurred between the last fix and the bug being tested.
58958         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58959         module and recently fixed cygwin bugs.
58960         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58961         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58962         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58963         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58964         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58965         Likewise.
58966         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58967         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58968         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58969         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58970         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58971         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58972         Likewise.
58973
58974         Avoid gcc warning on cygwin.
58975         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58976         !ACL_NO_TRIVIAL]: Avoid unused variable.
58977
58978 2008-06-05  Eric Blake  <ebb9@byu.net>
58979
58980         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58981         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58982         git-version-gen fails to come up with a version.
58983         Reported by Simon Josefsson.
58984
58985 2008-06-05  Jim Meyering  <meyering@redhat.com>
58986             Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         utimens.c: work around a probable Linux kernel bug
58989         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58990         appears to be a kernel bug that causes utimensat to return 280
58991         instead of 0, indicating success.
58992
58993 2008-06-04  Bruno Haible  <bruno@clisp.org>
58994
58995         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58996         2008-06-01 commit.
58997
58998 2008-06-04  Bruno Haible  <bruno@clisp.org>
58999
59000         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59001         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59002         (file_has_acl): Use it. Save errno afterwards.
59003         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59004
59005 2008-06-03  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59008         draft code. Simplify #ifs.
59009         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59010         Put Solaris code after POSIX-draft code. Fix comments regarding
59011         Solaris 10, HP-UX. Mention Cygwin.
59012         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59013
59014 2008-06-03  Eric Blake  <ebb9@byu.net>
59015
59016         Provide fallback for older kernels.
59017         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59018         Provide runtime fallback if kernel lacks support.
59019         Reported by Mike Frysinger.
59020
59021 2008-06-02  Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59024         it exists.
59025
59026 2008-06-02  Bruno Haible  <bruno@clisp.org>
59027
59028         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59029         * lib/copy-acl.c (qcopy_acl): Update comment.
59030
59031 2008-06-02  Bruno Haible  <bruno@clisp.org>
59032
59033         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59034         like ACL APIs.
59035
59036 2008-06-02  Bruno Haible  <bruno@clisp.org>
59037
59038         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59039         * tests/test-set-mode-acl.sh: Likewise.
59040         * tests/test-copy-acl.sh: Likewise.
59041         * tests/test-copy-file.sh: Likewise.
59042
59043 2008-06-02  Bruno Haible  <bruno@clisp.org>
59044
59045         * tests/test-file-has-acl.sh: Remove unused code.
59046
59047 2008-06-01  Bruno Haible  <bruno@clisp.org>
59048
59049         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59050         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59051         messages.
59052         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59053
59054 2008-06-01  Bruno Haible  <bruno@clisp.org>
59055
59056         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59057         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59058         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59059         APIs.
59060         * modules/acl-tests (configure.ac): Remove tests now contained in
59061         m4/acl.m4.
59062
59063 2008-06-02  Jim Meyering  <meyering@redhat.com>
59064
59065         announce-gen: use a better key-server host name
59066         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59067         it may be more consistently reliable.  Suggested by Werner Koch
59068         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59069
59070 2008-06-01  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59073         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59074
59075 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59076
59077         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59078
59079 2008-06-01  Bruno Haible  <bruno@clisp.org>
59080
59081         New ACL tests.
59082         * tests/test-file-has-acl.sh: New file.
59083         * tests/test-file-has-acl.c: New file.
59084         * tests/test-set-mode-acl.sh: New file.
59085         * tests/test-set-mode-acl.c: New file.
59086         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59087         * tests/test-copy-acl.c: New file.
59088         * modules/acl-tests: New file, based on modules/copy-file-tests.
59089         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59090         (Depends-on): Add acl-tests.
59091         (configure.ac): Remove checks.
59092         (Makefile.am): Don't create test-sameacls program here any more.
59093
59094 2008-06-01  Bruno Haible  <bruno@clisp.org>
59095
59096         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59097         * tests/test-sameacls.c: Include progname.h.
59098         (main): Invoke set_program_name. Portability fixes for MacOS X,
59099         Solaris, HP-UX.
59100
59101 2008-06-01  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59104         function.
59105         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59106
59107 2008-06-01  Bruno Haible  <bruno@clisp.org>
59108
59109         * modules/rpmatch (Depends-on): Add strdup.
59110
59111 2008-06-01  Bruno Haible  <bruno@clisp.org>
59112
59113         * lib/pipe.c: Include unistd-safer.h.
59114         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59115         * modules/pipe (Depends-on): Add unistd-safer.
59116
59117 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59118
59119         * modules/autobuild (configure.ac): Call AB_INIT.
59120
59121 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59122
59123         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59124         Suggested by Bruno Haible <bruno@clisp.org>.
59125
59126 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59127
59128         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59129         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59130         <bruno@clisp.org>.
59131
59132 2008-05-29  Eric Blake  <ebb9@byu.net>
59133
59134         Prefer new POSIX 200x interfaces over futimesat.
59135         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59136         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59137         when available.
59138         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59139
59140 2008-05-28  Bruno Haible  <bruno@clisp.org>
59141
59142         * modules/stpcpy (License): Change to LGPLv2+.
59143         Requested by David Lutterkort <dlutter@redhat.com>.
59144
59145 2008-05-27  Bruno Haible  <bruno@clisp.org>
59146
59147         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59148         current mingw.
59149         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59150
59151 2008-05-27  Bruno Haible  <bruno@clisp.org>
59152
59153         * modules/iconv_open (Link): New section, from module 'iconv'.
59154         * modules/striconv (Link): Likewise.
59155         * modules/striconveh (Link): Likewise.
59156         * modules/xstriconv (Link): Likewise.
59157         * modules/unicodeio (Link): Likewise.
59158         * modules/propername (Link): Likewise.
59159         Reported by Jim Meyering.
59160
59161 2008-05-26  Jim Meyering  <meyering@redhat.com>
59162
59163         sha256: do not artificially restrict buffer length to be < 2^32
59164         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59165         uint32_t to size_t.
59166         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59167         to match.
59168
59169         avoid unaligned access errors, e.g., on sparc
59170         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59171         direct access through a possibly-unaligned uint64* pointer.
59172         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59173         direct access through a possibly-unaligned uint32* pointer.
59174         Prompted by this patch from Tom "spot" Callaway:
59175         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59176
59177         sha512.c: fix typo in comment
59178         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59179
59180 2008-05-25  Bruno Haible  <bruno@clisp.org>
59181
59182         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59183         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59184         (Makefile.am): Update lib_SOURCES.
59185
59186 2008-05-25  Bruno Haible  <bruno@clisp.org>
59187
59188         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59189
59190 2008-05-25  Jim Meyering  <meyering@redhat.com>
59191
59192         useless-if-before-free: freed expr may have white-space differences
59193         * build-aux/useless-if-before-free: Recognize cases in which the
59194         freed expression differs from the tested one in embedded white
59195         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59196         $1 was used, so we can't make any regexp shy.  Improved tests now
59197         detect this.
59198
59199         useless-if-before-free: accept white space in the expression.
59200         * build-aux/useless-if-before-free: For now, any white space
59201         in the expression must be identical in the free argument.
59202
59203         useless-if-before-free: efficiency tweak
59204         * build-aux/useless-if-before-free: Make the expression-matching
59205         regexp "shy".
59206         Make the *outer* regexp shy, not the expr-matching one.
59207
59208         update code-in-comment to accept cast of free arg
59209         * build-aux/useless-if-before-free: Update regexp.
59210
59211 2008-05-25  Bruno Haible  <bruno@clisp.org>
59212
59213         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59214         * modules/copy-file-tests (Files, Makefile.am): Update.
59215         * tests/test-copy-file.c (func_test_copy): Update.
59216
59217 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59218
59219         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59220
59221 2008-05-23  Bruno Haible  <bruno@clisp.org>
59222
59223         Improve support for ACLs on OSF/1.
59224         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59225         Remove fallback for unknown flavors of ACLs.
59226
59227 2008-05-22  Bruno Haible  <bruno@clisp.org>
59228
59229         Add support for ACLs on OSF/1.
59230         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59231         replacements.
59232         (acl_free_text): New macro fallback.
59233         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59234         acl_free.
59235         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59236         acl_free_text function. Require AC_C_INLINE.
59237
59238 2008-05-22  Bruno Haible  <bruno@clisp.org>
59239
59240         Make copy_acl work on MacOS X 10.5.
59241         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59242         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59243         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59244         If MODE_INSIDE_ACL, don't assume that every system has the same text
59245         representation for ACLs as FreeBSD.
59246         * lib/copy-acl.c (copy_acl): Add support for platforms with
59247         !MODE_INSIDE_ACL.
59248         * lib/file-has-acl.c (file_has_acl): Likewise.
59249         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59250         FreeBSD, MacOS X, or IRIX, respectively.
59251
59252 2008-05-22  Bruno Haible  <bruno@clisp.org>
59253
59254         * lib/acl.h: Don't include <sys/acl.h>.
59255         (GETACLCNT): Move fallback to lib/acl-internal.h.
59256         * lib/acl-internal.h: Include <sys/acl.h> here.
59257         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59258
59259 2008-05-22  Bruno Haible  <bruno@clisp.org>
59260
59261         Split off copy_acl function to separate file.
59262         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59263         * lib/acl.c (copy_acl): Moved function to separate file.
59264         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59265         * modules/acl (Files): Add lib/copy-acl.c.
59266         (Makefiles.am): Augment lib_SOURCES.
59267
59268 2008-05-22  Bruno Haible  <bruno@clisp.org>
59269
59270         * modules/copy-file-tests: New file.
59271         * tests/test-copy-file.sh: New file.
59272         * tests/test-copy-file.c: New file.
59273         * tests/test-copy-file-sameacls.c: New file.
59274
59275 2008-05-22  Eric Blake  <ebb9@byu.net>
59276
59277         Avoid gcc warning.
59278         * tests/test-memcmp.c (main): Pass NULL indirectly.
59279
59280 2008-05-21  Bruno Haible  <bruno@clisp.org>
59281
59282         Add reference doc about ACLs.
59283         * doc/acl-resources.txt: New file.
59284         * doc/acl-cygwin.txt: New file.
59285
59286 2008-05-21  Bruno Haible  <bruno@clisp.org>
59287
59288         Avoid one more warning from gcc.
59289         * lib/vasnprintf.c (IF_LINT): Update comments.
59290         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59291
59292 2008-05-21  Jim Meyering  <meyering@redhat.com>
59293
59294         avoid a warning from gcc
59295         * lib/vasnprintf.c (IF_LINT): Define.
59296         (scale10_round_decimal_long_double):
59297         Use it to avoid a "may be used uninitialized" warning.
59298         (scale10_round_decimal_double): Likewise.
59299
59300 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59301
59302         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59303         declared.
59304
59305 2008-05-20  Bruno Haible  <bruno@clisp.org>
59306
59307         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59308         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59309
59310 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59311
59312         * modules/memcmp-tests: New file.
59313         * tests/test-memcmp.c: New file.
59314
59315 2008-05-19  Bruno Haible  <bruno@clisp.org>
59316
59317         * modules/propername (Notice, configure.ac): Put quoted "..." into
59318         --keyword option.
59319         * lib/propername.h: Update comments accordingly.
59320         Reported by Eric Blake.
59321
59322 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59323
59324         * modules/getpass-gnu (Depends-on): Add fseeko.
59325
59326 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59327
59328         * modules/base64-tests: New file.
59329
59330 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59331
59332         * lib/base64.c (base64_decode_ctx): If a decode context structure
59333         was passed in use it to ignore newlines.  If a context structure
59334         was _not_ passed in, continue to treat newlines as garbage (this
59335         is the historical behavior).  Formerly base64_decode.
59336         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59337         takes a decode context structure.
59338         * lib/base64.h (base64_decode): Macro for four-argument calls.
59339         (base64_decode_alloc): Likewise.
59340         * lib/base64.c (base64_decode_ctx): If a decode context structure
59341         was passed in use it to ignore newlines.  If a context structure
59342         was _not_ passed in, continue to treat newlines as garbage (this
59343         is the historical behavior).  Formerly base64_decode.
59344         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59345         takes a decode context structure.
59346         * lib/base64.h (base64_decode): Macro for four-argument calls.
59347         (base64_decode_alloc): Likewise.
59348
59349 2008-05-19  Jim Meyering  <meyering@redhat.com>
59350
59351         avoid a warning from gcc
59352         * lib/trim.c (IF_LINT): Define.
59353         (trim2): Use it to avoid a "may be used uninitialized" warning.
59354
59355         Fix doc typo.
59356         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59357
59358 2008-05-19  Bruno Haible  <bruno@clisp.org>
59359
59360         * doc/glibc-functions/getpass.texi: Document limits of other
59361         implementations.
59362
59363 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59364             Bruno Haible <bruno@clisp.org>
59365
59366         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59367
59368 2008-05-18  Bruno Haible  <bruno@clisp.org>
59369
59370         * modules/propername: New file, from GNU gettext.
59371         * lib/propername.h: New file, from GNU gettext.
59372         * lib/propername.c: New file, from GNU gettext.
59373         * MODULES.html.sh (Internationalization functions): Add propername.
59374
59375 2008-05-16  Jim Meyering  <meyering@redhat.com>
59376             Bruno Haible  <bruno@clisp.org>
59377
59378         Avoid some warnings from "gcc -Wshadow".
59379         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59380
59381 2008-05-15  Eric Blake  <ebb9@byu.net>
59382
59383         Extend previous patch to cygwin 1.7.0.
59384         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59385         fast implementation in cygwin >= 1.7.0.
59386         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59388
59389 2008-05-15  Bruno Haible  <bruno@clisp.org>
59390
59391         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59392         implementation in glibc >= 2.9.
59393         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59395
59396 2008-05-15  Bruno Haible  <bruno@clisp.org>
59397
59398         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59399         (Unicode string functions): Add unilbrk/*.
59400         Reported by Karl Berry.
59401
59402 2008-05-15  Eric Blake  <ebb9@byu.net>
59403
59404         Fix violation of <stdbool.h> replacement in regex.
59405         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59406         * lib/regexec.c (re_search_internal): Likewise.
59407         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59408
59409 2008-05-15  Jim Meyering  <meyering@redhat.com>
59410
59411         avoid distracting test output when git or cvs is not found
59412         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59413         * tests/test-vc-list-files-git.sh: Likewise.
59414
59415 2008-05-15  Eric Blake  <ebb9@byu.net>
59416
59417         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59418         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59419         glibc version.
59420         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59421         * doc/posix-functions/strstr.texi (strstr): Likewise.
59422         * lib/str-two-way.h (MAX): Sychronize with glibc.
59423
59424 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59425
59426         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59427         opr.ctx_type.
59428         (calc_first): Initialize constraint field.
59429         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59430         Fix grammar.
59431         (duplicate_node): Merge constraint field for all node types.
59432         (calc_eclosure_iter): Look at constraint field for all node types.
59433         * lib/regex_internal.c (create_cd_newstate): Don't look at
59434         opr.ctx_type.
59435
59436 2008-05-14  Bruno Haible  <bruno@clisp.org>
59437
59438         Help GCC to do better code generation.
59439         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59440         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59441         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59442         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59443         Declare with attribute 'malloc' if supported.
59444
59445 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59446
59447         use "echo STR|wc -c" rather than unportable "expr length STR"
59448         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59449         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59450
59451 2008-05-14  Jim Meyering  <meyering@redhat.com>
59452
59453         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59454         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59455         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59456         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59457         via Collin Lasse.
59458
59459 2008-05-14  Eric Blake  <ebb9@byu.net>
59460
59461         Avoid quadratic growth in gl_LIBSOURCES.
59462         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59463         Suggested by Bruno Haible.
59464
59465         Test xmemdup0.
59466         * modules/xmemdup0-tests: New file.
59467         * tests/test-xmemdup0.c: Likewise.
59468
59469 2008-05-13  Eric Blake  <ebb9@byu.net>
59470
59471         Split xmemdup0 into its own module.
59472         * modules/xmemdup0: New file.
59473         * lib/xmemdup0.h: Likewise.
59474         * lib/xmemdup0.c: Likewise.
59475         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59476         * lib/xalloc.h (xmemdup0): Remove.
59477         * lib/xmalloc.c (xmemdup0): Likewise.
59478
59479 2008-05-13  Eric Blake  <ebb9@byu.net>
59480             Bruno Haible  <bruno@clisp.org>
59481
59482         Reduce number of forks required during autoconf.
59483         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59484         and gl_LIBSOURCES_DIR.
59485         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59486         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59487         m4_syscmd per file.
59488         <m4_foreach_w>: Move...
59489         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59490
59491 2008-05-13  Eric Blake  <ebb9@byu.net>
59492
59493         * gnulib-tool: Fix various comment typos.
59494
59495 2008-05-12  Bruno Haible  <bruno@clisp.org>
59496
59497         Tailor the linebreaking algorithm.
59498         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59499
59500 2008-05-12  Bruno Haible  <bruno@clisp.org>
59501
59502         Update to Unicode 5.0.0.
59503         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59504         LBP_JV, LBP_JT. Redistribute values.
59505         (unilbrk_table): Change size.
59506         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59507         Unicode TR#14 rev. 22.
59508         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59509         LBP_JV, LBP_JT. Redistribute values.
59510         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59511         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59512         Update.
59513         * lib/unilbrk/lbrkprop1.h: Regenerated.
59514         * lib/unilbrk/lbrkprop2.h: Regenerated.
59515         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59516         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59517         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59518         Likewise.
59519         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59520         Likewise.
59521         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59522         result.
59523         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59524         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59525         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59526         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59527         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59528         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59529
59530 2008-05-11  Bruno Haible  <bruno@clisp.org>
59531
59532         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59533
59534 2008-05-11  Bruno Haible  <bruno@clisp.org>
59535
59536         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59537         * modules/unilbrk/gen-lbrk: New file.
59538
59539 2008-05-11  Bruno Haible  <bruno@clisp.org>
59540
59541         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59542         * m4/sha512.m4 (gl_SHA512): Likewise.
59543
59544 2008-05-11  Jim Meyering  <meyering@redhat.com>
59545
59546         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59547         * modules/crypto/sha256: New file.
59548         * modules/crypto/sha512: Likewise.
59549         * lib/sha256.c: Likewise.
59550         * lib/sha256.h: Likewise.
59551         * lib/sha512.c: Likewise.
59552         * lib/sha512.h: Likewise.
59553         * lib/u64.h: Likewise.
59554         * m4/sha256.m4: Likewise.
59555         * m4/sha512.m4: Likewise.
59556         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59557
59558 2008-05-10  Bruno Haible  <bruno@clisp.org>
59559
59560         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59561         (Input/Output <stdio.h>): Add xprintf.
59562         (Signal handling <signal.h>): Add strsignal.
59563         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59564         (Core language properties): Add func.
59565         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59566         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59567         strings.
59568         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59569         (Input/output): New section.
59570         (File system functions): Add openat-die, stat-macros.
59571         (Networking functions): Add sockets.
59572         (Unicode string functions): Add unictype/*.
59573         (Support for building libraries and executables): Add gperf.
59574         (Support for building documentation): Add agpl-3.0.
59575         (Misc): Add nocrash.
59576
59577 2008-05-10  Bruno Haible  <bruno@clisp.org>
59578
59579         * modules/unictype/gen-ctype: New file.
59580
59581 2008-05-10  Jim Meyering  <meyering@redhat.com>
59582
59583         Make chdir-safer.c more efficient on a system with no symlinks.
59584         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59585         also if ELOOP is zero.  Suggested by Bruno Haible.
59586
59587         Make chdir-safer.c slightly safer.
59588         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59589         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59590
59591         Avoid compile failure on systems without ELOOP (like mingw).
59592         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59593         Reported by Bruno Haible.
59594
59595 2008-05-10  Bruno Haible  <bruno@clisp.org>
59596
59597         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59598         (is_utf8_encoding): Use a case-insensitive comparison.
59599         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59600         streq.
59601
59602 2008-05-10  Bruno Haible  <bruno@clisp.org>
59603
59604         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59605         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59606         * lib/unilbrk/ulc-common.h (iconv_string_length,
59607         iconv_string_keeping_offsets): Remove declarations.
59608         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59609         Don't include <iconv.h>, streq.h, xsize.h.
59610         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59611         conversion.
59612         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59613         <iconv.h>, streq.h, xsize.h.
59614         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59615         conversion.
59616         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59617         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59618         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59619         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59620
59621 2008-05-10  Bruno Haible  <bruno@clisp.org>
59622
59623         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59624         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59625
59626         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59627         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59628
59629         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59630         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59631
59632         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59633         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59634
59635         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59636         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59637
59638         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59639         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59640
59641         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59642         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59643
59644         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59645         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59646
59647 2008-05-10  Bruno Haible  <bruno@clisp.org>
59648
59649         Split up 'linebreak' module.
59650         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59651         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59652         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59653         modifications.
59654         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59655         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59656         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59657         lib/linebreak.c.
59658         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59659         lib/linebreak.c.
59660         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59661         lib/linebreak.c.
59662         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59663         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59664         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59665         lib/linebreak.c.
59666         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59667         lib/linebreak.c.
59668         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59669         lib/linebreak.c.
59670         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59671         lib/linebreak.c.
59672         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59673         lib/linebreak.c.
59674         * modules/unilbrk/base: New file.
59675         * modules/unilbrk/tables: New file.
59676         * modules/unilbrk/u8-possible-linebreaks: New file.
59677         * modules/unilbrk/u16-possible-linebreaks: New file.
59678         * modules/unilbrk/u32-possible-linebreaks: New file.
59679         * modules/unilbrk/ulc-common: New file.
59680         * modules/unilbrk/ulc-possible-linebreaks: New file.
59681         * modules/unilbrk/u8-width-linebreaks: New file.
59682         * modules/unilbrk/u16-width-linebreaks: New file.
59683         * modules/unilbrk/u32-width-linebreaks: New file.
59684         * modules/unilbrk/ulc-width-linebreaks: New file.
59685         * lib/linebreak.h: Remove file.
59686         * lib/linebreak.c: Remove file.
59687         * m4/linebreak.m4: Remove file.
59688         * modules/linebreak: Remove file.
59689         * NEWS: Mention the changes.
59690
59691 2008-05-09  Eric Blake  <ebb9@byu.net>
59692
59693         Add xmemdup0.
59694         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59695         implementation.
59696         * lib/xmalloc.c (xmemdup0): New C implementation.
59697
59698 2008-05-08  Bruno Haible  <bruno@clisp.org>
59699
59700         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59701
59702 2008-05-07  Eric Blake  <ebb9@byu.net>
59703
59704         Support cross-compilation of <wctype.h>.
59705         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59706         AC_CACHE_CHECK.
59707
59708 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59709
59710         * build-aux/vc-list-files: Add support for bzr.
59711
59712 2008-05-03  Jim Meyering  <meyering@redhat.com>
59713
59714         avoid failed assertion with tight malloc
59715         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59716
59717 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59718
59719         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59720         are needed from arpa/inet.h.
59721         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59722         Reported by Bruno Haible.
59723
59724 2008-05-02  Jim Meyering  <meyering@redhat.com>
59725
59726         avoid compilation error on FreeBSD 6
59727         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59728
59729 2008-05-01  Jim Meyering  <meyering@redhat.com>
59730
59731         useless-if-before-free: correct --help's exit status description
59732         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59733         for one or more matches, etc.  Reported by Bruno Haible.
59734
59735         vc-list-files: make the stand-alone gnulib test work
59736         * modules/vc-list-files-tests (configure.ac):
59737         Define and AC_SUBST abs_aux_dir.
59738         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59739         $(abs_top_srcdir) to each script and having each of them
59740         duplicate the work of setting PATH, set PATH here, using
59741         the new variable, abs_aux_dir instead.
59742         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59743         * tests/test-vc-list-files-git.sh: Likewise.
59744         Reported by Bruno Haible.
59745
59746 2008-05-01  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59749         reallocation. Rename 'done' to 'found_delimiter'.
59750
59751 2008-05-01  Jim Meyering  <meyering@redhat.com>
59752
59753         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59754         * build-aux/vc-list-files: Use `...`, not $(...).
59755
59756 2008-04-30  Jim Meyering  <meyering@redhat.com>
59757
59758         add tests for vc-list-files
59759         * modules/vc-list-files-tests: New module.
59760         * tests/test-vc-list-files-cvs.sh: New file.
59761         * tests/test-vc-list-files-git.sh: New file.
59762
59763         avoid a warning from gcc
59764         * lib/getndelim2.c (IF_LINT): Define.
59765         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59766
59767         vc-list-files: work properly with build-aux/cvsu, too
59768         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59769         to all cvs-based clauses.
59770
59771         vc-list-files: work properly in the CVS+awk case, too
59772         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59773
59774         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59775         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59776         take more than one file argument, so .  Add quotes, just in case $dir
59777         ever contains a shell meta-character.  Prompted by Soren Hansen in
59778         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59779
59780 2008-04-29  Eric Blake  <ebb9@byu.net>
59781
59782         Optimize getndelim2 to use block operations when possible.
59783         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59784         freadseek, and memchr2.
59785         * lib/getndelim2.c (getndelim2): Use them for block reads.
59786
59787 2008-04-29  Bruno Haible  <bruno@clisp.org>
59788
59789         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59790         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59791         * modules/inet_ntop (Depends-on): Add extensions.
59792         * modules/inet_pton (Depends-on): Likewise.
59793         Reported by Simon Josefsson.
59794
59795 2008-04-29  Jim Meyering  <meyering@redhat.com>
59796
59797         When the is more than one match in a block, match all of them.
59798         * build-aux/useless-if-before-free: Iterate through each block
59799         until there are no more matches.
59800
59801         Fix broken useless-if-before-free script.
59802         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59803         the expression to match cast of argument to free-like function.
59804
59805 2008-04-29  Eric Blake  <ebb9@byu.net>
59806
59807         Use new header.
59808         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59809
59810 2008-04-29  Jim Meyering  <meyering@redhat.com>
59811
59812         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59813         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59814         by gnulib to exist and to declare e.g., inet_ntop.
59815         Don't include "inet_ntop.h", now removed.
59816
59817         * m4/arpa_inet_h.m4: Remove trailing blanks.
59818
59819 2008-04-29  Eric Blake  <ebb9@byu.net>
59820
59821         Silence valgrind on safe reads beyond potential array bounds.
59822         * lib/rawmemchr.valgrind: New file.
59823         * lib/strchrnul.valgrind: Likewise.
59824         * modules/rawmemchr (Files): Distribute new file.
59825         * modules/strchrnul (Files): Likewise.
59826         Suggested by Bruno Haible.
59827
59828 2008-04-29  Bruno Haible  <bruno@clisp.org>
59829
59830         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59831         (inet_ntop, inet_pton): Change portability warning's wording.
59832         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59833         Invoke gl_CHECK_NEXT_HEADERS.
59834         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59835         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59836         set ARPA_INET_H.
59837         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59838         * modules/arpa_inet (Description): No longer only for systems that
59839         lack it.
59840         (Depends-on): Add include_next.
59841         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59842         HAVE_ARPA_INET_H.
59843
59844 2008-04-29  Jim Meyering  <meyering@redhat.com>
59845
59846         * modules/mkdir (License): Re-license as LGPLv2+.
59847
59848 2008-04-29  Bruno Haible  <bruno@clisp.org>
59849
59850         * modules/rawmemchr (Maintainer): Set to Eric.
59851         * modules/strchrnul (Maintainer): Likewise.
59852
59853 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59854
59855         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59856         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59857
59858         * modules/arpa_inet (arpa/inet.h): Use them.
59859
59860 2008-04-28  Eric Blake  <ebb9@byu.net>
59861
59862         Test getndelim2.
59863         * modules/getndelim2-tests: New file.
59864         * tests/test-getndelim2.c: Likewise.
59865         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59866         stream.
59867         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59868
59869         * MODULES.html.sh: Document new module.
59870
59871 2008-04-20  Bruno Haible  <bruno@clisp.org>
59872
59873         * lib/c-stack.c (die): Use raise.
59874         * modules/c-stack (Depends-on): Add raise.
59875
59876 2008-04-28  Bruno Haible  <bruno@clisp.org>
59877
59878         Expect rpmatch to be declared.
59879         * lib/yesno.c (rpmatch): Remove declaration.
59880
59881         Declare rpmatch.
59882         * lib/stdlib.in.h (rpmatch): New declaration.
59883         * lib/rpmatch.c: Include <stdlib.h> first.
59884         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59885         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59887         HAVE_RPMATCH.
59888         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59889         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59890         (Include): Set to <stdlib.h>.
59891         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59892         HAVE_RPMATCH.
59893         * NEWS: Document the change.
59894
59895 2008-04-28  Bruno Haible  <bruno@clisp.org>
59896
59897         Change rpmatch to use nl_langinfo when appropriate.
59898         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59899         (N_): New macro.
59900         (localized_pattern): New function/macro.
59901         (try): Remove match, nomatch arguments. Copy the pattern into safe
59902         memory before caching it.
59903         (rpmatch): Use localized_pattern. Add translator comments.
59904         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59905         Suggested by Eric Blake.
59906         * modules/rpmatch (Depends-on): Add stdbool.
59907
59908 2008-04-28  Eric Blake  <ebb9@byu.net>
59909
59910         Add rawmemchr module, matching glibc.
59911         * modules/string (Makefile.am): New indicator.
59912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59913         * lib/string.in.h (rawmemchr): Declare when appropriate.
59914         * modules/rawmemchr: New file.
59915         * m4/rawmemchr.m4: Likewise.
59916         * lib/rawmemchr.c: Likewise.
59917         * modules/rawmemchr-tests: Likewise.
59918         * tests/test-rawmemchr.c: Likewise.
59919         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59920         module.
59921         * modules/strchrnul (Depends-on): Add rawmemchr.
59922         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59923
59924         Whitespace cleanup.
59925         * tests/test-strchrnul.c: Reindent.
59926         * lib/strchrnul.c: Likewise.
59927
59928         Optimize and test strchrnul.
59929         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59930         * modules/strchrnul-tests: New file.
59931         * tests/test-strchrnul.c: Likewise.
59932
59933         Remove intprops dependency.
59934         * modules/memchr (Depends-on): Remove intprops.
59935         * modules/memrchr (Depends-on): Likewise.
59936         * modules/memchr2 (Depends-on): Likewise.
59937         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59938         * lib/memrchr.c (__memrchr): Likewise.
59939         * lib/memrchr2.c (memchr2): Likewise.
59940         Reported by Simon Josefsson.
59941
59942 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59943
59944         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59945         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59946
59947 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59948
59949         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59950
59951         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59952
59953         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59954
59955         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59956         declarations.
59957         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59958
59959         * m4/inet_pton.m4: Don't check for header files.
59960
59961         * m4/inet_ntop.m4: Don't check for header files.
59962
59963 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59964
59965         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59966         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59967         trigger for cygwin).
59968         Reported by Bruno Haible  <bruno@clisp.org>.
59969
59970 2008-04-28  Bruno Haible  <bruno@clisp.org>
59971
59972         * doc/posix-functions/strdup.texi: Mention mingw problem.
59973
59974 2008-04-27  Bruno Haible  <bruno@clisp.org>
59975
59976         * modules/stat-time-tests (Depends-on): Add sleep.
59977         * tests/test-stat-time.c (force_unlink): New function.
59978         (cleanup): Use it.
59979         (test_mtime): Remove the ctime related tests.
59980         (test_ctime): New function, containing the ctime related tests.
59981         (main): Call test_ctime, except on native Windows platforms.
59982
59983 2008-04-27  Bruno Haible  <bruno@clisp.org>
59984
59985         * lib/rpmatch.c (rpmatch): Add some comments.
59986         Reported by James Youngman <jay@gnu.org>.
59987
59988 2008-04-27  Bruno Haible  <bruno@clisp.org>
59989
59990         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59991         quiet NaNs.
59992
59993 2008-04-27  Bruno Haible  <bruno@clisp.org>
59994
59995         Make test-yesno.sh work on mingw.
59996         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59997         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59998         (main): Set stdin to binary mode.
59999         * modules/yesno-tests (Depends-on): Add binary-io.
60000
60001 2008-04-27  Bruno Haible  <bruno@clisp.org>
60002
60003         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60004         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60005         argument that lie outside the IEEE 854 domain.
60006         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60007         (gl_ISFINITE): Use it.
60008         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60009
60010 2008-04-27  Bruno Haible  <bruno@clisp.org>
60011
60012         Allow local renaming in config.h.
60013         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60014
60015 2008-04-27  Bruno Haible  <bruno@clisp.org>
60016
60017         * lib/memchr.c (__memchr): Change type of 'i'.
60018         * lib/memchr2.c (memchr2): Likewise.
60019
60020 2008-04-26  Eric Blake  <ebb9@byu.net>
60021         and Bruno Haible  <bruno@clisp.org>
60022
60023         Optimize and test memrchr.
60024         * modules/memrchr (Depends-on): Add intprops.
60025         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60026         * modules/memrchr-tests: New file.
60027         * tests/test-memrchr.c: New file.
60028
60029 2008-04-26  Bruno Haible  <bruno@clisp.org>
60030
60031         Add tentative support for DragonFly BSD.
60032         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60033         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60034         fp.
60035         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60036         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60037         * lib/fpurge.c (fpurge): Likewise.
60038         * lib/freadable.c (freaadable): Likewise.
60039         * lib/freadahead.c (freadahead): Likewise.
60040         * lib/freading.c (freading): Likewise.
60041         * lib/freadptr.c (freadptr): Likewise.
60042         * lib/freadseek.c (freadptrinc): Likewise.
60043         * lib/fseeko.c (fseeko): Likewise.
60044         * lib/fseterr.c (fseterr): Likewise.
60045         * lib/fwritable.c (fwritable): Likewise.
60046         * lib/fwriting.c (fwriting): Likewise.
60047
60048 2008-04-26  Bruno Haible  <bruno@clisp.org>
60049
60050         * lib/stdio-impl.h: New file.
60051         * lib/fbufmode.c: Include stdio-impl.h.
60052         (fbufmode): Use fp_, remove redundant #defines.
60053         * lib/fflush.c: Include stdio-impl.h.
60054         (clear_ungetc_buffer): Remove redundant #defines.
60055         * lib/fpurge.c: Include stdio-impl.h.
60056         (fpurge): Remove redundant #defines.
60057         * lib/freadable.c: Include stdio-impl.h.
60058         (freadable): Remove redundant #defines.
60059         * lib/freadahead.c: Include stdio-impl.h.
60060         (freadahead): Remove redundant #defines.
60061         * lib/freading.c: Include stdio-impl.h.
60062         (freading): Remove redundant #defines.
60063         * lib/freadptr.c: Include stdio-impl.h.
60064         (freadptr): Remove redundant #defines.
60065         * lib/freadseek.c: Include stdio-impl.h.
60066         (freadptrinc): Remove redundant #defines.
60067         * lib/fseeko.c: Include stdio-impl.h.
60068         (rpl_fseeko): Remove redundant #defines.
60069         * lib/fseterr.c: Include stdio-impl.h.
60070         (fseterr): Remove redundant #defines.
60071         * lib/fwritable.c: Include stdio-impl.h.
60072         (fwritable: Remove redundant #defines.
60073         * lib/fwriting.c: Include stdio-impl.h.
60074         (fwriting): Remove redundant #defines.
60075         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60076         * modules/fflush (Files): Likewise.
60077         * modules/fpurge (Files): Likewise.
60078         * modules/freadable (Files): Likewise.
60079         * modules/freadahead (Files): Likewise.
60080         * modules/freading (Files): Likewise.
60081         * modules/freadptr (Files): Likewise.
60082         * modules/freadseek (Files): Likewise.
60083         * modules/fseeko (Files): Likewise.
60084         * modules/fseterr (Files): Likewise.
60085         * modules/fwritable (Files): Likewise.
60086         * modules/fwriting (Files): Likewise.
60087
60088 2008-04-26  Bruno Haible  <bruno@clisp.org>
60089
60090         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60091         restore_seek_optimization, update_fpos_cache): New functions, extracted
60092         from rpl_fflush.
60093         (rpl_fflush): Use them.
60094         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60095         (gl_REPLACE_FFLUSH): Use it.
60096
60097 2008-04-26  Bruno Haible  <bruno@clisp.org>
60098
60099         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60100         on Solaris.
60101         * tests/test-xstrtoimax.sh: Likewise.
60102         * tests/test-xstrtoumax.sh: Likewise.
60103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60104
60105 2008-04-26  Bruno Haible  <bruno@clisp.org>
60106
60107         * modules/memchr-tests: New file.
60108         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60109
60110 2008-04-26  Eric Blake  <ebb9@byu.net>
60111             Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/memchr.c: Include intprops.h.
60114         (__memchr): Optimize parallel detection of matching bytes. Rename local
60115         variables. Add explanatory comments.
60116
60117 2008-04-26  Bruno Haible  <bruno@clisp.org>
60118
60119         Fix module 'memchr', broken since 2000-10-28.
60120         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60121
60122 2008-04-26  Bruno Haible  <bruno@clisp.org>
60123
60124         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60125         comments.
60126
60127 2008-04-25  Eric Blake  <ebb9@byu.net>
60128
60129         Use native fstatat on cygwin 1.7.0.
60130         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60131         first.
60132
60133 2008-04-23  Eric Blake  <ebb9@byu.net>
60134
60135         Improve memchr2 performance.
60136         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60137         NUL bytes.
60138         * modules/memchr2 (Depends-on): Use intprops.h.
60139
60140 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60141
60142         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60143         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60144         <blp@cs.stanford.edu>.
60145
60146 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60147
60148         * lib/arpa_inet.in.h: New file.
60149
60150         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60151         (Makefile.am): Sed in substitute header file.
60152
60153         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60154         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60155
60156         * modules/inet_ntop (configure.ac): Use
60157         gl_ARPA_INET_MODULE_INDICATOR.
60158
60159         * modules/inet_pton (configure.ac): Use
60160         gl_ARPA_INET_MODULE_INDICATOR.
60161
60162 2008-04-22  Jim Meyering  <meyering@redhat.com>
60163
60164         * modules/verify (License): Re-license as LGPLv2+.
60165
60166 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60167
60168         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60169         parameter to void* as per POSIX standard (MinGW uses char*).
60170
60171 2008-04-21  Bruno Haible  <bruno@clisp.org>
60172
60173         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60174         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60175         Define to replacements if REPLACE_ISWCNTRL is 1.
60176         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60177         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60178         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60179         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60180         what it fixes.
60181         * doc/posix-functions/iswalpha.texi: Likewise.
60182         * doc/posix-functions/iswblank.texi: Likewise.
60183         * doc/posix-functions/iswcntrl.texi: Likewise.
60184         * doc/posix-functions/iswdigit.texi: Likewise.
60185         * doc/posix-functions/iswgraph.texi: Likewise.
60186         * doc/posix-functions/iswlower.texi: Likewise.
60187         * doc/posix-functions/iswprint.texi: Likewise.
60188         * doc/posix-functions/iswpunct.texi: Likewise.
60189         * doc/posix-functions/iswspace.texi: Likewise.
60190         * doc/posix-functions/iswupper.texi: Likewise.
60191         * doc/posix-functions/iswxdigit.texi: Likewise.
60192         Reported by Alain Guibert.
60193
60194 2008-04-21  Bruno Haible  <bruno@clisp.org>
60195
60196         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60197         Patch by Alain Guibert.
60198
60199 2008-04-21  Bruno Haible  <bruno@clisp.org>
60200
60201         Fix test failures on mingw.
60202         * tests/test-xstrtol.c (print_no_progname): New function.
60203         (main): Install it in error_print_progname hook.
60204         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60205         * tests/test-xstrtoimax.sh: Likewise.
60206         * tests/test-xstrtoumax.sh: Likewise.
60207
60208 2008-04-21  Bruno Haible  <bruno@clisp.org>
60209
60210         Fix test failure on mingw.
60211         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60212
60213 2008-04-21  Bruno Haible  <bruno@clisp.org>
60214
60215         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60216         Actually assign a value.
60217
60218 2008-04-20  Bruno Haible  <bruno@clisp.org>
60219
60220         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60221         take 2.
60222         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60223         'canonicalize-lgpl' module is also used.
60224         * lib/canonicalize-lgpl.c: Undo last change.
60225         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60226
60227 2008-04-20  Bruno Haible  <bruno@clisp.org>
60228
60229         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60230         config.h. Provide _mkdir based fallback for mingw.
60231         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60232         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60233         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60234         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60235         rather than defining mkdir in config.h.
60236         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60237         (gl_SYS_STAT_H_DEFAULTS): New macro.
60238         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60239         HAVE_IO_H any more.
60240         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60241         HAVE_DECL_MKDIR and HAVE_IO_H.
60242
60243 2008-04-20  Bruno Haible  <bruno@clisp.org>
60244
60245         * lib/isapipe.c: Port to native Windows platforms.
60246
60247 2008-04-20  Bruno Haible  <bruno@clisp.org>
60248
60249         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60250
60251 2008-04-21  Eric Blake  <ebb9@byu.net>
60252
60253         Work around preprocessors that don't handle UINTMAX_MAX.
60254         * lib/memchr2.c (memchr2): Avoid embedded #if.
60255         Reported by Alain Guibert, fix suggested by Bruno Haible.
60256
60257 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60258
60259         * doc/posix-functions/strftime.texi (strftime): Explain better
60260         Windows incompatibility.  Suggested by Micah Cowan
60261         <micah@cowan.name>.
60262
60263 2008-04-20  Bruno Haible  <bruno@clisp.org>
60264
60265         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60266         unistr/u8-mblen.
60267
60268 2008-04-20  Bruno Haible  <bruno@clisp.org>
60269
60270         Fix test failure on platforms with non-GNU iconv.
60271         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60272         (U_TO_U8): Use it, rather than u16_to_u8.
60273         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60274         units at the end of the input string.
60275         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60276
60277 2008-04-20  Bruno Haible  <bruno@clisp.org>
60278
60279         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60280         when the resulting length is 0.
60281         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60282
60283 2008-04-20  Bruno Haible  <bruno@clisp.org>
60284
60285         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60286         works.
60287         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60288
60289 2008-04-20  Bruno Haible  <bruno@clisp.org>
60290
60291         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60292         * modules/tsearch-tests (configure.ac): Test for initstate function.
60293
60294 2008-04-20  Bruno Haible  <bruno@clisp.org>
60295
60296         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60297         for nlink_t if missing.
60298         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60299
60300 2008-04-19  Bruno Haible  <bruno@clisp.org>
60301
60302         Work around snprintf bug on Linux libc5.
60303         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60305         gl_SNPRINTF_SIZE1.
60306         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60307         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60308         that test failed.
60309         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60310         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60311         * modules/snprintf (Files): Add m4/printf.m4.
60312         * modules/vsnprintf (Files): Likewise.
60313         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60314         * doc/posix-functions/vsnprintf.texi: Likewise.
60315
60316 2008-04-19  Bruno Haible  <bruno@clisp.org>
60317
60318         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60319         from 0.0058 to less than 10^-7.
60320
60321 2008-04-19  Bruno Haible  <bruno@clisp.org>
60322
60323         Fix rounding when a precision is given.
60324         * lib/vasnprintf.c (is_borderline): New function.
60325         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60326         9...9x.
60327         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60328         %e, %g.
60329         * tests/test-vasprintf-posix.c (test_function): Likewise.
60330         * tests/test-snprintf-posix.h (test_function): Likewise.
60331         * tests/test-sprintf-posix.h (test_function): Likewise.
60332         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60333         * tests/test-printf-posix.h (test_function): Likewise.
60334         * tests/test-printf-posix.output: Update.
60335         Reported by John Darrington <john@darrington.wattle.id.au> via
60336         Ben Pfaff <blp@cs.stanford.edu>.
60337
60338 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60339
60340         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60341         Suggested by Bruno Haible <bruno@clisp.org>.
60342
60343 2008-04-17  Bruno Haible  <bruno@clisp.org>
60344
60345         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60346         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60347         implementation.
60348         Patch by Bruce Merry <bmerry@gmail.com>.
60349
60350 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60351
60352         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60353         doesn't work under Windows.
60354
60355 2008-04-16  Bruno Haible  <bruno@clisp.org>
60356
60357         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60358         New macros.
60359         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60360         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60361         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60362         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60363         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60364         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60365         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60366         macros.
60367         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60368         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60369         Northern Sotho, Uighur.
60370
60371 2008-04-16  Bruno Haible  <bruno@clisp.org>
60372
60373         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60374         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60375         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60376         Reported by Daniel Bergström <daniel@octocode.com>.
60377
60378 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60379             Bruno Haible  <bruno@clisp.org>
60380
60381         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60382         function.
60383         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60384         New functions, mostly extracted from gl_locale_name_default.
60385         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60386
60387 2008-04-16  Eric Blake  <ebb9@byu.net>
60388
60389         Adjust strtod detection to catch glibc 2.7 bug.
60390         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60391         Reported by John Gatewood Ham.
60392
60393 2008-04-16  Bruno Haible  <bruno@clisp.org>
60394
60395         Add tentative support for Linux libc5.
60396         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60397         * lib/fpurge.c (fpurge): Likewise.
60398         * lib/freadable.c (freadable): Likewise.
60399         * lib/freadahead.c (freadahead): Likewise.
60400         * lib/freading.c (freading): Likewise.
60401         * lib/freadptr.c (freadptr): Likewise.
60402         * lib/freadseek.c (freadptrinc): Likewise.
60403         * lib/fseeko.c (rpl_fseeko): Likewise.
60404         * lib/fseterr.c (fseterr): Likewise.
60405         * lib/fwritable.c (fwritable): Likewise.
60406         * lib/fwriting.c (fwriting): Likewise.
60407         Reported by Alain Guibert <alguibert+bts@free.fr>.
60408
60409 2008-04-15  Bruno Haible  <bruno@clisp.org>
60410
60411         * modules/mathl (configure.ac): Define module indicator.
60412
60413 2008-04-15  Bruno Haible  <bruno@clisp.org>
60414
60415         * lib/logl.c (logl): Remove unused variables.
60416
60417 2008-04-15  Bruno Haible  <bruno@clisp.org>
60418
60419         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60420         fails.
60421
60422 2008-04-15  Bruno Haible  <bruno@clisp.org>
60423
60424         * lib/trim.c (trim2): Fix argument of isspace() macro.
60425
60426 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60427
60428         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60429         to 0.
60430         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60431
60432 2008-04-14  Bruno Haible  <bruno@clisp.org>
60433
60434         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60435         AC_LANG_PROGRAM argument.
60436         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60437         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60439         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60440         * m4/math_h.m4 (gl_MATH_H): Likewise.
60441         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60442         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60443         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60444         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60445         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60446         * m4/regex.m4 (gl_REGEX): Likewise.
60447         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60448         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60450         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60451         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60452         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60453         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60454         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60455
60456 2008-04-14  Jim Meyering  <meyering@redhat.com>
60457
60458         test-strtod: fix typos: s/abs/fabs/
60459         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60460
60461 2008-04-13  Bruno Haible  <bruno@clisp.org>
60462
60463         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60464         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60465         module is also used and while not building the reloc-wrapper.
60466
60467 2008-04-13  Bruno Haible  <bruno@clisp.org>
60468
60469         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60470
60471 2008-04-13  Bruno Haible  <bruno@clisp.org>
60472
60473         Fix AIX compilation failure introduced on 2008-04-02.
60474         * tests/test-frexp.c (exp): Undefine before redefining.
60475         * tests/test-frexpl.c (exp): Likewise.
60476
60477 2008-04-13  Bruno Haible  <bruno@clisp.org>
60478
60479         Work around a HP-UX stdio bug.
60480         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60481         * tests/test-ftello.c (main): Likewise.
60482         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60483         * doc/posix-functions/ftello.texi: Likewise.
60484
60485 2008-04-13  Bruno Haible  <bruno@clisp.org>
60486
60487         Make test-signbit pass on HP-UX/hppa.
60488         * tests/test-signbit.c (minus_zerol): New variable.
60489         (test_signbitl): Use it.
60490
60491 2008-04-13  Bruno Haible  <bruno@clisp.org>
60492
60493         Make truncl work on OSF/1 4.0.
60494         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60495         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60496         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60498         HAVE_DECL_TRUNCL.
60499         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60500         HAVE_DECL_TRUNCL.
60501         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60502
60503 2008-04-13  Bruno Haible  <bruno@clisp.org>
60504
60505         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60506
60507 2008-04-13  Bruno Haible  <bruno@clisp.org>
60508
60509         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60510         expression, so as to avoid HP-UX 11 cc compiler bug.
60511
60512 2008-04-13  Bruno Haible  <bruno@clisp.org>
60513
60514         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60515
60516 2008-04-13  Bruno Haible  <bruno@clisp.org>
60517
60518         * lib/git-merge-changelog.c: Remove empty declaration outside of
60519         functions.
60520
60521 2008-04-13  Bruno Haible  <bruno@clisp.org>
60522
60523         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60524
60525 2008-04-13  Bruno Haible  <bruno@clisp.org>
60526
60527         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60528         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60529         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60530         also if it exists but lacks definitions of the SHUT_* macros.
60531         * modules/sys_socket (Description): Update.
60532         Reported by Elbert Pol <e.pol@chello.nl>.
60533
60534 2008-04-13  Bruno Haible  <bruno@clisp.org>
60535
60536         * lib/localcharset.c (OS2): Don't redefine if already defined.
60537         Reported by Elbert Pol <e.pol@chello.nl>.
60538
60539 2008-04-13  Bruno Haible  <bruno@clisp.org>
60540
60541         * lib/binary-io.h [__EMX__]: Include <io.h>.
60542         Reported by Elbert Pol <e.pol@chello.nl>.
60543
60544 2008-04-12  Bruno Haible  <bruno@clisp.org>
60545
60546         * lib/fpucw.h: Enable the definitions also for x86_64.
60547         Needed for NetBSD/x86_64.
60548         Reported by Thomas Klausner <tk@giga.or.at>.
60549
60550 2008-04-12  Bruno Haible  <bruno@clisp.org>
60551
60552         * tests/test-strtod.c: Include isnand.h.
60553         (main): Use isnand instead of isnan.
60554         Reported by Jim Meyering.
60555
60556 2008-04-12  Bruno Haible  <bruno@clisp.org>
60557
60558         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60559         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60560
60561 2008-04-12  Jim Meyering  <meyering@redhat.com>
60562
60563         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60564
60565 2008-04-12  Bruno Haible  <bruno@clisp.org>
60566
60567         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60568         Reported by Elbert Pol <e.pol@chello.nl>.
60569
60570 2008-04-12  Eric Blake  <ebb9@byu.net>
60571
60572         Work around Solaris 10 math.h bug.
60573         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60574         (gl_MATH_H_DEFAULTS): Set up default.
60575         * modules/math (Makefile.am): Replace new indicators.
60576         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60577         * tests/test-math.c (main): Test this.
60578         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60579         * doc/posix-headers/math.texi (math.h): Mention bug.
60580         Reported by Nelson H. F. Beebe and Jim Meyering.
60581
60582 2008-04-11  Bruno Haible  <bruno@clisp.org>
60583
60584         Adapt to future versions of Apple GCC.
60585         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60586         Reported by Peter O'Gorman <peter@pogma.com>.
60587
60588 2008-04-11  Bruno Haible  <bruno@clisp.org>
60589
60590         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60591
60592 2008-04-11  Bruno Haible  <bruno@clisp.org>
60593
60594         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60595
60596         * modules/getaddrinfo-tests (Makefile.am): Define
60597         test_getaddrinfo_LDADD.
60598
60599 2008-04-11  Bruno Haible  <bruno@clisp.org>
60600
60601         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60602         (init): Fix syntax error.
60603         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60604         is declared.
60605
60606 2008-04-11  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60609         * modules/glob (Depends-on): Add stdbool.
60610
60611 2008-04-11  Bruno Haible  <bruno@clisp.org>
60612
60613         * lib/trim.c: Include <string.h>.
60614
60615 2008-04-11  Eric Blake  <ebb9@byu.net>
60616
60617         Avoid compile failure on OS/2.
60618         * lib/regex_internal.h (internal_function): Disable optimization
60619         on OS/2 (__EMX__), where it caused compiler error.
60620         Reported by Elbert Pol.
60621
60622 2008-04-11  Bruno Haible  <bruno@clisp.org>
60623
60624         Flush the standard error stream before aborting. Needed on mingw.
60625         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60626         * tests/test-array_list.c (ASSERT): Likewise.
60627         * tests/test-array_oset.c (ASSERT): Likewise.
60628         * tests/test-avltree_list.c (ASSERT): Likewise.
60629         * tests/test-avltree_oset.c (ASSERT): Likewise.
60630         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60631         * tests/test-binary-io.c (ASSERT): Likewise.
60632         * tests/test-byteswap.c (ASSERT): Likewise.
60633         * tests/test-c-ctype.c (ASSERT): Likewise.
60634         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60635         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60636         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60637         * tests/test-c-strstr.c (ASSERT): Likewise.
60638         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60639         * tests/test-canonicalize.c (ASSERT): Likewise.
60640         * tests/test-carray_list.c (ASSERT): Likewise.
60641         * tests/test-ceilf1.c (ASSERT): Likewise.
60642         * tests/test-ceilf2.c (ASSERT): Likewise.
60643         * tests/test-ceill.c (ASSERT): Likewise.
60644         * tests/test-count-one-bits.c (ASSERT): Likewise.
60645         * tests/test-fbufmode.c (ASSERT): Likewise.
60646         * tests/test-fflush2.c (ASSERT): Likewise.
60647         * tests/test-floorf1.c (ASSERT): Likewise.
60648         * tests/test-floorf2.c (ASSERT): Likewise.
60649         * tests/test-floorl.c (ASSERT): Likewise.
60650         * tests/test-fopen.c (ASSERT): Likewise.
60651         * tests/test-fpending.c (ASSERT): Likewise.
60652         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60653         * tests/test-fpurge.c (ASSERT): Likewise.
60654         * tests/test-freadable.c (ASSERT): Likewise.
60655         * tests/test-freadahead.c (ASSERT): Likewise.
60656         * tests/test-freading.c (ASSERT): Likewise.
60657         * tests/test-freadptr.c (ASSERT): Likewise.
60658         * tests/test-freadptr2.c (ASSERT): Likewise.
60659         * tests/test-freadseek.c (ASSERT): Likewise.
60660         * tests/test-freopen.c (ASSERT): Likewise.
60661         * tests/test-frexp.c (ASSERT): Likewise.
60662         * tests/test-frexpl.c (ASSERT): Likewise.
60663         * tests/test-fseek.c (ASSERT): Likewise.
60664         * tests/test-fseeko.c (ASSERT): Likewise.
60665         * tests/test-fstrcmp.c (ASSERT): Likewise.
60666         * tests/test-ftell.c (ASSERT): Likewise.
60667         * tests/test-ftello.c (ASSERT): Likewise.
60668         * tests/test-func.c (ASSERT): Likewise.
60669         * tests/test-fwritable.c (ASSERT): Likewise.
60670         * tests/test-fwriting.c (ASSERT): Likewise.
60671         * tests/test-getdelim.c (ASSERT): Likewise.
60672         * tests/test-getline.c (ASSERT): Likewise.
60673         * tests/test-i-ring.c (ASSERT): Likewise.
60674         * tests/test-iconv-utf.c (ASSERT): Likewise.
60675         * tests/test-iconv.c (ASSERT): Likewise.
60676         * tests/test-isfinite.c (ASSERT): Likewise.
60677         * tests/test-isnand.c (ASSERT): Likewise.
60678         * tests/test-isnanf.c (ASSERT): Likewise.
60679         * tests/test-isnanl.h (ASSERT): Likewise.
60680         * tests/test-ldexpl.c (ASSERT): Likewise.
60681         * tests/test-linked_list.c (ASSERT): Likewise.
60682         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60683         * tests/test-localename.c (ASSERT): Likewise.
60684         * tests/test-lseek.c (ASSERT): Likewise.
60685         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60686         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60687         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60688         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60689         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60690         * tests/test-mbschr.c (ASSERT): Likewise.
60691         * tests/test-mbscspn.c (ASSERT): Likewise.
60692         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60693         * tests/test-mbspbrk.c (ASSERT): Likewise.
60694         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60695         * tests/test-mbsrchr.c (ASSERT): Likewise.
60696         * tests/test-mbsspn.c (ASSERT): Likewise.
60697         * tests/test-mbsstr1.c (ASSERT): Likewise.
60698         * tests/test-mbsstr2.c (ASSERT): Likewise.
60699         * tests/test-mbsstr3.c (ASSERT): Likewise.
60700         * tests/test-memchr2.c (ASSERT): Likewise.
60701         * tests/test-memmem.c (ASSERT): Likewise.
60702         * tests/test-open.c (ASSERT): Likewise.
60703         * tests/test-printf-frexp.c (ASSERT): Likewise.
60704         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60705         * tests/test-printf-posix.c (ASSERT): Likewise.
60706         * tests/test-quotearg.c (ASSERT): Likewise.
60707         * tests/test-rbtree_list.c (ASSERT): Likewise.
60708         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60709         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60710         * tests/test-round1.c (ASSERT): Likewise.
60711         * tests/test-roundf1.c (ASSERT): Likewise.
60712         * tests/test-roundl.c (ASSERT): Likewise.
60713         * tests/test-signbit.c (ASSERT): Likewise.
60714         * tests/test-sleep.c (ASSERT): Likewise.
60715         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60716         * tests/test-snprintf.c (ASSERT): Likewise.
60717         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60718         * tests/test-stat-time.c (ASSERT): Likewise.
60719         * tests/test-strcasestr.c (ASSERT): Likewise.
60720         * tests/test-strerror.c (ASSERT): Likewise.
60721         * tests/test-striconv.c (ASSERT): Likewise.
60722         * tests/test-striconveh.c (ASSERT): Likewise.
60723         * tests/test-striconveha.c (ASSERT): Likewise.
60724         * tests/test-strsignal.c (ASSERT): Likewise.
60725         * tests/test-strstr.c (ASSERT): Likewise.
60726         * tests/test-strtod.c (ASSERT): Likewise.
60727         * tests/test-trunc1.c (ASSERT): Likewise.
60728         * tests/test-trunc2.c (ASSERT): Likewise.
60729         * tests/test-truncf1.c (ASSERT): Likewise.
60730         * tests/test-truncf2.c (ASSERT): Likewise.
60731         * tests/test-truncl.c (ASSERT): Likewise.
60732         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60733         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60734         * tests/test-vasnprintf.c (ASSERT): Likewise.
60735         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60736         * tests/test-vasprintf.c (ASSERT): Likewise.
60737         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60738         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60739         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60740         * tests/test-vsnprintf.c (ASSERT): Likewise.
60741         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60742         * tests/test-wcwidth.c (ASSERT): Likewise.
60743         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60744         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60745         * tests/test-xvasprintf.c (ASSERT): Likewise.
60746         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60747         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60748         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60749         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60750         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60751         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60752         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60753         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60754         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60755         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60756         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60757         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60758         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60759         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60760         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60761         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60762         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60763         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60764         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60765         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60766         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60767         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60768         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60769         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60770         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60771         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60772         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60773         * tests/unictype/test-combining.c (ASSERT): Likewise.
60774         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60775         * tests/unictype/test-digit.c (ASSERT): Likewise.
60776         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60777         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60778         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60779         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60780         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60781         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60782         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60783         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60784         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60785         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60786         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60787         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60788         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60789         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60790         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60791         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60792         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60793         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60794         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60795         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60796         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60797         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60798         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60799         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60800         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60801         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60802         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60803         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60804         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60805         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60806         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60807         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60808         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60809         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60810         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60811         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60812         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60813         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60814         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60815         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60816         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60817         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60818         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60819         Reported by Eric Blake.
60820
60821 2008-04-11  Bruno Haible  <bruno@clisp.org>
60822
60823         * lib/wchar.in.h: Tweak comment.
60824
60825 2008-04-11  Bruno Haible  <bruno@clisp.org>
60826
60827         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60828         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60829         gl_COMMON.
60830         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60831
60832 2008-04-11  Bruno Haible  <bruno@clisp.org>
60833
60834         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60835
60836 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60837
60838         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60839         of attempting to use non-existing /dev/*random.  Based on patch
60840         from Adam Strzelecki <ono@java.pl> in
60841         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60842
60843 2008-04-08  Bruno Haible  <bruno@clisp.org>
60844
60845         Add tentative support for emx+gcc.
60846         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60847         * lib/fpurge.c (fpurge): Likewise.
60848         * lib/freadable.c (freadable): Likewise.
60849         * lib/freadahead.c (freadahead): Likewise.
60850         * lib/freading.c (freading): Likewise.
60851         * lib/freadptr.c (freadptr): Likewise.
60852         * lib/freadseek.c (freadptrinc): Likewise.
60853         * lib/fseeko.c (rpl_fseeko): Likewise.
60854         * lib/fseterr.c (fseterr): Likewise.
60855         * lib/fwritable.c (fwritable): Likewise.
60856         * lib/fwriting.c (fwriting): Likewise.
60857         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60858
60859 2008-04-09  Eric Blake  <ebb9@byu.net>
60860
60861         Avoid some autoconf warnings.
60862         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60863         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60864         * m4/afs.m4 (gl_AFS): Likewise.
60865         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60866         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60868         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60869         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60870         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60871         (AC_CHECK_DECLS_ONCE): Likewise.
60872         Rename file...
60873         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60874         gnulib-tool requires autoconf 2.59 or better.
60875         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60876
60877 2008-04-08  Eric Blake  <ebb9@byu.net>
60878
60879         Use 'git describe --match' if present (added in git 1.5.5).
60880         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60881         if possible.
60882
60883 2008-04-08  Bruno Haible  <bruno@clisp.org>
60884
60885         Add tentative support for OpenServer.
60886         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60887         _ptr, _cnt.
60888         * lib/fpurge.c (fpurge): Likewise.
60889         * lib/freadable.c (freadable): Likewise.
60890         * lib/freadahead.c (freadahead): Likewise.
60891         * lib/freading.c (freading): Likewise.
60892         * lib/freadptr.c (freadptr): Likewise.
60893         * lib/freadseek.c (freadptrinc): Likewise.
60894         * lib/fseeko.c (rpl_fseeko): Likewise.
60895         * lib/fseterr.c (fseterr): Likewise.
60896         * lib/fwritable.c (fwritable): Likewise.
60897         * lib/fwriting.c (fwriting): Likewise.
60898         Reported by Roger Cornelius <rac@tenzing.org> and
60899         Brian K. White <brian@aljex.com>.
60900
60901 2008-04-06  Jim Meyering  <meyering@redhat.com>
60902
60903         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60904
60905 2008-04-06  Bruno Haible  <bruno@clisp.org>
60906
60907         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60908         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60909         * tests/test-printf-posix.sh: Likewise.
60910         * tests/test-vfprintf-posix.sh: Likewise.
60911         * tests/test-vprintf-posix.sh: Likewise.
60912         * tests/test-xprintf-posix.sh: Likewise.
60913
60914 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60915
60916         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60917         hide error from 'ls', needed on OS/2.
60918         Report by Elbert Pol <elbert.pol@gmail.com>.
60919
60920 2008-04-04  Eric Blake  <ebb9@byu.net>
60921
60922         Make test-fseeko.c failures meaningful.
60923         * tests/test-fseeko.c: Print line number on failure.
60924         * tests/test-fseek.c: Likewise.
60925         Reported by Nelson H. F. Beebe.
60926
60927         Improve strtod bug detection check.
60928         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60929         required for Solaris 10.
60930         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60931
60932 2008-04-04  Bruno Haible  <bruno@clisp.org>
60933
60934         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60935         by m4/setenv.m4.
60936
60937 2008-04-03  Eric Blake  <ebb9@byu.net>
60938
60939         Ensure sane .version contents.
60940         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60941         version string.
60942         * build-aux/git-version-gen: Improve documentation.
60943
60944         Make GNU make output nicer.
60945         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60946         MAKECMDGOALS to enforce message for all command line targets.  Set
60947         srcdir for use in maint.mk.
60948
60949         Another maintainer tweak.
60950         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60951         a target that regenerates version.
60952
60953 2008-04-03  Jim Meyering  <meyering@redhat.com>
60954
60955         vc-list-files: don't cause coreutils "make po-check" failure
60956         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60957
60958 2008-04-03  Eric Blake  <ebb9@byu.net>
60959
60960         Allow VPATH usage of vc-list-files.
60961         * build-aux/vc-list-files (scriptversion): Add timestamp.
60962         (options): Add --help, --version, -C.
60963         (CVS): Support installed cvsu.
60964
60965 2008-04-02  Bruno Haible  <bruno@clisp.org>
60966
60967         Avoid some "statement with no effect" warnings from gcc.
60968         * tests/test-wctype.c (main): Explicitly ignore unused values.
60969         Reported by Jim Meyering.
60970
60971 2008-04-02  Jim Meyering  <meyering@redhat.com>
60972
60973         Avoid some warnings from "gcc -Wshadow".
60974         * tests/test-frexp.c (exp): Define to a different identifier.
60975         * tests/test-frexpl.c (exp): Likewise.
60976
60977 2008-04-03  Jim Meyering  <meyering@redhat.com>
60978
60979         bootstrap: remove dangling *.[ch] symlinks from lib
60980         * build-aux/bootstrap [dangling symlink removal]: Move find's
60981         -depth option to precede all others, to avoid a warning.
60982         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60983
60984 2008-04-02  Bruno Haible  <bruno@clisp.org>
60985
60986         Avoid some warnings from "gcc -Wshadow".
60987         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60988         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60989         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60990         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60991         Reported by Jim Meyering.
60992
60993 2008-04-01  Bruno Haible  <bruno@clisp.org>
60994
60995         Fix test to work on IRIX 6.5 with cc.
60996         * tests/test-math.c (numeric_equal): New function.
60997         (main): Use it.
60998
60999 2008-04-01  Bruno Haible  <bruno@clisp.org>
61000
61001         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61002
61003 2008-04-01  Bruno Haible  <bruno@clisp.org>
61004
61005         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61006         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61007         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61008         (Depends-on): Remove math.
61009
61010         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61011         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61012         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61013         (Depends-on): Remove math.
61014
61015         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61016         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61017         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61018         (Depends-on): Remove math.
61019         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61020         (Depends-on): Remove math.
61021
61022         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61023         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61024         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61025         (Depends-on): Remove math.
61026         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61027         (Depends-on): Remove math.
61028
61029         * tests/test-round1.c: Include nan.h.
61030         (main): Use NaNd instead of NAN.
61031         * modules/round-tests (Files): Add tests/nan.h.
61032
61033         * tests/test-trunc1.c: Include nan.h.
61034         (main): Use NaNd instead of NAN.
61035         * modules/trunc-tests (Files): Add tests/nan.h.
61036
61037         * tests/test-roundf1.c: Include nan.h.
61038         (main): Use NaNf instead of NAN.
61039         * modules/roundf-tests (Files): Add tests/nan.h.
61040
61041         * tests/test-truncf1.c: Include nan.h.
61042         (main): Use NaNf instead of NAN.
61043         * modules/truncf-tests (Files): Add tests/nan.h.
61044
61045         * tests/test-ceilf1.c: Include nan.h.
61046         (main): Use NaNf instead of NAN.
61047         * modules/ceilf-tests (Files): Add tests/nan.h.
61048
61049         * tests/test-floorf1.c: Include nan.h.
61050         (main): Use NaNf instead of NAN.
61051         * modules/floorf-tests (Files): Add tests/nan.h.
61052
61053         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61054         (main): Use NaNf instead of NAN.
61055         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61056
61057         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61058         (main): Use NaNd instead of NAN.
61059         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61060
61061         * tests/test-frexp.c: Include nan.h.
61062         (main): Use NaNd instead of NAN.
61063         * modules/frexp-tests (Files): Add tests/nan.h.
61064
61065         * lib/isnan.c: Don't include <math.h>.
61066         (FUNC): Don't use NAN macro.
61067         * modules/isnand-nolibm (Depends-on): Remove math.
61068         * modules/isnanf-nolibm (Depends-on): Remove math.
61069         * modules/isnanl (Depends-on): Remove math.
61070         * modules/isnanl-nolibm (Depends-on): Remove math.
61071
61072         * tests/nan.h: New file.
61073
61074 2008-04-01  Eric Blake  <ebb9@byu.net>
61075
61076         Fix typos.
61077         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61078         values to be the right type.
61079
61080         For now, cater to gnulib strtod inaccuracies.
61081         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61082         fractional results.  While not as nice from a QoI perspective, it
61083         is a quicker patch than correctly implementing decimal to binary
61084         rounding.
61085
61086 2008-03-31  Eric Blake  <ebb9@byu.net>
61087
61088         Guarantee a definition of NAN.
61089         * lib/math.in.h (NAN): Define if missing.
61090         * tests/test-math.c (main): Test it.
61091         * doc/posix-headers/math.texi (math.h): Document this.
61092         * lib/isnan.c (rpl_isnand): Use it.
61093         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61094         * tests/test-floorf1.c (NaN): Likewise.
61095         * tests/test-frexp.c (NaN): Likewise.
61096         * tests/test-isnand.c (NaN): Likewise.
61097         * tests/test-isnanf.c (NaN): Likewise.
61098         * tests/test-round1.c (NaN): Likewise.
61099         * tests/test-roundf1.c (NaN): Likewise.
61100         * tests/test-snprintf-posix.h (NaN): Likewise.
61101         * tests/test-sprintf-posix.h (NaN): Likewise.
61102         * tests/test-trunc1.c (NaN): Likewise.
61103         * tests/test-truncf1.c (NaN): Likewise.
61104         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61105         * tests/test-vasprintf-posix.c (NaN): Likewise.
61106         * modules/isnand-nolibm (Depends-on): Add math.
61107         * modules/isnanf-nolibm (Depends-on): Likewise.
61108         * modules/isnanl (Depends-on): Likewise.
61109         * modules/isnanl-nolibm (Depends-on): Likewise.
61110         * modules/snprintf-posix-tests (Depends-on): Likewise.
61111         * modules/sprintf-posix-tests (Depends-on): Likewise.
61112         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61113         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61114         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61115         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61116
61117 2008-03-31  Bruno Haible  <bruno@clisp.org>
61118
61119         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61120         * doc/posix-functions/strtod.texi: Likewise.
61121
61122 2008-03-31  Bruno Haible  <bruno@clisp.org>
61123
61124         * tests/test-strtod.c (main): Don't use C99 syntax.
61125
61126 2008-03-31  Bruno Haible  <bruno@clisp.org>
61127
61128         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61129         Reported by Eric Blake.
61130
61131 2008-03-31  Jim Meyering  <meyering@redhat.com>
61132
61133         Don't compare actual signbit return values.
61134         * tests/test-strtod.c (main): Rather, compare only their
61135         zero/non-zero nature.
61136
61137 2008-03-31  Eric Blake  <ebb9@byu.net>
61138
61139         More strtod documentation.
61140         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61141         failures as distinct bugs.
61142
61143 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61144
61145         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61146         Problem reported by Erik Benada in
61147         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61148
61149 2008-03-30  Bruno Haible  <bruno@clisp.org>
61150
61151         * tests/test-strtod.c: Add comments about which assertion fails on which
61152         platform.
61153         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61154
61155 2008-03-30  Eric Blake  <ebb9@byu.net>
61156
61157         Test signbit behavior on zeros.
61158         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61159         (test_signbitd, test_signbitl): Likewise.
61160
61161         More strtod touchups.
61162         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61163         sign of negative underflow, for now.  Use .5, not .1.
61164         * doc/posix-functions/strtod.texi (strtod): Mention these
61165         limitations.
61166         Reported by Jim Meyering.
61167
61168 2008-03-30  Bruno Haible  <bruno@clisp.org>
61169
61170         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61171         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61172
61173 2008-03-30  Bruno Haible  <bruno@clisp.org>
61174
61175         Avoid failure when attempting to return empty iconv results on some
61176         platforms.
61177         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61178         allocation, don't report ENOMEM when the resulting string is empty.
61179
61180 2008-03-30  Bruno Haible  <bruno@clisp.org>
61181
61182         Fix buffer overrun.
61183         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61184         Don't consider the width for tmp_length. Check count against tmp_length
61185         before doing the padding. Ensure enough allocation during padding.
61186
61187 2008-03-30  Eric Blake  <ebb9@byu.net>
61188
61189         strtod touchups.
61190         * lib/strtod.c (strtod): Avoid compiler warnings.
61191         Reported by Jim Meyering.
61192
61193 2008-03-30  Bruno Haible  <bruno@clisp.org>
61194
61195         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61196         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61197         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61198         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61199         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61200         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61201         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61202         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61203
61204         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61205         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61206         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61207         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61208         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61209         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61210         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61211         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61212
61213         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61214         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61215         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61216         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61217         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61218         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61219         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61220         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61221
61222         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61223         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61224
61225         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61226         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61227
61228         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61229         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61230
61231         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61232         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61233         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61234
61235         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61237         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61238
61239         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61240         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61241         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61242
61243         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61244         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61245         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61246
61247         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61248         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61249         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61250         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61251         (Depends-on): Add EOVERFLOW.
61252         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61253         (Depends-on): Add EOVERFLOW.
61254         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61255         (Depends-on): Add EOVERFLOW.
61256         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61257         (Depends-on): Add EOVERFLOW.
61258         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61259         (Depends-on): Add EOVERFLOW.
61260         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61261         (Depends-on): Add EOVERFLOW.
61262         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61263         (Depends-on): Add EOVERFLOW.
61264         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61265         (Depends-on): Add EOVERFLOW.
61266
61267         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61269         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61270
61271         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61272         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61273         * modules/snprintf (Depends-on): Add EOVERFLOW.
61274
61275         * lib/poll.c (EOVERFLOW): Remove fallback.
61276         * modules/poll (Depends-on): Add EOVERFLOW.
61277
61278         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61279         * modules/getugroups (Depends-on): Add EOVERFLOW.
61280
61281         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61282         * modules/getdelim (Depends-on): Add EOVERFLOW.
61283
61284         * lib/ftell.c (EOVERFLOW): Remove fallback.
61285         * modules/ftell (Depends-on): Add EOVERFLOW.
61286
61287         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61288         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61289         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61290
61291         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61292
61293         * modules/EOVERFLOW-tests: New file.
61294         * tests/test-EOVERFLOW.c: New file.
61295
61296         * modules/EOVERFLOW: New file.
61297         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61298
61299 2008-03-30  Bruno Haible  <bruno@clisp.org>
61300
61301         Fix bug introduced on 2007-06-10.
61302         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61303         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61304
61305 2008-03-30  Bruno Haible  <bruno@clisp.org>
61306
61307         Improve freadseek's efficiency after ungetc.
61308         * lib/freadseek.c: Include freadahead.h.
61309         (freadptrinc): New function, extracted from freadseek.
61310         (freadseek): Use it in a loop. Use freadahead to determine the number
61311         of loop iterations.
61312         * modules/freadseek (Depends-on): Add freadahead.
61313         (configure.ac): Require AC_C_INLINE.
61314
61315 2008-03-30  Bruno Haible  <bruno@clisp.org>
61316
61317         * lib/freadseek.c (freadseek): Don't ignore the return value of
61318         freadptr.
61319
61320 2008-03-29  Eric Blake  <ebb9@byu.net>
61321
61322         Add hex float support.
61323         * modules/strtod (Depends-on): Add c-ctype.
61324         (Link): Mention POW_LIB.
61325         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61326         whitespace between 'e' and exponent.
61327         * tests/test-strtod.c (main): Enable hex float tests.
61328         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61329         now provides.
61330
61331         Document various strtod bugs, with some fixes.
61332         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61333         "-0x", "inf", "nan", and hex constants.
61334         * doc/posix-functions/atof.texi (atof): Likewise.
61335         * modules/stdlib (Makefile.am): Support strtod.
61336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61337         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61338         detect additional strtod bugs.
61339         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61340         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61341         bool where appropriate.  Parse 'inf' and 'nan'.
61342         * tests/test-strtod.c: New file.
61343         * modules/strtod (Depends-on): Add stdbool, stdlib.
61344         (configure.ac): Turn on module indicator.
61345         * modules/strtod-tests: New module.
61346
61347 2008-03-29  Eric Blake  <ebb9@byu.net>
61348
61349         Fix ftell on mingw.
61350         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61351         * modules/ftell-tests (Depends-on): Add binary-io.
61352         * modules/ftello-tests (Depends-on): Likewise.
61353         * tests/test-ftell.c (main): Enhance test to cover behavior after
61354         ungetc.  Enforce binary mode.
61355         * tests/test-ftello.c (main): Likewise.
61356
61357         Pass test-freadseek on cygwin.
61358         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61359         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61360         ungetc buffer.
61361
61362         * tests/test-fflush2.c (main): Fix typo.
61363
61364 2008-03-29  Bruno Haible  <bruno@clisp.org>
61365
61366         * tests/test-fflush2.c (main): Temporarily disable the contents of
61367         this test.
61368         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61369         Reported by Eric Blake.
61370
61371 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61372
61373         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61374         (GC_SHA224_DIGEST_SIZE): Add.
61375
61376         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61377         (gc_hash_digest_length): Likewise.
61378         (gc_hash_buffer): Likewise.
61379
61380 2008-03-25  Bruno Haible  <bruno@clisp.org>
61381
61382         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61383         detail which gettext release to use.
61384         Reported by Simon Josefsson.
61385
61386 2008-03-26  Jim Meyering  <meyering@redhat.com>
61387
61388         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61389         * modules/gnumakefile (clean-GNUmakefile): Also, use
61390         test ... && ... || : syntax rather than if-then ... fi.
61391
61392         gnumakefile: Don't double-quote-expand $(VPATH) value.
61393         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61394
61395 2008-03-24  Eric Blake  <ebb9@byu.net>
61396
61397         Alter GNUmakefile to install into top directory.
61398         * modules/maintainer-makefile: Split, and add dependency...
61399         * modules/gnumakefile: to this new module.
61400         * build-aux/GNUmakefile: Move...
61401         * top/GNUmakefile: ...here.
61402         * build-aux/maint.mk: Move...
61403         * top/maint.mk: ...here.
61404         * MODULES.html.sh (Support for maintaining...): Document new
61405         module.
61406
61407 2008-03-23  Bruno Haible  <bruno@clisp.org>
61408
61409         * gnulib-tool: New options --vc-files, --no-vc-files.
61410         (func_usage): Document them.
61411         (vc_files): New variable.
61412         (func_import): Consider vc_files.
61413         (func_create_testdir): Set vc_files to empty.
61414         Suggested by Jim Meyering and Karl Berry.
61415
61416 2008-03-23  Bruno Haible  <bruno@clisp.org>
61417
61418         Fix regex compilation error on HP-UX 11.
61419         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61420         * modules/regex (Files): Add m4/mbstate_t.m4.
61421         Reported by Ton Voon <ton.voon@altinity.com>.
61422
61423 2008-03-23  Bruno Haible  <bruno@clisp.org>
61424
61425         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61426
61427 2008-03-23  Eric Blake  <ebb9@byu.net>
61428             Bruno Haible  <bruno@clisp.org>
61429
61430         Install files from top/ in the destination directory.
61431         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61432         augmentation also for the files from top/.
61433         (func_import, func_create_testdir): Rewrite file names:
61434         top/filename -> filename.
61435
61436 2008-03-23  Bruno Haible  <bruno@clisp.org>
61437
61438         Tweak "gnulib --version" output.
61439         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61440
61441 2008-03-23  Bruno Haible  <bruno@clisp.org>
61442
61443         Tweak "gnulib --version" output.
61444         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61445         rather than contents of ChangeLog, when possible.
61446
61447 2008-03-21  Eric Blake  <ebb9@byu.net>
61448
61449         More --version tweaks.
61450         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61451         date of last ChangeLog entry.
61452
61453 2008-03-21  Jim Meyering  <meyering@redhat.com>
61454
61455         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61456
61457 2008-03-20  Eric Blake  <ebb9@byu.net>
61458
61459         VPATH fix.
61460         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61461
61462 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61463
61464         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61465         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61466
61467 2008-03-20  Eric Blake  <ebb9@byu.net>
61468
61469         Sync GNUmakefile with coreutils.
61470         * build-aux/GNUmakefile (have-Makefile): Rename...
61471         (_have-Makefile): ...to this, for namespace consideration.
61472         (GNUmakefile.cfg): Include, if present.
61473         (_autoreconf): Define a default.
61474         (_is-dist-target): New rule for rebuilds to pick up intra-release
61475         version.
61476         (maint-cfg.mk): Rename...
61477         (cfg.mk): ...to this.
61478
61479 2008-03-18  Jim Meyering  <meyering@redhat.com>
61480
61481         New script and module: mktempd
61482         * MODULES.html.sh (maint+release support): Add mktempd.
61483         * build-aux/mktempd: New file.
61484         * modules/mktempd: New file.
61485
61486 2008-03-15  Jim Meyering  <meyering@redhat.com>
61487
61488         Undo last change.
61489         * lib/sha1.c, lib/md5.c: 63 != ~63.
61490         Reported by Andreas Schwab.
61491
61492         sha1.c, md5.c: Hoist a redundant expression.
61493         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61494         "ctx->buflen" only once, before calling *_process_block.
61495         * lib/md5.c (md5_process_bytes): Likewise.
61496
61497 2008-03-14  Eric Blake  <ebb9@byu.net>
61498
61499         Bump copyright year in files generated by gnulib-tool.
61500         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61501         gnulib-tool, rather than hard-coding it.
61502
61503         Fix 'gnulib-tool --version' output to work with git.
61504         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61505         (startup): ...here.
61506         (func_version): Use it to invoke git-version-gen, rather than
61507         relying on CVS keyword expansion.  Modernize wording.
61508         (cvsdatestamp, last_checkin_date, version): Kill unused
61509         variables.
61510
61511 2008-03-12  Jim Meyering  <meyering@redhat.com>
61512
61513         Recognize optional cast of the argument to free.
61514         * build-aux/useless-if-before-free: Update regexps.
61515
61516         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61517
61518 2008-03-11  Bruno Haible  <bruno@clisp.org>
61519
61520         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61521         by a single package.
61522         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61523         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61524         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61525         Reported by Sam Steingold <sds@gnu.org>.
61526
61527 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61528
61529         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61530         repositories.
61531
61532 2008-03-11  Bruno Haible  <bruno@clisp.org>
61533
61534         Avoid conflicts between local macro definitions.
61535         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61536         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61537
61538 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61539             Bruno Haible  <bruno@clisp.org>
61540
61541         Make va_copy work with some version of xlc on AIX 5.1.
61542         * lib/stdarg.in.h: New file.
61543         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61544         On AIX, use a <stdarg.h> file substitute.
61545         * modules/stdarg (Files): Add lib/stdarg.in.h.
61546         (Depends-on): Add include_next.
61547         (Makefile.am): Build a stdarg.h substitute if requested.
61548         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61549
61550 2008-03-10  Bruno Haible  <bruno@clisp.org>
61551
61552         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61553         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61554         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61555
61556 2008-03-10  Bruno Haible  <bruno@clisp.org>
61557
61558         * modules/stdlib (Depends-on): Add include_next, remove
61559         absolute-header.
61560
61561 2008-03-09  Bruno Haible  <bruno@clisp.org>
61562
61563         * lib/freadahead.h (freadahead): Document more precisely.
61564         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61565         the sum of both buffer sizes.
61566         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61567         * NEWS: Document the change.
61568
61569 2008-03-09  Bruno Haible  <bruno@clisp.org>
61570
61571         Extend freadptr to return also the buffer size.
61572         * lib/freadptr.h (freadptr): Add sizep argument.
61573         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61574         (freadptr): Add sizep argument. Determine buffer size like freadahead
61575         does.
61576         * tests/test-freadptr.c: Don't include freadahead.h.
61577         (main): Adapt for new calling convention of freadptr.
61578         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61579         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61580         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61581         tests/test-freadptr2.sh.
61582         (Depends): Remove freadahead.
61583         (TESTS): Add test-freadptr2.sh.
61584         (check_PROGRAMS): Add test-freadptr2.
61585
61586 2008-03-09  Bruno Haible  <bruno@clisp.org>
61587
61588         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61589         Report and solution by Simon Josefsson.
61590
61591 2008-03-06  Bruno Haible  <bruno@clisp.org>
61592
61593         Make fflush after ungetc work on BSD platforms.
61594         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61595         * tests/test-fflush2.c: New file.
61596         * tests/test-fflush2.sh: New file.
61597         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61598         tests/test-fflush2.c.
61599         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61600         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61601
61602 2008-03-06  Eric Blake  <ebb9@byu.net>
61603
61604         Likewise for ftello.
61605         * modules/ftello (Dependencies): Add extensions.
61606         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61607
61608 2008-03-06  Bruno Haible  <bruno@clisp.org>
61609
61610         * modules/fseeko (Dependencies): Add extensions.
61611         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61612         Needed on glibc systems.
61613
61614 2008-03-06  Bruno Haible  <bruno@clisp.org>
61615
61616         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61617         email address.
61618         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61619
61620 2008-03-06  Bruno Haible  <bruno@clisp.org>
61621
61622         * users.txt: Add libgnupdf.
61623
61624 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61625
61626         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61627         (Header File Substitutes, Function Substitutes,
61628         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61629         (Build robot for gnulib): Fix typo.
61630
61631 2008-03-06  Bruno Haible  <bruno@clisp.org>
61632
61633         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61634         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61635
61636 2008-03-06  Bruno Haible  <bruno@clisp.org>
61637
61638         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61639         * doc/gnulib.texi: Include it.
61640
61641 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61642
61643         * modules/func (License): Change license to unlimited; there was
61644         no LGPL parts in the module anyway.
61645
61646 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61647
61648         * modules/__func__: Renamed to modules/func.
61649         * modules/__func__-tests: Renamed to modules/func-tests.
61650         * tests/test-__func__.c: Renamed to tests/test-func.c.
61651         * m4/__func__.m4: Renamed to m4/func.m4.
61652         * doc/gnulib.texi (__func__): Section renamed to func.
61653         Suggested by Eric Blake <ebb9@byu.net>.
61654
61655 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61656
61657         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61658         about __func__.  Make example self-contained.  Suggested by Eric
61659         Blake <ebb9@byu.net>.
61660
61661         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61662         Suggested by Eric Blake <ebb9@byu.net>.
61663
61664 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61665
61666         * modules/__func__: New file.
61667         * modules/__func__-tests: New file.
61668         * tests/test-__func__.c: New file.
61669         * m4/__func__.m4: New file.
61670         * doc/gnulib.texi (__func__): Document __func__ module.
61671
61672 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61673
61674         * modules/byteswap (License): Re-license as LGPLv2+.
61675
61676 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61677
61678         * doc/Makefile: Add pdf target.
61679
61680 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61681
61682         * modules/inline (License): Use 'unlimited', since there are only
61683         *.m4 files in this module.
61684
61685 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61686             Bruno Haible  <bruno@clisp.org>
61687
61688         Add support for HP C 7.1 on OpenVMS 8.3.
61689         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61690
61691 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61692
61693         Update VMS specifics.
61694         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61695
61696 2008-03-02  Jim Meyering  <meyering@redhat.com>
61697
61698         Remove the last dependency on the "free" module.
61699         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61700         Reported by Bob Proulx.
61701
61702         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61703
61704         Remove useless "if" tests before free.  Deprecate "free" module.
61705         * doc/posix-functions/free.texi: Mention that this
61706         module is no longer useful.
61707         * modules/free (Notice): Say this module is obsolete.
61708         * modules/readutmp (Depends-on): Remove free.
61709         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61710         * lib/putenv.c (putenv): Likewise.
61711         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61712         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61713         * tests/test-c-strcasestr.c (main): Likewise.
61714         * tests/test-c-strstr.c (main): Likewise.
61715         * tests/test-mbscasestr1.c (main): Likewise.
61716         * tests/test-mbscasestr2.c (main): Likewise.
61717         * tests/test-mbsstr1.c (main): Likewise.
61718         * tests/test-mbsstr2.c (main): Likewise.
61719         * tests/test-memmem.c (main): Likewise.
61720         * tests/test-strcasestr.c (main): Likewise.
61721         * tests/test-striconv.c (main): Likewise.
61722         * tests/test-striconveh.c (main): Likewise.
61723         * tests/test-striconveha.c (main): Likewise.
61724         * tests/test-strstr.c (main): Likewise.
61725
61726         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61727
61728         bootstrap: sync from coreutils again
61729         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61730
61731 2008-03-01  Jim Meyering  <meyering@redhat.com>
61732
61733         bootstrap: sync from coreutils
61734         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61735         also when the target doesn't exist.
61736
61737 2008-03-01  Eric Blake  <ebb9@byu.net>
61738
61739         Fix bugs in last patch.
61740         * lib/memchr2.c (memchr2): Fix typo.
61741         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61742         extension.
61743         Reported by Bruce Korb.
61744
61745         New module 'memchr2'.
61746         * modules/memchr2: New file.
61747         * modules/memchr2-tests: Likewise.
61748         * lib/memchr2.h: Likewise.
61749         * lib/memchr2.c: Likewise, based on memchr.c.
61750         * tests/test-memchr2.c: New test.
61751         * MODULES.html.sh (String handling): Add memchr2.
61752
61753 2008-02-29  Bruno Haible  <bruno@clisp.org>
61754
61755         * modules/freadseek-tests: New file.
61756         * tests/test-freadseek.sh: New file.
61757         * tests/test-freadseek.c: New file.
61758
61759         New module 'freadseek'.
61760         * modules/freadseek: New file.
61761         * lib/freadseek.h: New file.
61762         * lib/freadseek.c: New file.
61763         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61764
61765 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61766
61767         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61768         wydawca.
61769
61770         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61771         program_invocation_name and program_invocation_short_name are
61772         present.
61773
61774 2008-02-28  Bruno Haible  <bruno@clisp.org>
61775
61776         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61777         * tests/test-freadptr.sh: Also test non-seekable stdin.
61778
61779 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61780
61781         * build-aux/bootstrap (source_base, m4_base)
61782         (doc_base, tests_base): New variables.
61783         (gnulib_tool_options): Do not hardcode base directories, use
61784         the above variables instead.
61785
61786 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61787
61788         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61789
61790 2008-02-28  Bruno Haible  <bruno@clisp.org>
61791
61792         * modules/freadptr-tests: New file.
61793         * tests/test-freadptr.sh: New file.
61794         * tests/test-freadptr.c: New file.
61795
61796         New module 'freadptr'.
61797         * modules/freadptr: New file.
61798         * lib/freadptr.h: New file.
61799         * lib/freadptr.c: New file.
61800         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61801
61802 2008-02-26  Karl Berry  <karl@freefriends.org>
61803
61804         Sync from Libtool:
61805         * libltdl/argz.c (argz_add, argz_count): New functions.
61806         * libltdl/argz.in.h: Declare them.
61807         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61808
61809 2008-02-22  Bruno Haible  <bruno@clisp.org>
61810
61811         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61812         is a pointer type.  Needed for HP-UX 10.
61813         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61814         * doc/posix-functions/gmtime_r.texi: Likewise.
61815         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61816
61817 2008-02-24  Bruno Haible  <bruno@clisp.org>
61818
61819         * modules/environ-tests: New file.
61820         * tests/test-environ.c: New file.
61821
61822         New module 'environ'.
61823         * modules/environ: New file.
61824         * lib/unistd.in.h (environ): New declaration.
61825         * m4/environ.m4: New file.
61826         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61827         after use.
61828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61829         HAVE_DECL_ENVIRON.
61830         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61831         HAVE_DECL_ENVIRON.
61832         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61833         wrong claim that 'environ' is missing on some systems.
61834         * modules/execute (Depends-on): Add environ.
61835         * lib/execute.c (environ): Remove fallback declaration.
61836         * modules/pipe (Depends-on): Add environ.
61837         * lib/pipe.c (environ): Remove fallback declaration.
61838         * modules/setenv (Depends-on): Add environ.
61839         * lib/setenv.c (environ): Remove fallback declaration.
61840         * modules/unsetenv (Depends-on): Add environ.
61841         * lib/unsetenv.c (environ): Remove fallback declaration.
61842         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61843         m4/environ.m4.
61844         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61845         (gl_PREREQ_UNSETENV): Likewise.
61846
61847 2008-02-24  Bruno Haible  <bruno@clisp.org>
61848
61849         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61850
61851 2008-02-20  Bob Proulx  <bob@proulx.com>
61852
61853         Enable use of older two part flavor 'git describe'.
61854         * build-aux/git-version-gen: If using the older two part flavor of
61855         git version then recreate the third part now present in the
61856         newer three part flavor of git describe.
61857
61858 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61859
61860         * lib/fts.c (fts_build): Typo correction to comment.
61861
61862 2008-02-17  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61865         generating no-op conflicts.
61866
61867 2008-02-17  Bruno Haible  <bruno@clisp.org>
61868
61869         Speed up by 10%.
61870         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61871         result_entries, rather than an index-based loop.
61872
61873 2008-02-17  Bruno Haible  <bruno@clisp.org>
61874
61875         Speed up by 25%.
61876         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61877         'hashcode_cached'.
61878         (entry_create): New function.
61879         (entry_hashcode): Use the cached hashcode if possible.
61880         (read_changelog_file, try_split_merged_entry): Use entry_create.
61881
61882 2008-02-17  Bruno Haible  <bruno@clisp.org>
61883
61884         Speed up from O(n^2) to O(n) for long ChangeLog files.
61885         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61886         (read_changelog_file): Change implementation of entries_reversed list
61887         to rbtreehash.
61888         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61889
61890 2008-02-17  Bruno Haible  <bruno@clisp.org>
61891
61892         New option --split-merged-entry.
61893         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61894         (find_paragraph_end, try_split_merged_entry): New functions.
61895         (long_options): Add option --split-merged-entry.
61896         (usage): Document option --split-merged-entry.
61897         (main): Implement option --split-merged-entry.
61898         Reported by Eric Blake.
61899
61900 2008-02-17  Bruno Haible  <bruno@clisp.org>
61901
61902         * lib/git-merge-changelog.c: Include c-strstr.h.
61903         (main): Support the "git pull --rebase" situation.
61904         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61905         Reported by Eric Blake.
61906
61907 2008-02-16  Eric Blake  <ebb9@byu.net>
61908
61909         Avoid doubling \ in common case of "c-maybe" quoting style.
61910         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61911         eliding outer quotes.
61912         * lib/quotearg.h: Document this.
61913         * tests/test-quotearg.c (result_strings, inputs, results_g)
61914         (flag_results, locale_results): Test it by adding a new string to
61915         each test group.
61916         (compare_strings): Test new string.
61917
61918 2008-02-13  Eric Blake  <ebb9@byu.net>
61919
61920         Avoid trigraph quoting in default output.
61921         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61922         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61923         unless explicitly requested.
61924         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61925
61926 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61927
61928         Don't rely on signed integer overflowing to negative value.
61929         * lib/getugroups.c (getugroups): Include <limits.h>.
61930         Instead, compare against INT_MAX, and increment only if the test passes.
61931
61932 2008-02-13  Jim Meyering  <meyering@redhat.com>
61933         and Eric Blake  <ebb9@byu.net>
61934
61935         Avoid shadowing warning and compile errors on Linux.
61936         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61937         forwarding macros on Linux.
61938         (dcgettext): Define a stub, for Linux.
61939         (results_g, main): Avoid warnings.
61940
61941 2008-02-12  Eric Blake  <ebb9@byu.net>
61942
61943         Silence warning in last patch.
61944         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61945
61946         Quotearg part 4: add tests, fix c-maybe colon quoting.
61947         * lib/quotearg.h: Improve documentation.
61948         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61949         escapes when adding outer quotes.  When quoting trigraphs, use
61950         valid C notation.  When quoting NUL, omit extra characters if next
61951         character is not digit.  Alter prototype.
61952         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61953         callers.
61954         * modules/quotearg-tests: New module.
61955         * tests/test-quotearg.c: New test.
61956
61957 2008-02-07  Eric Blake  <ebb9@byu.net>
61958
61959         Quotearg part 3: add flag to control outer quote elision.
61960         * lib/quotearg.h (c_maybe_quoting_style): New style.
61961         (enum quoting_flags): Better documentation of flags.
61962         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61963         c-maybe style.
61964         (quotearg_buffer_restyled): Handle new flag to elide outer
61965         quotes.
61966
61967         Quotearg part 2: add flag that can control NUL elision.
61968         * lib/quotearg.h (set_quoting_flags): New prototype.
61969         * lib/quotearg.c (struct quoting_options): Add flag field.
61970         (set_quoting_flags): New function.
61971         (quotearg_buffer_restyled): Add flags parameter.
61972         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61973         (quotearg_n_options): Set the flag, since length cannot be
61974         returned.
61975         (quoting_options_from_style): Default flags correctly.
61976
61977         Quotearg part 1: more wrappers, restore quotearg_char state.
61978         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61979         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61980         (quotearg_colon_mem): New wrappers.
61981         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61982         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61983         functions.
61984         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61985         (quotearg_colon_mem): New functions.
61986
61987 2008-02-11  Bruno Haible  <bruno@clisp.org>
61988
61989         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61990         library in the current directory: it does not work with parallel make.
61991         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61992
61993 2008-02-11  Bruno Haible  <bruno@clisp.org>
61994
61995         * .gitattributes: New file.
61996
61997 2008-02-11  Jim Meyering  <meyering@redhat.com>
61998
61999         useless-if-before-free: Fix reversed exit values.
62000         * build-aux/useless-if-before-free: Use correct values
62001         for EXIT_MATCH and EXIT_NO_MATCH.
62002
62003         * build-aux/useless-if-before-free: Close stdout carefully.
62004
62005 2008-02-10  Bruno Haible  <bruno@clisp.org>
62006
62007         New module 'git-merge-changelog'.
62008         * modules/git-merge-changelog: New file.
62009         * lib/git-merge-changelog.c: New file.
62010
62011 2008-02-10  Jim Meyering  <meyering@redhat.com>
62012
62013         useless-if-before-free: New option: --list (-l).
62014
62015         useless-if-before-free: Don't exit immediately upon open failure.
62016         * build-aux/useless-if-before-free: Exit 2 for errors.
62017         Upon failure to open a file, don't exit immediately.
62018         Rather, just warn and continue with any remaining files.
62019
62020 2008-02-10  Bruno Haible  <bruno@clisp.org>
62021
62022         New abstract list operation 'node_set_value'.
62023         * lib/gl_list.h (gl_list_node_set_value): New function.
62024         (struct gl_list_implementation): New field node_set_value.
62025         * lib/gl_list.c (gl_list_node_set_value): New function.
62026         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62027         (gl_array_list_implementation): Update.
62028         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62029         (gl_carray_list_implementation): Update.
62030         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62031         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62032         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62033         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62034         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62035         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62036         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62037         Update.
62038         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62039         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62040         (gl_sublist_list_implementation): Update.
62041
62042 2008-02-10  Bruno Haible  <bruno@clisp.org>
62043
62044         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62045         Needed when ELEMENT is #defined to 'some_type *'.
62046
62047 2008-02-10  Jim Meyering  <meyering@redhat.com>
62048
62049         New script and module: useless-if-before-free
62050         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62051         * build-aux/useless-if-before-free: New file.
62052         * modules/useless-if-before-free: New file.
62053
62054         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62055
62056         xstrtol_error: Fix typo.
62057         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62058         s/exit_failure/exit_status/.
62059
62060 2008-02-09  Jim Meyering  <meyering@redhat.com>
62061
62062         New script and module: gitlog-to-changelog
62063         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62064         * modules/gitlog-to-changelog: New file.
62065         * build-aux/gitlog-to-changelog: New file.
62066
62067 2008-02-08  Jim Meyering  <meyering@redhat.com>
62068
62069         Avoid two "parameter unused" warnings.
62070         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62071         Mark "st" as used.
62072
62073         Use "git COMMAND", not "git-COMMAND".
62074         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62075         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62076         * build-aux/git-version-gen: Use "git status", not "git-status".
62077
62078 2008-02-07  Bruno Haible  <bruno@clisp.org>
62079
62080         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62081         Avoids a crash on Windows Vista.
62082         Reported by Adam Strzelecki <ono@java.pl> via
62083         Simon Josefsson <simon@josefsson.org>.
62084
62085 2008-02-06  Bruno Haible  <bruno@clisp.org>
62086
62087         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62088         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62089         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62091         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62092         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62093         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62094         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62099         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62100         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62101         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62102         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62103         left-adjust flag.
62104         * tests/test-snprintf-posix.h (test_function): Likewise.
62105         * tests/test-sprintf-posix.h (test_function): Likewise.
62106         * tests/test-vasprintf-posix.c (test_function): Likewise.
62107         * doc/posix-functions/fprintf.texi: Update.
62108         * doc/posix-functions/printf.texi: Update.
62109         * doc/posix-functions/snprintf.texi: Update.
62110         * doc/posix-functions/sprintf.texi: Update.
62111         * doc/posix-functions/vfprintf.texi: Update.
62112         * doc/posix-functions/vprintf.texi: Update.
62113         * doc/posix-functions/vsnprintf.texi: Update.
62114         * doc/posix-functions/vsprintf.texi: Update.
62115         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62116
62117 2008-02-06  Bruno Haible  <bruno@clisp.org>
62118
62119         Fix bug introduced on 2008-01-26.
62120         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62121
62122 2008-02-06  Bruno Haible  <bruno@clisp.org>
62123
62124         Fix bug introduced on 2007-06-10.
62125         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62126         !NEED_PRINTF_FLAG_ZERO.
62127
62128 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62129
62130         getloadavg: use libperfstat on AIX5
62131         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62132
62133 2008-02-03  Bruno Haible  <bruno@clisp.org>
62134
62135         * lib/diffseq.h: Add comments about required #includes.
62136         Reported by Michael Biggs <gnulib@doubleplum.net>.
62137
62138 2008-02-01  Bruno Haible  <bruno@clisp.org>
62139
62140         * users.txt: Add gnuit.
62141
62142 2008-01-31  Bruno Haible  <bruno@clisp.org>
62143
62144         * lib/md4.c (set_uint32): Mark as inline.
62145         * lib/md5.c (set_uint32): Likewise.
62146         * lib/sha1.c (set_uint32): Likewise.
62147         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62148         * m4/md5.m4 (gl_MD5): Likewise.
62149         * m4/sha1.m4 (gl_SHA1): Likewise.
62150
62151 2008-01-31  Jim Meyering  <meyering@redhat.com>
62152
62153         Use "sizeof VAR", rather than a literal "4".
62154         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62155         * lib/md4.c (md4_read_ctx): Likewise.
62156         * lib/sha1.c (sha1_read_ctx): Likewise.
62157
62158 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62159
62160         * tests/test-sha1.c: New file, based on test-md5.c.
62161
62162         * modules/crypto/sha1-tests: New file.
62163
62164 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62165
62166         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62167
62168 2008-01-31  Jim Meyering  <meyering@redhat.com>
62169
62170         Prefer "sizeof v" over the equivalent "4".
62171         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62172         * lib/md5.c (set_uint32): Likewise.
62173         * lib/sha1.c (set_uint32): Likewise.
62174
62175 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62176
62177         * lib/sha1.c (set_uint32): Mark function as static.
62178
62179 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62180
62181         md2: clarify comments to say that alignment is not required.
62182         * lib/md2.h: Remove warning about alignment in comment.
62183         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62184         never been required.
62185
62186 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62187
62188         md4: adapt alignment constraint fix from sha1.
62189         * lib/md4.c (set_uint32): New function, from sha1.c
62190         (md4_read_ctx): Use it.
62191         (md4_finish_ctx): Doc fix.
62192         * lib/md4.h: Doc fix.
62193
62194 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62195
62196         md5: adapt alignment constraint fix from sha1.
62197         * lib/md5.c (set_uint32): New function, from sha1.c
62198         (md5_read_ctx): Use it.
62199         (md5_finish_ctx): Doc fix.
62200         * lib/md5.h: Doc fix.
62201
62202 2008-01-30  Peter Palfrader  <weasel@debian.org>
62203
62204         sha1: remove the result buffer alignment constraint
62205         * lib/sha1.c (set_uint32): New function.
62206         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62207         constraint.
62208         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62209         * lib/sha1.h: Likewise.
62210
62211 2008-01-30  Andreas Schwab  <schwab@suse.de>
62212             Bruno Haible  <bruno@clisp.org>
62213
62214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62215         correct definition of LDBL_MIN_EXP.
62216
62217 2008-01-30  Karl Berry  <karl@gnu.org>
62218
62219         * config/srclist-update: try to preserve x bit on updates.
62220         * config/srclistvars.sh: update for karl.
62221
62222 2008-01-29  Jim Meyering  <meyering@redhat.com>
62223
62224         vasnprintf.c: Avoid warning about unused label
62225         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62226         "overflow" label definition and associated code with the
62227         same cpp condition that guards the sole use of that label.
62228
62229 2008-01-26  Bruno Haible  <bruno@clisp.org>
62230
62231         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62232         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62233         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62234         * lib/isnanl-nolibm.h (isnanl): Likewise.
62235         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62236
62237 2008-01-26  Bruno Haible  <bruno@clisp.org>
62238
62239         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62240         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62241
62242 2008-01-26  Bruno Haible  <bruno@clisp.org>
62243
62244         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62245         GCC >= 4.0 built-in.
62246         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62247
62248 2008-01-26  Bruno Haible  <bruno@clisp.org>
62249
62250         Rename isnan, applicable to 'double' only, to isnand.
62251         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62252         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62253         (configure.ac): Update.
62254         (Include): Replace "isnan.h" with "isnand.h".
62255         * m4/isnand.m4: Renamed from m4/isnan.m4.
62256         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62257         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62258         instead of isnan.c.
62259         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62260         instead of HAVE_ISNAN_IN_LIBC.
62261         (isnand): Renamed from isnan.
62262         * lib/isnand.c: New file.
62263         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62264         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62265         (Makefile.am): Update.
62266         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62267         Include isnand.h instead of isnan.h.
62268         (main): Test isnand instead of isnan.
62269         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62270         isnan-nolibm.
62271         * modules/frexp (Depends-on): Likewise.
62272         * modules/frexp-tests (Depends-on): Likewise.
62273         * modules/frexp-nolibm (Depends-on): Likewise.
62274         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62275         * modules/isfinite (Depends-on): Likewise.
62276         * modules/round-tests (Depends-on): Likewise.
62277         * modules/signbit (Depends-on): Likewise.
62278         * modules/signbit-tests (Depends-on): Likewise.
62279         * modules/snprintf-posix (Depends-on): Likewise.
62280         * modules/sprintf-posix (Depends-on): Likewise.
62281         * modules/trunc-tests (Depends-on): Likewise.
62282         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62283         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62284         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62285         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62286         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62287         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62288         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62289         * modules/vasnprintf-posix (Depends-on): Likewise.
62290         * modules/vasprintf-posix (Depends-on): Likewise.
62291         * modules/vfprintf-posix (Depends-on): Likewise.
62292         * modules/vsnprintf-posix (Depends-on): Likewise.
62293         * modules/vsprintf-posix (Depends-on): Likewise.
62294         * lib/frexp.c: Include isnand.h instead of isnan.h.
62295         (ISNAN): Set to isnand instead of isnan.
62296         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62297         (gl_isfinited): Use isnand instead of isnan.
62298         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62299         (gl_signbitd): Use isnand instead of isnan.
62300         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62301         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62302         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62303         (main): Use isnand instead of isnan.
62304         * tests/test-round1.c: Include isnand.h.
62305         (main): Use isnand instead of isnan.
62306         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62307         (ISNAN): Set to isnand instead of isnan.
62308         * tests/test-trunc1.c: Include isnand.h.
62309         (main): Use isnand instead of isnan.
62310         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62311         (equal): Use isnand instead of isnan.
62312         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62313         isnand-nolibm.
62314         * NEWS: Mention the change.
62315
62316 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62317             Bruno Haible  <bruno@clisp.org>
62318
62319         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62320         the GCC builtins for signbits are present and set
62321         REPLACE_SIGNBIT_USING_GCC if so.
62322         * lib/math.in.h (signbit): Define using GCC builtins if
62323         REPLACE_SIGNBIT_USING_GCC is set.
62324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62325         REPLACE_SIGNBIT_USING_GCC.
62326         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62327
62328 2008-01-25  Jim Meyering  <meyering@redhat.com>
62329
62330         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62331         * lib/poll.c: Include <config.h>, not "config.h".
62332         * tests/test-getaddrinfo.c: Likewise.
62333
62334 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62335
62336         * modules/sockets-tests: New file.
62337
62338 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62339
62340         * modules/sockets: New module, can be used to call WSA_Startup and
62341         WSA_Cleanup when needed.
62342
62343         * lib/sockets.h, lib/sockets.c: New files.
62344
62345         * m4/sockets.m4: New file.
62346
62347         * tests/test-sockets.c: New file.
62348
62349 2008-01-19  Bruno Haible  <bruno@clisp.org>
62350
62351         * doc/posix-headers: Renamed from doc/headers.
62352         * doc/posix-functions: Renamed from doc/functions.
62353         * doc/gnulib.texi: Update.
62354
62355 2008-01-19  Bruno Haible  <bruno@clisp.org>
62356
62357         * doc/glibc-functions/strcasestr.texi: Include contents of
62358         doc/functions/strcasestr.texi, fixing the list of platforms.
62359         * doc/functions/strcasestr.texi: Remove file.
62360
62361 2008-01-19  Bruno Haible  <bruno@clisp.org>
62362
62363         * doc/glibc-functions/memmem.texi: Include contents of
62364         doc/functions/memmem.texi.
62365         * doc/functions/memmem.texi: Remove file.
62366
62367 2008-01-18  Bruno Haible  <bruno@clisp.org>
62368
62369         * doc/glibc-functions/*.texi: New files.
62370         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62371         to use the new files.
62372
62373 2008-01-17  Bruno Haible  <bruno@clisp.org>
62374
62375         * tests/test-gethostname.c (main): Fix printf statement.
62376
62377 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62378
62379         * modules/gethostname-tests: New file.
62380
62381         * tests/test-gethostname.c: New file.
62382
62383 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62384
62385         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62386         used by the UNAME case.  Reported by Bruno Haible
62387         <bruno@clisp.org>.
62388
62389 2008-01-17  Eric Blake  <ebb9@byu.net>
62390
62391         Convert c-strcasestr to be more efficient.
62392         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62393         (Depends-on): Add c-strcase, remove malloca, strnlen.
62394         * tests/test-c-strcasestr.c (main): Enhance test.
62395         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62396
62397 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62398
62399         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62400         Use it in creating po/Makevars.
62401
62402 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62403
62404         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62405         Applications that requires it should initialize libgcrypt
62406         manually.
62407
62408 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62409
62410         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62411
62412 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62413
62414         Fix problem with getdate on mingw32 reported by Simon Josefsson
62415         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62416         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62417         tzname", when deciding whether to declare tzname.
62418         * lib/strftime.c (tzname): Likewise.
62419
62420 2008-01-15  Bruno Haible  <bruno@clisp.org>
62421
62422         Work around a MacOS X 10.5 bug in frexpl().
62423         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62424         * doc/functions/frexpl.texi: Document the bug.
62425         Reported by Elias Pipping <pipping@gentoo.org>.
62426
62427 2008-01-14  Eric Blake  <ebb9@byu.net>
62428
62429         Touch up previous patch.
62430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62431         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62432
62433         Convert strcasestr module to use Two-Way algorithm.
62434         * modules/strcasestr-simple: New module, based on the old
62435         strcasestr, but with Two-Way rather than KMP.
62436         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62437         * lib/string.in.h (rpl_strcasestr): Declare.
62438         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62439         performance.
62440         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62441         * modules/string (Makefile.am): Support strcasestr.
62442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62443         * modules/strcasestr-tests (Depends-on): Check for alarm.
62444         * tests/test-strcasestr.c: Augment test.
62445         * lib/str-two-way.h: Clean up stray macro.
62446         * NEWS: Document new module.
62447         * MODULES.html.sh (string handling): Likewise.
62448         * doc/functions/strcasestr.texi: New file.
62449         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62450         here, since it is not a POSIX function.
62451
62452 2008-01-14  Colin Watson  <cjwatson@debian.org>
62453             Bruno Haible  <bruno@clisp.org>
62454
62455         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62456         works fine; if not, set REPLACE_STRSIGNAL.
62457         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62459         REPLACE_STRSIGNAL.
62460         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62461         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62462         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62463
62464 2008-01-14  Bruno Haible  <bruno@clisp.org>
62465
62466         * modules/strsignal (Include): Change to <string.h>.
62467
62468 2008-01-14  Colin Watson  <cjwatson@debian.org>
62469
62470         * modules/argp (Notice): Add a notice recommending to change
62471         XGETTEXT_OPTIONS.
62472         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62473
62474 2008-01-13  Colin Watson  <cjwatson@debian.org>
62475
62476         * modules/strsignal-tests: New file.
62477         * tests/test-strsignal.c: New file.
62478
62479         * lib/strsignal.c: New file, from glibc with modifications.
62480         * lib/siglist.h: New file, from glibc with modifications.
62481         * lib/string.in.h (strsignal): New declaration.
62482         * m4/strsignal.m4: New file.
62483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62484         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62485         * modules/strsignal: New file.
62486         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62487         HAVE_DECL_STRSIGNAL.
62488
62489 2008-01-13  Bruno Haible  <bruno@clisp.org>
62490
62491         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62492         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62493         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62494         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62495
62496 2008-01-13  Bruno Haible  <bruno@clisp.org>
62497
62498         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62499         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62500         * lib/argp.h (__attribute__): Likewise.
62501         * lib/c-stack.c (__attribute__): Likewise.
62502         * lib/error.h (__attribute__): Likewise.
62503         * lib/fts.c (__attribute__): Likewise.
62504         * lib/openat.h (__attribute__): Likewise.
62505         * lib/stdio.in.h (__attribute__): Likewise.
62506         * lib/string.in.h (__attribute__): Likewise.
62507         * lib/utimens.c (__attribute__): Likewise.
62508         * lib/vasnprintf.h (__attribute__): Likewise.
62509         * lib/xalloc.h (__attribute__): Likewise.
62510         * lib/xprintf.h (__attribute__): Likewise.
62511         * lib/xstrtol.h (__attribute__): Likewise.
62512         * lib/xvasprintf.h (__attribute__): Likewise.
62513
62514 2008-01-12  Bruno Haible  <bruno@clisp.org>
62515
62516         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62517         * doc/glibc-headers/a.out.texi: New file.
62518         * doc/glibc-headers/aliases.texi: New file.
62519         * doc/glibc-headers/alloca.texi: New file.
62520         * doc/glibc-headers/ar.texi: New file.
62521         * doc/glibc-headers/argp.texi: New file.
62522         * doc/glibc-headers/argz.texi: New file.
62523         * doc/glibc-headers/byteswap.texi: New file.
62524         * doc/glibc-headers/crypt.texi: New file.
62525         * doc/glibc-headers/endian.texi: New file.
62526         * doc/glibc-headers/envz.texi: New file.
62527         * doc/glibc-headers/err.texi: New file.
62528         * doc/glibc-headers/error.texi: New file.
62529         * doc/glibc-headers/execinfo.texi: New file.
62530         * doc/glibc-headers/fpu_control.texi: New file.
62531         * doc/glibc-headers/fstab.texi: New file.
62532         * doc/glibc-headers/fts.texi: New file.
62533         * doc/glibc-headers/getopt.texi: New file.
62534         * doc/glibc-headers/ieee754.texi: New file.
62535         * doc/glibc-headers/ifaddrs.texi: New file.
62536         * doc/glibc-headers/libintl.texi: New file.
62537         * doc/glibc-headers/mcheck.texi: New file.
62538         * doc/glibc-headers/mntent.texi: New file.
62539         * doc/glibc-headers/obstack.texi: New file.
62540         * doc/glibc-headers/paths.texi: New file.
62541         * doc/glibc-headers/printf.texi: New file.
62542         * doc/glibc-headers/pty.texi: New file.
62543         * doc/glibc-headers/resolv.texi: New file.
62544         * doc/glibc-headers/shadow.texi: New file.
62545         * doc/glibc-headers/sysexits.texi: New file.
62546         * doc/glibc-headers/ttyent.texi: New file.
62547
62548 2008-01-12  Jim Meyering  <meyering@redhat.com>
62549
62550         announce-gen: emit Gnulib's git-based version string.
62551         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62552         New option --gnulib-version=V, where V is expected to be
62553         the output of running git describe in the gnulib directory.
62554         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62555         not useful, and plan to stop publishing an xdelta file with each
62556         coreutils release.
62557
62558         * build-aux/announce-gen: Also check for lzma-compressed files.
62559
62560 2008-01-11  Bruno Haible  <bruno@clisp.org>
62561
62562         * tests/test-memmem.c (main): Increase maximum allowed time.
62563         * tests/test-strstr.c (main): Likewise.
62564
62565 2008-01-11  Bruno Haible  <bruno@clisp.org>
62566
62567         * doc/functions/memmem.texi: Add more precisions about platforms.
62568         * doc/functions/strstr.texi: Likewise.
62569
62570 2008-01-10  Eric Blake  <ebb9@byu.net>
62571
62572         * m4/strstr.m4: Delete cruft from copy-n-paste.
62573         Reported by Bruno Haible.
62574
62575 2008-01-10  Bruno Haible  <bruno@clisp.org>
62576
62577         Make c-strstr rely on strstr.
62578         * lib/c-strstr.c: Don't include str-kmp.h.
62579         (c_strstr): Define in terms of strstr.
62580         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62581         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62582
62583 2008-01-10  Bruno Haible  <bruno@clisp.org>
62584
62585         * doc/gnulib.texi (String Functions in C Locale): New section.
62586         * doc/c-ctype.texi: New file.
62587         * doc/c-strcase.texi: New file.
62588         * doc/c-strcaseeq.texi: New file.
62589         * doc/c-strcasestr.texi: New file.
62590         * doc/c-strstr.texi: New file.
62591         * doc/c-strtod.texi: New file.
62592         * doc/c-strtold.texi: New file.
62593
62594 2008-01-10  Eric Blake  <ebb9@byu.net>
62595
62596         * lib/relocatable.h: Fix a comment.
62597
62598 2008-01-10  Eric Blake  <ebb9@byu.net>
62599
62600         Share two-way algorithm.
62601         * lib/str-two-way.h: New file, merged from...
62602         * lib/memmem.c: ...here...
62603         * lib/strstr.c: ...and here.
62604         * modules/memmem (Files): Use it.
62605         * modules/strstr (Files): Likewise.
62606
62607         Avoid quadratic strstr implementations.
62608         * lib/strstr.c: New file.
62609         * m4/strstr.m4: Likewise.
62610         * modules/strstr: Likewise.
62611         * modules/strstr-tests: Likewise.
62612         * tests/test-strstr.c: Likewise.
62613         * lib/string.in.h (rpl_strstr): Declare.
62614         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62616         * modules/string (Makefile.am): Likewise.
62617         * MODULES.html.sh (string handling): Mention new module.
62618         * doc/functions/strstr.texi (strstr): Document the bug.
62619
62620 2008-01-10  Bruno Haible  <bruno@clisp.org>
62621
62622         * lib/relocatable.h (relocate): State whether result is freshly
62623         allocated or not.
62624         * lib/relocatable.c (relocate): Return a freshly allocated string
62625         instead of a pointer to a privately held string.
62626         Reported by Sylvain Beucler <beuc@gnu.org>.
62627
62628 2008-01-10  Colin Watson  <cjwatson@debian.org>
62629
62630         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62631         s/S_ISNLK/S_ISLNK/.
62632
62633 2008-01-09  Bruno Haible  <bruno@clisp.org>
62634
62635         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62636         and other files.
62637         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62638         if it's only a guess.
62639         * modules/memmem: Simplify by depending on memmem-simple.
62640
62641 2008-01-09  Bruno Haible  <bruno@clisp.org>
62642
62643         Work around OpenBSD 4.0 tdelete() bug.
62644         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62645         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62646         macros and don't redefine the enum values.
62647         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62648         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62649         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62650
62651 2008-01-09  Bruno Haible  <bruno@clisp.org>
62652
62653         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62654         (main): Don't perform the tests if setlocale did not install a UTF-8
62655         locale. Needed on OpenBSD 4.0.
62656         * modules/wcwidth-tests (Depends-on): Add localcharset.
62657
62658 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62659
62660         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62661         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62662         * NEWS: announce this.
62663         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62664
62665 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62666         and Eric Blake  <ebb9@byu.net>
62667
62668         Add memmem-simple module.
62669         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62670         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62671         * modules/memmem-simple: New file.
62672         * modules/memmem (Description): Tweak.
62673         * MODULES.html.sh (string handling): Mention new module.
62674         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62675         addressed by memmem-simple.
62676         * NEWS: Document the difference.
62677
62678 2008-01-09  Eric Blake  <ebb9@byu.net>
62679
62680         Give gcc some memmem optimization hints.
62681         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62682         (strcasestr): Declare as pure.
62683         * modules/memmem (Maintainer): Claim my implementation.
62684
62685 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62686
62687         Support AIX 6.1 and higher.
62688         * build-aux/config.libpath: Likewise.
62689         * build-aux/config.rpath: Likewise.
62690
62691 2008-01-08  Jim Meyering  <meyering@redhat.com>
62692             Bruno Haible  <bruno@clisp.org>
62693
62694         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62695         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62696         Reported by Peter Fales in
62697         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62698
62699 2008-01-08  Bruno Haible  <bruno@clisp.org>
62700
62701         * modules/unictype/category-of (Depends-on): Add
62702         unictype/category-none.
62703         * modules/unictype/category-and-tests (Depends-on): Add
62704         unictype/category-{L,N,Lu,Nd}.
62705         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62706         * modules/unictype/category-or-tests (Depends-on): Add
62707         unictype/category-{L,N}.
62708         * modules/unictype/category-name-tests (Depends-on): Add
62709         unictype/category-{Z,Nl}.
62710         Reported by Simon Josefsson.
62711
62712 2008-01-08  Bruno Haible  <bruno@clisp.org>
62713
62714         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62715         convention better.
62716         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62717         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62718         Reported by Peter Miller <millerp@canb.auug.org.au>.
62719
62720 2008-01-08  Eric Blake  <ebb9@byu.net>
62721
62722         Rewrite memmem to guarantee linear complexity without malloc.
62723         * lib/memmem.c (memmem): Use Two-Way rather than
62724         Knuth-Morris-Pratt, to allow O(1) space usage.
62725         (critical_factorization, two_way_short_needle)
62726         (two_way_long_needle): New functions.
62727         (knuth_morris_pratt): Delete.
62728         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62729         Add stdint.
62730         * tests/test-memmem.c (main): Add tests for periodic needle and
62731         sublinear performance.
62732         * doc/functions/memmem.texi (memmem): Document other deficiencies
62733         in cygwin and older glibc.
62734
62735 2008-01-08  Bruno Haible  <bruno@clisp.org>
62736
62737         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62738         augmentation.
62739
62740 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62741
62742         Add a configure time option: --disable-acl.
62743         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62744         AC_ARG_ENABLE(acl).
62745
62746 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62747
62748         * tests/test-localename.c: Don't include obsolete "setenv.h".
62749
62750         * modules/localename-tests (Depends-on): Need unsetenv.
62751
62752 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62753
62754         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62755
62756 2008-01-06  Colin Watson  <cjwatson@debian.org>
62757
62758         * users.txt: Add man-db.
62759
62760 2008-01-07  Bruno Haible  <bruno@clisp.org>
62761
62762         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62763         previous section name.
62764
62765 2008-01-07  Bruno Haible  <bruno@clisp.org>
62766
62767         * lib/progname.c (set_program_name): Don't strip off a leading
62768         "lt-" prefix outside a .libs directory.
62769         Suggested by Paul Eggert.
62770
62771 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62772             Bruno Haible  <bruno@clisp.org>
62773
62774         Improve memory cleanup in 'relocatable' module.
62775         * lib/relocatable.h (compute_curr_prefix): Change return type to
62776         'char *'.
62777         * lib/relocatable.c (compute_curr_prefix): Change return type to
62778         'char *'. Free curr_installdir after use.
62779         (relocate): Free curr_prefix_better after use.
62780         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62781
62782 2008-01-01  Bruno Haible  <bruno@clisp.org>
62783
62784         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62785         failure on older glibc systems.
62786         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62787
62788 2008-01-05  Eric Blake  <ebb9@byu.net>
62789
62790         Avoid quadratic system memmem.
62791         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62792         Reported by Ralf Wildenhues.
62793
62794         Fix memmem test for mingw.
62795         * modules/memmem-tests (configure.ac): Check for alarm.
62796         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62797         it.
62798         * doc/functions/memmem.texi: New file.
62799         * doc/gnulib.texi (Function Substitutes): Add memmem.
62800         Reported by Bruno Haible.
62801
62802 2008-01-04  Bruno Haible  <bruno@clisp.org>
62803
62804         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62805         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62806         gl_HEADER_STRING_H_DEFAULTS.
62807
62808 2008-01-04  Eric Blake  <ebb9@byu.net>
62809
62810         Shorten duration of memmem test.
62811         * tests/test-memmem.c (main): Use alarm to declare failure if test
62812         is taking too long.
62813         Reported by Ralf Wildenhues.
62814
62815 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62816
62817         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62818         string, needed by strerror.
62819
62820 2008-01-03  Colin Watson  <cjwatson@debian.org>
62821             Bruno Haible  <bruno@clisp.org>
62822
62823         * doc/gnulib-tool.texi (Localization): New section.
62824
62825 2008-01-02  Bruno Haible  <bruno@clisp.org>
62826
62827         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62828         variables to 'unsigned char *' type.
62829         Reported by Paul Eggert.
62830
62831 2008-01-02  Jim Meyering  <jim@meyering.net>
62832
62833         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62834
62835 2007-12-31  Jim Meyering  <jim@meyering.net>
62836
62837         Avoid use of private FTS type name.
62838         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62839
62840 2007-12-30  Karl Berry  <karl@gnu.org>
62841
62842         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62843         work around defect in Texinfo and/or the standalone Info browser.
62844
62845 2007-12-30  Bruno Haible  <bruno@clisp.org>
62846
62847         Unify 5 copies of the KMP code.
62848         * lib/str-kmp.h: New file.
62849         * lib/c-strcasestr.c: Include str-kmp.h.
62850         (knuth_morris_pratt): Remove function.
62851         (c_strcasestr): Update.
62852         * lib/c-strstr.c: Include str-kmp.h.
62853         (knuth_morris_pratt): Remove function.
62854         (c_strcasestr): Update.
62855         * lib/mbscasestr.c: Include str-kmp.h.
62856         (knuth_morris_pratt_unibyte): Remove function.
62857         * lib/mbsstr.c: Include str-kmp.h.
62858         (knuth_morris_pratt_unibyte): Remove function.
62859         * lib/strcasestr.c: Include str-kmp.h.
62860         (knuth_morris_pratt): Remove function.
62861         (strcasestr): Update.
62862         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62863         * modules/c-strstr (Files): Likewise.
62864         * modules/mbscasestr (Files): Likewise.
62865         * modules/mbsstr (Files): Likewise.
62866         * modules/strcasestr (Files): Likewise.
62867         Suggested by Paul Eggert.
62868
62869 2007-12-30  Bruno Haible  <bruno@clisp.org>
62870
62871         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62872         defined.
62873
62874 2007-12-30  Bruno Haible  <bruno@clisp.org>
62875
62876         * lib/xmalloca.h: Include xalloc.h.
62877         (xnmalloca): New macro.
62878
62879 2007-12-30  Bruno Haible  <bruno@clisp.org>
62880
62881         * lib/malloca.h (nmalloca): New macro.
62882         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62883         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62884         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62885         knuth_morris_pratt_multibyte): Likewise.
62886         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62887         knuth_morris_pratt_multibyte): Likewise.
62888         * lib/memmem.c (knuth_morris_pratt): Likewise.
62889         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62890
62891 2007-12-25  Bruno Haible  <bruno@clisp.org>
62892
62893         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62894         * lib/glob.c: Don't include openat.h.
62895         (link_exists2_p): Add back the code that deals with the
62896         !GLOB_ALTDIRFUNC case.
62897         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62898         let it do the filename concatenation.
62899         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62900         * modules/glob (Depends-on): Remove openat.
62901
62902 2007-12-31  Bruno Haible  <bruno@clisp.org>
62903
62904         * modules/dirfd (License): Change to LGPLv2+.
62905         Approved by Jim Meyering.
62906
62907 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62908
62909         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62910         when multiplying M by sizeof (size_t).
62911
62912 2007-12-10  Martin Lambers  <marlam@marlam.de>
62913
62914         Override getpagesize on mingw.
62915         * lib/getpagesize.c: New file.
62916         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62917         * modules/getpagesize (Files): Add lib/getpagesize.c.
62918         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62920         REPLACE_GETPAGESIZE.
62921         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62922
62923 2007-12-25  Bruno Haible  <bruno@clisp.org>
62924
62925         * modules/localcharset (Notice): New field.
62926         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62927         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62928
62929 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62930             Bruno Haible  <bruno@clisp.org>
62931
62932         Avoid using the syntax symbol() in formatted documentation.
62933         * MODULES.html.sh (func_module): When replacing symbol() with a
62934         hyperlink, remove the parentheses. Show an error if some remain.
62935         Recognize and render the '...' syntax.
62936         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62937         Rework. Add paragraph about GCC's inlining.
62938         * doc/alloca.texi: Likewise.
62939         * doc/error.texi: Remove parentheses from symbol reference.
62940         * doc/gnulib-intro.texi: Likewise.
62941         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62942         * modules/fnmatch (Description): Reword to say "the ... function".
62943         * modules/full-read (Description): Likewise.
62944         * modules/full-write (Description): Likewise.
62945         * modules/safe-read (Description): Likewise.
62946         * modules/safe-write (Description): Likewise.
62947         * modules/strchrnul (Description): Likewise.
62948         * modules/trim (Description): Likewise.
62949         * modules/error (Description): Remove parentheses from symbol
62950         references.
62951         * modules/verror (Description): Likewise.
62952         Reported by Karl Berry.
62953
62954 2007-12-25  Bruno Haible  <bruno@clisp.org>
62955
62956         Fixup after 2007-10-16 commit.
62957         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62958
62959 2007-12-24  Bruno Haible  <bruno@clisp.org>
62960
62961         Make --enable-relocatable work with DESTDIR.
62962         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62963         to compute installdir from destprog.
62964         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62965         also set the RELOC_DESTDIR variable.
62966         Reported by Левашев Иван <octagram@bluebottle.com>.
62967
62968 2007-12-24  Bruno Haible  <bruno@clisp.org>
62969
62970         Fix link error due to xalloc_die().
62971         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62972         of xreadlink.
62973         * lib/relocwrapper.c: Update comments.
62974         * build-aux/install-reloc: Remove xreadlink.c from file list.
62975         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62976         xreadlink.c.
62977         Reported by Левашев Иван <octagram@bluebottle.com>.
62978
62979 2007-12-24  Bruno Haible  <bruno@clisp.org>
62980
62981         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62982         * lib/setenv.h: Remove file.
62983         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62984         lib/setenv.h.
62985         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62986         (Depends-on): Add stdlib.
62987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62988         gl_FUNC_UNSETENV.
62989         (Include): Replace setenv.h with <stdlib.h>.
62990         * modules/unsetenv: New file.
62991         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62992         * lib/unsetenv.c: Include <stdlib.h> first.
62993         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62994         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62995         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62996         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62997         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62998         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63000         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63001         * doc/functions/unsetenv.texi: Update.
63002         * modules/xsetenv (Depends-on): Add unsetenv.
63003         * modules/getdate (Depends-on): Likewise.
63004         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63005         * lib/xsetenv.c: Don't include setenv.h.
63006         * lib/getdate.y: Likewise.
63007         * lib/relocwrapper.c: Likewise.
63008         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63009         (Depends-on): Add stdlib.
63010         * NEWS: Mention the changes.
63011         Reported by Левашев Иван <octagram@bluebottle.com>.
63012
63013 2007-12-23  Bruno Haible  <bruno@clisp.org>
63014
63015         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63016         indentation.
63017
63018 2007-12-23  Bruno Haible  <bruno@clisp.org>
63019
63020         * lib/c-strcasestr.c: Add more comments.
63021         * lib/c-strstr.c: Likewise.
63022         * lib/mbscasestr.c: Likewise.
63023         * lib/mbsstr.c: Likewise.
63024         * lib/strcasestr.c: Likewise.
63025         * lib/memmem.c: Likewise.
63026
63027 2007-12-23  Bruno Haible  <bruno@clisp.org>
63028
63029         * tests/test-memmem.c: Include <string.h> first.
63030
63031 2007-12-22  Bruno Haible  <bruno@clisp.org>
63032
63033         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63034         the contents of $testsbase.
63035         Reported by Ralf Wildenhues.
63036
63037 2007-12-22  Bruno Haible  <bruno@clisp.org>
63038
63039         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63040         two variables local_ldadd_before, local_ldadd_last.
63041
63042 2007-12-20  Eric Blake  <ebb9@byu.net>
63043
63044         Work around circular library issue when cross-compiling.
63045         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63046         that progname.o does not need to pull in rpl_memcmp.
63047
63048 2007-12-19  Eric Blake  <ebb9@byu.net>
63049
63050         Fix memmem to avoid O(n^2) worst-case complexity.
63051         * lib/memmem.c (knuth_morris_pratt): New function.
63052         (memmem): Use it if first few naive iterations fail.
63053         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63054         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63055         * modules/memchr (License): Likewise.
63056         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63057         malloca.
63058         * tests/test-memmem.c: Rewrite, borrowing ideas from
63059         test-mbsstr1.c; the old version wouldn't even compile!
63060         * modules/memmem-tests: New file.
63061         * lib/string.in.h (rpl_memmem): Add declaration.
63062         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63064         REPLACE_MEMMEM.
63065
63066 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63069         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63070         before any system include files, and undef after them all.  This
63071         should fix a problem on VMS reported by John E. Malmberg in
63072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63073
63074 2007-12-17  Eric Blake  <ebb9@byu.net>
63075
63076         Revert addition of verify, for BSD/OS.
63077         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63078         can't handle large files, for the sake of obsolete platforms.
63079         * modules/fseeko (Depends-on): Remove verify.
63080         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63081         * doc/functions/ftello.texi (ftello): Likewise.
63082         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63083         Reported by Larry Jones.
63084
63085 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63086
63087         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63088         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63089
63090 2007-12-17  Jim Meyering  <meyering@redhat.com>
63091
63092         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63093         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63094         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63095         * modules/getcwd (Depends-on): Add openat.
63096         Reported by Petr Salinger.
63097
63098 2007-12-17  Bruno Haible  <bruno@clisp.org>
63099
63100         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63101         avoid a segmentation fault of the configure test on x86_64 systems.
63102
63103 2007-12-15  Jim Meyering  <meyering@redhat.com>
63104
63105         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63106
63107 2007-12-13  Eric Blake  <ebb9@byu.net>
63108
63109         Another fseek test.
63110         * tests/test-fseek.c (main): Also test ungetc handling.
63111         * tests/test-fseeko.c (main): Likewise.
63112         * modules/fseeko (Depends-on): Add verify.
63113         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63114         large.
63115         Reported by Larry Jones.
63116
63117         Fix fseeko on mingw.
63118         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63119         seek.
63120
63121         Beef up fseek tests.
63122         * tests/test-fseek.c (main): Also test eof handling.
63123         * tests/test-fseeko.c (main): Likewise.
63124         Reported by Larry Jones.
63125
63126 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63127
63128         Fix fseeko on BSD-based platforms.
63129         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63130         successful seek.
63131
63132 2007-12-12  Eric Blake  <ebb9@byu.net>
63133
63134         Allow circular dependency of separate libtests.a
63135         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63136         when use_libtests.
63137
63138 2007-12-11  Eric Blake  <ebb9@byu.net>
63139
63140         Fix bug with -0.0L in previous patch.
63141         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63142         * tests/test-isnan.c (main): Also test on zeroes.
63143         * tests/test-isnanf.c (main): Likewise.
63144         * tests/test-isnanl.h (main): Likewise.
63145
63146         Detect pseudo-denormals on x86 even when cross-compiling.
63147         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63148         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63149         invalid bit patterns that happen to satisfy ==.
63150
63151         Avoid link failures with separate libtests.a.
63152         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63153         last, to satisfy circular dependencies.
63154
63155 2007-12-11  Eric Blake  <ebb9@byu.net>
63156         and Bruno Haible  <bruno@clisp.org>
63157
63158         Fix OpenBSD 4.0 <float.h> handling of long double.
63159         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63160         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63161         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63162
63163 2007-12-11  Jim Meyering  <meyering@redhat.com>
63164
63165         * users.txt: Add libvirt.
63166
63167         Support versions of autoconf prior to 2.59c.
63168         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63169         if it is not already defined.
63170
63171 2007-12-09  Bruno Haible  <bruno@clisp.org>
63172
63173         Let 'gnulib-tool --import' collect sources needed for the tests in
63174         tests/ rather than in lib/.
63175         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63176         argument. If true, add rules to generate libtests.a, and put libtests.a
63177         into $(LDADD). Consider source files in subdirectories and set
63178         uses_subdirs.
63179         (func_emit_initmacro_start, func_emit_initmacro_end,
63180         func_emit_initmacro_done): Pass all arguments explicitly.
63181         (func_import): Determine two module lists main_modules,
63182         testsrelated_modules. Determine use_libtests. Determine two variables
63183         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63184         instead of just sed_transform_lib_file. Determine two variables
63185         main_files and testsrelated_files. Compute 'files' as the union of
63186         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63187         func_add_or_update. In the generated gnulib-comp.m4, collect the
63188         object files for tests/ in different variables than those for lib/.
63189         Substitute LIBTESTS_LIBDEPS.
63190         (func_create_testdir): Combine the uses_subdirs results from
63191         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63192
63193 2007-12-09  Bruno Haible  <bruno@clisp.org>
63194
63195         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63196         the build-aux directory.
63197
63198 2007-12-09  Bruno Haible  <bruno@clisp.org>
63199
63200         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63201         introduced on 2006-09-09.
63202
63203 2007-12-07  Jim Meyering  <meyering@redhat.com>
63204
63205         Let these macros work also with autoconf-2.59.
63206         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63207         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63208         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63209
63210 2007-12-06  Jim Meyering  <meyering@redhat.com>
63211
63212         Avoid a configure-time syntax error in gl_FUNC_ACL.
63213         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63214         function in each branch, before testing the cache variable.
63215
63216 2007-12-04  Eric Blake  <ebb9@byu.net>
63217
63218         Make scripts executable.
63219         * build-aux/config.guess: Add execute permissions.
63220         * build-aux/config.sub: Likewise.
63221         * build-aux/gendocs.sh: Likewise.
63222
63223         Fix frexp on mingw.
63224         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63225         cross-compiling.
63226         * doc/functions/frexp.texi (frexp): Document the bug.
63227
63228         Make cygwin fseeko check more reliable.
63229         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63230         version numbers, rather than unrelated feature check.
63231         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63232         * doc/functions/ftello.texi (ftello): Likewise.
63233         Reported by Bruno Haible.
63234
63235         * m4/strerror.m4: Bump version number.
63236
63237 2007-12-03  Bruno Haible  <bruno@clisp.org>
63238
63239         * doc/functions/mprotect.texi: Mention the mingw problem.
63240
63241 2007-12-03  Eric Blake  <ebb9@byu.net>
63242
63243         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63244         REPLACE_STRERROR is initialized before this macro.
63245
63246 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63247
63248         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63249         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63250         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63251         put -lsec in even for programs other than 'ls'.  This fixes a problem
63252         for gettext reported by Bruno Haible in
63253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63254         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63255         Add support for Solaris 10.  This isn't efficient, but should get the
63256         job done for now.
63257
63258 2007-12-03  James Youngman  <jay@gnu.org>
63259
63260         * doc/regexprops-generic.texi: change "an close-group" to "a
63261         close-group" and "illegal" to "not allowed".
63262
63263 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63264
63265         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63266         pr_byname.h. Needed for the rare case when the maintainer has done
63267         "make maintainer-clean" in the source directory and then attempts a
63268         build outside the source directory.
63269         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63270         scripts_byname.h.
63271
63272 2007-12-02  Martin Lambers <marlam@marlam.de>
63273             Bruno Haible  <bruno@clisp.org>
63274
63275         * lib/getpagesize.h: Remove file.
63276         * lib/unistd.in.h: Include declaration of getpagesize here.
63277         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63278         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63279         HAVE_SYS_PARAM_H.
63280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63281         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63282         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63283         (Depends-on): Add unistd.
63284         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63285         (Include): Use <unistd.h> instead of getpagesize.h.
63286         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63287         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63288         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63289         gl_GETPAGESIZE invocation, already handled by module dependency.
63290         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63291
63292 2007-12-02  Bruno Haible  <bruno@clisp.org>
63293
63294         * modules/strings-tests: New file.
63295         * tests/test-strings.c: New file.
63296
63297         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63298         * lib/strings.in.h: New file.
63299         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63300         * m4/strings_h.m4: New file.
63301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63302         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63303         * modules/strings: New file.
63304         * modules/string (Makefile.am): Update.
63305         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63306         Reported by Karl Berry.
63307
63308 2007-12-01  Eric Blake  <ebb9@byu.net>
63309
63310         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63311         accommodate fix in cygwin 1.5.25.
63312
63313 2007-12-01  Jim Meyering  <meyering@redhat.com>
63314
63315         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63316         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63317         that would inhibit utf8-optimization of a regexp containing line-
63318         or buffer-anchors, e.g., `^', `$'.
63319
63320 2007-11-30  Bruno Haible  <bruno@clisp.org>
63321
63322         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63323         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63324         glthread_recursive_lock_init.
63325         * lib/lock.c (glthread_recursive_lock_init)
63326         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63327         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63328
63329 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63330
63331         New function qset_acl, like set_acl but with syscall semantics.
63332         * lib/acl.h (qset_acl): New decl.
63333         * lib/acl.c (qset_acl): New function.
63334         (set_acl): Use new function.  Use more-consistent diagnostics.
63335
63336 2007-11-28  Jim Meyering  <meyering@redhat.com>
63337
63338         * modules/physmem (License): Change from GPL to LGPLv2+.
63339
63340 2007-11-26  Bruno Haible  <bruno@clisp.org>
63341
63342         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63343         'long double' type has excess precision.
63344         Reported by Jim Meyering in
63345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63346
63347 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63348
63349         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63350         Sync from <http://gnu.org/licenses>.
63351         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63352         with license text from same location.
63353         * doc/maintain.texi, doc/standards.texi:  Sync from
63354         <http://savannah.gnu.org/projects/gnustandards>.
63355
63356 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
63357         and Jim Meyering  <meyering@redhat.com>
63358
63359         Adjust getdate' grammar to accept a slightly more regular language.
63360         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63361         Before, the former was rejected.
63362         * lib/getdate.y (digits_to_date_time): New function, factored
63363         out of ...
63364         (number): ...here.  Just call digits_to_date_time.
63365         (hybrid): New non-terminal to handle an <unsigned number,
63366         signed relative offset> sequence consistently.
63367
63368 2007-11-18  Jim Meyering  <meyering@redhat.com>
63369
63370         Pull my changes from coreutils:
63371         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63372         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63373         use of $gnulib_tool_option_extras, so that it's separated from the
63374         preceding argument.
63375
63376         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63377         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63378         parent destination directories before copying a file into place.
63379
63380 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63381
63382         bootstrap: work also with 4-argument variant of AC_INIT
63383         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63384
63385 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63386
63387         Port test-getaddrinfo to Solaris.
63388         Problem reported by Bruno Haible in
63389         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63390         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63391         explanation of setting 'hints'.
63392         Don't reject an implementation merely because it returns EAI_SERVICE.
63393         (EAI_SERVICE): Define to 0 if not defined.
63394
63395 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63396
63397         The license of gnu-make and posix-shell is now "GPLed build tool".
63398         * modules/gnu-make (License): Likewise.
63399         * modules/posix-shell (License): Likewise.
63400
63401         New module posix-shell, for determining a POSIX shell
63402         or perhaps something that is close enough to a POSIX shell.
63403         * m4/posix-shell.m4: New file.
63404         * modules/posix-shell: New file.
63405
63406         * MODULES.html.sh: Mention new module.
63407
63408         New module gnu-make, for determining whether we're using GNU Make.
63409         * m4/gnu-make.m4: New file.
63410         * modules/gnu-make: New file.
63411         * MODULES.html.sh: Mention new module.
63412
63413 2007-11-14  Jim Meyering  <meyering@redhat.com>
63414
63415         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63416         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63417         use this macro to create a function _definition_.
63418         Remove useless "#undef ARGMATCH_DIE".
63419
63420 2007-11-14  Bruno Haible  <bruno@clisp.org>
63421
63422         * lib/config.charset: Update for OpenBSD 4.1.
63423         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63424
63425 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63426
63427         Document 64-bit #if problems in stdint.texi.
63428         * doc/headers/stdint.texi (stdint.h): Mention problems with
63429         64-bit-#if, and how to work around them.
63430
63431         Don't insist on 'long long int' support in the preprocessor.  It
63432         breaks too many things.  For example, PRIdMAX still uses a 'long
63433         long int' format with the latest Sun compiler, even though
63434         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63435         preprocessor problem.  This causes the latest coreutils to dump
63436         core on Solaris 10 sparc with the Sun C compiler.
63437         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63438         the troublesome expressions at configure-time, not at #if-time.
63439         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63440         preprocessor.
63441         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63442         compile-time C checks, done at 'configure'-time.
63443         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63444         * modules/inttypes (Makefile): Substitute the new symbols that
63445         gl_INTTYPES_H now generates.
63446         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63447
63448 2007-11-12  Bruno Haible  <bruno@clisp.org>
63449
63450         Tests for Unicode character classification functions.
63451
63452         * modules/unictype/bidicategory-byname-tests: New file.
63453         * modules/unictype/bidicategory-name-tests: New file.
63454         * modules/unictype/bidicategory-of-tests: New file.
63455         * modules/unictype/bidicategory-test-tests: New file.
63456         * modules/unictype/block-list-tests: New file.
63457         * modules/unictype/block-of-tests: New file.
63458         * modules/unictype/block-test-tests: New file.
63459         * modules/unictype/category-C-tests: New file.
63460         * modules/unictype/category-Cc-tests: New file.
63461         * modules/unictype/category-Cf-tests: New file.
63462         * modules/unictype/category-Cn-tests: New file.
63463         * modules/unictype/category-Co-tests: New file.
63464         * modules/unictype/category-Cs-tests: New file.
63465         * modules/unictype/category-L-tests: New file.
63466         * modules/unictype/category-Ll-tests: New file.
63467         * modules/unictype/category-Lm-tests: New file.
63468         * modules/unictype/category-Lo-tests: New file.
63469         * modules/unictype/category-Lt-tests: New file.
63470         * modules/unictype/category-Lu-tests: New file.
63471         * modules/unictype/category-M-tests: New file.
63472         * modules/unictype/category-Mc-tests: New file.
63473         * modules/unictype/category-Me-tests: New file.
63474         * modules/unictype/category-Mn-tests: New file.
63475         * modules/unictype/category-N-tests: New file.
63476         * modules/unictype/category-Nd-tests: New file.
63477         * modules/unictype/category-Nl-tests: New file.
63478         * modules/unictype/category-No-tests: New file.
63479         * modules/unictype/category-P-tests: New file.
63480         * modules/unictype/category-Pc-tests: New file.
63481         * modules/unictype/category-Pd-tests: New file.
63482         * modules/unictype/category-Pe-tests: New file.
63483         * modules/unictype/category-Pf-tests: New file.
63484         * modules/unictype/category-Pi-tests: New file.
63485         * modules/unictype/category-Po-tests: New file.
63486         * modules/unictype/category-Ps-tests: New file.
63487         * modules/unictype/category-S-tests: New file.
63488         * modules/unictype/category-Sc-tests: New file.
63489         * modules/unictype/category-Sk-tests: New file.
63490         * modules/unictype/category-Sm-tests: New file.
63491         * modules/unictype/category-So-tests: New file.
63492         * modules/unictype/category-Z-tests: New file.
63493         * modules/unictype/category-Zl-tests: New file.
63494         * modules/unictype/category-Zp-tests: New file.
63495         * modules/unictype/category-Zs-tests: New file.
63496         * modules/unictype/category-and-not-tests: New file.
63497         * modules/unictype/category-and-tests: New file.
63498         * modules/unictype/category-byname-tests: New file.
63499         * modules/unictype/category-name-tests: New file.
63500         * modules/unictype/category-none-tests: New file.
63501         * modules/unictype/category-of-tests: New file.
63502         * modules/unictype/category-or-tests: New file.
63503         * modules/unictype/category-test-withtable-tests: New file.
63504         * modules/unictype/combining-class-tests: New file.
63505         * modules/unictype/ctype-alnum-tests: New file.
63506         * modules/unictype/ctype-alpha-tests: New file.
63507         * modules/unictype/ctype-blank-tests: New file.
63508         * modules/unictype/ctype-cntrl-tests: New file.
63509         * modules/unictype/ctype-digit-tests: New file.
63510         * modules/unictype/ctype-graph-tests: New file.
63511         * modules/unictype/ctype-lower-tests: New file.
63512         * modules/unictype/ctype-print-tests: New file.
63513         * modules/unictype/ctype-punct-tests: New file.
63514         * modules/unictype/ctype-space-tests: New file.
63515         * modules/unictype/ctype-upper-tests: New file.
63516         * modules/unictype/ctype-xdigit-tests: New file.
63517         * modules/unictype/decimal-digit-tests: New file.
63518         * modules/unictype/digit-tests: New file.
63519         * modules/unictype/mirror-tests: New file.
63520         * modules/unictype/numeric-tests: New file.
63521         * modules/unictype/property-alphabetic-tests: New file.
63522         * modules/unictype/property-ascii-hex-digit-tests: New file.
63523         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63524         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63525         * modules/unictype/property-bidi-block-separator-tests: New file.
63526         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63527         * modules/unictype/property-bidi-common-separator-tests: New file.
63528         * modules/unictype/property-bidi-control-tests: New file.
63529         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63530         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63531         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63532         * modules/unictype/property-bidi-european-digit-tests: New file.
63533         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63534         * modules/unictype/property-bidi-left-to-right-tests: New file.
63535         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63536         * modules/unictype/property-bidi-other-neutral-tests: New file.
63537         * modules/unictype/property-bidi-pdf-tests: New file.
63538         * modules/unictype/property-bidi-segment-separator-tests: New file.
63539         * modules/unictype/property-bidi-whitespace-tests: New file.
63540         * modules/unictype/property-byname-tests: New file.
63541         * modules/unictype/property-combining-tests: New file.
63542         * modules/unictype/property-composite-tests: New file.
63543         * modules/unictype/property-currency-symbol-tests: New file.
63544         * modules/unictype/property-dash-tests: New file.
63545         * modules/unictype/property-decimal-digit-tests: New file.
63546         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63547         * modules/unictype/property-deprecated-tests: New file.
63548         * modules/unictype/property-diacritic-tests: New file.
63549         * modules/unictype/property-extender-tests: New file.
63550         * modules/unictype/property-format-control-tests: New file.
63551         * modules/unictype/property-grapheme-base-tests: New file.
63552         * modules/unictype/property-grapheme-extend-tests: New file.
63553         * modules/unictype/property-grapheme-link-tests: New file.
63554         * modules/unictype/property-hex-digit-tests: New file.
63555         * modules/unictype/property-hyphen-tests: New file.
63556         * modules/unictype/property-id-continue-tests: New file.
63557         * modules/unictype/property-id-start-tests: New file.
63558         * modules/unictype/property-ideographic-tests: New file.
63559         * modules/unictype/property-ids-binary-operator-tests: New file.
63560         * modules/unictype/property-ids-trinary-operator-tests: New file.
63561         * modules/unictype/property-ignorable-control-tests: New file.
63562         * modules/unictype/property-iso-control-tests: New file.
63563         * modules/unictype/property-join-control-tests: New file.
63564         * modules/unictype/property-left-of-pair-tests: New file.
63565         * modules/unictype/property-line-separator-tests: New file.
63566         * modules/unictype/property-logical-order-exception-tests: New file.
63567         * modules/unictype/property-lowercase-tests: New file.
63568         * modules/unictype/property-math-tests: New file.
63569         * modules/unictype/property-non-break-tests: New file.
63570         * modules/unictype/property-not-a-character-tests: New file.
63571         * modules/unictype/property-numeric-tests: New file.
63572         * modules/unictype/property-other-alphabetic-tests: New file.
63573         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63574         * modules/unictype/property-other-grapheme-extend-tests: New file.
63575         * modules/unictype/property-other-id-continue-tests: New file.
63576         * modules/unictype/property-other-id-start-tests: New file.
63577         * modules/unictype/property-other-lowercase-tests: New file.
63578         * modules/unictype/property-other-math-tests: New file.
63579         * modules/unictype/property-other-uppercase-tests: New file.
63580         * modules/unictype/property-paired-punctuation-tests: New file.
63581         * modules/unictype/property-paragraph-separator-tests: New file.
63582         * modules/unictype/property-pattern-syntax-tests: New file.
63583         * modules/unictype/property-pattern-white-space-tests: New file.
63584         * modules/unictype/property-private-use-tests: New file.
63585         * modules/unictype/property-punctuation-tests: New file.
63586         * modules/unictype/property-quotation-mark-tests: New file.
63587         * modules/unictype/property-radical-tests: New file.
63588         * modules/unictype/property-sentence-terminal-tests: New file.
63589         * modules/unictype/property-soft-dotted-tests: New file.
63590         * modules/unictype/property-space-tests: New file.
63591         * modules/unictype/property-terminal-punctuation-tests: New file.
63592         * modules/unictype/property-test-tests: New file.
63593         * modules/unictype/property-titlecase-tests: New file.
63594         * modules/unictype/property-unassigned-code-value-tests: New file.
63595         * modules/unictype/property-unified-ideograph-tests: New file.
63596         * modules/unictype/property-uppercase-tests: New file.
63597         * modules/unictype/property-variation-selector-tests: New file.
63598         * modules/unictype/property-white-space-tests: New file.
63599         * modules/unictype/property-xid-continue-tests: New file.
63600         * modules/unictype/property-xid-start-tests: New file.
63601         * modules/unictype/property-zero-width-tests: New file.
63602         * modules/unictype/scripts-tests: New file.
63603         * modules/unictype/syntax-c-ident-tests: New file.
63604         * modules/unictype/syntax-c-whitespace-tests: New file.
63605         * modules/unictype/syntax-java-ident-tests: New file.
63606         * modules/unictype/syntax-java-whitespace-tests: New file.
63607         * tests/unictype/test-bidi_byname.c: New file.
63608         * tests/unictype/test-bidi_name.c: New file.
63609         * tests/unictype/test-bidi_of.c: New file.
63610         * tests/unictype/test-bidi_test.c: New file.
63611         * tests/unictype/test-block_list.c: New file.
63612         * tests/unictype/test-block_of.c: New file.
63613         * tests/unictype/test-block_test.c: New file.
63614         * tests/unictype/test-categ_and.c: New file.
63615         * tests/unictype/test-categ_and_not.c: New file.
63616         * tests/unictype/test-categ_byname.c: New file.
63617         * tests/unictype/test-categ_name.c: New file.
63618         * tests/unictype/test-categ_none.c: New file.
63619         * tests/unictype/test-categ_of.c: New file.
63620         * tests/unictype/test-categ_or.c: New file.
63621         * tests/unictype/test-categ_test_withtable.c: New file.
63622         * tests/unictype/test-combining.c: New file.
63623         * tests/unictype/test-decdigit.c: New file.
63624         * tests/unictype/test-digit.c: New file.
63625         * tests/unictype/test-mirror.c: New file.
63626         * tests/unictype/test-numeric.c: New file.
63627         * tests/unictype/test-pr_byname.c: New file.
63628         * tests/unictype/test-pr_test.c: New file.
63629         * tests/unictype/test-predicate-part1.h: New file.
63630         * tests/unictype/test-predicate-part2.h: New file.
63631         * tests/unictype/test-scripts.c: New file.
63632         * tests/unictype/test-sy_c_ident.c: New file.
63633         * tests/unictype/test-sy_java_ident.c: New file.
63634
63635         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63636         for Unicode 5.0.0.
63637         * tests/unictype/test-categ_Cc.c: Likewise.
63638         * tests/unictype/test-categ_Cf.c: Likewise.
63639         * tests/unictype/test-categ_Cn.c: Likewise.
63640         * tests/unictype/test-categ_Co.c: Likewise.
63641         * tests/unictype/test-categ_Cs.c: Likewise.
63642         * tests/unictype/test-categ_L.c: Likewise.
63643         * tests/unictype/test-categ_Ll.c: Likewise.
63644         * tests/unictype/test-categ_Lm.c: Likewise.
63645         * tests/unictype/test-categ_Lo.c: Likewise.
63646         * tests/unictype/test-categ_Lt.c: Likewise.
63647         * tests/unictype/test-categ_Lu.c: Likewise.
63648         * tests/unictype/test-categ_M.c: Likewise.
63649         * tests/unictype/test-categ_Mc.c: Likewise.
63650         * tests/unictype/test-categ_Me.c: Likewise.
63651         * tests/unictype/test-categ_Mn.c: Likewise.
63652         * tests/unictype/test-categ_N.c: Likewise.
63653         * tests/unictype/test-categ_Nd.c: Likewise.
63654         * tests/unictype/test-categ_Nl.c: Likewise.
63655         * tests/unictype/test-categ_No.c: Likewise.
63656         * tests/unictype/test-categ_P.c: Likewise.
63657         * tests/unictype/test-categ_Pc.c: Likewise.
63658         * tests/unictype/test-categ_Pd.c: Likewise.
63659         * tests/unictype/test-categ_Pe.c: Likewise.
63660         * tests/unictype/test-categ_Pf.c: Likewise.
63661         * tests/unictype/test-categ_Pi.c: Likewise.
63662         * tests/unictype/test-categ_Po.c: Likewise.
63663         * tests/unictype/test-categ_Ps.c: Likewise.
63664         * tests/unictype/test-categ_S.c: Likewise.
63665         * tests/unictype/test-categ_Sc.c: Likewise.
63666         * tests/unictype/test-categ_Sk.c: Likewise.
63667         * tests/unictype/test-categ_Sm.c: Likewise.
63668         * tests/unictype/test-categ_So.c: Likewise.
63669         * tests/unictype/test-categ_Z.c: Likewise.
63670         * tests/unictype/test-categ_Zl.c: Likewise.
63671         * tests/unictype/test-categ_Zp.c: Likewise.
63672         * tests/unictype/test-categ_Zs.c: Likewise.
63673         * tests/unictype/test-ctype_alnum.c: Likewise.
63674         * tests/unictype/test-ctype_alpha.c: Likewise.
63675         * tests/unictype/test-ctype_blank.c: Likewise.
63676         * tests/unictype/test-ctype_cntrl.c: Likewise.
63677         * tests/unictype/test-ctype_digit.c: Likewise.
63678         * tests/unictype/test-ctype_graph.c: Likewise.
63679         * tests/unictype/test-ctype_lower.c: Likewise.
63680         * tests/unictype/test-ctype_print.c: Likewise.
63681         * tests/unictype/test-ctype_punct.c: Likewise.
63682         * tests/unictype/test-ctype_space.c: Likewise.
63683         * tests/unictype/test-ctype_upper.c: Likewise.
63684         * tests/unictype/test-ctype_xdigit.c: Likewise.
63685         * tests/unictype/test-decdigit.h: Likewise.
63686         * tests/unictype/test-digit.h: Likewise.
63687         * tests/unictype/test-numeric.h: Likewise.
63688         * tests/unictype/test-pr_alphabetic.c: Likewise.
63689         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63690         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63691         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63692         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63693         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63694         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63695         * tests/unictype/test-pr_bidi_control.c: Likewise.
63696         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63697         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63698         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63699         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63700         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63701         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63702         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63703         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63704         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63705         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63706         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63707         * tests/unictype/test-pr_combining.c: Likewise.
63708         * tests/unictype/test-pr_composite.c: Likewise.
63709         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63710         * tests/unictype/test-pr_dash.c: Likewise.
63711         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63712         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63713         * tests/unictype/test-pr_deprecated.c: Likewise.
63714         * tests/unictype/test-pr_diacritic.c: Likewise.
63715         * tests/unictype/test-pr_extender.c: Likewise.
63716         * tests/unictype/test-pr_format_control.c: Likewise.
63717         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63718         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63719         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63720         * tests/unictype/test-pr_hex_digit.c: Likewise.
63721         * tests/unictype/test-pr_hyphen.c: Likewise.
63722         * tests/unictype/test-pr_id_continue.c: Likewise.
63723         * tests/unictype/test-pr_id_start.c: Likewise.
63724         * tests/unictype/test-pr_ideographic.c: Likewise.
63725         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63726         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63727         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63728         * tests/unictype/test-pr_iso_control.c: Likewise.
63729         * tests/unictype/test-pr_join_control.c: Likewise.
63730         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63731         * tests/unictype/test-pr_line_separator.c: Likewise.
63732         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63733         * tests/unictype/test-pr_lowercase.c: Likewise.
63734         * tests/unictype/test-pr_math.c: Likewise.
63735         * tests/unictype/test-pr_non_break.c: Likewise.
63736         * tests/unictype/test-pr_not_a_character.c: Likewise.
63737         * tests/unictype/test-pr_numeric.c: Likewise.
63738         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63739         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63740         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63741         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63742         * tests/unictype/test-pr_other_id_start.c: Likewise.
63743         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63744         * tests/unictype/test-pr_other_math.c: Likewise.
63745         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63746         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63747         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63748         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63749         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63750         * tests/unictype/test-pr_private_use.c: Likewise.
63751         * tests/unictype/test-pr_punctuation.c: Likewise.
63752         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63753         * tests/unictype/test-pr_radical.c: Likewise.
63754         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63755         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63756         * tests/unictype/test-pr_space.c: Likewise.
63757         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63758         * tests/unictype/test-pr_titlecase.c: Likewise.
63759         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63760         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63761         * tests/unictype/test-pr_uppercase.c: Likewise.
63762         * tests/unictype/test-pr_variation_selector.c: Likewise.
63763         * tests/unictype/test-pr_white_space.c: Likewise.
63764         * tests/unictype/test-pr_xid_continue.c: Likewise.
63765         * tests/unictype/test-pr_xid_start.c: Likewise.
63766         * tests/unictype/test-pr_zero_width.c: Likewise.
63767         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63768         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63769
63770 2007-11-12  Bruno Haible  <bruno@clisp.org>
63771
63772         Unicode character classification functions.
63773         * lib/unictype.h: New file.
63774         * modules/unictype/base: New file.
63775         * modules/unictype/category-L: New file.
63776         * modules/unictype/category-Lu: New file.
63777         * modules/unictype/category-Ll: New file.
63778         * modules/unictype/category-Lt: New file.
63779         * modules/unictype/category-Lm: New file.
63780         * modules/unictype/category-Lo: New file.
63781         * modules/unictype/category-M: New file.
63782         * modules/unictype/category-Mn: New file.
63783         * modules/unictype/category-Mc: New file.
63784         * modules/unictype/category-Me: New file.
63785         * modules/unictype/category-N: New file.
63786         * modules/unictype/category-Nd: New file.
63787         * modules/unictype/category-Nl: New file.
63788         * modules/unictype/category-No: New file.
63789         * modules/unictype/category-P: New file.
63790         * modules/unictype/category-Pc: New file.
63791         * modules/unictype/category-Pd: New file.
63792         * modules/unictype/category-Ps: New file.
63793         * modules/unictype/category-Pe: New file.
63794         * modules/unictype/category-Pi: New file.
63795         * modules/unictype/category-Pf: New file.
63796         * modules/unictype/category-Po: New file.
63797         * modules/unictype/category-S: New file.
63798         * modules/unictype/category-Sm: New file.
63799         * modules/unictype/category-Sc: New file.
63800         * modules/unictype/category-Sk: New file.
63801         * modules/unictype/category-So: New file.
63802         * modules/unictype/category-Z: New file.
63803         * modules/unictype/category-Zs: New file.
63804         * modules/unictype/category-Zl: New file.
63805         * modules/unictype/category-Zp: New file.
63806         * modules/unictype/category-C: New file.
63807         * modules/unictype/category-Cc: New file.
63808         * modules/unictype/category-Cf: New file.
63809         * modules/unictype/category-Cs: New file.
63810         * modules/unictype/category-Co: New file.
63811         * modules/unictype/category-Cn: New file.
63812         * modules/unictype/category-or: New file.
63813         * modules/unictype/category-of: New file.
63814         * modules/unictype/category-test: New file.
63815         * modules/unictype/category-test-withtable: New file.
63816         * modules/unictype/category-byname: New file.
63817         * modules/unictype/category-none: New file.
63818         * modules/unictype/category-and: New file.
63819         * modules/unictype/category-and-not: New file.
63820         * modules/unictype/category-name: New file.
63821         * modules/unictype/combining-class: New file.
63822         * modules/unictype/category-all: New file.
63823         * modules/unictype/bidicategory-all: New file.
63824         * modules/unictype/bidicategory-byname: New file.
63825         * modules/unictype/bidicategory-name: New file.
63826         * modules/unictype/bidicategory-of: New file.
63827         * modules/unictype/bidicategory-test: New file.
63828         * modules/unictype/decimal-digit: New file.
63829         * modules/unictype/digit: New file.
63830         * modules/unictype/numeric: New file.
63831         * modules/unictype/mirror: New file.
63832         * modules/unictype/property-white-space: New file.
63833         * modules/unictype/property-alphabetic: New file.
63834         * modules/unictype/property-other-alphabetic: New file.
63835         * modules/unictype/property-not-a-character: New file.
63836         * modules/unictype/property-default-ignorable-code-point: New file.
63837         * modules/unictype/property-other-default-ignorable-code-point: New
63838         file.
63839         * modules/unictype/property-deprecated: New file.
63840         * modules/unictype/property-logical-order-exception: New file.
63841         * modules/unictype/property-variation-selector: New file.
63842         * modules/unictype/property-private-use: New file.
63843         * modules/unictype/property-unassigned-code-value: New file.
63844         * modules/unictype/property-uppercase: New file.
63845         * modules/unictype/property-other-uppercase: New file.
63846         * modules/unictype/property-lowercase: New file.
63847         * modules/unictype/property-other-lowercase: New file.
63848         * modules/unictype/property-titlecase: New file.
63849         * modules/unictype/property-soft-dotted: New file.
63850         * modules/unictype/property-id-start: New file.
63851         * modules/unictype/property-other-id-start: New file.
63852         * modules/unictype/property-id-continue: New file.
63853         * modules/unictype/property-other-id-continue: New file.
63854         * modules/unictype/property-xid-start: New file.
63855         * modules/unictype/property-xid-continue: New file.
63856         * modules/unictype/property-pattern-white-space: New file.
63857         * modules/unictype/property-pattern-syntax: New file.
63858         * modules/unictype/property-join-control: New file.
63859         * modules/unictype/property-grapheme-base: New file.
63860         * modules/unictype/property-grapheme-extend: New file.
63861         * modules/unictype/property-other-grapheme-extend: New file.
63862         * modules/unictype/property-grapheme-link: New file.
63863         * modules/unictype/property-bidi-control: New file.
63864         * modules/unictype/property-bidi-left-to-right: New file.
63865         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63866         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63867         * modules/unictype/property-bidi-european-digit: New file.
63868         * modules/unictype/property-bidi-eur-num-separator: New file.
63869         * modules/unictype/property-bidi-eur-num-terminator: New file.
63870         * modules/unictype/property-bidi-arabic-digit: New file.
63871         * modules/unictype/property-bidi-common-separator: New file.
63872         * modules/unictype/property-bidi-block-separator: New file.
63873         * modules/unictype/property-bidi-segment-separator: New file.
63874         * modules/unictype/property-bidi-whitespace: New file.
63875         * modules/unictype/property-bidi-non-spacing-mark: New file.
63876         * modules/unictype/property-bidi-boundary-neutral: New file.
63877         * modules/unictype/property-bidi-pdf: New file.
63878         * modules/unictype/property-bidi-embedding-or-override: New file.
63879         * modules/unictype/property-bidi-other-neutral: New file.
63880         * modules/unictype/property-hex-digit: New file.
63881         * modules/unictype/property-ascii-hex-digit: New file.
63882         * modules/unictype/property-ideographic: New file.
63883         * modules/unictype/property-unified-ideograph: New file.
63884         * modules/unictype/property-radical: New file.
63885         * modules/unictype/property-ids-binary-operator: New file.
63886         * modules/unictype/property-ids-trinary-operator: New file.
63887         * modules/unictype/property-zero-width: New file.
63888         * modules/unictype/property-space: New file.
63889         * modules/unictype/property-non-break: New file.
63890         * modules/unictype/property-iso-control: New file.
63891         * modules/unictype/property-format-control: New file.
63892         * modules/unictype/property-dash: New file.
63893         * modules/unictype/property-hyphen: New file.
63894         * modules/unictype/property-punctuation: New file.
63895         * modules/unictype/property-line-separator: New file.
63896         * modules/unictype/property-paragraph-separator: New file.
63897         * modules/unictype/property-quotation-mark: New file.
63898         * modules/unictype/property-sentence-terminal: New file.
63899         * modules/unictype/property-terminal-punctuation: New file.
63900         * modules/unictype/property-currency-symbol: New file.
63901         * modules/unictype/property-math: New file.
63902         * modules/unictype/property-other-math: New file.
63903         * modules/unictype/property-paired-punctuation: New file.
63904         * modules/unictype/property-left-of-pair: New file.
63905         * modules/unictype/property-combining: New file.
63906         * modules/unictype/property-composite: New file.
63907         * modules/unictype/property-decimal-digit: New file.
63908         * modules/unictype/property-numeric: New file.
63909         * modules/unictype/property-diacritic: New file.
63910         * modules/unictype/property-extender: New file.
63911         * modules/unictype/property-ignorable-control: New file.
63912         * modules/unictype/property-test: New file.
63913         * modules/unictype/property-byname: New file.
63914         * modules/unictype/property-all: New file.
63915         * modules/unictype/scripts: New file.
63916         * modules/unictype/scripts-all: New file.
63917         * modules/unictype/block-of: New file.
63918         * modules/unictype/block-test: New file.
63919         * modules/unictype/block-list: New file.
63920         * modules/unictype/block-all: New file.
63921         * modules/unictype/syntax-c-whitespace: New file.
63922         * modules/unictype/syntax-java-whitespace: New file.
63923         * modules/unictype/syntax-c-ident: New file.
63924         * modules/unictype/syntax-java-ident: New file.
63925         * modules/unictype/ctype-alnum: New file.
63926         * modules/unictype/ctype-alpha: New file.
63927         * modules/unictype/ctype-cntrl: New file.
63928         * modules/unictype/ctype-digit: New file.
63929         * modules/unictype/ctype-graph: New file.
63930         * modules/unictype/ctype-lower: New file.
63931         * modules/unictype/ctype-print: New file.
63932         * modules/unictype/ctype-punct: New file.
63933         * modules/unictype/ctype-space: New file.
63934         * modules/unictype/ctype-upper: New file.
63935         * modules/unictype/ctype-xdigit: New file.
63936         * modules/unictype/ctype-blank: New file.
63937         * lib/unictype/bidi_byname.c: New file.
63938         * lib/unictype/bidi_name.c: New file.
63939         * lib/unictype/bidi_of.c: New file.
63940         * lib/unictype/bidi_test.c: New file.
63941         * lib/unictype/bitmap.h: New file.
63942         * lib/unictype/block_test.c: New file.
63943         * lib/unictype/blocks.c: New file.
63944         * lib/unictype/categ_C.c: New file.
63945         * lib/unictype/categ_Cc.c: New file.
63946         * lib/unictype/categ_Cf.c: New file.
63947         * lib/unictype/categ_Cn.c: New file.
63948         * lib/unictype/categ_Co.c: New file.
63949         * lib/unictype/categ_Cs.c: New file.
63950         * lib/unictype/categ_L.c: New file.
63951         * lib/unictype/categ_Ll.c: New file.
63952         * lib/unictype/categ_Lm.c: New file.
63953         * lib/unictype/categ_Lo.c: New file.
63954         * lib/unictype/categ_Lt.c: New file.
63955         * lib/unictype/categ_Lu.c: New file.
63956         * lib/unictype/categ_M.c: New file.
63957         * lib/unictype/categ_Mc.c: New file.
63958         * lib/unictype/categ_Me.c: New file.
63959         * lib/unictype/categ_Mn.c: New file.
63960         * lib/unictype/categ_N.c: New file.
63961         * lib/unictype/categ_Nd.c: New file.
63962         * lib/unictype/categ_Nl.c: New file.
63963         * lib/unictype/categ_No.c: New file.
63964         * lib/unictype/categ_P.c: New file.
63965         * lib/unictype/categ_Pc.c: New file.
63966         * lib/unictype/categ_Pd.c: New file.
63967         * lib/unictype/categ_Pe.c: New file.
63968         * lib/unictype/categ_Pf.c: New file.
63969         * lib/unictype/categ_Pi.c: New file.
63970         * lib/unictype/categ_Po.c: New file.
63971         * lib/unictype/categ_Ps.c: New file.
63972         * lib/unictype/categ_S.c: New file.
63973         * lib/unictype/categ_Sc.c: New file.
63974         * lib/unictype/categ_Sk.c: New file.
63975         * lib/unictype/categ_Sm.c: New file.
63976         * lib/unictype/categ_So.c: New file.
63977         * lib/unictype/categ_Z.c: New file.
63978         * lib/unictype/categ_Zl.c: New file.
63979         * lib/unictype/categ_Zp.c: New file.
63980         * lib/unictype/categ_Zs.c: New file.
63981         * lib/unictype/categ_and.c: New file.
63982         * lib/unictype/categ_and_not.c: New file.
63983         * lib/unictype/categ_byname.c: New file.
63984         * lib/unictype/categ_name.c: New file.
63985         * lib/unictype/categ_none.c: New file.
63986         * lib/unictype/categ_of.c: New file.
63987         * lib/unictype/categ_or.c: New file.
63988         * lib/unictype/categ_test.c: New file.
63989         * lib/unictype/combining.c: New file.
63990         * lib/unictype/ctype_alnum.c: New file.
63991         * lib/unictype/ctype_alpha.c: New file.
63992         * lib/unictype/ctype_blank.c: New file.
63993         * lib/unictype/ctype_cntrl.c: New file.
63994         * lib/unictype/ctype_digit.c: New file.
63995         * lib/unictype/ctype_graph.c: New file.
63996         * lib/unictype/ctype_lower.c: New file.
63997         * lib/unictype/ctype_print.c: New file.
63998         * lib/unictype/ctype_punct.c: New file.
63999         * lib/unictype/ctype_space.c: New file.
64000         * lib/unictype/ctype_upper.c: New file.
64001         * lib/unictype/ctype_xdigit.c: New file.
64002         * lib/unictype/decdigit.c: New file.
64003         * lib/unictype/digit.c: New file.
64004         * lib/unictype/identsyntaxmap.h: New file.
64005         * lib/unictype/mirror.c: New file.
64006         * lib/unictype/numeric.c: New file.
64007         * lib/unictype/pr_alphabetic.c: New file.
64008         * lib/unictype/pr_ascii_hex_digit.c: New file.
64009         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64010         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64011         * lib/unictype/pr_bidi_block_separator.c: New file.
64012         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64013         * lib/unictype/pr_bidi_common_separator.c: New file.
64014         * lib/unictype/pr_bidi_control.c: New file.
64015         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64016         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64017         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64018         * lib/unictype/pr_bidi_european_digit.c: New file.
64019         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64020         * lib/unictype/pr_bidi_left_to_right.c: New file.
64021         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64022         * lib/unictype/pr_bidi_other_neutral.c: New file.
64023         * lib/unictype/pr_bidi_pdf.c: New file.
64024         * lib/unictype/pr_bidi_segment_separator.c: New file.
64025         * lib/unictype/pr_bidi_whitespace.c: New file.
64026         * lib/unictype/pr_byname.c: New file.
64027         * lib/unictype/pr_byname.gperf: New file.
64028         * lib/unictype/pr_combining.c: New file.
64029         * lib/unictype/pr_composite.c: New file.
64030         * lib/unictype/pr_currency_symbol.c: New file.
64031         * lib/unictype/pr_dash.c: New file.
64032         * lib/unictype/pr_decimal_digit.c: New file.
64033         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64034         * lib/unictype/pr_deprecated.c: New file.
64035         * lib/unictype/pr_diacritic.c: New file.
64036         * lib/unictype/pr_extender.c: New file.
64037         * lib/unictype/pr_format_control.c: New file.
64038         * lib/unictype/pr_grapheme_base.c: New file.
64039         * lib/unictype/pr_grapheme_extend.c: New file.
64040         * lib/unictype/pr_grapheme_link.c: New file.
64041         * lib/unictype/pr_hex_digit.c: New file.
64042         * lib/unictype/pr_hyphen.c: New file.
64043         * lib/unictype/pr_id_continue.c: New file.
64044         * lib/unictype/pr_id_start.c: New file.
64045         * lib/unictype/pr_ideographic.c: New file.
64046         * lib/unictype/pr_ids_binary_operator.c: New file.
64047         * lib/unictype/pr_ids_trinary_operator.c: New file.
64048         * lib/unictype/pr_ignorable_control.c: New file.
64049         * lib/unictype/pr_iso_control.c: New file.
64050         * lib/unictype/pr_join_control.c: New file.
64051         * lib/unictype/pr_left_of_pair.c: New file.
64052         * lib/unictype/pr_line_separator.c: New file.
64053         * lib/unictype/pr_logical_order_exception.c: New file.
64054         * lib/unictype/pr_lowercase.c: New file.
64055         * lib/unictype/pr_math.c: New file.
64056         * lib/unictype/pr_non_break.c: New file.
64057         * lib/unictype/pr_not_a_character.c: New file.
64058         * lib/unictype/pr_numeric.c: New file.
64059         * lib/unictype/pr_other_alphabetic.c: New file.
64060         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64061         * lib/unictype/pr_other_grapheme_extend.c: New file.
64062         * lib/unictype/pr_other_id_continue.c: New file.
64063         * lib/unictype/pr_other_id_start.c: New file.
64064         * lib/unictype/pr_other_lowercase.c: New file.
64065         * lib/unictype/pr_other_math.c: New file.
64066         * lib/unictype/pr_other_uppercase.c: New file.
64067         * lib/unictype/pr_paired_punctuation.c: New file.
64068         * lib/unictype/pr_paragraph_separator.c: New file.
64069         * lib/unictype/pr_pattern_syntax.c: New file.
64070         * lib/unictype/pr_pattern_white_space.c: New file.
64071         * lib/unictype/pr_private_use.c: New file.
64072         * lib/unictype/pr_punctuation.c: New file.
64073         * lib/unictype/pr_quotation_mark.c: New file.
64074         * lib/unictype/pr_radical.c: New file.
64075         * lib/unictype/pr_sentence_terminal.c: New file.
64076         * lib/unictype/pr_soft_dotted.c: New file.
64077         * lib/unictype/pr_space.c: New file.
64078         * lib/unictype/pr_terminal_punctuation.c: New file.
64079         * lib/unictype/pr_test.c: New file.
64080         * lib/unictype/pr_titlecase.c: New file.
64081         * lib/unictype/pr_unassigned_code_value.c: New file.
64082         * lib/unictype/pr_unified_ideograph.c: New file.
64083         * lib/unictype/pr_uppercase.c: New file.
64084         * lib/unictype/pr_variation_selector.c: New file.
64085         * lib/unictype/pr_white_space.c: New file.
64086         * lib/unictype/pr_xid_continue.c: New file.
64087         * lib/unictype/pr_xid_start.c: New file.
64088         * lib/unictype/pr_zero_width.c: New file.
64089         * lib/unictype/scripts.c: New file.
64090         * lib/unictype/sy_c_ident.c: New file.
64091         * lib/unictype/sy_c_whitespace.c: New file.
64092         * lib/unictype/sy_java_ident.c: New file.
64093         * lib/unictype/sy_java_whitespace.c: New file.
64094
64095         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64096         Unicode 5.0.0.
64097         * lib/unictype/blocks.h: Likewise.
64098         * lib/unictype/categ_C.h: Likewise.
64099         * lib/unictype/categ_Cc.h: Likewise.
64100         * lib/unictype/categ_Cf.h: Likewise.
64101         * lib/unictype/categ_Cn.h: Likewise.
64102         * lib/unictype/categ_Co.h: Likewise.
64103         * lib/unictype/categ_Cs.h: Likewise.
64104         * lib/unictype/categ_L.h: Likewise.
64105         * lib/unictype/categ_Ll.h: Likewise.
64106         * lib/unictype/categ_Lm.h: Likewise.
64107         * lib/unictype/categ_Lo.h: Likewise.
64108         * lib/unictype/categ_Lt.h: Likewise.
64109         * lib/unictype/categ_Lu.h: Likewise.
64110         * lib/unictype/categ_M.h: Likewise.
64111         * lib/unictype/categ_Mc.h: Likewise.
64112         * lib/unictype/categ_Me.h: Likewise.
64113         * lib/unictype/categ_Mn.h: Likewise.
64114         * lib/unictype/categ_N.h: Likewise.
64115         * lib/unictype/categ_Nd.h: Likewise.
64116         * lib/unictype/categ_Nl.h: Likewise.
64117         * lib/unictype/categ_No.h: Likewise.
64118         * lib/unictype/categ_P.h: Likewise.
64119         * lib/unictype/categ_Pc.h: Likewise.
64120         * lib/unictype/categ_Pd.h: Likewise.
64121         * lib/unictype/categ_Pe.h: Likewise.
64122         * lib/unictype/categ_Pf.h: Likewise.
64123         * lib/unictype/categ_Pi.h: Likewise.
64124         * lib/unictype/categ_Po.h: Likewise.
64125         * lib/unictype/categ_Ps.h: Likewise.
64126         * lib/unictype/categ_S.h: Likewise.
64127         * lib/unictype/categ_Sc.h: Likewise.
64128         * lib/unictype/categ_Sk.h: Likewise.
64129         * lib/unictype/categ_Sm.h: Likewise.
64130         * lib/unictype/categ_So.h: Likewise.
64131         * lib/unictype/categ_Z.h: Likewise.
64132         * lib/unictype/categ_Zl.h: Likewise.
64133         * lib/unictype/categ_Zp.h: Likewise.
64134         * lib/unictype/categ_Zs.h: Likewise.
64135         * lib/unictype/categ_of.h: Likewise.
64136         * lib/unictype/combining.h: Likewise.
64137         * lib/unictype/ctype_alnum.h: Likewise.
64138         * lib/unictype/ctype_alpha.h: Likewise.
64139         * lib/unictype/ctype_blank.h: Likewise.
64140         * lib/unictype/ctype_cntrl.h: Likewise.
64141         * lib/unictype/ctype_digit.h: Likewise.
64142         * lib/unictype/ctype_graph.h: Likewise.
64143         * lib/unictype/ctype_lower.h: Likewise.
64144         * lib/unictype/ctype_print.h: Likewise.
64145         * lib/unictype/ctype_punct.h: Likewise.
64146         * lib/unictype/ctype_space.h: Likewise.
64147         * lib/unictype/ctype_upper.h: Likewise.
64148         * lib/unictype/ctype_xdigit.h: Likewise.
64149         * lib/unictype/decdigit.h: Likewise.
64150         * lib/unictype/digit.h: Likewise.
64151         * lib/unictype/mirror.h: Likewise.
64152         * lib/unictype/numeric.h: Likewise.
64153         * lib/unictype/pr_alphabetic.h: Likewise.
64154         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64155         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64156         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64157         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64158         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64159         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64160         * lib/unictype/pr_bidi_control.h: Likewise.
64161         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64162         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64163         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64164         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64165         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64166         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64167         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64168         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64169         * lib/unictype/pr_bidi_pdf.h: Likewise.
64170         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64171         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64172         * lib/unictype/pr_combining.h: Likewise.
64173         * lib/unictype/pr_composite.h: Likewise.
64174         * lib/unictype/pr_currency_symbol.h: Likewise.
64175         * lib/unictype/pr_dash.h: Likewise.
64176         * lib/unictype/pr_decimal_digit.h: Likewise.
64177         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64178         * lib/unictype/pr_deprecated.h: Likewise.
64179         * lib/unictype/pr_diacritic.h: Likewise.
64180         * lib/unictype/pr_extender.h: Likewise.
64181         * lib/unictype/pr_format_control.h: Likewise.
64182         * lib/unictype/pr_grapheme_base.h: Likewise.
64183         * lib/unictype/pr_grapheme_extend.h: Likewise.
64184         * lib/unictype/pr_grapheme_link.h: Likewise.
64185         * lib/unictype/pr_hex_digit.h: Likewise.
64186         * lib/unictype/pr_hyphen.h: Likewise.
64187         * lib/unictype/pr_id_continue.h: Likewise.
64188         * lib/unictype/pr_id_start.h: Likewise.
64189         * lib/unictype/pr_ideographic.h: Likewise.
64190         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64191         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64192         * lib/unictype/pr_ignorable_control.h: Likewise.
64193         * lib/unictype/pr_iso_control.h: Likewise.
64194         * lib/unictype/pr_join_control.h: Likewise.
64195         * lib/unictype/pr_left_of_pair.h: Likewise.
64196         * lib/unictype/pr_line_separator.h: Likewise.
64197         * lib/unictype/pr_logical_order_exception.h: Likewise.
64198         * lib/unictype/pr_lowercase.h: Likewise.
64199         * lib/unictype/pr_math.h: Likewise.
64200         * lib/unictype/pr_non_break.h: Likewise.
64201         * lib/unictype/pr_not_a_character.h: Likewise.
64202         * lib/unictype/pr_numeric.h: Likewise.
64203         * lib/unictype/pr_other_alphabetic.h: Likewise.
64204         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64205         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64206         * lib/unictype/pr_other_id_continue.h: Likewise.
64207         * lib/unictype/pr_other_id_start.h: Likewise.
64208         * lib/unictype/pr_other_lowercase.h: Likewise.
64209         * lib/unictype/pr_other_math.h: Likewise.
64210         * lib/unictype/pr_other_uppercase.h: Likewise.
64211         * lib/unictype/pr_paired_punctuation.h: Likewise.
64212         * lib/unictype/pr_paragraph_separator.h: Likewise.
64213         * lib/unictype/pr_pattern_syntax.h: Likewise.
64214         * lib/unictype/pr_pattern_white_space.h: Likewise.
64215         * lib/unictype/pr_private_use.h: Likewise.
64216         * lib/unictype/pr_punctuation.h: Likewise.
64217         * lib/unictype/pr_quotation_mark.h: Likewise.
64218         * lib/unictype/pr_radical.h: Likewise.
64219         * lib/unictype/pr_sentence_terminal.h: Likewise.
64220         * lib/unictype/pr_soft_dotted.h: Likewise.
64221         * lib/unictype/pr_space.h: Likewise.
64222         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64223         * lib/unictype/pr_titlecase.h: Likewise.
64224         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64225         * lib/unictype/pr_unified_ideograph.h: Likewise.
64226         * lib/unictype/pr_uppercase.h: Likewise.
64227         * lib/unictype/pr_variation_selector.h: Likewise.
64228         * lib/unictype/pr_white_space.h: Likewise.
64229         * lib/unictype/pr_xid_continue.h: Likewise.
64230         * lib/unictype/pr_xid_start.h: Likewise.
64231         * lib/unictype/pr_zero_width.h: Likewise.
64232         * lib/unictype/scripts.h: Likewise.
64233         * lib/unictype/scripts_byname.gperf: Likewise.
64234         * lib/unictype/sy_c_ident.h: Likewise.
64235         * lib/unictype/sy_c_whitespace.h: Likewise.
64236         * lib/unictype/sy_java_ident.h: Likewise.
64237         * lib/unictype/sy_java_whitespace.h: Likewise.
64238
64239         * lib/unictype/Makefile: New file.
64240         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64241         glibc.
64242         * lib/unictype/3level.h: New file, copied from glibc.
64243         * lib/unictype/3levelbit.h: New file.
64244
64245 2007-11-11  Bruno Haible  <bruno@clisp.org>
64246
64247         * modules/gperf: New file.
64248         * modules/iconv_open (Depends-on): Add it.
64249         (Makefile.am): Remove the GPERF definition.
64250
64251 2007-11-11  Bruno Haible  <bruno@clisp.org>
64252
64253         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64254         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64255
64256 2007-11-11  Bruno Haible  <bruno@clisp.org>
64257
64258         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64259         (usage): Remove function.
64260
64261 2007-11-11  Bruno Haible  <bruno@clisp.org>
64262
64263         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64264         gl_FUNC_CEILF_LIBS.
64265         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64266         gl_FUNC_CEIL_LIBS.
64267         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64268         gl_FUNC_CEILL_LIBS.
64269         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64270         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64271         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64272
64273 2007-11-11  Bruno Haible  <bruno@clisp.org>
64274
64275         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64276         roundf were declared but do not exist on functions.
64277         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64278         roundl were declared but do not exist on functions.
64279         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64280         HAVE_FLOORL_AND_CEILL, respectively.
64281         Needed for Sun C on Solaris 10.
64282
64283 2007-11-11  Bruno Haible  <bruno@clisp.org>
64284
64285         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64286         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64287         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64288         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64289         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64290         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64291         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64292         HAVE_DECL_ROUNDF.
64293         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64294         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64296         of HAVE_DECL_ROUND*.
64297         * modules/math (Makefile.am): Update.
64298
64299 2007-11-10  Bruno Haible  <bruno@clisp.org>
64300
64301         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64302         ptrdiff_t as m4/intl.m4.
64303
64304 2007-11-10  Jim Meyering  <meyering@redhat.com>
64305
64306         Avoid link failure for the argmatch test.
64307         * tests/test-argmatch.c (usage): Define function to avoid a link
64308         failure: argmatch_die requires a usage function.
64309
64310 2007-11-09  Bruno Haible  <bruno@clisp.org>
64311
64312         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64313         * doc/functions/vsnprintf.texi: Likewise.
64314         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64315         with a size argument < 2.
64316
64317 2007-11-09  Bruno Haible  <bruno@clisp.org>
64318
64319         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64320         buffer. Fixes an inefficiency introduced on 2007-11-03.
64321
64322 2007-11-09  Bruno Haible  <bruno@clisp.org>
64323
64324         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64325         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64326
64327 2007-11-08  Jim Meyering  <meyering@redhat.com>
64328
64329         Change cache variable name prefix "jm_" to "gl_" everywhere.
64330         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64331         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64332         * m4/uptime.m4: s/gl_/jm_/
64333
64334 2007-11-07  Bruno Haible  <bruno@clisp.org>
64335
64336         Update to GNU gettext 0.17.
64337         * m4/intl.m4: Update to GNU gettext 0.17.
64338         * m4/po.m4: Likewise.
64339         * modules/gettext (Files): Remove m4/ulonglong.m4.
64340         (configure.ac): Require gettext infrastructure from version 0.17.
64341
64342 2007-11-06  Bruno Haible  <bruno@clisp.org>
64343
64344         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64345         symbolic values are not defined in a public header.
64346         * lib/freadable.c (freadable) [QNX]: Likewise.
64347         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64348         * lib/freading.c (freading) [QNX]: Likewise.
64349         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64350         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64351         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64352         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64353         Reported by Alain Magloire.
64354
64355         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64356
64357 2007-11-05  Bruno Haible  <bruno@clisp.org>
64358
64359         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64360         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64361         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64362         Reported by Eric Blake.
64363
64364 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64365             Bruno Haible  <bruno@clisp.org>
64366
64367         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64368         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64369         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64370         (malloc): Undefine also before including <stdlib.h>.
64371         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64372         Needed on OSF/1 4.0.
64373
64374 2007-11-05  Jim Meyering  <meyering@redhat.com>
64375
64376         git-version-gen: sync from coreutils.
64377         * build-aux/git-version-gen: Add comments.
64378         Change the first '-' to '.' in the snapshot version string,
64379         e.g., 6.9-377-08144 -> 6.9.377-08144
64380         Remove first parameter.
64381         Don't declare a version "-dirty" merely because a time
64382         stamp has changed.
64383
64384 2007-11-04  Bruno Haible  <bruno@clisp.org>
64385
64386         * lib/lock.h: Protect all macro definitions containing an 'if'
64387         statement through a "do { ... } while (0)".
64388         * lib/tls.h: Likewise.
64389
64390 2007-11-04  Bruno Haible  <bruno@clisp.org>
64391
64392         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64393
64394 2007-11-04  Bruno Haible  <bruno@clisp.org>
64395
64396         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64397         * modules/fprintf-posix (Depends-on): Add nocrash.
64398         * modules/snprintf-posix (Depends-on): Likewise.
64399         * modules/sprintf-posix (Depends-on): Likewise.
64400         * modules/vasnprintf-posix (Depends-on): Likewise.
64401         * modules/vasprintf-posix (Depends-on): Likewise.
64402         * modules/vfprintf-posix (Depends-on): Likewise.
64403         * modules/vsnprintf-posix (Depends-on): Likewise.
64404         * modules/vsprintf-posix (Depends-on): Likewise.
64405         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64406         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64407         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64408         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64409         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64410         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64411         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64412
64413 2007-11-04  Bruno Haible  <bruno@clisp.org>
64414
64415         * modules/nocrash: New file.
64416         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64417         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64418
64419 2007-11-04  Bruno Haible  <bruno@clisp.org>
64420
64421         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64422         precision handling.
64423         * tests/test-vasprintf-posix.c (test_function): Likewise.
64424         * tests/test-snprintf-posix.h (test_function): Likewise.
64425         * tests/test-sprintf-posix.h (test_function): Likewise.
64426
64427         Fix *printf behaviour for large precisions on mingw and BeOS.
64428         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64429         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64431         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64432         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64433         gl_PRINTF_PRECISION and test its result. Invoke
64434         gl_PREREQ_VASNPRINTF_PRECISION.
64435         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64436         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64437         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64438         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64439         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64440         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64441         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64442         * doc/functions/fprintf.texi: Update.
64443         * doc/functions/printf.texi: Update.
64444         * doc/functions/snprintf.texi: Update.
64445         * doc/functions/sprintf.texi: Update.
64446         * doc/functions/vfprintf.texi: Update.
64447         * doc/functions/vprintf.texi: Update.
64448         * doc/functions/vsnprintf.texi: Update.
64449         * doc/functions/vsprintf.texi: Update.
64450
64451 2007-11-04  Bruno Haible  <bruno@clisp.org>
64452
64453         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64454
64455 2007-11-04  Bruno Haible  <bruno@clisp.org>
64456
64457         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64458         Reported by Sylvain Beucler <beuc@gnu.org>.
64459
64460 2007-11-03  Bruno Haible  <bruno@clisp.org>
64461
64462         * tests/test-fprintf-posix2.sh: New file.
64463         * tests/test-fprintf-posix2.c: New file.
64464         * modules/fprintf-posix-tests (Files): Add them.
64465         (TESTS): Add test-fprintf-posix2.sh.
64466         (configure.ac): Check for getrlimit and setrlimit.
64467         (check_PROGRAMS): Add test-fprintf-posix2.
64468
64469         * tests/test-printf-posix2.sh: New file.
64470         * tests/test-printf-posix2.c: New file.
64471         * modules/printf-posix-tests (Files): Add them.
64472         (TESTS): Add test-printf-posix2.sh.
64473         (configure.ac): Check for getrlimit and setrlimit.
64474         (check_PROGRAMS): Add test-printf-posix2.
64475
64476         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64477         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64478         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64479         (decode_double): New function, copied from decode_long_double.
64480         (scale10_round_decimal_decoded): New function, extracted from
64481         scale10_round_decimal_long_double.
64482         (scale10_round_decimal_long_double): Use it.
64483         (scale10_round_decimal_double): New function.
64484         (floorlog10): New function.
64485         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64487         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64488         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64489         gl_PRINTF_ENOMEM and test its result. Invoke
64490         gl_PREREQ_VASNPRINTF_ENOMEM.
64491         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64492         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64494         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64495         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64498         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64499         * modules/snprintf-posix (Depends-on): Likewise.
64500         * modules/sprintf-posix (Depends-on): Likewise.
64501         * modules/vasnprintf-posix (Depends-on): Likewise.
64502         * modules/vasprintf-posix (Depends-on): Likewise.
64503         * modules/vfprintf-posix (Depends-on): Likewise.
64504         * modules/vsnprintf-posix (Depends-on): Likewise.
64505         * modules/vsprintf-posix (Depends-on): Likewise.
64506         * doc/functions/fprintf.texi: Update.
64507         * doc/functions/printf.texi: Update.
64508         * doc/functions/snprintf.texi: Update.
64509         * doc/functions/sprintf.texi: Update.
64510         * doc/functions/vfprintf.texi: Update.
64511         * doc/functions/vprintf.texi: Update.
64512         * doc/functions/vsnprintf.texi: Update.
64513         * doc/functions/vsprintf.texi: Update.
64514
64515 2007-11-03  Bruno Haible  <bruno@clisp.org>
64516
64517         * modules/frexp-nolibm-tests: New file.
64518
64519         * modules/frexp-nolibm: New file.
64520         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64521
64522 2007-11-03  Bruno Haible  <bruno@clisp.org>
64523
64524         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64525         value is C99 compliant.
64526         Needed for OSF/1 5.1.
64527
64528 2007-11-03  Bruno Haible  <bruno@clisp.org>
64529
64530         Fix out-of-memory handling of vasnprintf.
64531         * lib/printf-parse.c: Include <errno.h>.
64532         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64533         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64534         is already set.
64535
64536 2007-11-02  Eric Blake  <ebb9@byu.net>
64537
64538         Fix tests on cygwin.
64539         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64540
64541 2007-11-01  Bruno Haible  <bruno@clisp.org>
64542
64543         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64544         warning.
64545         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64546         needed for POSIX compatibility.
64547
64548 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64549
64550         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64551         for compatibility with GNU.
64552
64553 2007-11-01  Bruno Haible  <bruno@clisp.org>
64554
64555         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64556         (putenv): Renamed from rpl_putenv. Change argument type from
64557         'const char *' to 'char *'.
64558         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64559         of defining putenv in config.h, just set REPLACE_PUTENV.
64560         * modules/putenv (Depends-on): Add stdlib.
64561         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64562         (Include): Use <stdlib.h>.
64563         * lib/stdlib.in.h (putenv): New declaration.
64564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64565         REPLACE_PUTENV.
64566         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64567         REPLACE_PUTENV.
64568         Needed for MacOS X 10.5.0.
64569         Reported by Peter O'Gorman <peter@pogma.com>.
64570
64571 2007-11-01  Jim Meyering  <meyering@redhat.com>
64572
64573         Treat an empty date string exactly like "0".
64574         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64575         if the remaining date string (to be parsed) is empty, use "0".
64576         Reported by Mischa Molhoek and discussed in this thread:
64577         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64578
64579 2007-10-31  Bruno Haible  <bruno@clisp.org>
64580
64581         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64582         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64583         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64584         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64585         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64586         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64587
64588 2007-10-31  Bruno Haible  <bruno@clisp.org>
64589
64590         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64591         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64592         (AC_TYPE_LONG_LONG_INT): Use it.
64593         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64594         it as well.
64595         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64596         to m4/longlong.m4.
64597         * modules/stdint (Files): Remove m4/ulonglong.m4.
64598         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64599         m4/ulonglong.m4.
64600         * modules/strtoumax (Files): Likewise.
64601
64602 2007-10-30  Bruno Haible  <bruno@clisp.org>
64603
64604         * modules/xvasprintf-posix: New file.
64605         Suggested by Eric Blake.
64606
64607 2007-10-30  Bruno Haible  <bruno@clisp.org>
64608
64609         * modules/xprintf-posix-tests: New file.
64610         * tests/test-xprintf-posix.sh: New file.
64611         * tests/test-xprintf-posix.c: New file.
64612         * tests/test-xfprintf-posix.c: New file.
64613
64614         * modules/xprintf-posix: New file.
64615
64616 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64617
64618         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64619         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64620         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64621
64622 2007-10-29  Bruno Haible  <bruno@clisp.org>
64623
64624         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64625         contain the special marker '_cv_'.
64626         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64627         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64628         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64629         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64630         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64631         Reported by Ralf Wildenhues.
64632
64633 2007-10-29  Bruno Haible  <bruno@clisp.org>
64634
64635         * gnulib-tool (func_import): When --lgpl is not specified, set
64636         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64637         GPLv3.
64638         Reported by Simon Josefsson.
64639
64640 2007-10-28  Bruno Haible  <bruno@clisp.org>
64641
64642         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64643         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64644         HAVE_DECL_ISFINITE.
64645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64646         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64647         HAVE_DECL_ISFINITE.
64648
64649 2007-10-28  Bruno Haible  <bruno@clisp.org>
64650
64651         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64652         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64653
64654 2007-10-28  Bruno Haible  <bruno@clisp.org>
64655
64656         Fix link errors with Sun C 5.0 on Solaris 10.
64657         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64658         function is declared but not present in the compiler's libm.
64659         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64660         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64661         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64662         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64663         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64664         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64665         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64667         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64668         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64669         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64670         HAVE_DECL_FLOORL.
64671
64672 2007-10-28  Bruno Haible  <bruno@clisp.org>
64673
64674         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64675         gl_FUNC_FLOORL. Cache the result.
64676         (gl_FUNC_FLOORL): Use it.
64677         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64678         gl_FUNC_CEILL. Cache the result.
64679         (gl_FUNC_CEILL): Use it.
64680
64681         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64682         gl_FUNC_FLOOR. Cache the result.
64683         (gl_FUNC_FLOOR): Use it.
64684         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64685         gl_FUNC_CEIL. Cache the result.
64686         (gl_FUNC_CEIL): Use it.
64687
64688         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64689         gl_FUNC_FLOORF. Cache the result.
64690         (gl_FUNC_FLOORF): Use it.
64691         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64692         gl_FUNC_CEILF. Cache the result.
64693         (gl_FUNC_CEILF): Use it.
64694
64695 2007-10-28  Bruno Haible  <bruno@clisp.org>
64696
64697         * gnulib-tool: Allow specifying the LGPL version number through
64698         --lgpl=2 or --lgpl=3.
64699         (func_usage): Document --lgpl with argument.
64700         Handle --lgpl=... arguments.
64701         (func_import): Recognize also gl_LGPL calls with an argument. When
64702         --lgpl=2 is used and the module's license is just LGPL, report an
64703         error. Set sed_transform_lib_file according to the lgpl variable. In
64704         the generated files, use --lgpl or gl_LGPL invocations with argument,
64705         if necessary.
64706         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64707         an LGPv2+ license.
64708         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64709         gl_LGPL macro.
64710
64711 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64712             Bruno Haible  <bruno@clisp.org>
64713
64714         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64715         (u16_uctomb_aux): Likewise.
64716         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64717         !HAVE_INLINE.
64718         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64719
64720 2007-10-28  Bruno Haible  <bruno@clisp.org>
64721
64722         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64723         Invoke AM_GETTEXT_OPTION if it exists.
64724         * modules/vasprintf: Likewise.
64725         * modules/verror: Likewise.
64726         * modules/xprintf: Likewise.
64727         * modules/xvasprintf: Likewise.
64728
64729 2007-10-27  Ben Pfaff  <blp@gnu.org>
64730
64731         * lib/math.in.h: Define isfinite macro and prototypes for
64732         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64733         implementations.
64734         * m4/math_h.m4: New substitutions for isfinite module.
64735         * lib/isfinite.c: New file.
64736         * m4/isfinite.m4: New file.
64737         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64738         * modules/isfinite: New file.
64739         * modules/isfinite-tests: New file.
64740         * tests/tests-isfinite.c: New file.
64741         * doc/functions/isfinite.texi: Mention isfinite module.
64742         * MODULES.html.sh: Mention new module.
64743
64744 2007-10-27  Ben Pfaff  <blp@gnu.org>
64745
64746         Ralf Wildenhues reported that Tru64 4.0D declares the round
64747         functions but does not have definitions.
64748         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64749         cannot be found in any library, set the output variable to
64750         "missing" instead of "".
64751         * m4/round.m4: Also use our substitute if we cannot find round in
64752         any library, even if it is declared.
64753         * m4/roundf.m4: Likewise for roundf.
64754         * m4/roundl.m4: Likewise for roundl.
64755         * lib/math.in.h: Undefine roundf, round, roundl before defining
64756         their replacements, to allow for hypothetical systems where these
64757         may be defined as macros but not available in libraries.
64758
64759 2007-10-27  Bruno Haible  <bruno@clisp.org>
64760
64761         * doc/gnulib.texi: Invoke @firstparagraphindent.
64762         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64763         changes in gnulib.
64764         (Source changes): New section.
64765
64766 2007-10-26  Bruno Haible  <bruno@clisp.org>
64767
64768         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64769         borrowed from autoconf.
64770
64771 2007-10-26  Bruno Haible  <bruno@clisp.org>
64772
64773         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64774         strerror returned the empty string. Needed on HP-UX 11.00.
64775
64776 2007-10-24  Micah Cowan  <micah@cowan.name>
64777
64778         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64779         * build-aux/bootstrap: Remove support for now-unnecessary option,
64780         --cvs-user, and envvars CVS_USER, CVS_RSH.
64781
64782 2007-10-24  Jim Meyering  <meyering@redhat.com>
64783
64784         Avoid diagnostics from sha1sum when there is no cached checksum.
64785         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64786         if the po.s1 file hasn't been created yet.
64787
64788         * build-aux/bootstrap: Sync from coreutils:
64789         2007-10-24  Jim Meyering  <meyering@redhat.com>
64790         Get gnulib from the git repository, not from an obsolete cvs one.
64791         * build-aux/bootstrap: Suggestion from Micah Cowan.
64792         2007-10-04  Jim Meyering  <jim@meyering.net>
64793         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64794         (update_po_files): Work also when there are no .po files in po/.
64795
64796 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * README: Append ".git" to git and cg examples.
64799         Problem reported by Benoit Sigoure.
64800
64801 2007-10-23  Micah Cowan  <micah@cowan.name>
64802
64803         * users.txt: Add wget.
64804
64805 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64806
64807         Fix linking of some unistdio tests on FreeBSD.
64808         * modules/unistdio/u16-vsnprintf-tests
64809         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64810         * modules/unistdio/u16-vsprintf-tests
64811         (test_u16_vsnprintf1_LDADD): Likewise.
64812         * modules/unistdio/u32-vsnprintf-tests
64813         (test_u32_vsnprintf1_LDADD): Likewise.
64814         * modules/unistdio/u32-vsprintf-tests
64815         (test_u32_vsprintf1_LDADD): Likewise.
64816         * modules/unistdio/u8-vsnprintf-tests
64817         (test_u8_vsnprintf1_LDADD): Likewise.
64818         * modules/unistdio/u8-vsprintf-tests
64819         (test_u8_vsprintf1_LDADD): Likewise.
64820         * modules/unistdio/ulc-vsnprintf-tests
64821         (test_ulc_vsnprintf1_LDADD): Likewise.
64822         * modules/unistdio/ulc-vsprintf-tests
64823         (test_ulc_vsprintf1_LDADD): Likewise.
64824
64825         Fix linking of some uniconv tests on FreeBSD.
64826         * modules/uniconv/u16-conv-from-enc-tests
64827         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64828         * modules/uniconv/u16-conv-to-enc-tests
64829         (test_u16_conv_to_enc_LDADD): Likewise.
64830         * modules/uniconv/u16-strconv-from-enc-tests
64831         (test_u16_strconv_from_enc_LDADD): Likewise.
64832         * modules/uniconv/u16-strconv-to-enc-tests
64833         (test_u16_strconv_to_enc_LDADD): Likewise.
64834         * modules/uniconv/u32-conv-from-enc-tests
64835         (test_u32_conv_from_enc_LDADD): Likewise.
64836         * modules/uniconv/u32-conv-to-enc-tests
64837         (test_u32_conv_to_enc_LDADD): Likewise.
64838         * modules/uniconv/u32-strconv-from-enc-tests
64839         (test_u32_strconv_from_enc_LDADD): Likewise.
64840         * modules/uniconv/u32-strconv-to-enc-tests
64841         (test_u32_strconv_to_enc_LDADD): Likewise.
64842         * modules/uniconv/u8-conv-from-enc-tests
64843         (test_u8_conv_from_enc_LDADD): Likewise.
64844         * modules/uniconv/u8-conv-to-enc-tests
64845         (test_u8_conv_to_enc_LDADD): Likewise.
64846         * modules/uniconv/u8-strconv-from-enc-tests
64847         (test_u8_strconv_from_enc_LDADD): Likewise.
64848         * modules/uniconv/u8-strconv-to-enc-tests
64849         (test_u8_strconv_to_enc_LDADD): Likewise.
64850
64851 2007-10-22  Bruno Haible  <bruno@clisp.org>
64852
64853         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64854         size.
64855
64856 2007-10-22  Eric Blake  <ebb9@byu.net>
64857
64858         Tweak x*printf documentation.
64859         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64860         variable name and comments.
64861         Suggested by Bruno Haible.
64862
64863 2007-10-22  Bruno Haible  <bruno@clisp.org>
64864
64865         * lib/acl.c (copy_acl): Fix file name in comment.
64866
64867 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64868
64869         Fix Tru64 problem with stdbool.h.
64870         * lib/stdbool.in.h (false, true):
64871         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64872         Don't declare as an enum in this situation; it runs afoul of Tru64.
64873         Problem reported by Steven M. Schweda in
64874         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64875
64876 2007-10-22  Eric Blake  <ebb9@byu.net>
64877
64878         Also wrap vf?printf.
64879         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64880         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64881         (xvprintf, xvfprintf): New functions.
64882
64883 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64884
64885         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64886         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64887
64888         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64889         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64890
64891 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64892
64893         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64894         by Bruno Haible.
64895
64896 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64897
64898         * lib/getloadavg.c
64899         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64900         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64901
64902         * tests/test-i-ring.c: Work for C89.
64903
64904 2007-10-22  Bruno Haible  <bruno@clisp.org>
64905
64906         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64907         -1u, in preprocessor expression, so that we don't test for the bug
64908         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64910
64911 2007-10-22  Eric Blake  <ebb9@byu.net>
64912
64913         * tests/test-yesno.sh: Silence stderr during test.
64914
64915 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64916
64917         * modules/crypto/gc-camellia: New file.
64918
64919         * m4/gc-camellia.m4: New file.
64920
64921         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64922
64923         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64924
64925 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64926
64927         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64928         --help to stdout.  Reported by sms@antinode.org (Steven
64929         M. Schweda).
64930
64931 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64932
64933         * users.txt: Fix link to libksba.
64934
64935 2007-10-21  Ben Pfaff  <blp@gnu.org>
64936
64937         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64938         round.c roundf implementation that depends on floorf and ceilf to
64939         be tested unconditionally.
64940
64941 2007-10-21  Ben Pfaff  <blp@gnu.org>
64942
64943         * m4/check-libm-func.m4: Removed.
64944         * m4/check-math-lib.m4: New file.
64945         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64946         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64947         definition and lack of AC_LIBOBJ([roundf]).
64948         * m4/roundl.m4: Ditto, and similarly for roundl.
64949         * modules/round: Reference new m4 file.
64950         * modules/roundf: Ditto.
64951         * modules/roundl: Ditto.
64952         * tests/test-round2.c (main): Use ROUND instead of round.
64953         Bug report from Bruno Haible.
64954
64955 2007-10-21  Bruno Haible  <bruno@clisp.org>
64956
64957         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64958         context.
64959
64960 2007-10-21  Bruno Haible  <bruno@clisp.org>
64961
64962         * tests/test-wcwidth.c (main): Allow negative result for some control
64963         characters.
64964
64965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64966         Needed on OSF/1 5.1.
64967
64968 2007-10-21  Bruno Haible  <bruno@clisp.org>
64969
64970         * tests/test-floorf1.c: Include isnanf.h.
64971         (main): Use isnanf() instead of isnan().
64972         * tests/test-ceilf1.c: Include isnanf.h.
64973         (main): Use isnanf() instead of isnan().
64974         * tests/test-truncf1.c: Include isnanf.h.
64975         (main): Use isnanf() instead of isnan().
64976         * tests/test-roundf1.c: Include isnanf.h.
64977         (main): Use isnanf() instead of isnan().
64978
64979 2007-10-21  Eric Blake  <ebb9@byu.net>
64980
64981         * users.txt: Update URL for m4.
64982
64983 2007-10-21  Bruno Haible  <bruno@clisp.org>
64984
64985         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64986
64987 2007-10-21  Bruno Haible  <bruno@clisp.org>
64988
64989         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64990         Git's management files if the CVS files are not present.
64991
64992 2007-10-20  Bruno Haible  <bruno@clisp.org>
64993
64994         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64995         gcc-3.4.x.
64996
64997 2007-10-20  Ben Pfaff  <blp@gnu.org>
64998
64999         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65000         implementations.
65001         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65002         * lib/round.c: New file.
65003         * lib/roundf.c: New file.
65004         * lib/roundl.c: New file.
65005         * m4/round.m4: New file.
65006         * m4/roundf.m4: New file.
65007         * m4/roundl.m4: New file.
65008         * m4/check-libm-func-m4: New file.
65009         * modules/math: Replace round, roundf, roundl related @VARS@ in
65010         math.in.h.
65011         * modules/round: New file.
65012         * modules/round-tests: New file.
65013         * modules/roundf: New file.
65014         * modules/roundf-tests: New file.
65015         * modules/roundl: New file.
65016         * modules/roundl-tests: New file.
65017         * tests/test-round1.c: New file.
65018         * tests/test-round2.c: New file.
65019         * tests/test-roundf1.c: New file.
65020         * tests/test-roundf2.c: New file.
65021         * tests/test-roundl.c: New file.
65022         * doc/functions/round.texi: Mention round module.
65023         * doc/functions/roundf.texi: Mention roundf module.
65024         * doc/functions/roundl.texi: Mention roundl module.
65025         * MODULES.html.sh: Mention new modules.
65026         Thanks to Bruno Haible for suggestions.
65027
65028 2007-10-20  Jim Meyering  <meyering@redhat.com>
65029
65030         * lib/xprintf.c: Include <config.h> unconditionally.
65031
65032         Change xprintf's license to GPL.
65033         * modules/xprintf (License): s/LGPL/GPL/, since this module
65034         depends on modules (exit and exitfail) which are GPL.
65035         Suggestion from Bruno Haible.
65036
65037         xprintf fixes.
65038         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65039         Use a clearer diagnostic.
65040         Patch from Bruno Haible.
65041
65042 2007-10-20  Bruno Haible  <bruno@clisp.org>
65043
65044         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65045         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65046         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65047
65048 2007-10-20  Bruno Haible  <bruno@clisp.org>
65049
65050         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65051         precision in the comparison result > x - 1 or similar.
65052         * tests/test-ceilf2.c (correct_result_p): Likewise.
65053         * tests/test-truncf2.c (correct_result_p): Likewise.
65054         * tests/test-trunc2.c (correct_result_p): Likewise.
65055         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65056
65057 2007-10-20  Bruno Haible  <bruno@clisp.org>
65058
65059         * modules/ceil: New file.
65060         * m4/ceil.m4: New file.
65061         * doc/functions/ceil.texi: Mention the 'ceil' module.
65062
65063 2007-10-20  Bruno Haible  <bruno@clisp.org>
65064
65065         * modules/floor: New file.
65066         * m4/floor.m4: New file.
65067         * doc/functions/floor.texi: Mention the 'floor' module.
65068
65069 2007-10-20  Bruno Haible  <bruno@clisp.org>
65070
65071         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65072         of %a.
65073         * modules/floorf-tests (Depends-on): Likewise.
65074         * modules/truncf-tests (Depends-on): Likewise.
65075         * modules/trunc-tests (Depends-on): Likewise.
65076         Reported by Ben Pfaff.
65077
65078 2007-10-19  Jim Meyering  <meyering@redhat.com>
65079
65080         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65081         Don't bother testing specific errno values.  Just test ferror.
65082
65083         New module: xprintf
65084         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65085
65086 2007-10-19  Bruno Haible  <bruno@clisp.org>
65087
65088         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65089         syntax.
65090         * modules/javaexec (Makefile.am): Likewise.
65091         * modules/relocatable-prog (Makefile.am): Likewise.
65092         Suggested by Jim Meyering.
65093
65094 2007-10-18  Bruno Haible  <bruno@clisp.org>
65095
65096         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65097         Reported by Jim Meyering.
65098
65099 2007-10-18  Eric Blake  <ebb9@byu.net>
65100
65101         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65102
65103 2007-10-18  Bruno Haible  <bruno@clisp.org>
65104
65105         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65106         the format string into writable memory. Needed in Fortify conditions.
65107
65108 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65109             Bruno Haible  <bruno@clisp.org>
65110
65111         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65112         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65113         * modules/trim (Depends-on): Add mbchar.
65114         (configure.ac): Add gl_FUNC_MBRTOWC.
65115         (Makefile.am): Augment lib_SOURCES.
65116
65117 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65118
65119         Modify glob.c to use fstatat and dirfd, to simplify it.
65120         Suggested by Eric Blake.
65121         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65122         Don't include <stdbool.h>; not used.
65123         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65124         (link_exists_p): Simplify implementation, since we can now assume
65125         dirfd and fstatat.
65126         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65127
65128 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65129
65130         * gnulib-tool (func_get_dependencies): Fix sed script to
65131         match only tests.
65132
65133 2007-10-17  Bruno Haible  <bruno@clisp.org>
65134
65135         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65136         allow locale names without encoding suffix.
65137         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65138         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65139
65140 2007-10-16  Bruno Haible  <bruno@clisp.org>
65141
65142         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65143         * lib/getgroups.c (getgroups): Likewise.
65144         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65145
65146 2007-10-16  Bruno Haible  <bruno@clisp.org>
65147
65148         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65149         * modules/malloc-posix (License): Likewise.
65150         * modules/realloc-posix (License): Likewise.
65151         * modules/calloc-posix (License): Likewise.
65152         * modules/intprops (License): Change from GPL to LGPL, with
65153         Paul Eggert's approval.
65154
65155 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65156
65157         Merge glibc changes into lib/glob.c.
65158
65159         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65160         2007-10-15 04:59:03 UTC.  Here are the changes:
65161
65162         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65163
65164         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65165
65166         * lib/glob.c: Add some branch prediction throughout.
65167
65168         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65169
65170         [BZ #5103]
65171         * lib/glob.c (glob): Recognize patterns starting \/.
65172
65173         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65174
65175         [BZ #3996]
65176         * lib/glob.c (attribute_hidden): Define if not defined.
65177         (glob): Unescape dirname, filename or username when needed and not
65178         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65179         is NULL.  Handle unescaped [ in pattern without closing ].
65180         Don't pass GLOB_CHECK down to recursive glob for directories.
65181         (__glob_pattern_type): New function.
65182         (__glob_pattern_p): Implement using __glob_pattern_type.
65183         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65184         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65185         Remove unreachable code.
65186
65187         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65188
65189         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65190         explain why there are no leaks.
65191
65192         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65193
65194         [BZ #3253]
65195         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65196         time, rather allocate increasingly bigger arrays of pointers, if
65197         possible with alloca, if too large with malloc.
65198
65199 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65200
65201         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65202         Problem reported by H.Merijn Brand in
65203         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65204         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65205         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65206
65207 2007-10-15  Bruno Haible  <bruno@clisp.org>
65208
65209         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65210         with explicit rpl_ prefix.
65211         * lib/fopen.c (fopen): Likewise.
65212         * lib/freopen.c (freopen): Likewise.
65213         * lib/iconv.c (iconv): Likewise.
65214         * lib/iconv_close.c (iconv_close): Likewise.
65215
65216 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65217
65218         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65219
65220 2007-10-15  Bruno Haible  <bruno@clisp.org>
65221
65222         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65223         <stddef.h> instead of <stdlib.h> since we only need NULL.
65224         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65225
65226 2007-10-15  Bruno Haible  <bruno@clisp.org>
65227
65228         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65229         Replace paragraph talking about LIBOBJS.
65230         Reported by Colin Watson <cjwatson@debian.org>.
65231
65232 2007-10-15  Bruno Haible  <bruno@clisp.org>
65233
65234         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65235         <stdlib.h> before using NULL.
65236
65237 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65238
65239         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65240         Reported by Albert Chin <china@thewrittenword.com>.
65241
65242 2007-10-14  Bruno Haible  <bruno@clisp.org>
65243
65244         * modules/iconv_open-utf-tests: New file.
65245         * tests/test-iconv-utf.c: New file.
65246
65247         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65248         * modules/iconv_open-utf: New file.
65249         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65250         (iconv, iconv_close): New declarations.
65251         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65252         be defined.
65253         (iconv_open): Add special handling of conversion between UTF-8 and
65254         UTF-{16,32}{BE,LE}.
65255         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65256         * lib/iconv_close.c: New file.
65257         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65258         gl_FUNC_ICONV_OPEN.
65259         (gl_FUNC_ICONV_OPEN): Use it.
65260         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65261         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65262         and REPLACE_ICONV_UTF.
65263         * modules/iconv_open (Depends-on): Add c-strcase.
65264         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65265         ICONV_CONST.
65266         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65267
65268 2007-10-13  Albert Chin  <china@thewrittenword.com>
65269             Bruno Haible  <bruno@clisp.org>
65270
65271         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65272         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65273
65274 2007-10-13  Bruno Haible  <bruno@clisp.org>
65275
65276         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65277         defined, use the ISO C99 inline semantics.
65278         * lib/argp.h (ARGP_EI): Likewise.
65279
65280 2007-10-13  Bruno Haible  <bruno@clisp.org>
65281
65282         Handle 'inline' change in gcc 4.3.0.
65283         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65284         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65285         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65286         argp_fmtstream_point): Disable 'extern' declaration if the function
65287         definition is going to be provided inline.
65288         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65289         semantics, not the ISO C99 inline semantics.
65290         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65291         'extern' declaration if the function definition is going to be provided
65292         inline.
65293         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65294         the GNU C inline semantics, not the ISO C99 inline semantics. With
65295         GCC 4.2, avoid a warning.
65296
65297 2007-10-13  Bruno Haible  <bruno@clisp.org>
65298
65299         * lib/freading.h (freading): Enable the use of __freading for
65300         glibc >= 2.7.
65301         * lib/freading.c (freading): Likewise.
65302
65303 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65304
65305         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65306         "warning: C99 inline functions are not supported; using GNU89".
65307
65308 2007-10-12  Bruno Haible  <bruno@clisp.org>
65309
65310         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65311         of 2.
65312         * tests/test-ceilf2.c: New file.
65313         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65314
65315         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65316         * modules/ceilf-tests: Update.
65317
65318 2007-10-12  Bruno Haible  <bruno@clisp.org>
65319
65320         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65321         of 2.
65322         * tests/test-floorf2.c: New file.
65323         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65324
65325         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65326         * modules/floorf-tests: Update.
65327
65328 2007-10-12  Bruno Haible  <bruno@clisp.org>
65329
65330         * tests/test-trunc2.c: New file.
65331         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65332
65333         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65334         * modules/trunc-tests: Update.
65335
65336 2007-10-12  Bruno Haible  <bruno@clisp.org>
65337
65338         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65339         of 2.
65340         * tests/test-truncf2.c: New file.
65341         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65342
65343         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65344         * modules/truncf-tests: Update.
65345
65346 2007-10-11  Eric Blake  <ebb9@byu.net>
65347
65348         Don't claim strerror is broken on Interix.
65349         * doc/functions/strerror.texi (strerror): Known broken systems are
65350         now Solaris 8, and not Interix.
65351         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65352         Interix on cross-compile.
65353         Reported by Martin Koeppe in
65354         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65355
65356 2007-10-11  Bruno Haible  <bruno@clisp.org>
65357
65358         * modules/i-ring-tests: New file.
65359         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65360         instead of assert.
65361
65362 2007-10-11  Bruno Haible  <bruno@clisp.org>
65363
65364         * modules/filenamecat-tests: New file.
65365         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65366         * lib/filenamecat.c: Remove test code.
65367
65368 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65369
65370         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65371
65372         * lib/strerror.c: Include <string.h> always, to test interface,
65373         and to remove the need for the dummy.
65374         Include intprops.h to compute width instead of doing it ourselves
65375         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65376         (strerror): Define it to return NULL if there's no system strerror.
65377         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65378         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65379         ancient pre-strerror Unix systems well any more.  Saying "unknown
65380         system error" is enough.
65381         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65382         simpler strerror.c implementation.
65383         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65384         Simplify the tests to reflect the simpler strerror implementation.
65385         * modules/strerror (Depends-on): Add intprops.
65386
65387 2007-10-09  Eric Blake  <ebb9@byu.net>
65388
65389         Silence test-fpending.
65390         * modules/fpending-tests (Files): Add wrapper script.
65391         * tests/test-fpending.sh: New file.
65392
65393 2007-10-09  Bruno Haible  <bruno@clisp.org>
65394
65395         * MODULES.html.sh (func_module): Don't create a hyperlink for
65396         function names like 'printf_frexp'.
65397         (Misc): Add crc, memxor.
65398         (Characteristics of floating types): New section.
65399         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65400         isnanf-nolibm, signbit, trunc, truncf, truncl.
65401         (Enhancements for ISO C 99 functions): New subsection Input/output.
65402         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65403         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65404         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65405         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65406         (Enhancements for POSIX:2001 functions): Add chdir-long.
65407         (File system functions): Add areadlink, chdir-safer, read-file.
65408         Remove cycle-check.
65409         (File system as inode set): New section.
65410         (Date and time): Add gethrxtime.
65411         (Multithreading): Add openmp.
65412         (Internationalization functions): Add localename.
65413         (Unicode string functions): Add unistr/u*-mbsnlen.
65414         (Support for maintaining and releasing projects): Add git-version-gen.
65415         (Lone files): Remove directories.
65416
65417 2007-10-08  Ben Pfaff  <blp@gnu.org>
65418
65419         * lib/xmalloca.h: Fix typo in comment.
65420
65421 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65422
65423         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65424         when avoiding problems with integer overflow.  Use a portable test
65425         instead.
65426
65427 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65428
65429         * modules/dummy (License): Change to LGPLv2+.
65430         * modules/float (License): Likewise
65431         * modules/realloc (License): Likewise
65432         * modules/stdlib (License): Likewise
65433
65434 2007-10-07  Bruno Haible  <bruno@clisp.org>
65435
65436         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65437         * floor.c (TWO_MANT_DIG): Likewise.
65438         * ceil.c (TWO_MANT_DIG): Likewise.
65439         Reported by Ben Pfaff.
65440
65441 2007-10-07  Bruno Haible  <bruno@clisp.org>
65442
65443         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65444         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65445         * lib/frexp.c (FUNC): Likewise.
65446         * lib/printf-frexp.h (printf_frexp): Likewise.
65447         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65448         * lib/printf-frexp.c (FUNC): Likewise.
65449         Suggested by Jim Meyering.
65450
65451 2007-10-07  Jim Meyering  <meyering@redhat.com>
65452
65453         Make xnanosleep's integer overflow test more robust.
65454         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65455         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65456
65457 2007-10-07  Bruno Haible  <bruno@clisp.org>
65458
65459         * NEWS: Mention the license change.
65460
65461         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65462         abbreviations in the modules files.
65463
65464         Change copyright notice from GPLv2+ to GPLv3+.
65465         * README: Change copyright notice.
65466         * MODULES.html.sh: Likewise.
65467         * build-aux/bootstrap.conf: Likewise.
65468         * build-aux/config.libpath: Likewise.
65469         * build-aux/csharpcomp.sh.in: Likewise.
65470         * build-aux/csharpexec.sh.in: Likewise.
65471         * build-aux/install-reloc: Likewise.
65472         * build-aux/javacomp.sh.in: Likewise.
65473         * build-aux/javaexec.sh.in: Likewise.
65474         * build-aux/ldd.sh.in: Likewise.
65475         * build-aux/reloc-ldflags: Likewise.
65476         * build-aux/relocatable.sh.in: Likewise.
65477         * build-aux/x-to-1.in: Likewise.
65478         * check-module: Likewise.
65479         * config/srclistvars.sh: Likewise.
65480         * gnulib-tool: Likewise.
65481         * lib/acl-internal.h: Likewise.
65482         * lib/acl.c: Likewise.
65483         * lib/acl.h: Likewise.
65484         * lib/acl_entries.c: Likewise.
65485         * lib/areadlink-with-size.c: Likewise.
65486         * lib/areadlink.c: Likewise.
65487         * lib/areadlink.h: Likewise.
65488         * lib/argmatch.c: Likewise.
65489         * lib/argmatch.h: Likewise.
65490         * lib/argp-ba.c: Likewise.
65491         * lib/argp-eexst.c: Likewise.
65492         * lib/argp-fmtstream.c: Likewise.
65493         * lib/argp-fmtstream.h: Likewise.
65494         * lib/argp-fs-xinl.c: Likewise.
65495         * lib/argp-help.c: Likewise.
65496         * lib/argp-namefrob.h: Likewise.
65497         * lib/argp-parse.c: Likewise.
65498         * lib/argp-pin.c: Likewise.
65499         * lib/argp-pv.c: Likewise.
65500         * lib/argp-pvh.c: Likewise.
65501         * lib/argp-xinl.c: Likewise.
65502         * lib/argp.h: Likewise.
65503         * lib/at-func.c: Likewise.
65504         * lib/atanl.c: Likewise.
65505         * lib/backupfile.c: Likewise.
65506         * lib/backupfile.h: Likewise.
65507         * lib/basename.c: Likewise.
65508         * lib/binary-io.h: Likewise.
65509         * lib/byteswap.in.h: Likewise.
65510         * lib/c-stack.c: Likewise.
65511         * lib/c-stack.h: Likewise.
65512         * lib/c-strcasestr.c: Likewise.
65513         * lib/c-strcasestr.h: Likewise.
65514         * lib/c-strstr.c: Likewise.
65515         * lib/c-strstr.h: Likewise.
65516         * lib/c-strtod.c: Likewise.
65517         * lib/calloc.c: Likewise.
65518         * lib/canon-host.c: Likewise.
65519         * lib/canon-host.h: Likewise.
65520         * lib/canonicalize-lgpl.c: Likewise.
65521         * lib/canonicalize.c: Likewise.
65522         * lib/canonicalize.h: Likewise.
65523         * lib/ceil.c: Likewise.
65524         * lib/ceilf.c: Likewise.
65525         * lib/ceill.c: Likewise.
65526         * lib/chdir-long.c: Likewise.
65527         * lib/chdir-long.h: Likewise.
65528         * lib/chdir-safer.c: Likewise.
65529         * lib/chdir-safer.h: Likewise.
65530         * lib/chown.c: Likewise.
65531         * lib/classpath.c: Likewise.
65532         * lib/classpath.h: Likewise.
65533         * lib/clean-temp.c: Likewise.
65534         * lib/clean-temp.h: Likewise.
65535         * lib/cloexec.c: Likewise.
65536         * lib/close-stream.c: Likewise.
65537         * lib/closein.c: Likewise.
65538         * lib/closein.h: Likewise.
65539         * lib/closeout.c: Likewise.
65540         * lib/closeout.h: Likewise.
65541         * lib/concat-filename.c: Likewise.
65542         * lib/copy-file.c: Likewise.
65543         * lib/copy-file.h: Likewise.
65544         * lib/count-one-bits.h: Likewise.
65545         * lib/crc.c: Likewise.
65546         * lib/crc.h: Likewise.
65547         * lib/creat-safer.c: Likewise.
65548         * lib/csharpcomp.c: Likewise.
65549         * lib/csharpcomp.h: Likewise.
65550         * lib/csharpexec.c: Likewise.
65551         * lib/csharpexec.h: Likewise.
65552         * lib/cycle-check.c: Likewise.
65553         * lib/cycle-check.h: Likewise.
65554         * lib/diacrit.c: Likewise.
65555         * lib/diacrit.h: Likewise.
65556         * lib/diffseq.h: Likewise.
65557         * lib/dirchownmod.c: Likewise.
65558         * lib/dirent.in.h: Likewise.
65559         * lib/dirfd.c: Likewise.
65560         * lib/dirfd.h: Likewise.
65561         * lib/dirname.c: Likewise.
65562         * lib/dirname.h: Likewise.
65563         * lib/dummy.c: Likewise.
65564         * lib/dup-safer.c: Likewise.
65565         * lib/dup2.c: Likewise.
65566         * lib/eealloc.h: Likewise.
65567         * lib/error.c: Likewise.
65568         * lib/error.h: Likewise.
65569         * lib/euidaccess.c: Likewise.
65570         * lib/exclude.c: Likewise.
65571         * lib/exclude.h: Likewise.
65572         * lib/execute.c: Likewise.
65573         * lib/execute.h: Likewise.
65574         * lib/exitfail.c: Likewise.
65575         * lib/exitfail.h: Likewise.
65576         * lib/expl.c: Likewise.
65577         * lib/fatal-signal.c: Likewise.
65578         * lib/fatal-signal.h: Likewise.
65579         * lib/fbufmode.c: Likewise.
65580         * lib/fbufmode.h: Likewise.
65581         * lib/fchdir.c: Likewise.
65582         * lib/fchmodat.c: Likewise.
65583         * lib/fchownat.c: Likewise.
65584         * lib/fcntl--.h: Likewise.
65585         * lib/fcntl-safer.h: Likewise.
65586         * lib/fcntl.in.h: Likewise.
65587         * lib/fd-safer.c: Likewise.
65588         * lib/fflush.c: Likewise.
65589         * lib/file-has-acl.c: Likewise.
65590         * lib/file-set.c: Likewise.
65591         * lib/file-type.c: Likewise.
65592         * lib/file-type.h: Likewise.
65593         * lib/fileblocks.c: Likewise.
65594         * lib/filemode.c: Likewise.
65595         * lib/filemode.h: Likewise.
65596         * lib/filename.h: Likewise.
65597         * lib/filenamecat.c: Likewise.
65598         * lib/filenamecat.h: Likewise.
65599         * lib/findprog.c: Likewise.
65600         * lib/findprog.h: Likewise.
65601         * lib/float.in.h: Likewise.
65602         * lib/floor.c: Likewise.
65603         * lib/floorf.c: Likewise.
65604         * lib/floorl.c: Likewise.
65605         * lib/fopen-safer.c: Likewise.
65606         * lib/fopen.c: Likewise.
65607         * lib/fpending.c: Likewise.
65608         * lib/fpending.h: Likewise.
65609         * lib/fprintf.c: Likewise.
65610         * lib/fprintftime.h: Likewise.
65611         * lib/fpucw.h: Likewise.
65612         * lib/fpurge.c: Likewise.
65613         * lib/fpurge.h: Likewise.
65614         * lib/freadable.c: Likewise.
65615         * lib/freadable.h: Likewise.
65616         * lib/freadahead.c: Likewise.
65617         * lib/freadahead.h: Likewise.
65618         * lib/freading.c: Likewise.
65619         * lib/freading.h: Likewise.
65620         * lib/free.c: Likewise.
65621         * lib/freopen.c: Likewise.
65622         * lib/frexp.c: Likewise.
65623         * lib/frexpl.c: Likewise.
65624         * lib/fseek.c: Likewise.
65625         * lib/fseterr.c: Likewise.
65626         * lib/fseterr.h: Likewise.
65627         * lib/fstatat.c: Likewise.
65628         * lib/fstrcmp.c: Likewise.
65629         * lib/fstrcmp.h: Likewise.
65630         * lib/fsusage.c: Likewise.
65631         * lib/fsusage.h: Likewise.
65632         * lib/ftell.c: Likewise.
65633         * lib/ftello.c: Likewise.
65634         * lib/fts-cycle.c: Likewise.
65635         * lib/fts.c: Likewise.
65636         * lib/fts_.h: Likewise.
65637         * lib/full-read.c: Likewise.
65638         * lib/full-read.h: Likewise.
65639         * lib/full-write.c: Likewise.
65640         * lib/full-write.h: Likewise.
65641         * lib/fwritable.c: Likewise.
65642         * lib/fwritable.h: Likewise.
65643         * lib/fwriteerror.c: Likewise.
65644         * lib/fwriteerror.h: Likewise.
65645         * lib/fwriting.c: Likewise.
65646         * lib/fwriting.h: Likewise.
65647         * lib/gcd.c: Likewise.
65648         * lib/gcd.h: Likewise.
65649         * lib/getcwd.c: Likewise.
65650         * lib/getdate.h: Likewise.
65651         * lib/getdate.y: Likewise.
65652         * lib/getdomainname.c: Likewise.
65653         * lib/getdomainname.h: Likewise.
65654         * lib/getgroups.c: Likewise.
65655         * lib/gethostname.c: Likewise.
65656         * lib/gethrxtime.c: Likewise.
65657         * lib/gethrxtime.h: Likewise.
65658         * lib/getloadavg.c: Likewise.
65659         * lib/getndelim2.c: Likewise.
65660         * lib/getndelim2.h: Likewise.
65661         * lib/getnline.c: Likewise.
65662         * lib/getnline.h: Likewise.
65663         * lib/getopt.c: Likewise.
65664         * lib/getopt.in.h: Likewise.
65665         * lib/getopt1.c: Likewise.
65666         * lib/getopt_int.h: Likewise.
65667         * lib/getpagesize.h: Likewise.
65668         * lib/getsubopt.c: Likewise.
65669         * lib/gettime.c: Likewise.
65670         * lib/getugroups.c: Likewise.
65671         * lib/getugroups.h: Likewise.
65672         * lib/getusershell.c: Likewise.
65673         * lib/gl_anyavltree_list1.h: Likewise.
65674         * lib/gl_anyavltree_list2.h: Likewise.
65675         * lib/gl_anyhash_list1.h: Likewise.
65676         * lib/gl_anyhash_list2.h: Likewise.
65677         * lib/gl_anylinked_list1.h: Likewise.
65678         * lib/gl_anylinked_list2.h: Likewise.
65679         * lib/gl_anyrbtree_list1.h: Likewise.
65680         * lib/gl_anyrbtree_list2.h: Likewise.
65681         * lib/gl_anytree_list1.h: Likewise.
65682         * lib/gl_anytree_list2.h: Likewise.
65683         * lib/gl_anytree_oset.h: Likewise.
65684         * lib/gl_anytreehash_list1.h: Likewise.
65685         * lib/gl_anytreehash_list2.h: Likewise.
65686         * lib/gl_array_list.c: Likewise.
65687         * lib/gl_array_list.h: Likewise.
65688         * lib/gl_array_oset.c: Likewise.
65689         * lib/gl_array_oset.h: Likewise.
65690         * lib/gl_avltree_list.c: Likewise.
65691         * lib/gl_avltree_list.h: Likewise.
65692         * lib/gl_avltree_oset.c: Likewise.
65693         * lib/gl_avltree_oset.h: Likewise.
65694         * lib/gl_avltreehash_list.c: Likewise.
65695         * lib/gl_avltreehash_list.h: Likewise.
65696         * lib/gl_carray_list.c: Likewise.
65697         * lib/gl_carray_list.h: Likewise.
65698         * lib/gl_linked_list.c: Likewise.
65699         * lib/gl_linked_list.h: Likewise.
65700         * lib/gl_linkedhash_list.c: Likewise.
65701         * lib/gl_linkedhash_list.h: Likewise.
65702         * lib/gl_list.c: Likewise.
65703         * lib/gl_list.h: Likewise.
65704         * lib/gl_oset.c: Likewise.
65705         * lib/gl_oset.h: Likewise.
65706         * lib/gl_rbtree_list.c: Likewise.
65707         * lib/gl_rbtree_list.h: Likewise.
65708         * lib/gl_rbtree_oset.c: Likewise.
65709         * lib/gl_rbtree_oset.h: Likewise.
65710         * lib/gl_rbtreehash_list.c: Likewise.
65711         * lib/gl_rbtreehash_list.h: Likewise.
65712         * lib/gl_sublist.c: Likewise.
65713         * lib/gl_sublist.h: Likewise.
65714         * lib/group-member.c: Likewise.
65715         * lib/group-member.h: Likewise.
65716         * lib/hard-locale.c: Likewise.
65717         * lib/hard-locale.h: Likewise.
65718         * lib/hash-pjw.c: Likewise.
65719         * lib/hash-pjw.h: Likewise.
65720         * lib/hash-triple.c: Likewise.
65721         * lib/hash.c: Likewise.
65722         * lib/hash.h: Likewise.
65723         * lib/human.c: Likewise.
65724         * lib/human.h: Likewise.
65725         * lib/i-ring.c: Likewise.
65726         * lib/i-ring.h: Likewise.
65727         * lib/idcache.c: Likewise.
65728         * lib/imaxabs.c: Likewise.
65729         * lib/imaxdiv.c: Likewise.
65730         * lib/inet_pton.c: Likewise.
65731         * lib/inet_pton.h: Likewise.
65732         * lib/intprops.h: Likewise.
65733         * lib/inttostr.c: Likewise.
65734         * lib/inttostr.h: Likewise.
65735         * lib/inttypes.in.h: Likewise.
65736         * lib/isapipe.c: Likewise.
65737         * lib/isdir.c: Likewise.
65738         * lib/isnan.c: Likewise.
65739         * lib/isnan.h: Likewise.
65740         * lib/isnanf.c: Likewise.
65741         * lib/isnanf.h: Likewise.
65742         * lib/isnanl-nolibm.h: Likewise.
65743         * lib/isnanl.c: Likewise.
65744         * lib/isnanl.h: Likewise.
65745         * lib/javacomp.c: Likewise.
65746         * lib/javacomp.h: Likewise.
65747         * lib/javaexec.c: Likewise.
65748         * lib/javaexec.h: Likewise.
65749         * lib/javaversion.c: Likewise.
65750         * lib/javaversion.h: Likewise.
65751         * lib/javaversion.java: Likewise.
65752         * lib/lbrkprop.h: Likewise.
65753         * lib/lchmod.h: Likewise.
65754         * lib/lchown.c: Likewise.
65755         * lib/ldexpl.c: Likewise.
65756         * lib/linebreak.c: Likewise.
65757         * lib/linebreak.h: Likewise.
65758         * lib/linebuffer.c: Likewise.
65759         * lib/linebuffer.h: Likewise.
65760         * lib/locale.in.h: Likewise.
65761         * lib/logl.c: Likewise.
65762         * lib/long-options.c: Likewise.
65763         * lib/long-options.h: Likewise.
65764         * lib/lstat.c: Likewise.
65765         * lib/lstat.h: Likewise.
65766         * lib/math.in.h: Likewise.
65767         * lib/mbchar.c: Likewise.
65768         * lib/mbchar.h: Likewise.
65769         * lib/mbfile.h: Likewise.
65770         * lib/mbiter.h: Likewise.
65771         * lib/mbscasecmp.c: Likewise.
65772         * lib/mbscasestr.c: Likewise.
65773         * lib/mbschr.c: Likewise.
65774         * lib/mbscspn.c: Likewise.
65775         * lib/mbslen.c: Likewise.
65776         * lib/mbsncasecmp.c: Likewise.
65777         * lib/mbsnlen.c: Likewise.
65778         * lib/mbspbrk.c: Likewise.
65779         * lib/mbspcasecmp.c: Likewise.
65780         * lib/mbsrchr.c: Likewise.
65781         * lib/mbssep.c: Likewise.
65782         * lib/mbsspn.c: Likewise.
65783         * lib/mbsstr.c: Likewise.
65784         * lib/mbstok_r.c: Likewise.
65785         * lib/mbswidth.c: Likewise.
65786         * lib/mbswidth.h: Likewise.
65787         * lib/mbuiter.h: Likewise.
65788         * lib/memcasecmp.c: Likewise.
65789         * lib/memcasecmp.h: Likewise.
65790         * lib/memchr.c: Likewise.
65791         * lib/memcmp.c: Likewise.
65792         * lib/memcoll.c: Likewise.
65793         * lib/memcoll.h: Likewise.
65794         * lib/memcpy.c: Likewise.
65795         * lib/memrchr.c: Likewise.
65796         * lib/mkancesdirs.c: Likewise.
65797         * lib/mkdir-p.c: Likewise.
65798         * lib/mkdir-p.h: Likewise.
65799         * lib/mkdir.c: Likewise.
65800         * lib/mkdirat.c: Likewise.
65801         * lib/mkdtemp.c: Likewise.
65802         * lib/mkstemp-safer.c: Likewise.
65803         * lib/mkstemp.c: Likewise.
65804         * lib/modechange.c: Likewise.
65805         * lib/modechange.h: Likewise.
65806         * lib/mountlist.c: Likewise.
65807         * lib/mountlist.h: Likewise.
65808         * lib/mpsort.c: Likewise.
65809         * lib/nanosleep.c: Likewise.
65810         * lib/obstack.c: Likewise.
65811         * lib/obstack.h: Likewise.
65812         * lib/open-safer.c: Likewise.
65813         * lib/open.c: Likewise.
65814         * lib/openat-die.c: Likewise.
65815         * lib/openat-priv.h: Likewise.
65816         * lib/openat-proc.c: Likewise.
65817         * lib/openat.c: Likewise.
65818         * lib/openat.h: Likewise.
65819         * lib/pagealign_alloc.c: Likewise.
65820         * lib/pagealign_alloc.h: Likewise.
65821         * lib/physmem.c: Likewise.
65822         * lib/physmem.h: Likewise.
65823         * lib/pipe-safer.c: Likewise.
65824         * lib/pipe.c: Likewise.
65825         * lib/pipe.h: Likewise.
65826         * lib/posixtm.c: Likewise.
65827         * lib/posixtm.h: Likewise.
65828         * lib/posixver.c: Likewise.
65829         * lib/printf-frexp.c: Likewise.
65830         * lib/printf-frexp.h: Likewise.
65831         * lib/printf-frexpl.c: Likewise.
65832         * lib/printf-frexpl.h: Likewise.
65833         * lib/printf.c: Likewise.
65834         * lib/progname.c: Likewise.
65835         * lib/progname.h: Likewise.
65836         * lib/progreloc.c: Likewise.
65837         * lib/putenv.c: Likewise.
65838         * lib/quote.c: Likewise.
65839         * lib/quote.h: Likewise.
65840         * lib/quotearg.c: Likewise.
65841         * lib/quotearg.h: Likewise.
65842         * lib/raise.c: Likewise.
65843         * lib/readline.c: Likewise.
65844         * lib/readline.h: Likewise.
65845         * lib/readlink.c: Likewise.
65846         * lib/readtokens.c: Likewise.
65847         * lib/readtokens.h: Likewise.
65848         * lib/readtokens0.c: Likewise.
65849         * lib/readtokens0.h: Likewise.
65850         * lib/readutmp.c: Likewise.
65851         * lib/readutmp.h: Likewise.
65852         * lib/realloc.c: Likewise.
65853         * lib/relocwrapper.c: Likewise.
65854         * lib/rename-dest-slash.c: Likewise.
65855         * lib/rename.c: Likewise.
65856         * lib/rmdir.c: Likewise.
65857         * lib/rpmatch.c: Likewise.
65858         * lib/safe-read.c: Likewise.
65859         * lib/safe-read.h: Likewise.
65860         * lib/safe-write.c: Likewise.
65861         * lib/safe-write.h: Likewise.
65862         * lib/same-inode.h: Likewise.
65863         * lib/same.c: Likewise.
65864         * lib/same.h: Likewise.
65865         * lib/save-cwd.c: Likewise.
65866         * lib/save-cwd.h: Likewise.
65867         * lib/savedir.c: Likewise.
65868         * lib/savedir.h: Likewise.
65869         * lib/savewd.c: Likewise.
65870         * lib/savewd.h: Likewise.
65871         * lib/search.in.h: Likewise.
65872         * lib/setenv.c: Likewise.
65873         * lib/setenv.h: Likewise.
65874         * lib/settime.c: Likewise.
65875         * lib/sh-quote.c: Likewise.
65876         * lib/sh-quote.h: Likewise.
65877         * lib/sig2str.c: Likewise.
65878         * lib/sig2str.h: Likewise.
65879         * lib/signal.in.h: Likewise.
65880         * lib/signbitd.c: Likewise.
65881         * lib/signbitf.c: Likewise.
65882         * lib/signbitl.c: Likewise.
65883         * lib/sigprocmask.c: Likewise.
65884         * lib/sincosl.c: Likewise.
65885         * lib/sleep.c: Likewise.
65886         * lib/sprintf.c: Likewise.
65887         * lib/sqrtl.c: Likewise.
65888         * lib/stat-time.h: Likewise.
65889         * lib/stdio--.h: Likewise.
65890         * lib/stdio-safer.h: Likewise.
65891         * lib/stdlib--.h: Likewise.
65892         * lib/stdlib-safer.h: Likewise.
65893         * lib/stdlib.in.h: Likewise.
65894         * lib/stpcpy.c: Likewise.
65895         * lib/stpncpy.c: Likewise.
65896         * lib/strchrnul.c: Likewise.
65897         * lib/strcspn.c: Likewise.
65898         * lib/strerror.c: Likewise.
65899         * lib/strftime.c: Likewise.
65900         * lib/strftime.h: Likewise.
65901         * lib/striconveh.c: Likewise.
65902         * lib/striconveh.h: Likewise.
65903         * lib/striconveha.c: Likewise.
65904         * lib/striconveha.h: Likewise.
65905         * lib/stripslash.c: Likewise.
65906         * lib/strnlen1.c: Likewise.
65907         * lib/strnlen1.h: Likewise.
65908         * lib/strtod.c: Likewise.
65909         * lib/strtoimax.c: Likewise.
65910         * lib/strtok_r.c: Likewise.
65911         * lib/strtol.c: Likewise.
65912         * lib/strtoll.c: Likewise.
65913         * lib/strtoul.c: Likewise.
65914         * lib/strtoull.c: Likewise.
65915         * lib/sysexits.in.h: Likewise.
65916         * lib/tempname.c: Likewise.
65917         * lib/tempname.h: Likewise.
65918         * lib/timespec.h: Likewise.
65919         * lib/tls.c: Likewise.
65920         * lib/tls.h: Likewise.
65921         * lib/tmpdir.c: Likewise.
65922         * lib/tmpdir.h: Likewise.
65923         * lib/tmpfile-safer.c: Likewise.
65924         * lib/tmpfile.c: Likewise.
65925         * lib/trigl.c: Likewise.
65926         * lib/trigl.h: Likewise.
65927         * lib/trim.c: Likewise.
65928         * lib/trim.h: Likewise.
65929         * lib/trunc.c: Likewise.
65930         * lib/truncf.c: Likewise.
65931         * lib/truncl.c: Likewise.
65932         * lib/tsearch.c: Likewise.
65933         * lib/unicodeio.c: Likewise.
65934         * lib/unicodeio.h: Likewise.
65935         * lib/unistd--.h: Likewise.
65936         * lib/unistd-safer.h: Likewise.
65937         * lib/unistdio/ulc-fprintf.c: Likewise.
65938         * lib/unistdio/ulc-vfprintf.c: Likewise.
65939         * lib/unlinkdir.c: Likewise.
65940         * lib/unlinkdir.h: Likewise.
65941         * lib/unlocked-io.h: Likewise.
65942         * lib/unsetenv.c: Likewise.
65943         * lib/userspec.c: Likewise.
65944         * lib/utime.c: Likewise.
65945         * lib/utimecmp.c: Likewise.
65946         * lib/utimecmp.h: Likewise.
65947         * lib/utimens.c: Likewise.
65948         * lib/verify.h: Likewise.
65949         * lib/verror.c: Likewise.
65950         * lib/verror.h: Likewise.
65951         * lib/version-etc-fsf.c: Likewise.
65952         * lib/version-etc.c: Likewise.
65953         * lib/version-etc.h: Likewise.
65954         * lib/vfprintf.c: Likewise.
65955         * lib/vprintf.c: Likewise.
65956         * lib/vsprintf.c: Likewise.
65957         * lib/w32spawn.h: Likewise.
65958         * lib/wait-process.c: Likewise.
65959         * lib/wait-process.h: Likewise.
65960         * lib/wcwidth.c: Likewise.
65961         * lib/write-any-file.c: Likewise.
65962         * lib/xalloc-die.c: Likewise.
65963         * lib/xalloc.h: Likewise.
65964         * lib/xasprintf.c: Likewise.
65965         * lib/xgetcwd.c: Likewise.
65966         * lib/xgetcwd.h: Likewise.
65967         * lib/xgetdomainname.c: Likewise.
65968         * lib/xgetdomainname.h: Likewise.
65969         * lib/xgethostname.c: Likewise.
65970         * lib/xmalloc.c: Likewise.
65971         * lib/xmalloca.c: Likewise.
65972         * lib/xmalloca.h: Likewise.
65973         * lib/xmemcoll.c: Likewise.
65974         * lib/xnanosleep.c: Likewise.
65975         * lib/xreadlink.c: Likewise.
65976         * lib/xreadlink.h: Likewise.
65977         * lib/xsetenv.c: Likewise.
65978         * lib/xsetenv.h: Likewise.
65979         * lib/xstriconv.c: Likewise.
65980         * lib/xstriconv.h: Likewise.
65981         * lib/xstrndup.c: Likewise.
65982         * lib/xstrndup.h: Likewise.
65983         * lib/xstrtod.c: Likewise.
65984         * lib/xstrtod.h: Likewise.
65985         * lib/xstrtol-error.c: Likewise.
65986         * lib/xstrtol.c: Likewise.
65987         * lib/xstrtol.h: Likewise.
65988         * lib/xtime.h: Likewise.
65989         * lib/xvasprintf.c: Likewise.
65990         * lib/xvasprintf.h: Likewise.
65991         * lib/yesno.c: Likewise.
65992         * lib/yesno.h: Likewise.
65993         * posix-modules: Likewise.
65994         * tests/test-alloca-opt.c: Likewise.
65995         * tests/test-arcfour.c: Likewise.
65996         * tests/test-arctwo.c: Likewise.
65997         * tests/test-argmatch.c: Likewise.
65998         * tests/test-argp-2.sh: Likewise.
65999         * tests/test-argp.c: Likewise.
66000         * tests/test-arpa_inet.c: Likewise.
66001         * tests/test-array_list.c: Likewise.
66002         * tests/test-array_oset.c: Likewise.
66003         * tests/test-atexit.c: Likewise.
66004         * tests/test-avltree_list.c: Likewise.
66005         * tests/test-avltree_oset.c: Likewise.
66006         * tests/test-avltreehash_list.c: Likewise.
66007         * tests/test-base64.c: Likewise.
66008         * tests/test-binary-io.c: Likewise.
66009         * tests/test-byteswap.c: Likewise.
66010         * tests/test-c-ctype.c: Likewise.
66011         * tests/test-c-strcasecmp.c: Likewise.
66012         * tests/test-c-strcasestr.c: Likewise.
66013         * tests/test-c-strncasecmp.c: Likewise.
66014         * tests/test-c-strstr.c: Likewise.
66015         * tests/test-canonicalize-lgpl.c: Likewise.
66016         * tests/test-canonicalize.c: Likewise.
66017         * tests/test-carray_list.c: Likewise.
66018         * tests/test-ceilf.c: Likewise.
66019         * tests/test-ceill.c: Likewise.
66020         * tests/test-count-one-bits.c: Likewise.
66021         * tests/test-crc.c: Likewise.
66022         * tests/test-dirname.c: Likewise.
66023         * tests/test-fbufmode.c: Likewise.
66024         * tests/test-fcntl.c: Likewise.
66025         * tests/test-fflush.c: Likewise.
66026         * tests/test-floorf.c: Likewise.
66027         * tests/test-floorl.c: Likewise.
66028         * tests/test-fopen.c: Likewise.
66029         * tests/test-fprintf-posix.c: Likewise.
66030         * tests/test-fprintf-posix.h: Likewise.
66031         * tests/test-fpurge.c: Likewise.
66032         * tests/test-freadable.c: Likewise.
66033         * tests/test-freadahead.c: Likewise.
66034         * tests/test-freading.c: Likewise.
66035         * tests/test-freopen.c: Likewise.
66036         * tests/test-frexp.c: Likewise.
66037         * tests/test-frexpl.c: Likewise.
66038         * tests/test-fseek.c: Likewise.
66039         * tests/test-fseeko.c: Likewise.
66040         * tests/test-fseterr.c: Likewise.
66041         * tests/test-fstrcmp.c: Likewise.
66042         * tests/test-ftell.c: Likewise.
66043         * tests/test-ftello.c: Likewise.
66044         * tests/test-fwritable.c: Likewise.
66045         * tests/test-fwriting.c: Likewise.
66046         * tests/test-getaddrinfo.c: Likewise.
66047         * tests/test-getpass.c: Likewise.
66048         * tests/test-gettimeofday.c: Likewise.
66049         * tests/test-hmac-md5.c: Likewise.
66050         * tests/test-hmac-sha1.c: Likewise.
66051         * tests/test-iconv.c: Likewise.
66052         * tests/test-iconvme.c: Likewise.
66053         * tests/test-inttypes.c: Likewise.
66054         * tests/test-isnan.c: Likewise.
66055         * tests/test-isnanf.c: Likewise.
66056         * tests/test-isnanl-nolibm.c: Likewise.
66057         * tests/test-isnanl.c: Likewise.
66058         * tests/test-isnanl.h: Likewise.
66059         * tests/test-ldexpl.c: Likewise.
66060         * tests/test-linked_list.c: Likewise.
66061         * tests/test-linkedhash_list.c: Likewise.
66062         * tests/test-locale.c: Likewise.
66063         * tests/test-localename.c: Likewise.
66064         * tests/test-lock.c: Likewise.
66065         * tests/test-lseek.c: Likewise.
66066         * tests/test-malloca.c: Likewise.
66067         * tests/test-math.c: Likewise.
66068         * tests/test-mbscasecmp.c: Likewise.
66069         * tests/test-mbscasestr1.c: Likewise.
66070         * tests/test-mbscasestr2.c: Likewise.
66071         * tests/test-mbscasestr3.c: Likewise.
66072         * tests/test-mbscasestr4.c: Likewise.
66073         * tests/test-mbschr.c: Likewise.
66074         * tests/test-mbscspn.c: Likewise.
66075         * tests/test-mbsncasecmp.c: Likewise.
66076         * tests/test-mbspbrk.c: Likewise.
66077         * tests/test-mbspcasecmp.c: Likewise.
66078         * tests/test-mbsrchr.c: Likewise.
66079         * tests/test-mbsspn.c: Likewise.
66080         * tests/test-mbsstr1.c: Likewise.
66081         * tests/test-mbsstr2.c: Likewise.
66082         * tests/test-mbsstr3.c: Likewise.
66083         * tests/test-md5.c: Likewise.
66084         * tests/test-memmem.c: Likewise.
66085         * tests/test-netinet_in.c: Likewise.
66086         * tests/test-open.c: Likewise.
66087         * tests/test-printf-frexp.c: Likewise.
66088         * tests/test-printf-frexpl.c: Likewise.
66089         * tests/test-printf-posix.c: Likewise.
66090         * tests/test-printf-posix.h: Likewise.
66091         * tests/test-rbtree_list.c: Likewise.
66092         * tests/test-rbtree_oset.c: Likewise.
66093         * tests/test-rbtreehash_list.c: Likewise.
66094         * tests/test-read-file.c: Likewise.
66095         * tests/test-rijndael.c: Likewise.
66096         * tests/test-search.c: Likewise.
66097         * tests/test-signbit.c: Likewise.
66098         * tests/test-sleep.c: Likewise.
66099         * tests/test-snprintf-posix.c: Likewise.
66100         * tests/test-snprintf-posix.h: Likewise.
66101         * tests/test-snprintf.c: Likewise.
66102         * tests/test-sprintf-posix.c: Likewise.
66103         * tests/test-sprintf-posix.h: Likewise.
66104         * tests/test-stat-time.c: Likewise.
66105         * tests/test-stdbool.c: Likewise.
66106         * tests/test-stdint.c: Likewise.
66107         * tests/test-stdio.c: Likewise.
66108         * tests/test-stdlib.c: Likewise.
66109         * tests/test-stpncpy.c: Likewise.
66110         * tests/test-strcasestr.c: Likewise.
66111         * tests/test-striconv.c: Likewise.
66112         * tests/test-striconveh.c: Likewise.
66113         * tests/test-striconveha.c: Likewise.
66114         * tests/test-string.c: Likewise.
66115         * tests/test-sys_select.c: Likewise.
66116         * tests/test-sys_socket.c: Likewise.
66117         * tests/test-sys_stat.c: Likewise.
66118         * tests/test-sys_time.c: Likewise.
66119         * tests/test-sysexits.c: Likewise.
66120         * tests/test-time.c: Likewise.
66121         * tests/test-tls.c: Likewise.
66122         * tests/test-trunc.c: Likewise.
66123         * tests/test-truncf.c: Likewise.
66124         * tests/test-truncl.c: Likewise.
66125         * tests/test-unistd.c: Likewise.
66126         * tests/test-vasnprintf-posix.c: Likewise.
66127         * tests/test-vasnprintf-posix2.c: Likewise.
66128         * tests/test-vasnprintf.c: Likewise.
66129         * tests/test-vasprintf-posix.c: Likewise.
66130         * tests/test-vasprintf.c: Likewise.
66131         * tests/test-verify.c: Likewise.
66132         * tests/test-vfprintf-posix.c: Likewise.
66133         * tests/test-vprintf-posix.c: Likewise.
66134         * tests/test-vsnprintf-posix.c: Likewise.
66135         * tests/test-vsnprintf.c: Likewise.
66136         * tests/test-vsprintf-posix.c: Likewise.
66137         * tests/test-wchar.c: Likewise.
66138         * tests/test-wctype.c: Likewise.
66139         * tests/test-wcwidth.c: Likewise.
66140         * tests/test-xstrtol.c: Likewise.
66141         * tests/test-xvasprintf.c: Likewise.
66142         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66143         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66144         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66145         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66146         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66147         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66148         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66149         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66150         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66151         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66152         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66153         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66154         * tests/uniname/test-uninames.c: Likewise.
66155         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66156         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66157         * tests/unistdio/test-u16-printf1.h: Likewise.
66158         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66159         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66160         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66161         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66162         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66163         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66164         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66165         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66166         * tests/unistdio/test-u32-printf1.h: Likewise.
66167         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66168         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66169         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66170         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66171         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66172         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66173         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66174         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66175         * tests/unistdio/test-u8-printf1.h: Likewise.
66176         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66177         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66178         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66179         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66180         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66181         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66182         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66183         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66184         * tests/unistdio/test-ulc-printf1.h: Likewise.
66185         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66186         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66187         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66188         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66189         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66190         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66191         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66192         * tests/uniwidth/test-u16-width.c: Likewise.
66193         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66194         * tests/uniwidth/test-u32-width.c: Likewise.
66195         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66196         * tests/uniwidth/test-u8-width.c: Likewise.
66197         * tests/uniwidth/test-uc_width.c: Likewise.
66198         * config/srclist-update: Likewise.
66199         (fixlicense): Update to GPLv3+.
66200
66201         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66202         * tests/test-tsearch.c: Change copyright notice.
66203
66204         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66205         * lib/c-strcaseeq.h: Change copyright notice.
66206         * lib/streq.h: Likewise.
66207         * lib/uniconv.h: Likewise.
66208         * lib/uniconv/u-conv-from-enc.h: Likewise.
66209         * lib/uniconv/u-conv-to-enc.h: Likewise.
66210         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66211         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66212         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66213         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66214         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66215         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66216         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66217         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66218         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66219         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66220         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66221         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66222         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66223         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66224         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66225         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66226         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66227         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66228         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66229         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66230         * lib/uniname.h: Likewise.
66231         * lib/uniname/uniname.c: Likewise.
66232         * lib/unistdio.h: Likewise.
66233         * lib/unistdio/u-asnprintf.h: Likewise.
66234         * lib/unistdio/u-asprintf.h: Likewise.
66235         * lib/unistdio/u-printf-args.c: Likewise.
66236         * lib/unistdio/u-printf-args.h: Likewise.
66237         * lib/unistdio/u-printf-parse.h: Likewise.
66238         * lib/unistdio/u-snprintf.h: Likewise.
66239         * lib/unistdio/u-sprintf.h: Likewise.
66240         * lib/unistdio/u-vasprintf.h: Likewise.
66241         * lib/unistdio/u-vsnprintf.h: Likewise.
66242         * lib/unistdio/u-vsprintf.h: Likewise.
66243         * lib/unistdio/u16-asnprintf.c: Likewise.
66244         * lib/unistdio/u16-asprintf.c: Likewise.
66245         * lib/unistdio/u16-printf-parse.c: Likewise.
66246         * lib/unistdio/u16-snprintf.c: Likewise.
66247         * lib/unistdio/u16-sprintf.c: Likewise.
66248         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66249         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66250         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66251         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66252         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66253         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66254         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66255         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66256         * lib/unistdio/u16-vasnprintf.c: Likewise.
66257         * lib/unistdio/u16-vasprintf.c: Likewise.
66258         * lib/unistdio/u16-vsnprintf.c: Likewise.
66259         * lib/unistdio/u16-vsprintf.c: Likewise.
66260         * lib/unistdio/u32-asnprintf.c: Likewise.
66261         * lib/unistdio/u32-asprintf.c: Likewise.
66262         * lib/unistdio/u32-printf-parse.c: Likewise.
66263         * lib/unistdio/u32-snprintf.c: Likewise.
66264         * lib/unistdio/u32-sprintf.c: Likewise.
66265         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66266         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66267         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66268         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66269         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66270         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66271         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66272         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66273         * lib/unistdio/u32-vasnprintf.c: Likewise.
66274         * lib/unistdio/u32-vasprintf.c: Likewise.
66275         * lib/unistdio/u32-vsnprintf.c: Likewise.
66276         * lib/unistdio/u32-vsprintf.c: Likewise.
66277         * lib/unistdio/u8-asnprintf.c: Likewise.
66278         * lib/unistdio/u8-asprintf.c: Likewise.
66279         * lib/unistdio/u8-printf-parse.c: Likewise.
66280         * lib/unistdio/u8-snprintf.c: Likewise.
66281         * lib/unistdio/u8-sprintf.c: Likewise.
66282         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66283         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66284         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66285         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66286         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66287         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66288         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66289         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66290         * lib/unistdio/u8-vasnprintf.c: Likewise.
66291         * lib/unistdio/u8-vasprintf.c: Likewise.
66292         * lib/unistdio/u8-vsnprintf.c: Likewise.
66293         * lib/unistdio/u8-vsprintf.c: Likewise.
66294         * lib/unistdio/ulc-asnprintf.c: Likewise.
66295         * lib/unistdio/ulc-asprintf.c: Likewise.
66296         * lib/unistdio/ulc-printf-parse.c: Likewise.
66297         * lib/unistdio/ulc-snprintf.c: Likewise.
66298         * lib/unistdio/ulc-sprintf.c: Likewise.
66299         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66300         * lib/unistdio/ulc-vasprintf.c: Likewise.
66301         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66302         * lib/unistdio/ulc-vsprintf.c: Likewise.
66303         * lib/unistr.h: Likewise.
66304         * lib/unistr/u-cpy-alloc.h: Likewise.
66305         * lib/unistr/u-cpy.h: Likewise.
66306         * lib/unistr/u-endswith.h: Likewise.
66307         * lib/unistr/u-move.h: Likewise.
66308         * lib/unistr/u-set.h: Likewise.
66309         * lib/unistr/u-startswith.h: Likewise.
66310         * lib/unistr/u-stpcpy.h: Likewise.
66311         * lib/unistr/u-stpncpy.h: Likewise.
66312         * lib/unistr/u-strcat.h: Likewise.
66313         * lib/unistr/u-strcpy.h: Likewise.
66314         * lib/unistr/u-strcspn.h: Likewise.
66315         * lib/unistr/u-strdup.h: Likewise.
66316         * lib/unistr/u-strlen.h: Likewise.
66317         * lib/unistr/u-strncat.h: Likewise.
66318         * lib/unistr/u-strncpy.h: Likewise.
66319         * lib/unistr/u-strnlen.h: Likewise.
66320         * lib/unistr/u-strpbrk.h: Likewise.
66321         * lib/unistr/u-strspn.h: Likewise.
66322         * lib/unistr/u-strstr.h: Likewise.
66323         * lib/unistr/u-strtok.h: Likewise.
66324         * lib/unistr/u16-check.c: Likewise.
66325         * lib/unistr/u16-chr.c: Likewise.
66326         * lib/unistr/u16-cmp.c: Likewise.
66327         * lib/unistr/u16-cpy-alloc.c: Likewise.
66328         * lib/unistr/u16-cpy.c: Likewise.
66329         * lib/unistr/u16-endswith.c: Likewise.
66330         * lib/unistr/u16-mblen.c: Likewise.
66331         * lib/unistr/u16-mbsnlen.c: Likewise.
66332         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66333         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66334         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66335         * lib/unistr/u16-mbtouc.c: Likewise.
66336         * lib/unistr/u16-mbtoucr.c: Likewise.
66337         * lib/unistr/u16-move.c: Likewise.
66338         * lib/unistr/u16-next.c: Likewise.
66339         * lib/unistr/u16-prev.c: Likewise.
66340         * lib/unistr/u16-set.c: Likewise.
66341         * lib/unistr/u16-startswith.c: Likewise.
66342         * lib/unistr/u16-stpcpy.c: Likewise.
66343         * lib/unistr/u16-stpncpy.c: Likewise.
66344         * lib/unistr/u16-strcat.c: Likewise.
66345         * lib/unistr/u16-strchr.c: Likewise.
66346         * lib/unistr/u16-strcmp.c: Likewise.
66347         * lib/unistr/u16-strcpy.c: Likewise.
66348         * lib/unistr/u16-strcspn.c: Likewise.
66349         * lib/unistr/u16-strdup.c: Likewise.
66350         * lib/unistr/u16-strlen.c: Likewise.
66351         * lib/unistr/u16-strmblen.c: Likewise.
66352         * lib/unistr/u16-strmbtouc.c: Likewise.
66353         * lib/unistr/u16-strncat.c: Likewise.
66354         * lib/unistr/u16-strncmp.c: Likewise.
66355         * lib/unistr/u16-strncpy.c: Likewise.
66356         * lib/unistr/u16-strnlen.c: Likewise.
66357         * lib/unistr/u16-strpbrk.c: Likewise.
66358         * lib/unistr/u16-strrchr.c: Likewise.
66359         * lib/unistr/u16-strspn.c: Likewise.
66360         * lib/unistr/u16-strstr.c: Likewise.
66361         * lib/unistr/u16-strtok.c: Likewise.
66362         * lib/unistr/u16-to-u32.c: Likewise.
66363         * lib/unistr/u16-to-u8.c: Likewise.
66364         * lib/unistr/u16-uctomb-aux.c: Likewise.
66365         * lib/unistr/u16-uctomb.c: Likewise.
66366         * lib/unistr/u32-check.c: Likewise.
66367         * lib/unistr/u32-chr.c: Likewise.
66368         * lib/unistr/u32-cmp.c: Likewise.
66369         * lib/unistr/u32-cpy-alloc.c: Likewise.
66370         * lib/unistr/u32-cpy.c: Likewise.
66371         * lib/unistr/u32-endswith.c: Likewise.
66372         * lib/unistr/u32-mblen.c: Likewise.
66373         * lib/unistr/u32-mbsnlen.c: Likewise.
66374         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66375         * lib/unistr/u32-mbtouc.c: Likewise.
66376         * lib/unistr/u32-mbtoucr.c: Likewise.
66377         * lib/unistr/u32-move.c: Likewise.
66378         * lib/unistr/u32-next.c: Likewise.
66379         * lib/unistr/u32-prev.c: Likewise.
66380         * lib/unistr/u32-set.c: Likewise.
66381         * lib/unistr/u32-startswith.c: Likewise.
66382         * lib/unistr/u32-stpcpy.c: Likewise.
66383         * lib/unistr/u32-stpncpy.c: Likewise.
66384         * lib/unistr/u32-strcat.c: Likewise.
66385         * lib/unistr/u32-strchr.c: Likewise.
66386         * lib/unistr/u32-strcmp.c: Likewise.
66387         * lib/unistr/u32-strcpy.c: Likewise.
66388         * lib/unistr/u32-strcspn.c: Likewise.
66389         * lib/unistr/u32-strdup.c: Likewise.
66390         * lib/unistr/u32-strlen.c: Likewise.
66391         * lib/unistr/u32-strmblen.c: Likewise.
66392         * lib/unistr/u32-strmbtouc.c: Likewise.
66393         * lib/unistr/u32-strncat.c: Likewise.
66394         * lib/unistr/u32-strncmp.c: Likewise.
66395         * lib/unistr/u32-strncpy.c: Likewise.
66396         * lib/unistr/u32-strnlen.c: Likewise.
66397         * lib/unistr/u32-strpbrk.c: Likewise.
66398         * lib/unistr/u32-strrchr.c: Likewise.
66399         * lib/unistr/u32-strspn.c: Likewise.
66400         * lib/unistr/u32-strstr.c: Likewise.
66401         * lib/unistr/u32-strtok.c: Likewise.
66402         * lib/unistr/u32-to-u16.c: Likewise.
66403         * lib/unistr/u32-to-u8.c: Likewise.
66404         * lib/unistr/u32-uctomb.c: Likewise.
66405         * lib/unistr/u8-check.c: Likewise.
66406         * lib/unistr/u8-chr.c: Likewise.
66407         * lib/unistr/u8-cmp.c: Likewise.
66408         * lib/unistr/u8-cpy-alloc.c: Likewise.
66409         * lib/unistr/u8-cpy.c: Likewise.
66410         * lib/unistr/u8-endswith.c: Likewise.
66411         * lib/unistr/u8-mblen.c: Likewise.
66412         * lib/unistr/u8-mbsnlen.c: Likewise.
66413         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66414         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66415         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66416         * lib/unistr/u8-mbtouc.c: Likewise.
66417         * lib/unistr/u8-mbtoucr.c: Likewise.
66418         * lib/unistr/u8-move.c: Likewise.
66419         * lib/unistr/u8-next.c: Likewise.
66420         * lib/unistr/u8-prev.c: Likewise.
66421         * lib/unistr/u8-set.c: Likewise.
66422         * lib/unistr/u8-startswith.c: Likewise.
66423         * lib/unistr/u8-stpcpy.c: Likewise.
66424         * lib/unistr/u8-stpncpy.c: Likewise.
66425         * lib/unistr/u8-strcat.c: Likewise.
66426         * lib/unistr/u8-strchr.c: Likewise.
66427         * lib/unistr/u8-strcmp.c: Likewise.
66428         * lib/unistr/u8-strcpy.c: Likewise.
66429         * lib/unistr/u8-strcspn.c: Likewise.
66430         * lib/unistr/u8-strdup.c: Likewise.
66431         * lib/unistr/u8-strlen.c: Likewise.
66432         * lib/unistr/u8-strmblen.c: Likewise.
66433         * lib/unistr/u8-strmbtouc.c: Likewise.
66434         * lib/unistr/u8-strncat.c: Likewise.
66435         * lib/unistr/u8-strncmp.c: Likewise.
66436         * lib/unistr/u8-strncpy.c: Likewise.
66437         * lib/unistr/u8-strnlen.c: Likewise.
66438         * lib/unistr/u8-strpbrk.c: Likewise.
66439         * lib/unistr/u8-strrchr.c: Likewise.
66440         * lib/unistr/u8-strspn.c: Likewise.
66441         * lib/unistr/u8-strstr.c: Likewise.
66442         * lib/unistr/u8-strtok.c: Likewise.
66443         * lib/unistr/u8-to-u16.c: Likewise.
66444         * lib/unistr/u8-to-u32.c: Likewise.
66445         * lib/unistr/u8-uctomb-aux.c: Likewise.
66446         * lib/unistr/u8-uctomb.c: Likewise.
66447         * lib/unitypes.h: Likewise.
66448         * lib/uniwidth.h: Likewise.
66449         * lib/uniwidth/cjk.h: Likewise.
66450         * lib/uniwidth/u16-strwidth.c: Likewise.
66451         * lib/uniwidth/u16-width.c: Likewise.
66452         * lib/uniwidth/u32-strwidth.c: Likewise.
66453         * lib/uniwidth/u32-width.c: Likewise.
66454         * lib/uniwidth/u8-strwidth.c: Likewise.
66455         * lib/uniwidth/u8-width.c: Likewise.
66456         * lib/uniwidth/width.c: Likewise.
66457
66458 2007-10-07  Bruno Haible  <bruno@clisp.org>
66459
66460         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66461         The file is still under LGPL (see modules/inttypes).
66462
66463 2007-10-06  Bruno Haible  <bruno@clisp.org>
66464
66465         * modules/trunc (Dependencies): Add 'extensions'.
66466         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66467         Reported by Ben Pfaff <blp@gnu.org>.
66468
66469 2007-10-06  Bruno Haible  <bruno@clisp.org>
66470
66471         * modules/freopen-tests: New file.
66472         * tests/test-freopen.c: New file.
66473
66474         * modules/fopen-tests: New file.
66475         * tests/test-fopen.c: New file.
66476
66477         * modules/fopen: New file.
66478         * lib/fopen.c: New file.
66479         * m4/fopen.m4: New file.
66480         * modules/freopen: New file.
66481         * lib/freopen.c: New file.
66482         * m4/freopen.m4: New file.
66483         * lib/stdio.in.h (fopen, freopen): New declarations.
66484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66485         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66486         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66487         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66488         * doc/functions/fopen.texi: Mention the 'fopen' module.
66489         * doc/functions/freopen.texi: Mention the 'freopen' module.
66490
66491 2007-10-06  Bruno Haible  <bruno@clisp.org>
66492
66493         * modules/open-tests: New file.
66494         * tests/test-open.c: New file.
66495
66496         * modules/open: New file.
66497         * lib/open.c: New file.
66498         * m4/open.m4: New file.
66499         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66500         lib/open.c does.
66501         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66502         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66503         macros.
66504         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66505         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66506         REPLACE_OPEN.
66507         * doc/functions/open.texi: Mention the 'open' module.
66508
66509 2007-10-04  Bruno Haible  <bruno@clisp.org>
66510
66511         * modules/ceill-tests: New file.
66512         * tests/test-ceill.c: New file.
66513
66514         * modules/ceill: New file.
66515         * lib/ceill.c: Replace entire file.
66516         * m4/ceill.m4: New file.
66517         * lib/math.in.h (ceill): Replace declaration.
66518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66519         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66520         * doc/functions/ceill.texi: Mention the 'ceill' module.
66521         * modules/mathl (Files): Remove lib/ceill.c.
66522         (Depends-on): Add ceill.
66523
66524 2007-10-04  Bruno Haible  <bruno@clisp.org>
66525
66526         * modules/ceilf-tests: New file.
66527         * tests/test-ceilf.c: New file.
66528
66529         * modules/ceilf: New file.
66530         * lib/ceil.c: New file.
66531         * lib/ceilf.c: New file.
66532         * m4/ceilf.m4: New file.
66533         * lib/math.in.h (ceilf): New declaration.
66534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66535         HAVE_DECL_CEILF.
66536         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66537         HAVE_DECL_CEILF.
66538         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66539
66540 2007-10-04  Bruno Haible  <bruno@clisp.org>
66541
66542         * modules/floorl-tests: New file.
66543         * tests/test-floorl.c: New file.
66544
66545         * modules/floorl: New file.
66546         * lib/floorl.c: Replace entire file.
66547         * m4/floorl.m4: New file.
66548         * lib/math.in.h (floorl): Replace declaration.
66549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66550         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66551         * doc/functions/floorl.texi: Mention the 'floorl' module.
66552         * modules/mathl (Files): Remove lib/floorl.c.
66553         (Depends-on): Add floorl.
66554
66555 2007-10-04  Bruno Haible  <bruno@clisp.org>
66556
66557         * modules/floorf-tests: New file.
66558         * tests/test-floorf.c: New file.
66559
66560         * modules/floorf: New file.
66561         * lib/floor.c: New file.
66562         * lib/floorf.c: New file.
66563         * m4/floorf.m4: New file.
66564         * lib/math.in.h (floorf): New declaration.
66565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66566         HAVE_DECL_FLOORF.
66567         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66568         HAVE_DECL_FLOORF.
66569         * doc/functions/floorf.texi: Mention the 'floorf' module.
66570
66571 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66572             Bruno Haible  <bruno@clisp.org>
66573
66574         Advertise for the Git server instead of the CVS server.
66575         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66576         repository instead of the CVS one.
66577         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66578         about all VCS systems generically.
66579         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66580
66581 2007-10-04  Bruno Haible  <bruno@clisp.org>
66582
66583         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66584         means.
66585         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66586
66587 2007-10-04  Bruno Haible  <bruno@clisp.org>
66588
66589         * modules/truncl-tests: New file.
66590         * tests/test-truncl.c: New file.
66591
66592         * modules/truncl: New file.
66593         * lib/truncl.c: New file.
66594         * m4/truncl.m4: New file.
66595         * lib/math.in.h (truncl): New declaration.
66596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66597         HAVE_DECL_TRUNCL.
66598         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66599         HAVE_DECL_TRUNCL.
66600         * doc/functions/truncl.texi: Mention the 'truncl' module.
66601
66602 2007-10-04  Bruno Haible  <bruno@clisp.org>
66603
66604         * modules/truncf-tests: New file.
66605         * tests/test-truncf.c: New file.
66606
66607         * modules/truncf: New file.
66608         * lib/trunc.c: Make paramerizable through USE_* macros.
66609         * lib/truncf.c: New file.
66610         * m4/truncf.m4: New file.
66611         * lib/math.in.h (truncf): New declaration.
66612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66613         HAVE_DECL_TRUNCF.
66614         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66615         HAVE_DECL_TRUNCF.
66616         * doc/functions/truncf.texi: Mention the 'truncf' module.
66617
66618 2007-10-03  Bruno Haible  <bruno@clisp.org>
66619
66620         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66621         augmentation also for tests modules.
66622         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66623         * modules/atexit-tests (Makefile.am): Likewise.
66624         * modules/binary-io-tests (Makefile.am): Likewise.
66625         * modules/c-strcase-tests (Makefile.am): Likewise.
66626         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66627         * modules/canonicalize-tests (Makefile.am): Likewise.
66628         * modules/closein-tests (Makefile.am): Likewise.
66629         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66630         * modules/freadahead-tests (Makefile.am): Likewise.
66631         * modules/fseek-tests (Makefile.am): Likewise.
66632         * modules/fseeko-tests (Makefile.am): Likewise.
66633         * modules/ftell-tests (Makefile.am): Likewise.
66634         * modules/ftello-tests (Makefile.am): Likewise.
66635         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66636         * modules/isnanl-tests (Makefile.am): Likewise.
66637         * modules/lseek-tests (Makefile.am): Likewise.
66638         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66639         * modules/mbscasestr-tests (Makefile.am): Likewise.
66640         * modules/mbschr-tests (Makefile.am): Likewise.
66641         * modules/mbscspn-tests (Makefile.am): Likewise.
66642         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66643         * modules/mbspbrk-tests (Makefile.am): Likewise.
66644         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66645         * modules/mbsrchr-tests (Makefile.am): Likewise.
66646         * modules/mbsspn-tests (Makefile.am): Likewise.
66647         * modules/mbsstr-tests (Makefile.am): Likewise.
66648         * modules/printf-posix-tests (Makefile.am): Likewise.
66649         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66650         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66651         * modules/tsearch-tests (Makefile.am): Likewise.
66652         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66653         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66654         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66655         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66656         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66657         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66658         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66659         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66660         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66661         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66662         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66663         * modules/xstrtol-tests (Makefile.am): Likewise.
66664         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66665         * modules/yesno-tests (Makefile.am): Likewise.
66666
66667 2007-10-03  Bruno Haible  <bruno@clisp.org>
66668
66669         * modules/trunc-tests: New file.
66670         * tests/test-trunc.c: New file.
66671
66672         * modules/trunc: New file.
66673         * lib/trunc.c: New file.
66674         * m4/trunc.m4: New file.
66675         * lib/math.in.h (trunc): New declaration.
66676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66677         HAVE_DECL_TRUNC.
66678         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66679         HAVE_DECL_TRUNC.
66680         * doc/functions/trunc.texi: Mention the 'trunc' module.
66681
66682 2007-10-03  Bruno Haible  <bruno@clisp.org>
66683
66684         * tests/test-fpending.c: New file, mostly copied
66685         from coreutils/lib/t-fpending.c.
66686         * modules/fpending-tests: New file.
66687
66688 2007-10-03  Bruno Haible  <bruno@clisp.org>
66689
66690         Port the stdio extensions to QNX (untested).
66691         * lib/fseterr.c (fseterr): Add support for QNX.
66692         * lib/fbufmode.c (fbufmode): Likewise.
66693         * lib/freadable.c (freadable): Likewise.
66694         * lib/fwritable.c (fwritable): Likewise.
66695         * lib/freading.c (freading): Likewise.
66696         * lib/fwriting.c (fwriting): Likewise.
66697         * lib/freadahead.c (freadahed): Likewise.
66698         * lib/fpurge.c (fpurge): Likewise.
66699         * lib/fseeko.c (rpl_fseeko): Likewise.
66700
66701 2007-10-03  Bruno Haible  <bruno@clisp.org>
66702             Jim Meyering  <jim@meyering.net>
66703             Eric Blake  <ebb9@byu.net>
66704
66705         * doc/relocatable.texi: Use @command instead of @program.
66706
66707 2007-10-02  Jim Meyering  <jim@meyering.net>
66708
66709         Perform one more "_.h" -> ".in.h" substitution.
66710         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66711         instead of unistd_.h here, too.
66712
66713 2007-10-01  Bruno Haible  <bruno@clisp.org>
66714
66715         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66716         Needed for the alloca-opt module.
66717
66718 2007-09-30  Bruno Haible  <bruno@clisp.org>
66719
66720         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66721         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66722         alloca_.h.
66723         * lib/argz.in.h: Renamed from lib/argz_.h.
66724         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66725         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66726         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66727         byteswap_.h.
66728         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66729         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66730         dirent_.h.
66731         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66732         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66733         fcntl_.h.
66734         * lib/float.in.h: Renamed from lib/float_.h.
66735         * modules/float (Files, Makefile.am): Use float.in.h instead of
66736         float_.h.
66737         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66738         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66739         fnmatch_.h.
66740         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66741         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66742         getopt_.h.
66743         * lib/glob.in.h: Renamed from lib/glob_.h.
66744         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66745         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66746         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66747         iconv_.h.
66748         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66749         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66750         inttypes_.h.
66751         * lib/locale.in.h: Renamed from lib/locale_.h.
66752         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66753         locale_.h.
66754         * lib/math.in.h: Renamed from lib/math_.h.
66755         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66756         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66757         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66758         of netinet_in_.h. Add dependency.
66759         * lib/poll.in.h: Renamed from lib/poll_.h.
66760         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66761         * lib/search.in.h: Renamed from lib/search_.h.
66762         * modules/search (Files, Makefile.am): Use search.in.h instead of
66763         search_.h.
66764         * lib/signal.in.h: Renamed from lib/signal_.h.
66765         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66766         _signal.h.
66767         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66768         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66769         stdbool_.h.
66770         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66771         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66772         stdint_.h.
66773         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66774         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66775         stdio_.h.
66776         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66777         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66778         stdlib_.h.
66779         * lib/string.in.h: Renamed from lib/string_.h.
66780         * modules/string (Files, Makefile.am): Use string.in.h instead of
66781         string_.h.
66782         * doc/gnulib-tool.texi (Initial import): Update.
66783         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66784         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66785         of sys_select_.h. Add dependency.
66786         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66787         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66788         of sys_socket_.h.
66789         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66790         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66791         sys_stat_.h.
66792         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66793         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66794         sys_time_.h.
66795         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66796         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66797         sysexits_.h.
66798         * lib/time.in.h: Renamed from lib/time_.h.
66799         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66800         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66801         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66802         unistd_.h.
66803         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66804         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66805         wchar_.h.
66806         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66807         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66808         wctype_.h.
66809         * build-aux/bootstrap (slurp): Update.
66810         * lib/.cppi-disable: Update.
66811
66812 2007-09-30  Bruno Haible  <bruno@clisp.org>
66813
66814         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66815         Needed on BeOS.
66816
66817 2007-09-30  Bruno Haible  <bruno@clisp.org>
66818
66819         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66820
66821 2007-09-29  Bruno Haible  <bruno@clisp.org>
66822
66823         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66824
66825 2007-09-29  Bruno Haible  <bruno@clisp.org>
66826
66827         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66828         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66829         * build-aux/install-reloc: Compile also areadlink.c.
66830         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66831
66832 2007-09-29  Bruno Haible  <bruno@clisp.org>
66833
66834         * gnulib-tool (func_emit_initmacro_done): Indentation.
66835
66836 2007-09-29  Bruno Haible  <bruno@clisp.org>
66837
66838         * README: Add CVS checkout update instructions.
66839         Info from Bob Proulx <bob@proulx.com>.
66840
66841 2007-09-28  Eric Blake  <ebb9@byu.net>
66842
66843         Provide move-if-change.
66844         * build-aux/move-if-change: New file, based on best practice
66845         rather than any canonical upstream location.
66846
66847 2007-09-28  Jim Meyering  <jim@meyering.net>
66848
66849         Fix canonicalize loop-detection corner case.
66850         Do not attempt to stat the symlink values stored via seen_triple.
66851         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66852         on linux-2.6.18, (but not 2.6.22).
66853         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66854         triple_compare.  The former compares dev,ino,filename, while the latter
66855         would actually stat dirname(filename) when dev and ino were equal.
66856         * lib/hash-triple.c: Install <string.h>.
66857         (STREQ): Define.
66858         (triple_compare_ino_str): New function.
66859         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66860
66861 2007-09-28  Eric Blake  <ebb9@byu.net>
66862
66863         Enforce that AC_REPLACE_FUNCS files exist.
66864         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66865         override check for typos.
66866
66867         Fix test-closein on Solaris 10.
66868         * tests/test-closein.c (main): Don't assume stdin can be inherited
66869         closed on all systems.
66870         * tests/test-closein.sh: Likewise.
66871         Reported by Piotr Tarnowski.
66872
66873 2007-09-28  Jim Meyering  <jim@meyering.net>
66874
66875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66876
66877 2007-09-27  Jim Meyering  <jim@meyering.net>
66878
66879         canonicalize: Avoid a false-positive cycle failure.
66880         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66881         Sort.  Remove cycle-check.
66882         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66883         not cycle-check.h.
66884         (seen_triple): New function.
66885         (canonicalize_filename_mode): Use it instead of cycle-check.
66886         * tests/test-canonicalize.c: Add a test for this bug.
66887         * tests/test-canonicalize.sh: Set up and run the test.
66888
66889         New module, file-set, from coreutils.
66890         * modules/file-set: Define it.
66891         * lib/file-set.c, lib/file-set.h: Implement.
66892
66893         New module, hash-triple, from coreutils.
66894         * modules/hash-triple: Define it.
66895         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66896
66897 2007-09-25  Eric Blake  <ebb9@byu.net>
66898
66899         Fix strerror on Interix.
66900         * lib/string_.h (strerror): Declare replacement.
66901         * doc/functions/strerror.texi (strerror): Document the Interix
66902         shortcoming.
66903         * modules/string (Makefile.am): Support new hooks.
66904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66905         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66906         gl_FUNC_STRERROR_SEPARATE.
66907         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66908         * lib/strerror.c (rpl_strerror): Provide replacement.
66909         * modules/strerror (Depends-on): Add string.
66910         (configure.ac): Detect use of module.
66911         * tests/test-strerror.c: New file.
66912         * modules/strerror-tests: New test module.
66913         * modules/argp (Depends-on): Add strerror.
66914         * modules/error (Depends-on): Likewise.
66915         Reported by Martin Koeppe.
66916
66917 2007-09-24  Bruno Haible  <bruno@clisp.org>
66918
66919         * README: Update git instructions.
66920
66921 2007-09-24  Eric Blake  <ebb9@byu.net>
66922
66923         Revert fpending breakage from 2007-09-08.
66924         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66925         __fpending.c.
66926
66927 2007-09-24  Jim Meyering  <jim@meyering.net>
66928
66929         filenamecat.c: Add a test.
66930         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66931         showing how the function works when DIR is the empty string.
66932
66933 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66934
66935         * tests/test-canonicalize.sh: Turn on executable bit.
66936
66937 2007-09-19  Eric Blake  <ebb9@byu.net>
66938
66939         * README: Update CVS instructions.
66940
66941 2007-09-18  Bruno Haible  <bruno@clisp.org>
66942
66943         * modules/areadlink: New file.
66944         * lib/areadlink.h (areadlink): New declaration.
66945         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66946
66947 2007-09-17  Jim Meyering  <jim@meyering.net>
66948
66949         * lib/savewd.c (ESTALE) [!defined]: Define.
66950         Reported to be required on Interix by Martin Koeppe.
66951
66952 2007-09-17  Bruno Haible  <bruno@clisp.org>
66953
66954         * gnulib-tool (func_version): Use $version.
66955
66956 2007-09-16  Bruno Haible  <bruno@clisp.org>
66957
66958         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66959         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66960         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66961         Reported by Greg Schafer <gschafer@zip.com.au>.
66962
66963 2007-09-15  Bruno Haible  <bruno@clisp.org>
66964
66965         * gnulib-tool (sed): Try a little harder to make bash understand the
66966         alias.
66967         Reported by Bruce Korb <bruce.korb@gmail.com>.
66968
66969 2007-09-13  Eric Blake  <ebb9@byu.net>
66970
66971         * ChangeLog: Remove conflict markers.
66972
66973 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66974
66975         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66976         Reported by Bruno Haible <bruno@clisp.org>.
66977
66978 2007-09-12  Bruno Haible  <bruno@clisp.org>
66979
66980         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66981         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66982         is not defined.
66983
66984 2007-09-12  Eric Blake  <ebb9@byu.net>
66985
66986         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66987         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66988         Autoconf definition.
66989         * modules/euidaccess (Depends-on): Add extensions, for
66990         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66991         * modules/fnmatch (Depends-on): Likewise.
66992         * modules/getaddrinfo (Depends-on): Likewise.
66993         * modules/getdelim (Depends-on): Likewise.
66994         * modules/getline (Depends-on): Likewise.
66995         * modules/getsubopt (Depends-on): Likewise.
66996         * modules/gettext (Depends-on): Likewise.
66997         * modules/group-member (Depends-on): Likewise.
66998         * modules/mbchar (Depends-on): Likewise.
66999         * modules/memmem (Depends-on): Likewise.
67000         * modules/mempcpy (Depends-on): Likewise.
67001         * modules/memrchr (Depends-on): Likewise.
67002         * modules/pagealign_alloc (Depends-on): Likewise.
67003         * modules/readutmp (Depends-on): Likewise.
67004         * modules/stpcpy (Depends-on): Likewise.
67005         * modules/stpncpy (Depends-on): Likewise.
67006         * modules/strchrnul (Depends-on): Likewise.
67007         * modules/strndup (Depends-on): Likewise.
67008         * modules/strsep (Depends-on): Likewise.
67009         * modules/strverscmp (Depends-on): Likewise.
67010         * modules/vasprintf (Depends-on): Likewise.
67011         * modules/wcwidth (Depends-on): Likewise.
67012         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67013         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67014         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67015         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67016         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67017         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67018         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67019         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67020         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67021         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67022         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67023         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67024         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67025         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67026         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67027         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67028         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67029         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67030         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67031         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67032         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67033         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67034         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67035         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67036         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67038         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67039         so that lock.m4 can be used in gettext without extensions module.
67040
67041 2007-09-11  Bruno Haible  <bruno@clisp.org>
67042
67043         * m4/isc-posix.m4: Remove file.
67044         Suggested by Eric Blake.
67045
67046 2007-09-11  Eric Blake  <ebb9@byu.net>
67047
67048         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67049
67050 2007-09-10  Bruno Haible  <bruno@clisp.org>
67051
67052         * posix-modules: Fix typo in error message.
67053         Reported by Matt <mkraai@beckman.com>.
67054
67055 2007-09-09  Bruno Haible  <bruno@clisp.org>
67056
67057         * doc/functions/getdelim.texi: Update list of platforms lacking the
67058         function.
67059         * doc/functions/getline.texi: Likewise.
67060
67061 2007-09-09  Jim Meyering  <jim@meyering.net>
67062
67063         * lib/hash.c (hash_initialize): Detect calloc failure.
67064         Reported by Bruno Haible.
67065
67066 2007-09-09  Bruno Haible  <bruno@clisp.org>
67067
67068         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67069         malloc or realloc fails.
67070
67071 2007-09-09  Bruno Haible  <bruno@clisp.org>
67072
67073         * modules/getcwd (Depends-on): Add malloc-posix.
67074         * modules/glob (Depends-on): Likewise.
67075         * modules/putenv (Depends-on): Likewise.
67076         * modules/strdup (Depends-on): Likewise.
67077         * modules/getdelim (Depends-on): Add realloc-posix.
67078         * modules/read-file (Depends-on): Likewise.
67079
67080 2007-09-09  Bruno Haible  <bruno@clisp.org>
67081
67082         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67083         (gl_FUNC_MALLOC_POSIX): Require it.
67084         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67085         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67086         * modules/realloc (Files): Add m4/malloc.m4.
67087         * modules/calloc (Files): Likewise.
67088
67089 2007-09-09  Bruno Haible  <bruno@clisp.org>
67090
67091         * modules/malloc-posix: New file.
67092         * modules/malloc (Depends-on): Add malloc-posix.
67093         * lib/malloc.c: Include errno.h.
67094         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67095         and a POSIX-compatible malloc into a single function. Set ENOMEM
67096         when returning NULL.
67097         * m4/malloc.m4: New file.
67098         * doc/functions/malloc.texi: Mention the malloc-posix module.
67099         * lib/stdlib_.h (malloc): New declaration.
67100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67101         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67102         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67103         and HAVE_MALLOC_POSIX.
67104
67105 2007-09-09  Bruno Haible  <bruno@clisp.org>
67106
67107         * modules/realloc-posix: New file.
67108         * modules/realloc (Depends-on): Add realloc-posix.
67109         * lib/realloc.c: Include errno.h.
67110         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67111         and a POSIX-compatible realloc into a single function. Set ENOMEM
67112         when returning NULL.
67113         * m4/realloc.m4: New file.
67114         * doc/functions/realloc.texi: Mention the realloc-posix module.
67115         * lib/stdlib_.h (realloc): New declaration.
67116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67117         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67118         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67119         and HAVE_REALLOC_POSIX.
67120
67121 2007-09-09  Bruno Haible  <bruno@clisp.org>
67122
67123         * modules/calloc-posix: New file.
67124         * modules/calloc (Depends-on): Add calloc-posix.
67125         * lib/calloc.c: Include errno.h.
67126         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67127         and a POSIX-compatible calloc into a single function. Set ENOMEM
67128         when returning NULL.
67129         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67130         * doc/functions/calloc.texi: Mention the calloc-posix module.
67131         * lib/stdlib_.h (calloc): New declaration.
67132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67133         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67134         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67135         and HAVE_CALLOC_POSIX.
67136
67137 2007-09-09  Bruno Haible  <bruno@clisp.org>
67138
67139         Allow for modules to show an arbitrary notice.
67140         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67141         * gnulib-tool: New option --extract-notice.
67142         (func_usage): Document it.
67143         (sed_extract_prog): Update.
67144         (func_get_notice): New function.
67145         (func_modules_notice): New function.
67146         (func_import, func_create_testdir): Invoke it.
67147         Suggested by Jim Meyering.
67148
67149 2007-09-09  Bruno Haible  <bruno@clisp.org>
67150
67151         * gnulib-tool: New options --verbose, --quiet.
67152         (func_usage): Document them.
67153         (verbose): New variable.
67154         (func_execute_command): New function.
67155         (func_import): Don't show the module list and the file list if
67156         $verbose < 0.
67157         (func_create_testdir): Likewise. Use func_execute_command.
67158         (func_create_megatestdir): Use func_execute_command.
67159
67160 2007-09-08  Bruno Haible  <bruno@clisp.org>
67161
67162         * gnulib-tool (func_import): Prefer rsync over wget when available,
67163         for fetching the PO files.
67164
67165 2007-09-08  Bruno Haible  <bruno@clisp.org>
67166
67167         * posix-modules: New file. Portions copied from gnulib-tool.
67168         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67169
67170 2007-09-08  Jim Meyering  <jim@meyering.net>
67171
67172         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67173         * lib/fpending.h: Rename from __fpending.h.
67174         * lib/fpending.c: Rename from __fpending.c.
67175         Include "fpending.h", not "__fpending.h".
67176         * lib/__fpending.h, lib/__fpending.c: Remove files.
67177         * modules/fpending (Files): Reflect new file names.
67178         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67179
67180 2007-09-08  Bruno Haible  <bruno@clisp.org>
67181
67182         * m4/inttypes-h.m4: Remove stub file.
67183
67184 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67185
67186         * doc/headers/stdint.texi: Discuss #include_next issue.
67187
67188 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67189
67190         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67191
67192 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67193
67194         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67195         in variable name.
67196
67197 2007-09-03  Jim Meyering  <jim@meyering.net>
67198
67199         New module: git-version-gen.
67200         * modules/git-version-gen: New file.
67201
67202         Import changes from coreutils for bootstrap script.
67203
67204         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67205
67206         bootstrap: uses rsync to download the .po files
67207         * build-aux/bootstrap (po_download_command_format): New global.
67208         (download_po_files): Use rsync.
67209         (update_po_files): Don't remove .po files after download,
67210         so future rsync runs can take advantage of the copies.
67211
67212         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67213
67214         Solve the unnecessary-.po-file-regeneration problem once and for all.
67215         * build-aux/bootstrap (download_po_files): New function, renamed from
67216         get_translations.  Now, downloads, but doesn't update LINGUAS.
67217         (update_po_files): New function.
67218
67219         bootstrap: Ignore more.
67220         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67221         uniwidth to e.g., lib/.gitignore.
67222         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67223
67224         * build-aux/bootstrap: New setting: vc_ignore.
67225         (insert_sorted_if_absent): Create $file if absent.
67226         Adapt to new, possibly empty, list: $vc_ignore.
67227
67228         bootstrap: generate more ignorable names
67229         * build-aux/bootstrap (slurp): When generating ignorable names,
67230         also map .sin to .sed, .gperf to .c, and .y to .c.
67231
67232 2007-09-03  Jim Meyering  <jim@meyering.net>
67233
67234         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67235         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67236
67237 2007-09-02  Bruno Haible  <bruno@clisp.org>
67238
67239         Fix mis-recognition of 'mcs' on QNX 6.
67240         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67241         output contains the string "Mono".
67242         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67243         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67244
67245 2007-09-01  Bruno Haible  <bruno@clisp.org>
67246
67247         Fix collision between uniwidth/* and linebreak modules.
67248         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67249         u32_width): Remove declarations.
67250         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67251         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67252         streq3, streq2, streq1, streq0): Remove functions.
67253         (STREQ): Remove macro.
67254         (is_cjk_encoding): Remove function.
67255         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67256         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67257         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67258         * NEWS: Document the change.
67259
67260 2007-09-01  Bruno Haible  <bruno@clisp.org>
67261
67262         * lib/streq.h: Add double-inclusion guard.
67263
67264 2007-09-01  Karl Berry  <karl@gnu.org>
67265
67266         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67267
67268 2007-08-28  Jim Meyering  <jim@meyering.net>
67269
67270         Rename mreadlink_with_size to areadlink_with_size.
67271         * NEWS: Document the change.
67272         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67273         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67274         * lib/mreadlink.h: Rename this to...
67275         * lib/areadlink.h: ...this.
67276         * modules/mreadlink-with-size: Rename this to...
67277         * modules/areadlink-with-size: ...this.
67278         * lib/canonicalize.c: Reflect the renaming.
67279         * modules/canonicalize: Likewise.
67280
67281 2007-08-26  Bruno Haible  <bruno@clisp.org>
67282
67283         * gnulib-tool (func_import): When deciding which files to remove,
67284         consider also dangling symbolic links.
67285         Reported by Eric Blake.
67286
67287 2007-08-26  Bruno Haible  <bruno@clisp.org>
67288
67289         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67290
67291 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67292
67293         * lib/readline.c: Don't include getline.h, the prototype is now
67294         found in stdio.h.
67295
67296 2007-08-23  Jim Meyering  <jim@meyering.net>
67297
67298         Getdelim touchup.
67299         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67300         around the funlockfile call, since funlockfile never sets errno.
67301         Don't set errno upon failed realloc.
67302
67303 2007-08-22  Eric Blake  <ebb9@byu.net>
67304
67305         Getline touchups.
67306         * lib/getdelim.c (getdelim): Revert regression that required *n to
67307         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67308         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67309         getdelim, rather than whether implementation is missing.
67310         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67311         * lib/stdio_.h (getline): Also declare if replacement is
67312         required.
67313         * doc/functions/getdelim.texi: New file.
67314         * doc/functions/getline.texi: Likewise.
67315         * doc/gnulib.texi (Function Substitutes): Add new files.
67316         Reported by Bruno Haible.
67317
67318 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67319
67320         * users.txt: Add Guile.
67321
67322 2007-08-22  Eric Blake  <ebb9@byu.net>
67323
67324         * tests/test-getdelim.c (main): Use remove, not unlink.
67325         * tests/test-getline.c (main): Likewise.
67326
67327         Move getline and getdelim into stdio.h, per POSIX 200x.
67328         * modules/getline (Files): Remove getline.h.
67329         (Depends-on): Add stdio.
67330         (configure.ac): Add module indicator.
67331         * modules/getdelim (Files): Remove getdelim.h.
67332         (Depends-on): Add stdio.
67333         (configure.ac): Add module indicator.
67334         * modules/stdio (Makefile.am): Work with new indicators.
67335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67336         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67337         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67338         * lib/getdelim.h: Delete.
67339         * lib/getline.h: Delete.
67340         * lib/stdio_.h (getdelim, getline): Declare.
67341         * modules/getdelim-tests: New module.
67342         * modules/getline-tests: Likewise.
67343         * tests/test-getdelim.c: New file.
67344         * tests/test-getline.c: Likewise.
67345         * NEWS: Document the change.
67346         * lib/getline.c: Update choice of header.
67347         * lib/csharpcomp.c: Likewise.
67348         * lib/getpass.c: Likewise.
67349         * lib/javacomp.c: Likewise.
67350         * lib/javaversion.c: Likewise.
67351         * lib/yesno.c: Likewise.
67352         * lib/getdelim.c: Likewise.
67353         (getdelim): Set errno on failure, and avoid memory leak.
67354
67355 2007-08-19  Bruno Haible  <bruno@clisp.org>
67356
67357         * modules/closein (Depends-on): Add freadahead.
67358         * lib/closein.c: Include freadahead.h.
67359         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67360         is zero.
67361
67362 2007-08-19  Bruno Haible  <bruno@clisp.org>
67363
67364         * modules/freadahead-tests: New file.
67365         * tests/test-freadahead.sh: New file.
67366         * tests/test-freadahead.c: New file.
67367
67368         * modules/freadahead: New file.
67369         * lib/freadahead.h: New file.
67370         * lib/freadahead.c: New file.
67371         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67372         fbufmode, fpurge, freadable, fwritable.
67373
67374 2007-08-19  Eric Blake  <ebb9@byu.net>
67375
67376         Test yesno in combination with closein.
67377         * lib/yesno.c (yesno): Document use of stdin.
67378         * modules/yesno-tests (Files): New module.
67379         * tests/test-yesno.c (main): New file.
67380         * tests/test-yesno.sh: Likewise.
67381
67382 2007-08-19  Bruno Haible  <bruno@clisp.org>
67383
67384         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67385         * lib/fseeko.c (rpl_fseeko): Likewise.
67386         * lib/fseterr.c (fseterr): Likewise.
67387
67388 2007-08-19  Bruno Haible  <bruno@clisp.org>
67389
67390         * tests/test-lseek.c (main): Disable a test for BeOS.
67391         * doc/functions/lseek.texi: Document the BeOS bug.
67392
67393 2007-08-19  Bruno Haible  <bruno@clisp.org>
67394             Eric Blake  <ebb9@byu.net>
67395
67396         * lib/lseek.c: Include <sys/stat.h>.
67397         (rpl_lseek): Add workaround code also for Unix platforms.
67398         Needed for BeOS.
67399         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67400         * doc/functions/lseek.texi: Document BeOS definiency.
67401
67402 2007-08-18  Bruno Haible  <bruno@clisp.org>
67403
67404         * modules/fstrcmp-tests: New file.
67405         * tests/test-fstrcmp.c: New file.
67406
67407 2007-08-18  Bruno Haible  <bruno@clisp.org>
67408
67409         * modules/fstrcmp: New file, from GNU gettext with modifications.
67410         * lib/fstrcmp.h: New file, from GNU gettext.
67411         * lib/fstrcmp.c: New file, from GNU gettext.
67412         * MODULES.html.sh (String handling): Add fstrcmp.
67413
67414 2007-08-18  Bruno Haible  <bruno@clisp.org>
67415
67416         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67417         'bool'.
67418         (diag, compareseq): Remove const from the ctxt argument.
67419         (USE_HEURISTIC): Undefine at the end.
67420
67421 2007-08-18  Jim Meyering  <jim@meyering.net>
67422
67423         New file: lib/idcache.h
67424         * NEWS: Mention the addition.
67425         * modules/idcache (Files): Add lib/idcache.h
67426         * lib/idcache.c: Include "idcache.h".
67427         Don't include <sys/types.h>.
67428         Add a FIXME comment.
67429         Move file-scoped "static" declarations to the top.
67430         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67431
67432 2007-08-17  Bruno Haible  <bruno@clisp.org>
67433         and Paul Eggert  <eggert@cs.ucla.edu>
67434
67435         * MODULES.html.sh: Add diffseq.
67436         * modules/diffseq: New file.
67437         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67438         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67439
67440 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         Import changes from coreutils for bootstrap script.
67443
67444         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67445
67446         * build-aux/bootstrap (slurp): Work even in environments where
67447         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67448         current code does not slurp files whose names start with ".", and
67449         this looks like it might be a troublesome area.
67450
67451         2007-07-11  Jim Meyering  <jim@meyering.net>
67452
67453         If there's a GPL vN copyright comment, require that N == 3.
67454
67455         2007-07-08  Jim Meyering  <jim@meyering.net>
67456
67457         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67458         * build-aux/bootstrap (mam_template): Move definition out of loop.
67459
67460         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67461
67462         * build-aux/bootstrap (symlink_to_dir): Rename function from
67463         symlink_to_gnulib.  Add a directory parameter.  Update all
67464         callers.
67465         (cp_mark_as_generated): Also check for -- and link to -- files in
67466         gl/.
67467
67468         2007-07-08  Jim Meyering  <jim@meyering.net>
67469
67470         Adapt to deeper hierarchy in gnulib.
67471         * build-aux/bootstrap (symlink_to_dir): If the destination
67472         directory doesn't exist, create it. This is required at least for
67473         "lib/uniwidth/cjk.h".
67474
67475         2007-05-15  Jim Meyering  <jim@meyering.net>
67476
67477         * build-aux/bootstrap: Now that generated Makefile.am files
67478         are no longer under version control, they must be created at
67479         bootstrap time.
67480
67481 2007-08-14  Ben Pfaff  <blp@gnu.org>
67482
67483         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67484
67485 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67486
67487         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67488         given the changes below.
67489         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67490         even on hosts that have padding bits beyond the supported 64.
67491
67492 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67493
67494         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67495         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67496         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67497         depends on it.
67498         (xstrtol_error): Remove.
67499         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67500         but with a different signature.
67501         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67502         * lib/xstrtol-error.c: Include exitfail.h.
67503         (xstrtol_fatal): New function, with a different signature from the
67504         old xstrtol_error, so that the caller need not worry about passing
67505         in an exit status, or about storage management of the option argument.
67506         (xstrtol_error): Now a static function.  Redo signature to
67507         implement xstrtol_fatal.  Output the correct number of hyphens in
67508         front of the option so that the caller need not worry about
67509         storage management.
67510         (N_): New macro.
67511         (_): Remove; not used now.
67512         * modules/xstrtol: Depend on getopt.
67513         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67514         of old STRTOL_FATAL_ERROR macro.
67515         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67516         of test program.
67517         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67518         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67519
67520 2007-08-08  Eric Blake  <ebb9@byu.net>
67521
67522         * lib/xstrtol-error.c: Add missing include.
67523
67524         Move xstrtol messages into gnulib domain, when --pobase is used.
67525         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67526         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67527         * modules/xstrtol (Files): Distribute new file.
67528         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67529         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67530         * tests/test-xstrtol.c: ...into new file.
67531         * tests/test-xstrtoul.c: Also test xstrtoul.
67532         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67533         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67534         * tests/test-xstrtol.sh: Drive the tests.
67535         * tests/test-xstrtoimax.sh: Likewise.
67536         * tests/test-xstrtoumax.sh: Likewise.
67537         * modules/xstrtol-tests: New module.
67538         * modules/xstrtoimax-tests: Likewise.
67539         * modules/xstrtoumax-tests: Likewise.
67540
67541 2007-08-08  Jim Meyering  <jim@meyering.net>
67542
67543         New function: mfile_name_concat.
67544         * lib/filenamecat.c (mfile_name_concat): New function, just like
67545         file_name_concat, but return NULL upon failure rather than exiting
67546         with a diagnostic.
67547         * lib/filenamecat.h: Declare it.
67548
67549 2007-08-07  Bruno Haible  <bruno@clisp.org>
67550
67551         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67552         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67553         warning from gcc.
67554         Reported by Eric Blake.
67555
67556 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67557
67558         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67559         * modules/crypto/arcfour (License): Likewise.
67560         * modules/crypto/des-tests (License): Likewise.
67561         * modules/crypto/gc-arctwo-tests (License): Likewise.
67562         * modules/crypto/gc-des-tests (License): Likewise.
67563         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67564         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67565         * modules/crypto/gc-md2-tests (License): Likewise.
67566         * modules/crypto/gc-md4-tests (License): Likewise.
67567         * modules/crypto/gc-md5-tests (License): Likewise.
67568         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67569         * modules/crypto/gc-rijndael-tests (License): Likewise.
67570         * modules/crypto/gc-sha1-tests (License): Likewise.
67571         * modules/crypto/gc-tests (License): Likewise.
67572         * modules/crypto/hmac-md5 (License): Likewise.
67573         * modules/crypto/hmac-sha1 (License): Likewise.
67574         * modules/crypto/md2-tests (License): Likewise.
67575         * modules/crypto/md4-tests (License): Likewise.
67576         * modules/crypto/md5 (License): Likewise.
67577         * modules/crypto/rijndael (License): Likewise.
67578         * modules/crypto/sha1 (License): Likewise.
67579         * modules/memxor (License): Likewise.
67580
67581 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67582         and Bruno Haible  <bruno@clisp.org>
67583
67584         * NEWS: Describe interface changes to human, xstrtol.
67585         * lib/human.h: Include <xstrtol.h>.
67586         (human_options): Return enum strtol_error, not int.  Remove
67587         bool arg; take int * instead.
67588         * lib/human.c: Don't include "gettext.h".
67589         (_): Remove; no longer used.
67590         Don't include <xstrtol.h>, since human.h does it.
67591         (human_options): Adjust to abovementioned interface changes.
67592         Do not report error to stderr; that's now the caller's
67593         responsibility.
67594         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67595         interface change.
67596         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67597         Str, Argument_type_string.  All uses changed.  Put " argument"
67598         in diagnostics to make them clearer.  Change wording of suffix
67599         message for clarity.
67600         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67601         Argument_type_string.
67602         (STRTOL_FATAL_WARN): Remove; no longer used.
67603         * modules/human (Depends-on): Remove gettext-h.
67604
67605 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67606
67607         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67608
67609 2007-07-31  Bruno Haible  <bruno@clisp.org>
67610
67611         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67612         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67613         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67614
67615 2007-07-31  Bruno Haible  <bruno@clisp.org>
67616
67617         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67618         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67619
67620 2007-07-30  Bruno Haible  <bruno@clisp.org>
67621
67622         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67623         * modules/c-ctype (License): Likewise.
67624         * modules/c-strcase (License): Likewise.
67625         * modules/check-version (License): Likewise.
67626         * modules/iconv (License): Likewise.
67627         * modules/iconv_open (License): Likewise.
67628         * modules/read-file (License): Likewise.
67629         * modules/striconv (License): Likewise.
67630         * modules/strverscmp (License): Likewise.
67631         * modules/vasprintf (License): Likewise.
67632         * modules/crypto/des (License): Likewise.
67633         * modules/crypto/gc (License): Likewise.
67634         * modules/crypto/gc-arcfour (License): Likewise.
67635         * modules/crypto/gc-arctwo (License): Likewise.
67636         * modules/crypto/gc-des (License): Likewise.
67637         * modules/crypto/gc-hmac-md5 (License): Likewise.
67638         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67639         * modules/crypto/gc-md2 (License): Likewise.
67640         * modules/crypto/gc-md4 (License): Likewise.
67641         * modules/crypto/gc-md5 (License): Likewise.
67642         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67643         * modules/crypto/gc-random (License): Likewise.
67644         * modules/crypto/gc-rijndael (License): Likewise.
67645         * modules/crypto/gc-sha1 (License): Likewise.
67646         * modules/crypto/md2 (License): Likewise.
67647         * modules/crypto/md4 (License): Likewise.
67648
67649 2007-07-30  Jim Meyering  <jim@meyering.net>
67650
67651         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67652         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67653         it has valid stat data.  This bug would cause du not to count the
67654         sizes of inaccessible directories.
67655         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67656         in <http://bugzilla.redhat.com/250077>.
67657
67658 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67659             Bruno Haible  <bruno@clisp.org>
67660
67661         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67662         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67663         #include_next, gives a diagnostic about it, but reports no error in
67664         the exit code.
67665         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67666
67667 2007-07-24  Ben Pfaff  <blp@gnu.org>
67668
67669         Improve name: "count-one-bits" is better than "popcount".
67670         * MODULES.html.sh: Update name.
67671         * lib/popcount.h: Renamed lib/count-one-bits.h.
67672         (popcount): Renamed count_one_bits.
67673         (popcountl): Renamed count_one_bits_l.
67674         (popcountll): Renamed count_one_bits_ll.
67675         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67676         * modules/popcount: Renamed module/count-one-bits.
67677         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67678         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67679
67680 2007-07-23  Ben Pfaff  <blp@gnu.org>
67681
67682         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67683         better code generation, and add U to large constants to avoid
67684         warnings, in non-GCC case.
67685         Suggested by Bruno Haible.
67686
67687 2007-07-23  Ben Pfaff  <blp@gnu.org>
67688
67689         * lib/popcount.h: Use verify_true instead of if...abort.
67690         * modules/popcount: Depend on verify module.
67691         Suggested by Jim Meyering.
67692
67693 2007-07-23  Bruno Haible  <bruno@clisp.org>
67694
67695         * gnulib-tool (func_import): Create a .cvsignore file also when the
67696         directory is not yet in CVS but the toplevel directory is. When
67697         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67698         Reported by Karl Berry.
67699
67700 2007-07-22  Ben Pfaff  <blp@gnu.org>
67701
67702         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67703         case.
67704         Suggested by Eric Blake.
67705
67706 2007-07-22  Ben Pfaff  <blp@gnu.org>
67707
67708         New module: popcount.
67709         * MODULES.html.sh: Add popcount.
67710         * modules/popcount: New file.
67711         * modules/popcount-tests: New file.
67712         * tests/test-popcount.c: New file.
67713         * lib/popcount.h: New file.
67714         * m4/popcount.m4: New file.
67715
67716 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67717
67718         * build-aux/announce-gen: Update to GPLv3.
67719
67720         * build-aux/config.guess: Update from config.
67721
67722 2007-07-21  Bruno Haible  <bruno@clisp.org>
67723
67724         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67725         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67726
67727 2007-07-20  Jim Meyering  <jim@meyering.net>
67728
67729         * check-module: Diagnose a self-dependency.
67730
67731 2007-07-19  Bruno Haible  <bruno@clisp.org>
67732
67733         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67734         empty.
67735         Reported by Eric Blake.
67736
67737 2007-07-18  Bruno Haible  <bruno@clisp.org>
67738
67739         * gnulib-tool: New options --po-base, --po-domain.
67740         (func_usage): Document them.
67741         (pobase, po_domain): New variables.
67742         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67743         DEFAULT_TEXT_DOMAIN.
67744         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67745         (func_import): Consider pobase and po_domain. Create a po/ directory.
67746         (func_create_testdir): Set pobase and po_domain to empty.
67747         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67748         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67749
67750 2007-07-18  Bruno Haible  <bruno@clisp.org>
67751
67752         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67753         EXTRA_DIST augmentation for files in build-aux/.
67754
67755 2007-07-16  Bruno Haible  <bruno@clisp.org>
67756
67757         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67758         * modules/getdelim (License): Likewise.
67759
67760 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67761
67762         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67763         * modules/d-type (License): Likewise.
67764         * modules/extensions (License): Likewise.
67765         * modules/fnmatch (License): Likewise.
67766         * modules/fseeko (License): Likewise.
67767         * modules/getaddrinfo (License): Likewise.
67768         * modules/getline (License): Likewise.
67769         * modules/getlogin_r (License): Likewise.
67770         * modules/getpass (License): Likewise.
67771         * modules/gettimeofday (License): Likewise.
67772         * modules/glob (License): Likewise.
67773         * modules/inet_ntop (License): Likewise.
67774         * modules/malloc (License): Likewise.
67775         * modules/malloca (License): Likewise.
67776         * modules/memmem (License): Likewise.
67777         * modules/mempcpy (License): Likewise.
67778         * modules/memset (License): Likewise.
67779         * modules/minmax (License): Likewise.
67780         * modules/mktime (License): Likewise.
67781         * modules/netinet_in (License): Likewise.
67782         * modules/pathmax (License): Likewise.
67783         * modules/poll (License): Likewise.
67784         * modules/regex (License): Likewise.
67785         * modules/snprintf (License): Likewise.
67786         * modules/stdbool (License): Likewise.
67787         * modules/stdint (License): Likewise.
67788         * modules/stdio (License): Likewise.
67789         * modules/strcase (License): Likewise.
67790         * modules/strcasestr (License): Likewise.
67791         * modules/strdup (License): Likewise.
67792         * modules/string (License): Likewise.
67793         * modules/strndup (License): Likewise.
67794         * modules/strnlen (License): Likewise.
67795         * modules/strpbrk (License): Likewise.
67796         * modules/strptime (License): Likewise.
67797         * modules/strsep (License): Likewise.
67798         * modules/sys_select (License): Likewise.
67799         * modules/sys_socket (License): Likewise.
67800         * modules/sys_stat (License): Likewise.
67801         * modules/sys_time (License): Likewise.
67802         * modules/time (License): Likewise.
67803         * modules/time_r (License): Likewise.
67804         * modules/timegm (License): Likewise.
67805         * modules/unistd (License): Likewise.
67806         * modules/vsnprintf (License): Likewise.
67807         * modules/wctype (License): Likewise.
67808
67809 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67810
67811         * modules/argz (License): LGPLv2+.
67812
67813 2007-07-15  Karl Berry  <karl@gnu.org>
67814
67815         * doc/gnulib.texi: revise node structure per new fdl.texi.
67816
67817 2007-07-14  Bruno Haible  <bruno@clisp.org>
67818
67819         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67820         the output file.
67821         * lib/uniname/uninames.h: Regenerated.
67822
67823 2007-07-14  Karl Berry  <karl@gnu.org>
67824
67825         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67826         omitting sectioning and index commands.
67827
67828 2007-07-13  Bruno Haible  <bruno@clisp.org>
67829
67830         New gnulib-tool option --more-symlinks.
67831         * gnulib-tool (func_usage): Document --more-symlinks.
67832         (do_copyrights): New variable.
67833         Recognize option --more-symlinks.
67834         (func_import): Don't add a copyright notice transform to
67835         sed_transform_lib_file if do_copyrights is empty.
67836
67837 2007-07-13  Bruno Haible  <bruno@clisp.org>
67838
67839         * lib/vasnprintf.c (decimal_point_char): Define also if
67840         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67841         && !NEED_PRINTF_DIRECTIVE_A.
67842         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67843         Gary V. Vaughan <gary@gnu.org>.
67844
67845 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67846
67847         * lib/inttypes_.h: Undo previous change, since it was fixed
67848         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67849
67850 2007-07-13  Bruno Haible  <bruno@clisp.org>
67851
67852         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67853         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67854
67855 2007-07-13  Jim Meyering  <jim@meyering.net>
67856
67857         df: Don't fail for Tru64's "file-on-file mount".
67858         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67859         so we fall through and use statfs instead.  Details here:
67860         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67861         Reported by Albert Chin.
67862
67863 2007-07-13  Bruno Haible  <bruno@clisp.org>
67864
67865         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67866         * modules/configmake (License): Likewise.
67867         * modules/gettext (License): Likewise.
67868         * modules/gettext-h (License): Likewise.
67869         * modules/include_next (License): Likewise.
67870         * modules/link-warning (License): Likewise.
67871         * modules/localcharset (License): Likewise.
67872         * modules/localename (License): Likewise.
67873         * modules/lock (License): Likewise.
67874         * modules/relocatable-lib-lgpl (License): Likewise.
67875         * modules/size_max (License): Likewise.
67876         * modules/vasnprintf (License): Likewise.
67877         * modules/wchar (License): Likewise.
67878         * modules/xsize (License): Likewise.
67879
67880 2007-07-13  Bruno Haible  <bruno@clisp.org>
67881
67882         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67883         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67884
67885 2007-07-12  Bruno Haible  <bruno@clisp.org>
67886
67887         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67888         in the modules files.
67889
67890 2007-07-11  Karl Berry  <karl@gnu.org>
67891
67892         * MODULES.html.sh (func_module): use
67893          sed -e '\|^'"${includefile}"'$|d'
67894          instead of /.../d, to avoid errors on $includefile's containing /.
67895
67896 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67897
67898         * gnulib-tool (func_import): Avoid duplication of --avoid
67899         statements
67900         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67901         names to `_' in variable names.
67902
67903 2007-07-10  Eric Blake  <ebb9@byu.net>
67904
67905         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67906         * NEWS: Document this change.
67907
67908 2007-07-08  Bruno Haible  <bruno@clisp.org>
67909
67910         Update to Unicode 5.0.
67911         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67912         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67913         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67914         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67915         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67916         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67917         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67918         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67919         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67920         U+10A3F, U+1D242..U+1D244.
67921         (nonspacing_table_ind): Update.
67922         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67923         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67924
67925 2007-07-08  Bruno Haible  <bruno@clisp.org>
67926
67927         Update to Unicode 5.0.
67928         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67929         code transform. Extend the name index field of unicode_name_to_code and
67930         unicode_code_to_name from 16 to 24 bits.
67931         * lib/uniname/uniname.c (unicode_character_name,
67932         unicode_name_character): Add the range 0x12xxx to the code transform.
67933         * lib/uniname/uninames.h: Regenerated.
67934         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67935
67936 2007-07-07  Bruno Haible  <bruno@clisp.org>
67937
67938         * modules/wcwidth-tests: New file.
67939         * tests/test-wcwidth.c: New file.
67940
67941         Work around MacOS X wcwidth() bug.
67942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67943         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67944         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67945         original wcwidth in non-UTF-8 locales.
67946         * modules/wcwidth (Depends-on): Add localcharset, streq,
67947         uniwidth/width.
67948         * doc/functions/wcwidth.texi: Update.
67949
67950 2007-07-07  Bruno Haible  <bruno@clisp.org>
67951
67952         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67953         (wcwidth): New declaration.
67954         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67955         macros.
67956         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67957         here. Prepare for creating <wchar.h> unconditionally.
67958         * modules/wchar (Depends-on): Add link-warning.
67959         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67960         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67961         * lib/wcwidth.h: Remove file.
67962         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67963         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67964         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67965         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67966         (Include): Replace wcwidth.h with <wchar.h>.
67967         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67968         * lib/mbchar.h: Don't include wcwidth.h.
67969         * lib/mbswidth.c: Likewise.
67970         * NEWS: Mention the change.
67971
67972 2007-07-07  Bruno Haible  <bruno@clisp.org>
67973
67974         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67975         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67976         definition with an external declaration.
67977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67978         defined as a function. Remove AC_C_INLINE requirement.
67979         * modules/wcwidth (Files): Add lib/wcwidth.c.
67980         (Makefile.am): Remove redundant statement.
67981
67982 2007-07-07  Bruno Haible  <bruno@clisp.org>
67983
67984         * MODULES.html.sh (Unicode string functions): Add the new modules.
67985
67986         * tests/uniwidth/test-u32-strwidth.c: New file.
67987         * modules/uniwidth/u32-strwidth-tests: New file.
67988
67989         * lib/uniwidth/u32-strwidth.c: New file.
67990         * modules/uniwidth/u32-strwidth: New file.
67991
67992         * tests/uniwidth/test-u16-strwidth.c: New file.
67993         * modules/uniwidth/u16-strwidth-tests: New file.
67994
67995         * lib/uniwidth/u16-strwidth.c: New file.
67996         * modules/uniwidth/u16-strwidth: New file.
67997
67998         * tests/uniwidth/test-u8-strwidth.c: New file.
67999         * modules/uniwidth/u8-strwidth-tests: New file.
68000
68001         * lib/uniwidth/u8-strwidth.c: New file.
68002         * modules/uniwidth/u8-strwidth: New file.
68003
68004         * tests/uniwidth/test-u32-width.c: New file.
68005         * modules/uniwidth/u32-width-tests: New file.
68006
68007         * lib/uniwidth/u32-width.c: New file.
68008         * modules/uniwidth/u32-width: New file.
68009
68010         * tests/uniwidth/test-u16-width.c: New file.
68011         * modules/uniwidth/u16-width-tests: New file.
68012
68013         * lib/uniwidth/u16-width.c: New file.
68014         * modules/uniwidth/u16-width: New file.
68015
68016         * tests/uniwidth/test-u8-width.c: New file.
68017         * modules/uniwidth/u8-width-tests: New file.
68018
68019         * lib/uniwidth/u8-width.c: New file.
68020         * modules/uniwidth/u8-width: New file.
68021
68022         * tests/uniwidth/test-uc_width.c: New file.
68023         * modules/uniwidth/width-tests: New file.
68024
68025         * lib/uniwidth/width.c: New file, from GNU libiconv.
68026         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68027         * modules/uniwidth/width: New file.
68028
68029         * lib/uniwidth.h: New file, from GNU libiconv.
68030         * modules/uniwidth/base: New file.
68031
68032 2007-07-07  Bruno Haible  <bruno@clisp.org>
68033
68034         * lib/uniname.h: New file, from GNU gettext.
68035         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68036         * lib/uniname/uninames.h: New file, from GNU gettext.
68037         * lib/uniname/uniname.c: New file, from GNU gettext.
68038         * tests/uniname/test-uninames.sh: New file.
68039         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68040         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68041         * modules/uniname/base: New file.
68042         * modules/uniname/uniname: New file.
68043         * modules/uniname/uniname-tests: New file.
68044         * MODULES.html.sh (Unicode string functions): Add the new modules.
68045
68046 2007-07-06  Bruno Haible  <bruno@clisp.org>
68047
68048         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68049
68050 2007-07-06  Bruno Haible  <bruno@clisp.org>
68051
68052         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68053         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68054         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68055         include <sys/time.h>.
68056         Reported by Eric Blake.
68057
68058 2007-07-06  Eric Blake  <ebb9@byu.net>
68059
68060         Fix testing canonicalize on cygwin.
68061         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68062         Revert patch from 2007-06-19.
68063         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68064         canonicalize module is also in use.
68065         * tests/test-canonicalize.c: New file.
68066         * tests/test-canonicalize.sh: Likewise.
68067         * modules/canonicalize-tests: Likewise.
68068
68069 2007-07-06  Jim Meyering  <jim@meyering.net>
68070
68071         * lib/getugroups.c (getugroups): Detect getgrent failure.
68072         Adjust comment to reflect reality: this function may return -1.
68073
68074 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68075
68076         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68077         the new TP address.
68078         (usage): Fix typo
68079         (gnulib_mk): New variable.
68080
68081 2007-07-05  Jim Meyering  <jim@meyering.net>
68082
68083         Don't let endgrent clobber errno, no matter how improbable.
68084         * lib/getugroups.c (getugroups): Save and restore errno around
68085         endgrent call.
68086
68087         Close the group DB even when failing with 2^31 or more members.
68088         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68089
68090 2007-07-04  Jim Meyering  <jim@meyering.net>
68091
68092         * lib/getugroups.h: New file.
68093         * lib/getugroups.c: Include "getugroups.h".
68094         Remove uses of "register" keyword.
68095         Move local variable, "cp", down into scope where used.
68096         Give "username" parameter the "const" attribute.
68097         * modules/getugroups (Files): Add lib/getugroups.h
68098
68099 2007-07-04  Karl Berry  <karl@gnu.org>
68100
68101         * MODULES.html.sh (func_all_modules): Complete rename of
68102         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68103
68104 2007-07-02  Bruno Haible  <bruno@clisp.org>
68105
68106         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68107         mode, when inttypes.h comes from gnulib.
68108         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68109
68110 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68111
68112         * NEWS: Mention lgpl module name change.
68113
68114         * modules/lgpl-2.1: Renamed from lgpl.
68115
68116         * NEWS: Mention gpl module name change.
68117
68118         * modules/gpl-3.0: New file, based on gpl-2.0.
68119
68120         * modules/gpl-2.0: Renamed from gpl.
68121
68122         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68123         doc/gpl-2.0.texi.
68124
68125 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68126
68127         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68128         #define __STDC_LIMIT_MACROS temporarily while including
68129         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68130         Problem reported by Joel E. Denny in
68131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68132
68133 2007-07-01  Bruno Haible  <bruno@clisp.org>
68134
68135         * lib/unistdio.h: New file.
68136         * lib/unistdio/u-asnprintf.h: New file.
68137         * lib/unistdio/u-asprintf.h: New file.
68138         * lib/unistdio/u-printf-args.c: New file.
68139         * lib/unistdio/u-printf-args.h: New file.
68140         * lib/unistdio/u-printf-parse.h: New file.
68141         * lib/unistdio/u-snprintf.h: New file.
68142         * lib/unistdio/u-sprintf.h: New file.
68143         * lib/unistdio/u-vasprintf.h: New file.
68144         * lib/unistdio/u-vsnprintf.h: New file.
68145         * lib/unistdio/u-vsprintf.h: New file.
68146         * lib/unistdio/ulc-asnprintf.c: New file.
68147         * lib/unistdio/ulc-asprintf.c: New file.
68148         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68149         * lib/unistdio/ulc-printf-parse.c: New file.
68150         * lib/unistdio/ulc-snprintf.c: New file.
68151         * lib/unistdio/ulc-sprintf.c: New file.
68152         * lib/unistdio/ulc-vasnprintf.c: New file.
68153         * lib/unistdio/ulc-vasprintf.c: New file.
68154         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68155         * lib/unistdio/ulc-vsnprintf.c: New file.
68156         * lib/unistdio/ulc-vsprintf.c: New file.
68157         * lib/unistdio/u8-asnprintf.c: New file.
68158         * lib/unistdio/u8-asprintf.c: New file.
68159         * lib/unistdio/u8-printf-parse.c: New file.
68160         * lib/unistdio/u8-snprintf.c: New file.
68161         * lib/unistdio/u8-sprintf.c: New file.
68162         * lib/unistdio/u8-vasnprintf.c: New file.
68163         * lib/unistdio/u8-vasprintf.c: New file.
68164         * lib/unistdio/u8-vsnprintf.c: New file.
68165         * lib/unistdio/u8-vsprintf.c: New file.
68166         * lib/unistdio/u8-u8-asnprintf.c: New file.
68167         * lib/unistdio/u8-u8-asprintf.c: New file.
68168         * lib/unistdio/u8-u8-snprintf.c: New file.
68169         * lib/unistdio/u8-u8-sprintf.c: New file.
68170         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68171         * lib/unistdio/u8-u8-vasprintf.c: New file.
68172         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68173         * lib/unistdio/u8-u8-vsprintf.c: New file.
68174         * lib/unistdio/u16-asnprintf.c: New file.
68175         * lib/unistdio/u16-asprintf.c: New file.
68176         * lib/unistdio/u16-printf-parse.c: New file.
68177         * lib/unistdio/u16-snprintf.c: New file.
68178         * lib/unistdio/u16-sprintf.c: New file.
68179         * lib/unistdio/u16-vasnprintf.c: New file.
68180         * lib/unistdio/u16-vasprintf.c: New file.
68181         * lib/unistdio/u16-vsnprintf.c: New file.
68182         * lib/unistdio/u16-vsprintf.c: New file.
68183         * lib/unistdio/u16-u16-asnprintf.c: New file.
68184         * lib/unistdio/u16-u16-asprintf.c: New file.
68185         * lib/unistdio/u16-u16-snprintf.c: New file.
68186         * lib/unistdio/u16-u16-sprintf.c: New file.
68187         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68188         * lib/unistdio/u16-u16-vasprintf.c: New file.
68189         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68190         * lib/unistdio/u16-u16-vsprintf.c: New file.
68191         * lib/unistdio/u32-asnprintf.c: New file.
68192         * lib/unistdio/u32-asprintf.c: New file.
68193         * lib/unistdio/u32-printf-parse.c: New file.
68194         * lib/unistdio/u32-snprintf.c: New file.
68195         * lib/unistdio/u32-sprintf.c: New file.
68196         * lib/unistdio/u32-vasnprintf.c: New file.
68197         * lib/unistdio/u32-vasprintf.c: New file.
68198         * lib/unistdio/u32-vsnprintf.c: New file.
68199         * lib/unistdio/u32-vsprintf.c: New file.
68200         * lib/unistdio/u32-u32-asnprintf.c: New file.
68201         * lib/unistdio/u32-u32-asprintf.c: New file.
68202         * lib/unistdio/u32-u32-snprintf.c: New file.
68203         * lib/unistdio/u32-u32-sprintf.c: New file.
68204         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68205         * lib/unistdio/u32-u32-vasprintf.c: New file.
68206         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68207         * lib/unistdio/u32-u32-vsprintf.c: New file.
68208         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68209         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68210         * tests/unistdio/test-ulc-printf1.h: New file.
68211         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68212         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68213         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68214         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68215         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68216         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68217         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68218         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68219         * tests/unistdio/test-u8-asnprintf1.c: New file.
68220         * tests/unistdio/test-u8-asnprintf1.h: New file.
68221         * tests/unistdio/test-u8-printf1.h: New file.
68222         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68223         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68224         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68225         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68226         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68227         * tests/unistdio/test-u8-vasprintf1.c: New file.
68228         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68229         * tests/unistdio/test-u8-vsprintf1.c: New file.
68230         * tests/unistdio/test-u16-asnprintf1.c: New file.
68231         * tests/unistdio/test-u16-asnprintf1.h: New file.
68232         * tests/unistdio/test-u16-printf1.h: New file.
68233         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68234         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68235         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68236         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68237         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68238         * tests/unistdio/test-u16-vasprintf1.c: New file.
68239         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68240         * tests/unistdio/test-u16-vsprintf1.c: New file.
68241         * tests/unistdio/test-u32-asnprintf1.c: New file.
68242         * tests/unistdio/test-u32-asnprintf1.h: New file.
68243         * tests/unistdio/test-u32-printf1.h: New file.
68244         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68245         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68246         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68247         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68248         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68249         * tests/unistdio/test-u32-vasprintf1.c: New file.
68250         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68251         * tests/unistdio/test-u32-vsprintf1.c: New file.
68252         * modules/unistdio/base: New file.
68253         * modules/unistdio/u-printf-args: New file.
68254         * modules/unistdio/ulc-asnprintf: New file.
68255         * modules/unistdio/ulc-asprintf: New file.
68256         * modules/unistdio/ulc-fprintf: New file.
68257         * modules/unistdio/ulc-printf-parse: New file.
68258         * modules/unistdio/ulc-snprintf: New file.
68259         * modules/unistdio/ulc-sprintf: New file.
68260         * modules/unistdio/ulc-vasnprintf: New file.
68261         * modules/unistdio/ulc-vasprintf: New file.
68262         * modules/unistdio/ulc-vfprintf: New file.
68263         * modules/unistdio/ulc-vsnprintf: New file.
68264         * modules/unistdio/ulc-vsprintf: New file.
68265         * modules/unistdio/u8-asnprintf: New file.
68266         * modules/unistdio/u8-asprintf: New file.
68267         * modules/unistdio/u8-printf-parse: New file.
68268         * modules/unistdio/u8-snprintf: New file.
68269         * modules/unistdio/u8-sprintf: New file.
68270         * modules/unistdio/u8-vasnprintf: New file.
68271         * modules/unistdio/u8-vasprintf: New file.
68272         * modules/unistdio/u8-vsnprintf: New file.
68273         * modules/unistdio/u8-vsprintf: New file.
68274         * modules/unistdio/u8-u8-asnprintf: New file.
68275         * modules/unistdio/u8-u8-asprintf: New file.
68276         * modules/unistdio/u8-u8-snprintf: New file.
68277         * modules/unistdio/u8-u8-sprintf: New file.
68278         * modules/unistdio/u8-u8-vasnprintf: New file.
68279         * modules/unistdio/u8-u8-vasprintf: New file.
68280         * modules/unistdio/u8-u8-vsnprintf: New file.
68281         * modules/unistdio/u8-u8-vsprintf: New file.
68282         * modules/unistdio/u16-asnprintf: New file.
68283         * modules/unistdio/u16-asprintf: New file.
68284         * modules/unistdio/u16-printf-parse: New file.
68285         * modules/unistdio/u16-snprintf: New file.
68286         * modules/unistdio/u16-sprintf: New file.
68287         * modules/unistdio/u16-vasnprintf: New file.
68288         * modules/unistdio/u16-vasprintf: New file.
68289         * modules/unistdio/u16-vsnprintf: New file.
68290         * modules/unistdio/u16-vsprintf: New file.
68291         * modules/unistdio/u16-u16-asnprintf: New file.
68292         * modules/unistdio/u16-u16-asprintf: New file.
68293         * modules/unistdio/u16-u16-snprintf: New file.
68294         * modules/unistdio/u16-u16-sprintf: New file.
68295         * modules/unistdio/u16-u16-vasnprintf: New file.
68296         * modules/unistdio/u16-u16-vasprintf: New file.
68297         * modules/unistdio/u16-u16-vsnprintf: New file.
68298         * modules/unistdio/u16-u16-vsprintf: New file.
68299         * modules/unistdio/u32-asnprintf: New file.
68300         * modules/unistdio/u32-asprintf: New file.
68301         * modules/unistdio/u32-printf-parse: New file.
68302         * modules/unistdio/u32-snprintf: New file.
68303         * modules/unistdio/u32-sprintf: New file.
68304         * modules/unistdio/u32-vasnprintf: New file.
68305         * modules/unistdio/u32-vasprintf: New file.
68306         * modules/unistdio/u32-vsnprintf: New file.
68307         * modules/unistdio/u32-vsprintf: New file.
68308         * modules/unistdio/u32-u32-asnprintf: New file.
68309         * modules/unistdio/u32-u32-asprintf: New file.
68310         * modules/unistdio/u32-u32-snprintf: New file.
68311         * modules/unistdio/u32-u32-sprintf: New file.
68312         * modules/unistdio/u32-u32-vasnprintf: New file.
68313         * modules/unistdio/u32-u32-vasprintf: New file.
68314         * modules/unistdio/u32-u32-vsnprintf: New file.
68315         * modules/unistdio/u32-u32-vsprintf: New file.
68316         * modules/unistdio/ulc-asnprintf-tests: New file.
68317         * modules/unistdio/ulc-vasnprintf-tests: New file.
68318         * modules/unistdio/ulc-vasprintf-tests: New file.
68319         * modules/unistdio/ulc-vsnprintf-tests: New file.
68320         * modules/unistdio/ulc-vsprintf-tests: New file.
68321         * modules/unistdio/u8-asnprintf-tests: New file.
68322         * modules/unistdio/u8-vasnprintf-tests: New file.
68323         * modules/unistdio/u8-vasprintf-tests: New file.
68324         * modules/unistdio/u8-vsnprintf-tests: New file.
68325         * modules/unistdio/u8-vsprintf-tests: New file.
68326         * modules/unistdio/u16-asnprintf-tests: New file.
68327         * modules/unistdio/u16-vasnprintf-tests: New file.
68328         * modules/unistdio/u16-vasprintf-tests: New file.
68329         * modules/unistdio/u16-vsnprintf-tests: New file.
68330         * modules/unistdio/u16-vsprintf-tests: New file.
68331         * modules/unistdio/u32-asnprintf-tests: New file.
68332         * modules/unistdio/u32-vasnprintf-tests: New file.
68333         * modules/unistdio/u32-vasprintf-tests: New file.
68334         * modules/unistdio/u32-vsnprintf-tests: New file.
68335         * modules/unistdio/u32-vsprintf-tests: New file.
68336         * MODULES.html.sh (Unicode string functions): Add the new modules.
68337
68338 2007-07-01  Bruno Haible  <bruno@clisp.org>
68339
68340         * lib/sprintf.c (sprintf): Limit the available length estimation,
68341         to avoid address wraparound.
68342         * lib/vsprintf.c (vsprintf): Likewise.
68343         * modules/sprintf-posix (Dependencies): Add stdint.
68344         * modules/vsprintf-posix (Dependencies): Likewise.
68345
68346 2007-07-01  Bruno Haible  <bruno@clisp.org>
68347
68348         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68349         Windows PATH as well. Conservative double-quoting. Comments.
68350
68351 2007-07-01  Bruno Haible  <bruno@clisp.org>
68352             Eric Blake  <ebb9@byu.net>
68353             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68354
68355         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68356         empty components in $PATH, denoting '.'.
68357
68358 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68359
68360         * gnulib-tool: Fix indentation.
68361         (func_create_megatestdir): Likewise.
68362         Report by Bruno Haible.
68363
68364 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68365
68366         Sync from Automake.
68367         * build-aux/gnupload: Fix shell portability issues with for loops.
68368         Report by Karl Berry.
68369
68370 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68371
68372         * build-aux/maint.mk (POURL): Use translationproject.org.
68373
68374 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68375             Bruno Haible  <bruno@clisp.org>
68376
68377         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68378         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68379         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68380         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68381         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68382
68383 2007-06-27  Bruno Haible  <bruno@clisp.org>
68384
68385         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68386         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68387
68388 2007-06-26  Karl Berry  <karl@gnu.org>
68389
68390         * MODULES.html.sh: remove xreadlink-with-size.
68391
68392 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68393
68394         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68395         method that I hope also handles the double-include problem noted
68396         by Bruno Haible in
68397         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68398
68399 2007-06-23  Bruno Haible  <bruno@clisp.org>
68400
68401         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68402         Don't let the 'mostlyclean' target fail if the last subdirectory could
68403         not be removed.
68404         Reported by Karl Berry.
68405
68406 2007-06-23  Bruno Haible  <bruno@clisp.org>
68407
68408         * gnulib-tool (echo): Add a speedier workaround for ksh.
68409         * tests/test-echo.sh: Likewise.
68410
68411 2007-06-23  Bruno Haible  <bruno@clisp.org>
68412
68413         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68414         * tests/test-echo.sh: Likewise.
68415
68416 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68417
68418         * gnulib-tool (IFS): Initialize early, so we don't set it to
68419         empty later.
68420         (self_abspathname): Rewrite algorithm to set it, reindent.
68421         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68422         (func_create_megatestdir): Merge some sed scripts.
68423
68424 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68427         exposed by Sun Studio 11 cc on Solaris 8.
68428
68429 2007-06-22  Bruno Haible  <bruno@clisp.org>
68430
68431         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68432         backslashes.
68433         * tests/test-echo.sh: New file.
68434
68435 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68436
68437         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68438         simplify `sed_replace_build_aux' scripts, they are portable but
68439         echoing them with `echo' is not.
68440         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68441
68442 2007-06-21  Karl Berry  <karl@gnu.org>
68443
68444         * config/srclist.txt: guess we can't handle the licenses via
68445         srclist at the moment.
68446
68447 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68448
68449         * MODULES.html.sh: Add include_next.
68450         * modules/include_next: New file.
68451
68452 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68453
68454         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68455         INCLUDE_NEXT.
68456         (gl_CHECK_NEXT_HEADERS): New macro.
68457         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68458         the obsolescent gl_ABSOLUTE_HEADER.
68459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68460         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68461         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68462         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68463         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68464         * m4/math_h.m4 (gl_MATH_H): Likewise.
68465         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68466         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68467         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68468         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68469         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68470         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68471         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68472         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68473         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68474         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68475         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68476         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68477         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68478         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68479         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68480         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68481         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68482         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68483         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68484         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68485         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68486         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68487         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68488         * lib/float_.h: Likewise.
68489         * lib/inttypes_.h: Likewise.
68490         * lib/math_.h: Likewise.
68491         * lib/search_.h: Likewise.
68492         * lib/signal_.h: Likewise.
68493         * lib/stdint_.h: Likewise.
68494         * lib/stdio_.h: Likewise.
68495         * lib/stdlib_.h: Likewise.
68496         * lib/string_.h: Likewise.
68497         * lib/sys_stat_.h: Likewise.
68498         * lib/sys_time_.h: Likewise.
68499         * lib/time_.h: Likewise.
68500         * lib/unistd_.h: Likewise.
68501         * lib/wchar_.h: Likewise.
68502         * lib/wctype_.h: Likewise.
68503         * lib/dirent_.h: Likewise.
68504         * lib/iconv_.h: Likewise.
68505         * lib/locale_.h: Likewise.
68506         * lib/netinet_in_.h: Likewise.
68507         * lib/sys_select_.h: Likewise.
68508         * lib/sys_socket_.h: Likewise.
68509         * lib/sysexits_.h: Likewise.
68510         * modules/fcntl (Depends-on): Depend on include_next, not
68511         absolute_header.
68512         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68513         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68514         * modules/fchdir: Likewise.
68515         * modules/float: Likewise.
68516         * modules/iconv_open: Likewise.
68517         * modules/inttypes: Likewise.
68518         * modules/locale: Likewise.
68519         * modules/math: Likewise.
68520         * modules/netinet_in: Likewise.
68521         * modules/search: Likewise.
68522         * modules/signal: Likewise.
68523         * modules/stdint: Likewise.
68524         * modules/stdio: Likewise.
68525         * modules/stdlib: Likewise.
68526         * modules/string: Likewise.
68527         * modules/sys_select: Likewise.
68528         * modules/sys_socket: Likewise.
68529         * modules/sys_stat: Likewise.
68530         * modules/sys_time: Likewise.
68531         * modules/sysexits: Likewise.
68532         * modules/time: Likewise.
68533         * modules/unistd: Likewise.
68534         * modules/wchar: Likewise.
68535         * modules/wctype: Likewise.
68536         * modules/sys_stat: Change maintainer to "all".
68537         * modules/unistd: Likewise.
68538
68539 2007-06-20  Karl Berry  <karl@gnu.org>
68540
68541         * config/srclist.txt: track www changes in license files.
68542
68543 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68544
68545         * build-aux/bootstrap: Remove stray dot.
68546         Make sure build_aux settings are honored when linking
68547         gnulib_extra_files.
68548
68549 2007-06-19  Eric Blake  <ebb9@byu.net>
68550
68551         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68552         Allow compilation on cygwin.
68553
68554 2007-06-19  Jim Meyering  <jim@meyering.net>
68555
68556         xreadlink-with-size: Remove module.  No longer used.
68557         Ex-callers now use xreadlink or mreadlink-with-size.
68558         * modules/xreadlink-with-size: Remove module.
68559         * lib/xreadlink-with-size.c: Remove file.
68560         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68561         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68562         just before the function definition *is* accurate.
68563
68564         Eliminate one way canonicalize_filename_mode could exit.
68565         * lib/canonicalize.c (canonicalize_filename_mode):
68566         Use mreadlink_with_size, not xreadlink_with_size.
68567
68568 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         Detect porting problems to FreeBSD/arm, which has time_t wider than
68571         long int.  Original problem reported for GNU diff by Xin Li in
68572         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68573         * modules/getdate (Depends-on): Add intprops, verify.
68574         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68575         is an integer type no wider than long int.
68576
68577 2007-06-18  Jim Meyering  <jim@meyering.net>
68578
68579         New module: mreadlink-with-size.
68580         * MODULES.html.sh: Add mreadlink-with-size.
68581         * modules/mreadlink-with-size: New module
68582         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68583         not xreadlink-with-size.
68584         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68585
68586 2007-06-16  Bruno Haible  <bruno@clisp.org>
68587
68588         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68589         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68590         Reported by Gary V. Vaughan <gary@gnu.org>.
68591
68592 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         Revamp lchown so that it lives in unistd.h where it belongs.
68595         * lib/lchown.h: Remove.
68596         * lib/dirchownmod.c: Don't include lib/lchown.h.
68597         * lib/fchownat.c: Likewise.
68598         * lib/openat.c: Likewise.
68599         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68600         does not follow symlinks.
68601         (EOPNOTSUPP): Define if not defined.
68602         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68603         is defined to 0.
68604         (lchown): New decl.
68605         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68606         Do not check for lchown decl.
68607         Set REPLACE_LCHOWN.
68608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68609         REPLACE_LCHOWN.
68610         * modules/chown: Make it clear it follows symlinks.
68611         * modules/lchown: Make it clear it doesn't follow symlinks.
68612         (Files): Remove lib/lchown.h
68613         (Depends-on): Add unistd.
68614         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68615         (Include): Include <unistd.h>, not "lchown.h".
68616         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68617         REPLACE_LCHOWN.
68618
68619 2007-06-15  Jim Meyering  <jim@meyering.net>
68620
68621         Change license (GPL to LGPL) of fsusage and dependents.
68622         * modules/fsusage (License): Change to LGPL.
68623         * modules/full-read (License): Likewise.
68624         * modules/full-write (License): Likewise.
68625         * modules/safe-read (License): Likewise.
68626         * modules/safe-write (License): Likewise.
68627
68628 2007-06-14  Ben Pfaff  <blp@gnu.org>
68629
68630         Missing part of allocsa -> malloca transition.
68631         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68632         gl_MALLOCA.
68633
68634 2007-06-12  Bruno Haible  <bruno@clisp.org>
68635
68636         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68637         to ia64, x86_64, i386.
68638         Reported by Eric Blake.
68639
68640 2007-06-12  Bruno Haible  <bruno@clisp.org>
68641
68642         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68643         cross-compiling to x86_64.
68644
68645 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68648         glitch reported by Ralf Wildenhues in
68649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68650
68651         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68652         Vin Shelton.
68653
68654 2007-06-11  Bruno Haible  <bruno@clisp.org>
68655
68656         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68657         replacement string.
68658         Reported by Eric Blake.
68659
68660 2007-06-10  Bruno Haible  <bruno@clisp.org>
68661
68662         Prepare vasnprintf code for use with Unicode strings.
68663         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68664         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68665         TYPE_U32_STRING.
68666         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68667         a_u32_string variants.
68668         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68669         * lib/printf-args.c: Don't include config.h and the specification
68670         header if PRINTF_FETCHARGS is already defined.
68671         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68672         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68673         TYPE_U16_STRING, TYPE_U32_STRING.
68674         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68675         u16_directive, u16_directives, u32_directive, u32_directives): New
68676         types.
68677         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68678         New declarations.
68679         * lib/printf-parse.c: Don't include config.h and the specification
68680         header if PRINTF_PARSE is already defined. Eliminate the set of
68681         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68682         them now. Include c-ctype.h.
68683         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68684         directive and CHAR_T_ONLY_ASCII.
68685         * lib/vasnprintf.c: Don't include config.h and the specification header
68686         if VASNPRINTF is already defined.
68687         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68688         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68689         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68690         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68691         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68692         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68693         code accordingly.
68694         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68695         pad_ourselves also in this case, with the 'c' and 's' directives, and
68696         with a different notion of "width".
68697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68698
68699 2007-06-10  Bruno Haible  <bruno@clisp.org>
68700
68701         * modules/unistr/u32-mbsnlen: New file.
68702         * lib/unistr/u32-mbsnlen.c: New file.
68703
68704         * modules/unistr/u16-mbsnlen: New file.
68705         * lib/unistr/u16-mbsnlen.c: New file.
68706
68707         * modules/unistr/u8-mbsnlen: New file.
68708         * lib/unistr/u8-mbsnlen.c: New file.
68709
68710         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68711         declarations.
68712
68713 2007-06-10  Bruno Haible  <bruno@clisp.org>
68714
68715         * lib/string_.h (mbsnlen): New declaration.
68716         * lib/mbsnlen.c: New file.
68717         * m4/mbsnlen.m4: New file.
68718         * modules/mbsnlen: New file.
68719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68720         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68721         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68722
68723 2007-06-10  Bruno Haible  <bruno@clisp.org>
68724
68725         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68726
68727 2007-06-10  Bruno Haible  <bruno@clisp.org>
68728
68729         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68730         * lib/mbuiter.h: Likewise.
68731
68732 2007-06-10  Bruno Haible  <bruno@clisp.org>
68733
68734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68735         declaration.
68736
68737 2007-06-10  Karl Berry  <karl@gnu.org>
68738
68739         * config/srclist.txt: remove gettext entries, Bruno prefers
68740         to update individually.
68741
68742 2007-06-10  Bruno Haible  <bruno@clisp.org>
68743
68744         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68745         'maxlen'. Ensure only length + width bytes are allocated, not
68746         length + 1 + width.
68747
68748 2007-06-09  Bruno Haible  <bruno@clisp.org>
68749
68750         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68751         (CHAR_T): Remove macro.
68752         (VASNPRINTF): Update.
68753
68754 2007-06-09  Bruno Haible  <bruno@clisp.org>
68755
68756         * MODULES.html.sh (Unicode string functions): Add the new modules.
68757
68758         * modules/uniconv/u32-conv-to-enc: New file.
68759         * lib/uniconv/u32-conv-to-enc.c: New file.
68760         * modules/uniconv/u32-conv-to-enc-tests: New file.
68761         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68762
68763         * modules/uniconv/u16-conv-to-enc: New file.
68764         * lib/uniconv/u16-conv-to-enc.c: New file.
68765         * lib/uniconv/u-conv-to-enc.h: New file.
68766         * modules/uniconv/u16-conv-to-enc-tests: New file.
68767         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68768
68769         * modules/uniconv/u8-conv-to-enc: New file.
68770         * lib/uniconv/u8-conv-to-enc.c: New file.
68771         * modules/uniconv/u8-conv-to-enc-tests: New file.
68772         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68773
68774         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68775         u32_conv_to_encoding): New declarations.
68776
68777 2007-06-09  Bruno Haible  <bruno@clisp.org>
68778
68779         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68780
68781 2007-06-09  Bruno Haible  <bruno@clisp.org>
68782
68783         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68784         * modules/malloca: Renamed from modules/allocsa, updated.
68785         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68786         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68787         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68788         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68789         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68790         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68791         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68792         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68793         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68794         * modules/c-strcasestr (Depends-on): Update.
68795         * lib/c-strcasestr.c: Update.
68796         * modules/c-strstr (Depends-on): Update.
68797         * lib/c-strstr.c: Update.
68798         * modules/canonicalize-lgpl (Depends-on): Update.
68799         * lib/canonicalize-lgpl.c: Update.
68800         * modules/clean-temp (Depends-on): Update.
68801         * lib/clean-temp.c: Update.
68802         * modules/csharpcomp (Depends-on): Update.
68803         * lib/csharpcomp.c: Update.
68804         * modules/csharpexec (Depends-on): Update.
68805         * lib/csharpexec.c: Update.
68806         * modules/javacomp (Depends-on): Update.
68807         * lib/javacomp.c: Update.
68808         * modules/javaexec (Depends-on): Update.
68809         * lib/javaexec.c: Update.
68810         * modules/mbscasestr (Depends-on): Update.
68811         * lib/mbscasestr.c: Update.
68812         * modules/mbsstr (Depends-on): Update.
68813         * lib/mbsstr.c: Update.
68814         * modules/setenv (Depends-on): Update.
68815         * lib/setenv.c: Update.
68816         * modules/strcasestr (Depends-on): Update.
68817         * lib/strcasestr.c: Update.
68818         * modules/striconveha (Depends-on): Update.
68819         * lib/striconveha.c: Update.
68820         * modules/relocatable-prog-wrapper (Files): Update.
68821         * lib/relocwrapper.c: Update.
68822         * build-aux/install-reloc: Update.
68823         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68824
68825 2007-06-08  Bruno Haible  <bruno@clisp.org>
68826
68827         Port to uClibc.
68828         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68829         * lib/fpurge.c (fpurge): Likewise.
68830         * lib/freading.c (freading): Likewise.
68831         * lib/fseeko.c (rpl_fseeko): Likewise.
68832         * lib/fseterr.c (fseterr): Likewise.
68833         * lib/fwriting.c (fwriting): Likewise.
68834         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68835
68836 2007-06-08  Bruno Haible  <bruno@clisp.org>
68837
68838         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68839         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68840         * modules/gettext (Files): Add m4/intlmacosx.m4.
68841
68842 2007-06-07  Bruno Haible  <bruno@clisp.org>
68843
68844         * modules/localename-tests: New file.
68845         * tests/test-localename.c: New file.
68846
68847         New module 'localename'.
68848         * lib/localename.h: New file.
68849         * lib/localename.c: New file, from GNU gettext.
68850         * m4/localename.m4: New file.
68851         * modules/localename: New file.
68852
68853 2007-06-07  Bruno Haible  <bruno@clisp.org>
68854
68855         Work around the lack of <wchar.h> on some builds of uClibc.
68856         * doc/headers/wchar.texi: Update.
68857         * lib/wchar_.h: Include <wchar.h> only if it exists.
68858         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68859         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68860         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68861         doesn't exist.
68862         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68863         * modules/mbfile (Depends-on): Add wchar.
68864         * modules/mbiter (Depends-on): Likewise.
68865         * modules/mbuiter (Depends-on): Likewise.
68866         Reported by Simon Josefsson.
68867
68868 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68869
68870         Work around problem reported by Steven M. Schweda in
68871         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68872         Tru64 5.1B with the Compaq compiler environment installed declares
68873         an 'isblank' function but does not define it in the C library.
68874         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68875         * lib/regex_internal.h (isblank): Likewise.
68876         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68877         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68878
68879 2007-06-05  Bruno Haible  <bruno@clisp.org>
68880
68881         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68882         ia64.
68883         * modules/printf-safe: New file.
68884         * modules/fprintf-posix (Depends-on): Add printf-safe.
68885         * modules/printf-posix (Depends-on): Likewise.
68886         * modules/snprintf-posix (Depends-on): Likewise.
68887         * modules/sprintf-posix (Depends-on): Likewise.
68888         * modules/vasnprintf-posix (Depends-on): Likewise.
68889         * modules/vasprintf-posix (Depends-on): Likewise.
68890         * modules/vfprintf-posix (Depends-on): Likewise.
68891         * modules/vprintf-posix (Depends-on): Likewise.
68892         * modules/vsnprintf-posix (Depends-on): Likewise.
68893         * modules/vsprintf-posix (Depends-on): Likewise.
68894         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68895         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68896         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68897         "no" on i386, x86_64, ia64.
68898         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68899         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68900         on i386, x86_64, ia64.
68901         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68902         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68903         on i386, x86_64, ia64.
68904         * tests/test-vasnprintf-posix.c: Include float.h.
68905         (LDBL80_WORDS): New macro.
68906         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68907         on i386, x86_64, ia64.
68908         * tests/test-vasprintf-posix.c: Include float.h.
68909         (LDBL80_WORDS): New macro.
68910         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68911         on i386, x86_64, ia64.
68912         * tests/test-snprintf-posix.c: Include float.h.
68913         * tests/test-sprintf-posix.c: Likewise.
68914         * tests/test-vsnprintf-posix.c: Likewise.
68915         * tests/test-vsprintf-posix.c: Likewise.
68916
68917 2007-06-05  Bruno Haible  <bruno@clisp.org>
68918
68919         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68920         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68921         non-IEEE numbers on i386, x86_64, ia64.
68922         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68923         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68924         * tests/test-isnanl.h: Include float.h.
68925         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68926
68927 2007-06-05  Bruno Haible  <bruno@clisp.org>
68928
68929         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68930         also the %a / %A. Handle the %a / %A code before this extra handling.
68931
68932 2007-06-05  Bruno Haible  <bruno@clisp.org>
68933
68934         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68935         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68936
68937 2007-06-05  Bruno Haible  <bruno@clisp.org>
68938
68939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68940         typo in variable name.
68941
68942 2007-06-05  Eric Blake  <ebb9@byu.net>
68943
68944         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68945         Reported by Simon Josefsson.
68946
68947 2007-06-04  Bruno Haible  <bruno@clisp.org>
68948
68949         Avoid test failures on some PowerPC platforms.
68950         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68951         Define differently for PowerPC.
68952         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68953         Reported by Gary V. Vaughan <gary@gnu.org>.
68954
68955 2007-06-02  Bruno Haible  <bruno@clisp.org>
68956
68957         Fix test-stdint failure on FreeBSD/ia64.
68958         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68959         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68960         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68961         * doc/headers/stdint.texi: Update.
68962
68963 2007-06-01  Bruno Haible  <bruno@clisp.org>
68964
68965         * tests/test-binary-io.c (main): Pass a third argument to open().
68966         Reported by Gary V. Vaughan <gary@gnu.org>.
68967
68968 2007-06-01  Bruno Haible  <bruno@clisp.org>
68969
68970         * doc/functions/frexpl.texi: Update for mingw.
68971
68972 2007-06-01  Bruno Haible  <bruno@clisp.org>
68973
68974         * tests/test-lseek.c (main): Disable test of errno for invalid third
68975         argument.
68976         * doc/functions/lseek.texi: Update.
68977         Reported by Gary V. Vaughan <gary@gnu.org>.
68978
68979 2007-05-28  Bruno Haible  <bruno@clisp.org>
68980
68981         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68982
68983 2007-05-31  Eric Blake  <ebb9@byu.net>
68984
68985         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68986         cross compiling.
68987
68988 2007-05-30  Eric Blake  <ebb9@byu.net>
68989         and Bruno Haible  <bruno@clisp.org>
68990
68991         Work around mingw test failures exposed by m4-1.4.9b.
68992         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68993         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68994         moment.
68995
68996 2007-05-30  Bruno Haible  <bruno@clisp.org>
68997
68998         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68999         assuming that they are closed. Needed on HP-UX 11.
69000
69001 2007-05-29  Bruno Haible  <bruno@clisp.org>
69002
69003         Fix a problem with #include_next.
69004         * lib/dirent_.h: Split the double-inclusion guard.
69005         * lib/fcntl_.h: Likewise.
69006         * lib/float_.h: Likewise.
69007         * lib/iconv_.h: Likewise.
69008         * lib/inttypes_.h: Likewise.
69009         * lib/locale_.h: Likewise.
69010         * lib/math_.h: Likewise.
69011         * lib/netinet_in_.h: Likewise.
69012         * lib/search_.h: Likewise.
69013         * lib/signal_.h: Likewise.
69014         * lib/stdint_.h: Likewise.
69015         * lib/stdio_.h: Likewise.
69016         * lib/stdlib_.h: Likewise.
69017         * lib/string_.h: Likewise.
69018         * lib/sys_select_.h: Likewise.
69019         * lib/sys_socket_.h: Likewise.
69020         * lib/sys_stat_.h: Likewise.
69021         * lib/sys_time_.h: Likewise.
69022         * lib/sysexits_.h: Likewise.
69023         * lib/time_.h: Likewise.
69024         * lib/unistd_.h: Likewise.
69025         * lib/wchar_.h: Likewise.
69026         * lib/wctype_.h: Likewise.
69027
69028 2007-05-29  Bruno Haible  <bruno@clisp.org>
69029
69030         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69031         for the moment.
69032
69033 2007-05-29  Bruno Haible  <bruno@clisp.org>
69034
69035         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69036         invocation.
69037         Reported by Eric Blake.
69038
69039 2007-05-29  Bruno Haible  <bruno@clisp.org>
69040
69041         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69042         compiling case.
69043
69044 2007-05-29  Eric Blake  <ebb9@byu.net>
69045             Bruno Haible  <bruno@clisp.org>
69046
69047         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69048         cross compiles.
69049
69050 2007-05-28  Eric Blake  <ebb9@byu.net>
69051
69052         * modules/closein-tests (test_closein_LDADD): Support test on
69053         cygwin with libtool.
69054
69055 2007-05-28  Bruno Haible  <bruno@clisp.org>
69056
69057         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69058         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69059         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69060         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69061         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69062         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69063         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69064         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69065         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69066
69067 2007-05-28  Eric Blake  <ebb9@byu.net>
69068
69069         Unconditionally include <config.h> in unit tests.
69070         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69071         * tests/test-allocsa.c, tests/test-arcfour.c,
69072         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69073         tests/test-array_list.c, tests/test-array_oset.c,
69074         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69075         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69076         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69077         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69078         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69079         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69080         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69081         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69082         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69083         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69084         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69085         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69086         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69087         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69088         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69089         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69090         test-md5.c, test-memmem.c, test-printf-posix.c,
69091         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69092         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69093         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69094         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69095         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69096         test-vasnprintf-posix2.c, test-vasnprintf.c,
69097         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69098         test-vfprintf-posix.c, test-vprintf-posix.c,
69099         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69100         test-xvasprintf.c: Likewise.
69101
69102 2007-05-28  Bruno Haible  <bruno@clisp.org>
69103
69104         * gnulib-tool (func_import): Remember the --with-tests command-line
69105         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69106         Reported by Eric Blake.
69107
69108 2007-05-28  Bruno Haible  <bruno@clisp.org>
69109
69110         * modules/ftell-tests: New file.
69111         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69112         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69113
69114         * lib/ftell.c: New file.
69115         * modules/ftell: New file.
69116         * m4/ftell.m4: New file.
69117         * doc/functions/ftell.texi: Update.
69118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69119         REPLACE_FTELL.
69120         * lib/stdio_.h (rpl_ftell): New declaration.
69121         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69122         REPLACE_FTELL.
69123
69124 2007-05-28  Eric Blake  <ebb9@byu.net>
69125
69126         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69127
69128 2007-05-28  Bruno Haible  <bruno@clisp.org>
69129
69130         * modules/fseek-tests: New file.
69131         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69132         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69133
69134         * lib/fseek.c: New file.
69135         * modules/fseek: New file.
69136         * m4/fseek.m4: New file.
69137         * doc/functions/fseek.texi: Update.
69138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69139         REPLACE_FSEEK.
69140         * lib/stdio_.h (rpl_fseek): New declaration.
69141         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69142         REPLACE_FSEEK.
69143
69144 2007-05-28  Bruno Haible  <bruno@clisp.org>
69145
69146         * lib/stdio_.h (fflush): More comments.
69147
69148 2007-05-28  Bruno Haible  <bruno@clisp.org>
69149
69150         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69151         runtime test.
69152
69153 2007-05-28  Eric Blake  <ebb9@byu.net>
69154
69155         Improve lseek module.
69156         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69157         * lib/unistd_.h (lseek): Scale back link warning message.
69158         * tests/test-lseek.c: Beef up test.
69159         * tests/test-lseek.sh: Exercise more facets of lseek.
69160         Reported by Bruno Haible.
69161
69162 2007-05-28  Bruno Haible  <bruno@clisp.org>
69163
69164         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69165         to define.
69166
69167 2007-05-27  Bruno Haible  <bruno@clisp.org>
69168
69169         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69170
69171 2007-05-27  Bruno Haible  <bruno@clisp.org>
69172
69173         * modules/openmp: New file.
69174         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69175         Noah Misch.
69176
69177 2007-05-26  Bruno Haible  <bruno@clisp.org>
69178
69179         * modules/chdir-long (Depends-on): Add fchdir.
69180         * modules/chdir-safer (Depends-on): Likewise.
69181         * modules/fts (Depends-on): Likewise.
69182         * modules/fts-lgpl (Depends-on): Likewise.
69183         * modules/openat (Depends-on): Likewise.
69184         * modules/savewd (Depends-on): Likewise.
69185
69186 2007-05-24  Eric Blake  <ebb9@byu.net>
69187
69188         Fix lseek on mingw.
69189         * modules/lseek: New module.
69190         * m4/lseek.m4: New file.
69191         * lib/lseek.c: New file.
69192         * modules/lseek-tests: New file.
69193         * tests/test-lseek.c: New file.
69194         * tests/test-lseek.sh: New file.
69195         * MODULES.html.sh: Document lseek module.
69196         * modules/fflush (Depends-on): Add lseek, fseeko.
69197         * modules/fseeko (Depends-on): Likewise.
69198         * modules/ftello (Depends-on): Likewise.
69199         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69200         broken.
69201         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69202         broken.
69203         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69204         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69205         * lib/ftello.c (rpl_ftello): Likewise.
69206         * tests/test-fseeko.c (main): Test this.
69207         * tests/test-fseeko.sh: Likewise.
69208         * tests/test-ftello.c (main): Likewise.
69209         * tests/test-ftello.sh: Likewise.
69210         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69211         implies replacing fseek.
69212         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69213         HAVE_FTELLO.
69214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69215         * modules/unistd (Makefile.am): Likewise.
69216         * lib/unistd_.h (lseek): Declare a replacement.
69217         * doc/functions/lseek.texi (lseek): Document this fix.
69218         * doc/functions/fseek.texi (fseek): Likewise.
69219         * doc/functions/ftell.texi (ftell): Likewise.
69220
69221 2007-05-24  Bruno Haible  <bruno@clisp.org>
69222
69223         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69224         in the printed representation of a NaN.
69225         * tests/test-vasprintf-posix.c (test_function): Likewise.
69226         * tests/test-snprintf-posix.h (test_function): Likewise.
69227         * tests/test-sprintf-posix.h (test_function): Likewise.
69228         Reported by Eric Blake.
69229
69230 2007-05-23  Eric Blake  <ebb9@byu.net>
69231
69232         Fix fseeko/ftello on cygwin 1.5.24.
69233         * doc/functions/fseeko.texi (fseeko): Document the fix.
69234         * doc/functions/ftello.texi (ftello): Document the fix.
69235         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69236         * doc/functions/stdout.text (stdout): New file.
69237         * doc/functions/stderr.text (stderr): New file.
69238         * doc/gnulib.texi (Function Substitutes): Use new files.
69239         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69240         prior to 1.7.0.
69241         * tests/test-ftello.c (main): Likewise for ftello.
69242         * tests/test-fseeko.sh: New file.
69243         * tests/test-ftello.sh: New file.
69244         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69245         with seekable stdin.
69246         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69247         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69248         (gl_REPLACE_FSEEKO): New macro.
69249         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69250         * modules/fseeko (Files): Distribute fseeko.c.
69251         * modules/ftello (Files): Distribute ftello.c.
69252         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69253         mode.
69254         * lib/ftello.c (rpl_ftello): New file.
69255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69256         fseeko, ftello.
69257         (gl_STDIN_LARGE_OFFSET): New macro.
69258         * modules/stdio (Makefile.am): Perform the replacement.
69259         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69260
69261 2007-05-23  Bruno Haible  <bruno@clisp.org>
69262
69263         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69264         GNULIB_POSIXCHECK is defined.
69265
69266 2007-05-21  Bruno Haible  <bruno@clisp.org>
69267
69268         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69269         Check also the output for NaN arguments. When cross-compiling, guess
69270         no on IRIX.
69271         * lib/vasnprintf.c: Update comments.
69272         * tests/test-vasnprintf-posix.c (strisnan): New function.
69273         (test_function): Use it.
69274         * tests/test-vasprintf-posix.c (strisnan): New function.
69275         (test_function): Use it.
69276         * tests/test-snprintf-posix.h (strisnan): New function.
69277         (test_function): Use it.
69278         * tests/test-sprintf-posix.h (strisnan): New function.
69279         (test_function): Use it.
69280         Reported by Eric Blake.
69281
69282 2007-05-20  Bruno Haible  <bruno@clisp.org>
69283
69284         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69285         numbers that fails on BeOS.
69286         * doc/functions/frexpl.texi: Update.
69287
69288 2007-05-20  Jim Meyering  <jim@meyering.net>
69289
69290         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69291         forced upon us by glibc-2.6.
69292
69293 2007-05-20  Bruno Haible  <bruno@clisp.org>
69294
69295         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69296         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69297         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69298         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69299         NEED_PRINTF_INFINITE.
69300         (is_infinitel): New function.
69301         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69302         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69303         gl_PREREQ_VASNPRINTF_INFINITE.
69304         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69305         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69306         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69307         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69308         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69309         gl_PREREQ_VASNPRINTF_INFINITE.
69310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69311         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69313         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69314         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69316         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69317         * doc/functions/fprintf.texi: Update.
69318         * doc/functions/printf.texi: Update.
69319         * doc/functions/snprintf.texi: Update.
69320         * doc/functions/sprintf.texi: Update.
69321         * doc/functions/vfprintf.texi: Update.
69322         * doc/functions/vprintf.texi: Update.
69323         * doc/functions/vsnprintf.texi: Update.
69324         * doc/functions/vsprintf.texi: Update.
69325
69326 2007-05-20  Bruno Haible  <bruno@clisp.org>
69327
69328         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69329         was not found in libc.
69330         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69331
69332 2007-05-20  Bruno Haible  <bruno@clisp.org>
69333
69334         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69335         printed as "-nan" instead of "nan".
69336         * tests/test-vasprintf-posix.c (test_function): Likewise.
69337         * tests/test-snprintf-posix.h (test_function): Likewise.
69338         * tests/test-sprintf-posix.h (test_function): Likewise.
69339         Needed for HP-UX 11.
69340
69341 2007-05-20  Jim Meyering  <jim@meyering.net>
69342
69343         Fix buggy test for the fchownat-deref bug.
69344         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69345         symlink required for the run-test.  Without it, this test would
69346         always declare that fchownat doesn't work, and client code would
69347         unnecessarily use the replacement function with fixed libc.
69348         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69349         Reported by Greg Schafer.
69350
69351 2007-05-19  Bruno Haible  <bruno@clisp.org>
69352
69353         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69354         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69355         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69356         Needed for IRIX 6.5 and Solaris 2.5.1.
69357
69358 2007-05-19  Bruno Haible  <bruno@clisp.org>
69359
69360         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69361         (test_function): Skip tests involving -0.0 on platforms where
69362         -0.0 = 0.0.
69363         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69364         (test_function): Skip tests involving -0.0 on platforms where
69365         -0.0 = 0.0.
69366         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69367         (test_function): Skip tests involving -0.0 on platforms where
69368         -0.0 = 0.0.
69369         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69370         (test_function): Skip tests involving -0.0 on platforms where
69371         -0.0 = 0.0.
69372         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69373         tests.
69374         * tests/test-printf-posix.h (test_function): Likewise.
69375         * tests/test-printf-posix.output: Remove all -0.0 related results.
69376         Needed for IRIX 6.5.
69377
69378 2007-05-19  Bruno Haible  <bruno@clisp.org>
69379
69380         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69381         printed as "nan0x7fffffff" instead of "nan".
69382         * tests/test-vasprintf-posix.c (test_function): Likewise.
69383         * tests/test-snprintf-posix.h (test_function): Likewise.
69384         * tests/test-sprintf-posix.h (test_function): Likewise.
69385         * tests/test-fprintf-posix.h (NaN): Remove macro.
69386         (test_function): Remove all NaN related tests.
69387         * tests/test-printf-posix.h (NaN): Remove macro.
69388         (test_function): Remove all NaN related tests.
69389         * tests/test-printf-posix.output: Remove all NaN related results.
69390         Needed for IRIX 6.5.
69391
69392 2007-05-19  Bruno Haible  <bruno@clisp.org>
69393
69394         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69395         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69396
69397 2007-05-19  Bruno Haible  <bruno@clisp.org>
69398
69399         * lib/float_.h: New file.
69400         * m4/float_h.m4: New file.
69401         * modules/float: New file.
69402         * modules/isnanl (Dependencies): Add float.
69403         * modules/isnanl-nolibm (Dependencies): Likewise.
69404         * modules/mathl (Dependencies): Likewise.
69405         * modules/printf-frexpl (Dependencies): Likewise.
69406         * modules/signbit (Dependencies): Likewise.
69407         * modules/vasnprintf (Dependencies): Likewise.
69408         * doc/headers/float.texi: Update.
69409
69410 2007-05-19  Jim Meyering  <jim@meyering.net>
69411
69412         * lib/utimens.c (gl_futimens): Rename from futimens,
69413         now that glibc-2.6 declares futimens.
69414         * lib/utimens.h: Likewise.
69415
69416 2007-05-19  Bruno Haible  <bruno@clisp.org>
69417
69418         Avoid test failures on mingw.
69419         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69420         * tests/test-printf-posix.sh: Likewise.
69421         * tests/test-vfprintf-posix.sh: Likewise.
69422         * tests/test-vprintf-posix.sh: Likewise.
69423
69424 2007-05-19  Bruno Haible  <bruno@clisp.org>
69425
69426         Fix *printf result for NaN, Inf, -0.0 on mingw.
69427         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69428         * lib/vasnprintf.c: Include math.h and isnan.h.
69429         (is_infinite_or_zero): New function.
69430         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69431         values in the %f, %F, %e, %E, %g, %G directives.
69432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69433         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69434         gl_PRINTF_INFINITE and test its result. Invoke
69435         gl_PREREQ_VASNPRINTF_INFINITE.
69436         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69437         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69439         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69440         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69442         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69443         * doc/functions/fprintf.texi: Update.
69444         * doc/functions/printf.texi: Update.
69445         * doc/functions/snprintf.texi: Update.
69446         * doc/functions/sprintf.texi: Update.
69447         * doc/functions/vfprintf.texi: Update.
69448         * doc/functions/vprintf.texi: Update.
69449         * doc/functions/vsnprintf.texi: Update.
69450         * doc/functions/vsprintf.texi: Update.
69451
69452 2007-05-19  Bruno Haible  <bruno@clisp.org>
69453
69454         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69455         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69456         Instead of multiplying with 10^k, set extra_zeroes to k.
69457         (scale10_round_long_double): Remove function.
69458
69459 2007-05-18  Bruno Haible  <bruno@clisp.org>
69460
69461         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69462         introduced on 2007-05-06.
69463
69464 2007-05-18  Bruno Haible  <bruno@clisp.org>
69465
69466         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69467         %g directives.
69468         * tests/test-vasprintf-posix.c (test_function): Likewise.
69469         * tests/test-snprintf-posix.h (test_function): Likewise.
69470         * tests/test-sprintf-posix.h (test_function): Likewise.
69471
69472 2007-05-18  Bruno Haible  <bruno@clisp.org>
69473
69474         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69475         (strmatch): New function.
69476         (test_function): Test the %f directive on numbers of various exponents.
69477         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69478         (strmatch): New function.
69479         (test_function): Test the %f directive on numbers of various exponents.
69480         * tests/test-snprintf-posix.h (strmatch): New function.
69481         (test_function): Test the %f directive on numbers of various exponents.
69482         * tests/test-sprintf-posix.h (strmatch): New function.
69483         (test_function): Test the %f directive on numbers of various exponents.
69484         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69485         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69486         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69487         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69488
69489 2007-05-18  Bruno Haible  <bruno@clisp.org>
69490
69491         Add support for 'long double' number output.
69492         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69493         * lib/vasnprintf.c: Include math.h and float+.h.
69494         (mp_limb_t): New type.
69495         (GMP_LIMB_BITS): New macro.
69496         (mp_twolimb_t): New type.
69497         (GMP_TWOLIMB_BITS): New macro.
69498         (mpn_t): New type.
69499         (multiply, divide, convert_to_decimal, decode_long_double,
69500         scale10_round_long_double, scale10_round_decimal_long_double,
69501         floorlog10l): New functions.
69502         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69503         for the %f, %F, %e, %E, %g, %G directives.
69504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69505         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69506         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69507         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69508         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69509         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69511         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69512         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69513         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69514         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69515         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69516         * modules/snprintf-posix (Depends-on): Likewise.
69517         * modules/sprintf-posix (Depends-on): Likewise.
69518         * modules/vasnprintf-posix (Depends-on): Likewise.
69519         * modules/vasprintf-posix (Depends-on): Likewise.
69520         * modules/vfprintf-posix (Depends-on): Likewise.
69521         * modules/vsnprintf-posix (Depends-on): Likewise.
69522         * modules/vsprintf-posix (Depends-on): Likewise.
69523         * modules/vasnprintf (Files): Add lib/float+.h.
69524         * doc/functions/fprintf.texi: Update.
69525         * doc/functions/printf.texi: Update.
69526         * doc/functions/snprintf.texi: Update.
69527         * doc/functions/sprintf.texi: Update.
69528         * doc/functions/vfprintf.texi: Update.
69529         * doc/functions/vprintf.texi: Update.
69530         * doc/functions/vsnprintf.texi: Update.
69531         * doc/functions/vsprintf.texi: Update.
69532
69533 2007-05-18  Bruno Haible  <bruno@clisp.org>
69534
69535         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69536
69537 2007-05-18  Bruno Haible  <bruno@clisp.org>
69538
69539         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69540         for printing 64-bit integers. Needed for mingw.
69541
69542 2007-05-18  Bruno Haible  <bruno@clisp.org>
69543
69544         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69545         gl_FUNC_FREXPL_WORKS.
69546         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69547
69548 2007-05-18  Bruno Haible  <bruno@clisp.org>
69549
69550         * modules/frexpl-nolibm-tests: New file.
69551
69552         * modules/frexpl-nolibm: New file.
69553         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69554
69555 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69556
69557         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69558         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69559         GCC 4.2, which otherwise issues a lot of warnings.
69560         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69561         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69562         Likewise.
69563         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69564         * modules/iconv_open (iconv.h): Likewise.
69565         * modules/locale (locale.h): Likewise.
69566         * modules/netinet_in (netinet/in.h): Likewise.
69567         * modules/sys_select (sys_select.h): Likewise.
69568         * modules/sys_socket (sys/socket.h): Likewise.
69569         * modules/sys_stat (sys/stat.h): Likewise.
69570         * modules/sysexits (sysexits.h): Likewise.
69571         * modules/unistd (unistd.h): Likewise.
69572
69573 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69574
69575         * modules/closein-tests (Makefile.am): Distribute
69576         `test-closein.sh'.
69577
69578 2007-05-17  Bruno Haible  <bruno@clisp.org>
69579
69580         * tests/test-printf-posix.output: Renamed from
69581         tests/test-fprintf-posix.out.
69582         * modules/fprintf-posix-tests: Update.
69583         * modules/printf-posix-tests: Update.
69584         * modules/vfprintf-posix-tests: Update.
69585         * modules/vprintf-posix-tests: Update.
69586         * tests/test-fprintf-posix.sh: Update.
69587         * tests/test-printf-posix.sh: Update.
69588         * tests/test-vfprintf-posix.sh: Update.
69589         * tests/test-vprintf-posix.sh: Update.
69590         Reported by Ralf Wildenhues.
69591
69592 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69593
69594         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69595         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69596         GCC 4.2, which otherwise issues a lot of warnings.
69597         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69598         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69599         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69600         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69601         it should no longer be needed.
69602         * lib/string_.h: Likewise.
69603         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69604         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69605         * modules/inttypes (inttypes.h): Likewise.
69606         * modules/math (math.h): Likewise.
69607         * modules/search (search.h): Likewise.
69608         * modules/signal (signal.h): Likewise.
69609         * modules/stdint (stdint.h): Likewise.
69610         * modules/stdio (stdio.h): Likewise.
69611         * modules/stdlib (stdlib.h): Likewise.
69612         * modules/string (string.h): Likewise.
69613         * modules/sys_time (sys/time.h): Likewise.
69614         * modules/time (time.h): Likewise.
69615         * modules/wchar (wchar.h): Likewise.
69616         * modules/wctype (wtype.h): Likewise.
69617
69618 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69619
69620         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69621
69622 2007-05-13  Bruno Haible  <bruno@clisp.org>
69623
69624         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69625         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69626         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69627         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69628         (gl_PREREQ_STRTOK_R): Don't require it here.
69629
69630 2007-05-13  Bruno Haible  <bruno@clisp.org>
69631
69632         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69633         when used in C++ mode.
69634
69635 2007-05-12  Bruno Haible  <bruno@clisp.org>
69636
69637         * lib/linebuffer.h: Tweak doc.
69638         * lib/linebuffer.c: Likewise.
69639
69640 2007-05-12  James Youngman  <jay@gnu.org>
69641
69642         * lib/linebuffer.c (readlinebuffer_delim): New function,
69643         like readlinebuffer, but use a caller-specified delimiter.
69644         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69645         as the delimiter.
69646         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69647
69648 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69649
69650         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69651         * modules/openat (Files): Remove openat-die.c.
69652         (Depends-on): Add openat-die.
69653         * modules/openat-die: New module.
69654
69655 2007-05-06  Bruno Haible  <bruno@clisp.org>
69656
69657         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69658         Update with info about Cygwin.
69659         * doc/functions/fprintf.texi: Update.
69660         * doc/functions/printf.texi: Update.
69661         * doc/functions/snprintf.texi: Update.
69662         * doc/functions/sprintf.texi: Update.
69663         * doc/functions/vfprintf.texi: Update.
69664         * doc/functions/vprintf.texi: Update.
69665         * doc/functions/vsnprintf.texi: Update.
69666         * doc/functions/vsprintf.texi: Update.
69667         Reported by Eric Blake.
69668
69669 2007-05-06  Bruno Haible  <bruno@clisp.org>
69670
69671         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69672         padding ourselves for the floating-point directives.
69673         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69674         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69675         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69676         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69677         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69678         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69679         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69680         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69681         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69682         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69683         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69684         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69685         * tests/test-snprintf-posix.h (test_function): Also check the width
69686         and some flags in the %f directive.
69687         * tests/test-sprintf-posix.h (test_function): Likewise.
69688         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69689         * tests/test-vasprintf-posix.c (test_function): Likewise.
69690         * doc/functions/fprintf.texi: Update.
69691         * doc/functions/printf.texi: Update.
69692         * doc/functions/snprintf.texi: Update.
69693         * doc/functions/sprintf.texi: Update.
69694         * doc/functions/vfprintf.texi: Update.
69695         * doc/functions/vprintf.texi: Update.
69696         * doc/functions/vsnprintf.texi: Update.
69697         * doc/functions/vsprintf.texi: Update.
69698
69699 2007-05-06  Bruno Haible  <bruno@clisp.org>
69700
69701         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69702         pass the ' flag character to sprintf or snprintf.
69703         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69705         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69706         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69707         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69708         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69709         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69710         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69711         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69712         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69713         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69714         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69715         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69716         flag.
69717         * tests/test-sprintf-posix.h (test_function): Likewise.
69718         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69719         * tests/test-vasprintf-posix.c (test_function): Likewise.
69720         * doc/functions/fprintf.texi: Update.
69721         * doc/functions/printf.texi: Update.
69722         * doc/functions/snprintf.texi: Update.
69723         * doc/functions/sprintf.texi: Update.
69724         * doc/functions/vfprintf.texi: Update.
69725         * doc/functions/vprintf.texi: Update.
69726         * doc/functions/vsnprintf.texi: Update.
69727         * doc/functions/vsprintf.texi: Update.
69728
69729 2007-05-01  Bruno Haible  <bruno@clisp.org>
69730
69731         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69732
69733 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69734
69735         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69736         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69737
69738 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69741         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69743
69744 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69745
69746         * lib/argp-help.c (struct hol_entry): New member `ord'.
69747         (HOL_ENTRY_PTRCMP): Use ord for comparison
69748         (hol_sort): Initialize ord.
69749
69750 2007-05-01  Bruno Haible  <bruno@clisp.org>
69751
69752         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69753         Reported by Eric Blake.
69754         * doc/gnulib.texi (Function Substitutes): Update.
69755
69756 2007-05-01  Bruno Haible  <bruno@clisp.org>
69757
69758         * doc/functions.texi: Remove file, now redundant through
69759         doc/functions/*.texi.
69760
69761 2007-05-01  Bruno Haible  <bruno@clisp.org>
69762
69763         * modules/argp (Depends-on): Add sleep.
69764
69765 2007-05-01  Bruno Haible  <bruno@clisp.org>
69766
69767         * modules/sleep-tests: New file.
69768         * tests/test-sleep.c: New file.
69769
69770         * modules/sleep: New file.
69771         * lib/sleep.c: New file.
69772         * m4/sleep.m4: New file.
69773         * lib/unistd_.h (sleep): New declaration.
69774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69775         HAVE_SLEEP.
69776         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69777         * doc/functions/sleep.texi: Document the sleep module.
69778
69779 2007-05-01  Bruno Haible  <bruno@clisp.org>
69780
69781         * lib/sigprocmask.h: Remove file.
69782         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69783         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69784         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69785         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69786         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69787         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69788         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69789         HAVE_SIGSET_T as a shell variable.
69790         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69791         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69792         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69793         (Depends-on): Add signal. Remove verify.
69794         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69795         (Include): Mention <signal.h> instead of sigprocmask.h.
69796         * NEWS: Mention the change.
69797         * lib/fatal-signal.c: Don't include sigprocmask.h.
69798
69799 2007-05-01  Bruno Haible  <bruno@clisp.org>
69800
69801         * modules/signal: New file.
69802         * lib/signal_.h: New file.
69803         * m4/signal_h.m4: New file.
69804
69805 2007-05-01  Bruno Haible  <bruno@clisp.org>
69806
69807         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69808         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69809         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69810         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69811
69812 2007-05-01  Bruno Haible  <bruno@clisp.org>
69813
69814         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69815         configure time.
69816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69817         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69818         * modules/sys_stat (Makefile.am): Substitute their values into
69819         sys/stat.h.
69820
69821 2007-05-01  Bruno Haible  <bruno@clisp.org>
69822
69823         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69824         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69825         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69826
69827 2007-05-01  Bruno Haible  <bruno@clisp.org>
69828
69829         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69830         'assert' module here.
69831
69832 2007-05-01  Bruno Haible  <bruno@clisp.org>
69833
69834         * doc/functions/*.texi: New files.
69835         * doc/functions/google-ranking.txt: New file.
69836         * doc/gnulib.texi (Function Substitutes): New chapter.
69837         (ctime, inet_ntoa): Remove sections.
69838         * doc/ctime.texi: Remove file.
69839         * doc/inet_ntoa.texi: Remove file.
69840         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69841         dependencies.
69842         (%.info): New rule, specifying a --reference-limit.
69843
69844 2007-05-01  Bruno Haible  <bruno@clisp.org>
69845
69846         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69847
69848 2007-05-01  Bruno Haible  <bruno@clisp.org>
69849
69850         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69851         the portability of 'mkdir' to mingw systems.
69852
69853 2007-05-01  Bruno Haible  <bruno@clisp.org>
69854
69855         * doc/headers/google-ranking.txt: New file.
69856
69857 2007-04-30  Eric Blake  <ebb9@byu.net>
69858
69859         Prefer fseeko to fseek.
69860         * modules/getpass (Depends-on): Add fseeko.
69861         * lib/getpass.c (getpass): Use fseeko, not fseek.
69862
69863 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69864
69865         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69866         assumes the sorting is stable, while most qsort implementations
69867         are not.  Use argument addresses to ensure they never compare as
69868         equal.
69869
69870         * tests/test-argp-2.sh (usage-indent test): Fix output
69871         (func_compare): Restore diff options
69872         * tests/test-argp.c: Restore #include "progname.h"
69873
69874 2007-04-29  Bruno Haible  <bruno@clisp.org>
69875
69876         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69877         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69878         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69879         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69880         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69881         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69882         (TESTS, check_PROGRAMS): Add test-snprintf.
69883         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69884         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69885         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69886         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69887         assertions that fail on HP-UX, OSF/1, or IRIX.
69888         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69889
69890 2007-04-29  Bruno Haible  <bruno@clisp.org>
69891
69892         * MODULES.html.sh (posix_functions): Remove 'contents'.
69893
69894 2007-04-29  Karl Berry  <karl@gnu.org>
69895
69896         * config/srclist.txt (gendocs_template_min): new entry.
69897
69898 2007-04-29  Bruno Haible  <bruno@clisp.org>
69899
69900         Work around fpurge bug on BSD systems.
69901         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69902         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69903         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69904         fpurge to rpl_fpurge if the system already has this function.
69905         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69906         the case where the system already has this function. Correct invariants
69907         on BSD systems.
69908         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69909         BSD systems.
69910
69911 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69912
69913         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69914         proposed by Sven Verdoolaege.
69915
69916         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69917         options.
69918         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69919         (usage and help tests): Update
69920
69921 2007-04-29  Bruno Haible  <bruno@clisp.org>
69922
69923         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69924         Print more information in case of failure. Disable a test on BeOS.
69925
69926 2007-04-29  Bruno Haible  <bruno@clisp.org>
69927
69928         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69929         This helps debugging on systems on which no gdb is available.
69930
69931 2007-04-29  Bruno Haible  <bruno@clisp.org>
69932
69933         * lib/freading.h: Improve comments.
69934         * lib/fwriting.h: Likewise.
69935         * tests/test-freading.c (main): Don't check freading immediately after
69936         repositioning. Needed for glibc.
69937
69938 2007-04-29  Bruno Haible  <bruno@clisp.org>
69939
69940         * lib/freading.c (freading): Trivial simplification.
69941
69942 2007-04-28  Bruno Haible  <bruno@clisp.org>
69943
69944         * tests/test-fwriting.c (main): Also test the interaction between
69945         fflush and fwriting.
69946         * modules/fwriting-tests (Depends-on): Add fflush.
69947
69948         * tests/test-freading.c (main): Also test the interaction between
69949         fflush and freading.
69950         * modules/freading-tests (Depends-on): Add fflush.
69951
69952 2007-04-28  Bruno Haible  <bruno@clisp.org>
69953
69954         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69955         fseeko and ftello.
69956         Suggested by Eric Blake.
69957
69958 2007-04-28  Jim Meyering  <jim@meyering.net>
69959
69960         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69961         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69962         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69963
69964 2007-04-27  Eric Blake  <ebb9@byu.net>
69965
69966         * doc/headers/assert.texi (assert.h): Document assert module use.
69967
69968 2007-04-27  Bruno Haible  <bruno@clisp.org>
69969
69970         * doc/headers/*.texi: New files.
69971         * doc/gnulib.texi (Header File Substitutes): New chapter.
69972         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69973         dependencies.
69974         (standards.info ,standards.html, standards.dvi): Update dependencies.
69975         (mostlyclean, clean): New targets.
69976
69977 2007-04-27  Bruno Haible  <bruno@clisp.org>
69978
69979         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69980         * modules/sysexits (Files, Makefile.am): Update.
69981
69982         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69983         * modules/sys_socket (Files, Makefile.am): Update.
69984
69985         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69986         * modules/sys_stat (Files, Makefile.am): Update.
69987
69988 2007-04-27  Eric Blake  <ebb9@byu.net>
69989
69990         * lib/freading.h: Improve comments.
69991         * lib/fwriting.h: Likewise.
69992         * lib/fflush.c: Likewise.
69993
69994         Fix closein for mingw.
69995         * modules/closein-tests: Add tests for closein.
69996         * tests/test-closein.c: New file.
69997         * tests/test-closein.sh: Likewise.
69998         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69999         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70000
70001 2007-04-27  Bruno Haible  <bruno@clisp.org>
70002
70003         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70004         version is < 6.
70005         * lib/math_.h [__DECC]: Likewise.
70006         * lib/stdio_.h [__DECC]: Likewise.
70007         * lib/stdlib_.h [__DECC]: Likewise.
70008         * lib/string_.h [__DECC]: Likewise.
70009         * lib/time_.h [__DECC]: Likewise.
70010         * lib/wchar_.h [__DECC]: Likewise.
70011         * lib/wctype_.h [__DECC]: Likewise.
70012
70013 2007-04-27  Bruno Haible  <bruno@clisp.org>
70014
70015         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70016
70017 2007-04-27  Bruno Haible  <bruno@clisp.org>
70018
70019         * lib/fflush.c: Add comments.
70020         * modules/fpurge-tests (Depends-on): Add fflush.
70021         * modules/freadable-tests (Depends-on): Likewise.
70022         * modules/fwritable-tests (Depends-on): Likewise.
70023
70024 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70025
70026         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70027         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70028         Report by Bruno Haible <bruno@clisp.org>.
70029
70030 2007-04-26  Eric Blake  <ebb9@byu.net>
70031
70032         Fix fflush on mingw.
70033         * modules/fflush (Depends-on): Add freading.
70034         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70035         but unread data.
70036
70037 2007-04-26  Eric Blake  <ebb9@byu.net>
70038         and Bruno Haible  <bruno@clisp.org>
70039
70040         Implement freading and fwriting.
70041         * lib/freading.c: New file.
70042         * lib/freading.h: Likewise.
70043         * m4/freading.m4: Likewise.
70044         * modules/freading: Likewise.
70045         * modules/freading-tests: Likewise.
70046         * tests/test-freading.c: Likewise.
70047         * lib/fwriting.c: New file.
70048         * lib/fwriting.h: Likewise.
70049         * m4/fwriting.m4: Likewise.
70050         * modules/fwriting: Likewise.
70051         * modules/fwriting-tests: Likewise.
70052         * tests/test-fwriting.c: Likewise.
70053         * MODULES.html.sh (File stream based Input/Output): Mention them.
70054
70055 2007-04-26  Bruno Haible  <bruno@clisp.org>
70056
70057         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70058         'long' when we assume it.
70059         Suggested by Eric Blake.
70060
70061 2007-04-26  Bruno Haible  <bruno@clisp.org>
70062
70063         Ensure fseeko, ftello are declared on glibc systems.
70064         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70065         * modules/fseeko (configure.ac-early): Likewise.
70066         * modules/ftello (configure.ac-early): Likewise.
70067         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70068         AC_FUNC_FSEEKO for this.
70069         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70070         (gl_CHECK_FSEEKO): Remove macro.
70071
70072 2007-04-26  Bruno Haible  <bruno@clisp.org>
70073
70074         * tests/test-fflush.c (main): Also check the ftell result after
70075         fflush and fseek/fseeko.
70076         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70077         file descriptor position cache in the stream.
70078         * lib/fseeko.c (rpl_fseeko): Likewise.
70079
70080 2007-04-26  Bruno Haible  <bruno@clisp.org>
70081
70082         * modules/fflush-tests (Depends-on): Add fseeko.
70083
70084 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70085             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70086
70087         * lib/argz_.h: ensure error_t definition is obtained in same
70088         mechanism system argz.h would have.
70089         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70090         argz facilities are known bad.  Err on the side of caution if
70091         cross-compiling.
70092
70093 2007-04-25  Eric Blake  <ebb9@byu.net>
70094
70095         * lib/fpurge.c (includes): Use stdlib.h for free.
70096         * tests/test-fflush.c (main): Also test fflush-fseeko.
70097
70098 2007-04-25  Bruno Haible  <bruno@clisp.org>
70099
70100         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70101         * lib/fseeko.c: New file.
70102         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70103         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70104         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70105         gl_FUNC_FSEEKO.
70106         (gl_FUNC_FSEEKO): Invoke it.
70107         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70108         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70109         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70110
70111 2007-04-25  Bruno Haible  <bruno@clisp.org>
70112
70113         * modules/fflush (Depends-on): Add ftello.
70114
70115 2007-04-25  Bruno Haible  <bruno@clisp.org>
70116
70117         * modules/ftello-tests: New file.
70118         * tests/test-ftello.c: New file.
70119
70120         * modules/ftello: New file.
70121         * m4/ftello.m4: New file.
70122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70123         HAVE_FTELLO.
70124         * lib/stdio_.h (ftello): New declaration.
70125         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70126         HAVE_FTELLO.
70127
70128 2007-04-25  Bruno Haible  <bruno@clisp.org>
70129
70130         * modules/fseeko-tests: New file.
70131         * tests/test-fseeko.c: New file.
70132
70133         * modules/fseeko: New file.
70134         * m4/fseeko.m4: New file.
70135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70136         HAVE_FSEEKO.
70137         * lib/stdio_.h (fseeko): New declaration.
70138         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70139         HAVE_FSEEKO.
70140
70141 2007-04-25  Bruno Haible  <bruno@clisp.org>
70142
70143         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70144
70145 2007-04-25  Bruno Haible  <bruno@clisp.org>
70146
70147         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70148         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70149         * tests/test-unistd.c: Likewise.
70150         * tests/test-fcntl.c: Likewise.
70151
70152 2007-04-23  Eric Blake  <ebb9@byu.net>
70153
70154         * lib/fflush.c: Fix missing include.
70155         Reported by Bruno Haible.
70156
70157 2007-04-23  Bruno Haible  <bruno@clisp.org>
70158
70159         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70160         Reported by Eric Blake.
70161
70162 2007-04-23  Bruno Haible  <bruno@clisp.org>
70163
70164         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70165
70166 2007-04-23  Bruno Haible  <bruno@clisp.org>
70167
70168         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70169
70170 2007-04-23  Bruno Haible  <bruno@clisp.org>
70171
70172         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70173         Needed on HP-UX 11.
70174
70175 2007-04-16  Eric Blake  <ebb9@byu.net>
70176
70177         Make fflush rely on fpurge.
70178         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70179         open coding all variants.
70180         * modules/fflush (Depends-on): Add fpurge and unistd.
70181         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70182         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70183
70184         Fix --with-tests compilation on cygwin.
70185         * modules/argmatch-tests (Makefile.am): List gnulib library first
70186         in LDADD.
70187         * modules/argp-tests (Makefile.am): Likewise.
70188         * modules/array-list-tests (Makefile.am): Likewise.
70189         * modules/array-oset-tests (Makefile.am): Likewise.
70190         * modules/avltree-list-tests (Makefile.am): Likewise.
70191         * modules/avltree-oset-tests (Makefile.am): Likewise.
70192         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70193         * modules/carray-list-tests (Makefile.am): Likewise.
70194         * modules/dirname-tests (Makefile.am): Likewise.
70195         * modules/frexp-tests (Makefile.am): Likewise.
70196         * modules/isnanl-tests (Makefile.am): Likewise.
70197         * modules/linked-list-tests (Makefile.am): Likewise.
70198         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70199         * modules/lock-tests (Makefile.am): Likewise.
70200         * modules/rbtree-list-tests (Makefile.am): Likewise.
70201         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70202         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70203         * modules/tls-tests (Makefile.am): Likewise.
70204         * modules/tsearch-tests (Makefile.am): Likewise.
70205         * modules/xvasprintf-tests (Makefile.am): Likewise.
70206
70207         Fix fpurge for cygwin.
70208         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70209         value.
70210         * modules/fpurge-tests (Depends-on): Clean up trash.
70211
70212 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70213
70214         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70215
70216         * m4/autobuild.m4: Re-indent.
70217
70218 2007-04-13  Bruno Haible  <bruno@clisp.org>
70219
70220         * modules/fpurge-tests: New file.
70221         * tests/test-fpurge.c: New file.
70222
70223         * modules/fpurge: New file.
70224         * lib/fpurge.h: New file.
70225         * lib/fpurge.c: New file.
70226         * m4/fpurge.m4: New file.
70227
70228 2007-04-13  Bruno Haible  <bruno@clisp.org>
70229
70230         * modules/fbufmode-tests: New file.
70231         * tests/test-fbufmode.c: New file.
70232
70233         * modules/fbufmode: New file.
70234         * lib/fbufmode.h: New file.
70235         * lib/fbufmode.c: New file.
70236         * m4/fbufmode.m4: New file.
70237
70238 2007-04-13  Bruno Haible  <bruno@clisp.org>
70239
70240         * modules/fwritable-tests: New file.
70241         * tests/test-fwritable.c: New file.
70242
70243         * modules/fwritable: New file.
70244         * lib/fwritable.h: New file.
70245         * lib/fwritable.c: New file.
70246         * m4/fwritable.m4: New file.
70247
70248 2007-04-13  Bruno Haible  <bruno@clisp.org>
70249
70250         * modules/freadable-tests: New file.
70251         * tests/test-freadable.c: New file.
70252
70253         * modules/freadable: New file.
70254         * lib/freadable.h: New file.
70255         * lib/freadable.c: New file.
70256         * m4/freadable.m4: New file.
70257
70258 2007-04-13  Bruno Haible  <bruno@clisp.org>
70259
70260         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70261         MOSTLYCLEANFILES.
70262
70263 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70264
70265         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70266         gzip bootstrap.conf to avoid dragging in i18n machinery.
70267         (gnulib_tool_option): Use it.
70268
70269 2007-04-13  Bruno Haible  <bruno@clisp.org>
70270
70271         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70272         %F directives.
70273         * tests/test-vasprintf-posix.c (test_function): Likewise.
70274         * tests/test-snprintf-posix.h (test_function): Likewise.
70275         * tests/test-sprintf-posix.h (test_function): Likewise.
70276         * tests/test-fprintf-posix.h (test_function): Likewise.
70277         * tests/test-printf-posix.h (test_function): Likewise.
70278         * tests/test-fprintf-posix.out: Likewise.
70279
70280 2007-04-13  Bruno Haible  <bruno@clisp.org>
70281
70282         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70283         * modules/tls-tests (configure.ac): Likewise.
70284         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70285
70286 2007-04-13  Bruno Haible  <bruno@clisp.org>
70287
70288         * lib/tls.c (glthread_tls_get): Fix return type.
70289         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70290
70291 2007-04-12  Eric Blake  <ebb9@byu.net>
70292
70293         * modules/gettime (Depends-on): Remove gettime.
70294         Reported by Dmitry V. Levin.
70295
70296 2007-04-12  Bruno Haible  <bruno@clisp.org>
70297
70298         * modules/fflush (Include): Mention <stdio.h>.
70299         * modules/strtoimax (Include): Mention <inttypes.h>.
70300         * modules/strtoumax (Include): Likewise.
70301
70302 2007-04-12  Eric Blake  <ebb9@byu.net>
70303
70304         * .cvsignore: New file.
70305         * .gitignore: Likewise.
70306
70307 2007-04-12  Bruno Haible  <bruno@clisp.org>
70308
70309         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70310         not before, since $(LDADD) often contains libgnu.a.
70311         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70312         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70313         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70314         Needed on Cygwin.
70315
70316 2007-04-12  Eric Blake  <ebb9@byu.net>
70317
70318         Work around glibc's failure to flush stdin on fclose.
70319         * lib/closein.c (close_stdin): Flush stdin before closing.
70320
70321         Work around glibc's failure to reset seekable stdin on exit.
70322         * modules/closein: New module.
70323         * lib/closein.c: New file.
70324         * lib/closein.h: Likewise.
70325         * m4/closein.m4: Likewise.
70326         * MODULES.html.sh (File stream based Input/Output): Document it.
70327
70328 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70329
70330         * gnulib-tool: Rename generated 'autobuild' script to
70331         'do-autobuild' in --create-megatestdir output.
70332
70333         * doc/gnulib.texi (Build robot for gnulib): Fix.
70334
70335 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70336
70337         * modules/sysexits (Depends-on): Add absolute-header.
70338
70339 2007-04-12  Eric Blake  <ebb9@byu.net>
70340
70341         No need to preserve errno on success.
70342         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70343         Reported by Bruno Haible.
70344
70345 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70346
70347         * MODULES.html.sh (Support for maintaining and releasing
70348         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70349
70350 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70351
70352         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70353
70354 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70355
70356         * modules/autobuild: New module.
70357
70358         * m4/autobuild.m4: New file.
70359
70360 2007-04-11  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70363         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70364         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70366         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70367         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70368         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70369         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70370         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70371         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70372         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70373         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70374         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70376         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70377         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70378         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70379         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70380         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70381         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70382         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70383         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70384         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70385         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70386         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70388         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70389         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70390         Reported by Eric Blake.
70391
70392 2007-04-11  Bruno Haible  <bruno@clisp.org>
70393
70394         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70395
70396 2007-04-10  Bruno Haible  <bruno@clisp.org>
70397
70398         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70399         for NaN and Infinity. Needed on FreeBSD 6.1.
70400         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70401         regarding results for "%010a" of Infinity and NaN.
70402         * tests/test-vasprintf-posix.c (test_function): Likewise.
70403         * tests/test-snprintf-posix.h (test_function): Likewise.
70404         * tests/test-sprintf-posix.h (test_function): Likewise.
70405         * tests/test-fprintf-posix.h (test_function): Likewise.
70406         * tests/test-printf-posix.h (test_function): Likewise.
70407         * tests/test-fprintf-posix.out: Likewise.
70408
70409 2007-04-10  Bruno Haible  <bruno@clisp.org>
70410
70411         * modules/locale-tests: New file.
70412         * tests/test-locale.c: New file.
70413
70414         * modules/locale: New file.
70415         * lib/locale_.h: New file.
70416         * m4/locale_h.m4: New file.
70417
70418 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70419             Bruno Haible  <bruno@clisp.org>
70420
70421         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70422         be determined, test for availability of the copysignf, copysign,
70423         copysignl functions.
70424         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70425         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70426         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70427
70428 2007-04-09  Eric Blake  <ebb9@byu.net>
70429
70430         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70431         * modules/stdio (Makefile.am): Support fflush.
70432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70433         * modules/fflush: New file.
70434         * lib/fflush.c: Likewise.
70435         * m4/fflush.m4: Likewise.
70436         * modules/fflush-tests: New test.
70437         * tests/test-fflush.c: Likewise.
70438         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70439
70440 2007-04-06  Bruno Haible  <bruno@clisp.org>
70441
70442         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70443         (VASNPRINTF): Use signbit for faster determination whether to print a
70444         minus sign.
70445         * modules/vasnprintf (Files): Remove lib/float+.h.
70446         * modules/fprintf-posix (Depends-on): Add signbit.
70447         * modules/snprintf-posix (Depends-on): Likewise.
70448         * modules/sprintf-posix (Depends-on): Likewise.
70449         * modules/vasnprintf-posix (Depends-on): Likewise.
70450         * modules/vasprintf-posix (Depends-on): Likewise.
70451         * modules/vfprintf-posix (Depends-on): Likewise.
70452         * modules/vsnprintf-posix (Depends-on): Likewise.
70453         * modules/vsprintf-posix (Depends-on): Likewise.
70454
70455 2007-04-06  Bruno Haible  <bruno@clisp.org>
70456
70457         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70458         * tests/test-frexpl.c (main): Likewise.
70459         * tests/test-ldexpl.c (main): Likewise.
70460         * modules/frexp-tests (Depends-on): Add signbit.
70461         * modules/frexpl-tests (Depdends-on): Likewise.
70462         * modules/ldexpl-tests (Depdends-on): Likewise.
70463
70464 2007-04-06  Bruno Haible  <bruno@clisp.org>
70465
70466         * modules/signbit-tests: New file.
70467         * tests/test-signbit.c: New file.
70468
70469         * modules/signbit: New file.
70470         * lib/signbitf.c: New file.
70471         * lib/signbitd.c: New file.
70472         * lib/signbitl.c: New file.
70473         * m4/signbit.m4: New file.
70474         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70475         (signbit): New macro.
70476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70477         REPLACE_SIGNBIT.
70478         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70479         REPLACE_FREXPL into math.h.
70480
70481 2007-04-06  Bruno Haible  <bruno@clisp.org>
70482
70483         * modules/isnanf-nolibm-tests: New file.
70484         * tests/test-isnanf.c: New file.
70485
70486         * modules/isnanf-nolibm: New file.
70487         * lib/isnanf.h: New file.
70488         * lib/isnanf.c: New file.
70489         * lib/isnan.c: Consider the USE_FLOAT macro.
70490         * m4/isnanf.m4: New file.
70491
70492 2007-04-06  Bruno Haible  <bruno@clisp.org>
70493
70494         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70495         (Link): New section.
70496
70497         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70498
70499 2007-04-06  Bruno Haible  <bruno@clisp.org>
70500
70501         Assume the 'long double' type.
70502         * m4/longdouble.m4: Remove file.
70503         * config/srclist.txt: Don't mention longdouble.m4.
70504         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70505         * lib/float+.h: Likewise.
70506         * lib/frexp.c: Likewise.
70507         * lib/printf-args.h: Likewise.
70508         * lib/printf-args.c: Likewise.
70509         * lib/printf-frexp.c: Likewise.
70510         * lib/printf-parse.c: Likewise.
70511         * lib/vasnprintf.c: Likewise.
70512         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70513         * m4/intl.m4: Likewise.
70514         * m4/isnanl.m4: Likewise.
70515         * m4/printf.m4: Likewise.
70516         * m4/printf-frexpl.m4: Likewise.
70517         * m4/vasnprintf.m4: Likewise.
70518         * modules/allocsa (Files): Remove m4/longdouble.m4.
70519         * modules/gettext (Files): Likewise.
70520         * modules/relocatable-prog-wrapper (Files): Likewise.
70521         * modules/vasnprintf (Files): Likewise.
70522         * modules/isnanl (Files): Likewise.
70523         (Include): Simplify.
70524         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70525         (Include): Simplify.
70526         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70527         (Include): Simplify.
70528         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70529         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70530         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70531         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70532         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70533         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70534         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70535         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70536         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70537         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70538         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70539         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70540         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70541         * tests/test-isnanl.c: Likewise.
70542         * tests/test-snprintf-posix.h: Likewise.
70543         * tests/test-sprintf-posix.h: Likewise.
70544         * tests/test-vasnprintf-posix.c: Likewise.
70545         * tests/test-vasnprintf-posix2.c: Likewise.
70546         * tests/test-vasprintf-posix.c: Likewise.
70547
70548 2007-04-06  Bruno Haible  <bruno@clisp.org>
70549
70550         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70551         * lib/math_.h [__DECC]: Include the overridden include file through
70552         #include_next, outside the double-inclusion guard.
70553         * lib/stdio_.h [__DECC]: Likewise.
70554         * lib/stdlib_.h [__DECC]: Likewise.
70555         * lib/string_.h [__DECC]: Likewise.
70556         * lib/time_.h [__DECC]: Likewise.
70557         * lib/wchar_.h [__DECC]: Likewise.
70558         * lib/wctype_.h [__DECC]: Likewise.
70559         * lib/inttypes_.h [__DECC]: Likewise.
70560         Reported by Albert Chin <china@thewrittenword.com> in
70561         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70562
70563 2007-04-04  Eric Blake  <ebb9@byu.net>
70564
70565         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70566         1.5.x.
70567
70568 2007-04-04  Bruno Haible  <bruno@clisp.org>
70569
70570         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70571         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70572
70573 2007-04-04  Bruno Haible  <bruno@clisp.org>
70574
70575         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70576         results for "%010a" of Infinity and NaN.
70577         * tests/test-vasprintf-posix.c (test_function): Likewise.
70578         * tests/test-snprintf-posix.h (test_function): Likewise.
70579         * tests/test-sprintf-posix.h (test_function): Likewise.
70580         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70581         * tests/test-printf-posix.h (test_function): Likewise.
70582         * tests/test-fprintf-posix.out: Update.
70583         Needed for FreeBSD 6.1.
70584
70585 2007-04-04  Bruno Haible  <bruno@clisp.org>
70586
70587         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70588         directly used by the gnulib modules nor by gnulib-tool.
70589
70590 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * DEPENDENCIES: Give overall description of version dependency
70593         desirability.  Use more-typical names for apps.
70594         Add shell, coreutils, diffutils, grep, tar, gzip.
70595
70596 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70597
70598         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70599
70600 2007-04-04  Karl Berry  <karl@gnu.org>
70601
70602         * MODULES.html.sh (func_module): missing '.
70603
70604 2007-04-03  Bruno Haible  <bruno@clisp.org>
70605
70606         * modules/argmatch-tests (Makefile.am): New variable
70607         test_argmatch_LDADD.
70608         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70609         * modules/array-list-tests (Makefile.am): New variable
70610         test_array_list_LDADD.
70611         * modules/array-oset-tests (Makefile.am): New variable
70612         test_array_oset_LDADD.
70613         * modules/avltree-list-tests (Makefile.am): New variable
70614         test_avltree_list_LDADD.
70615         * modules/avltree-oset-tests (Makefile.am): New variable
70616         test_avltree_oset_LDADD.
70617         * modules/avltreehash-list-tests (Makefile.am): New variable
70618         test_avltreehash_list_LDADD.
70619         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70620         test_canonicalize_lgpl_LDADD.
70621         * modules/carray-list-tests (Makefile.am): New variable
70622         test_carray_list_LDADD.
70623         * modules/dirname-tests (Makefile.am): New variable
70624         test_dirname_LDADD.
70625         * modules/linked-list-tests (Makefile.am): New variable
70626         test_linked_list_LDADD.
70627         * modules/linkedhash-list-tests (Makefile.am): New variable
70628         test_linkedhash_list_LDADD.
70629         * modules/rbtree-list-tests (Makefile.am): New variable
70630         test_rbtree_list_LDADD.
70631         * modules/rbtree-oset-tests (Makefile.am): New variable
70632         test_rbtree_oset_LDADD.
70633         * modules/rbtreehash-list-tests (Makefile.am): New variable
70634         test_rbtreehash_list_LDADD.
70635         * modules/xvasprintf-tests (Makefile.am): New variable
70636         test_xvasprintf_LDADD.
70637         Reported by Eric Blake.
70638
70639 2007-04-03  Eric Blake  <ebb9@byu.net>
70640
70641         * DEPENDENCIES: Weaken m4 requirements.
70642
70643 2007-04-03  Bruno Haible  <bruno@clisp.org>
70644
70645         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70646         * modules/isnanl-tests (configure.ac): Likewise.
70647
70648 2007-04-03  Ben Pfaff  <blp@gnu.org>
70649
70650         * modules/iconv_open: Add $(srcdir)/ to source directory
70651         references in Makefile fragments that call gperf, to fix VPATH
70652         builds.
70653
70654 2007-04-03  Bruno Haible  <bruno@clisp.org>
70655
70656         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70657         * lib/ldexpl.c: Undo last change.
70658
70659 2007-04-03  Bruno Haible  <bruno@clisp.org>
70660
70661         * modules/printf-frexpl (Depends-on): Undo last change.
70662         (Files): Add m4/ldexpl.m4.
70663
70664 2007-04-03  Bruno Haible  <bruno@clisp.org>
70665
70666         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70667         * modules/isnanl (Link): New section.
70668
70669         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70670         * modules/frexp (Link): New section.
70671
70672         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70673         * modules/frexpl (Link): New section.
70674
70675         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70676         * modules/ldexpl (Link): New section.
70677
70678 2007-04-03  Bruno Haible  <bruno@clisp.org>
70679
70680         * modules/TEMPLATE-EXTENDED: New file.
70681         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70682
70683 2007-04-03  Bruno Haible  <bruno@clisp.org>
70684
70685         * DEPENDENCIES: New file.
70686         Suggested by Simon Josefsson.
70687
70688 2007-04-03  Bruno Haible  <bruno@clisp.org>
70689
70690         * doc/gnulib.texi: Escape @.
70691
70692 2007-04-03  James Youngman  <jay@gnu.org>
70693         and Paul Eggert  <eggert@cs.ucla.edu>
70694
70695         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70696         birthtime on all systems that have birthtime, not just those which
70697         use st_birthtimensec rather than st_birthtim.  Putting zero in
70698         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70699         that the birth time is not available for files on an NFS mount.
70700
70701 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70702
70703         * modules/memxor: Move back from crypto/, suggested by Bruno.
70704         * modules/crypto/hmac-sha1: Fix memxor dependency.
70705
70706         * modules/crypto/gc: Moved from ../.
70707
70708 2007-04-02  Eric Blake  <ebb9@byu.net>
70709
70710         * lib/ldexpl.c (includes): Avoid libm.
70711
70712         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70713
70714 2007-04-02  Bruno Haible  <bruno@clisp.org>
70715
70716         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70717         on IRIX.
70718
70719 2007-04-02  Bruno Haible  <bruno@clisp.org>
70720
70721         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70722         x86 or x86_64 platforms running MacOS X.
70723         Reported by Ryan Schmidt <@ryandesign.com>.
70724
70725 2007-04-02  Bruno Haible  <bruno@clisp.org>
70726
70727         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70728         i386.
70729
70730 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70731
70732         * modules/crypto/arcfour: Moved from ../.
70733         * modules/crypto/arcfour-tests: Moved from ../.
70734         * modules/crypto/arctwo: Moved from ../.
70735         * modules/crypto/arctwo-tests: Moved from ../.
70736         * modules/crypto/des: Moved from ../.
70737         * modules/crypto/des-tests: Moved from ../.
70738         * modules/crypto/gc-arcfour: Moved from ../.
70739         * modules/crypto/gc-arcfour-tests: Moved from ../.
70740         * modules/crypto/gc-arctwo: Moved from ../.
70741         * modules/crypto/gc-arctwo-tests: Moved from ../.
70742         * modules/crypto/gc-des: Moved from ../.
70743         * modules/crypto/gc-des-tests: Moved from ../.
70744         * modules/crypto/gc-hmac-md5: Moved from ../.
70745         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70746         * modules/crypto/gc-hmac-sha1: Moved from ../.
70747         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70748         * modules/crypto/gc-md2: Moved from ../.
70749         * modules/crypto/gc-md2-tests: Moved from ../.
70750         * modules/crypto/gc-md4: Moved from ../.
70751         * modules/crypto/gc-md4-tests: Moved from ../.
70752         * modules/crypto/gc-md5: Moved from ../.
70753         * modules/crypto/gc-md5-tests: Moved from ../.
70754         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70755         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70756         * modules/crypto/gc-random: Moved from ../.
70757         * modules/crypto/gc-rijndael: Moved from ../.
70758         * modules/crypto/gc-rijndael-tests: Moved from ../.
70759         * modules/crypto/gc-sha1: Moved from ../.
70760         * modules/crypto/gc-sha1-tests: Moved from ../.
70761         * modules/crypto/gc-tests: Moved from ../.
70762         * modules/crypto/hmac-md5: Moved from ../.
70763         * modules/crypto/hmac-md5-tests: Moved from ../.
70764         * modules/crypto/hmac-sha1: Moved from ../.
70765         * modules/crypto/hmac-sha1-tests: Moved from ../.
70766         * modules/crypto/md2: Moved from ../.
70767         * modules/crypto/md2-tests: Moved from ../.
70768         * modules/crypto/md4: Moved from ../.
70769         * modules/crypto/md4-tests: Moved from ../.
70770         * modules/crypto/md5: Moved from ../.
70771         * modules/crypto/md5-tests: Moved from ../.
70772         * modules/crypto/memxor: Moved from ../.
70773         * modules/crypto/rijndael: Moved from ../.
70774         * modules/crypto/rijndael-tests: Moved from ../.
70775         * modules/crypto/sha1: Moved from ../.
70776
70777 2007-03-30  James Youngman  <jay@gnu.org>
70778
70779         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70780         rename() to change the ctime of a file (because ctime is unaffected
70781         by rename on jfs2 on AIX 5.1).
70782         (main): Start by doing cleanup, in case a previous run failed leaving
70783         test files behind.
70784
70785 2007-03-31  Bruno Haible  <bruno@clisp.org>
70786
70787         Support old proprietary implementations of iconv.
70788         * modules/iconv_open: New file.
70789         * lib/iconv_.h: New file.
70790         * m4/iconv_h.m4: New file.
70791         * lib/iconv_open.c: New file.
70792         * lib/iconv_open-aix.gperf: New file.
70793         * lib/iconv_open-hpux.gperf: New file.
70794         * lib/iconv_open-irix.gperf: New file.
70795         * lib/iconv_open-osf.gperf: New file.
70796         * m4/iconv_open.m4: New file.
70797         * modules/linebreak (Depends-on): Add iconv_open.
70798         * modules/striconv (Depends-on): Likewise.
70799         * modules/striconveh (Depends-on): Likewise.
70800         * modules/unicodeio (Depends-on): Likewise.
70801         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70802         (iconv_t)(-1).
70803         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70804         conversion if cd is (iconv_t)(-1).
70805         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70806         is not possible.
70807
70808 2007-03-31  Bruno Haible  <bruno@clisp.org>
70809
70810         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70811         work on Solaris either. Protect also second use of "autodetect_jp".
70812
70813 2007-03-31  Bruno Haible  <bruno@clisp.org>
70814
70815         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70816         the function is not present.
70817
70818 2007-03-31  Bruno Haible  <bruno@clisp.org>
70819
70820         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70821         the function is not present.
70822
70823 2007-03-31  Bruno Haible  <bruno@clisp.org>
70824
70825         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70826         a bug in HP-UX iconv_open().
70827
70828 2007-03-31  Bruno Haible  <bruno@clisp.org>
70829
70830         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70831         (Mathematics <math.h>): New section, add fpieee.
70832         (Input/output <stdio.h>): Add fseterr.
70833         (Mathematics <math.h>): New section, add printf-frexp.
70834         (Container data structures): Add sublist.
70835         (Core language properties): Add fpucw, inline.
70836         (Functions for greatest-width integer types <inttypes.h>): Add
70837         imaxabs, imaxdiv, inttypes.
70838         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70839         isnanl-nolibm, ldexp.
70840         (Mathematics <math.h>): New section, add printf-frexpl.
70841         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70842         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70843         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70844         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70845         (Unicode string functions): Add unistr/u*-mbtoucr.
70846         (Java): Add javacomp-script, javaexec-script.
70847         (C#): Add csharpcomp-script, csharpexec-script.
70848         (Support for building libraries and executables): Add havelib,
70849         relocatable-*.
70850         (Support for maintaining and releasing projects): Renamed from
70851         'Support for maintaining and release projects'. Add announce-gen.
70852
70853 2007-03-31  Bruno Haible  <bruno@clisp.org>
70854
70855         * README: Talk primarily about git.
70856         (git and CVS): Renamed from CVS.
70857         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70858         gnulib is available through git.
70859         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70860
70861 2007-03-30  Bruno Haible  <bruno@clisp.org>
70862
70863         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70864         * lib/poll_.h: Likewise.
70865         * lib/stat_.h: Likewise.
70866         * lib/sys_time_.h: Likewise.
70867         * lib/sysexit_.h: Likewise.
70868         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70869         * lib/stdbool_.h: Likewise.
70870         * lib/byteswap_.h: Add double-inclusion guard.
70871
70872 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70873
70874         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70875
70876 2007-03-30  Karl Berry  <karl@gnu.org>
70877
70878         * config/srclist-update: double space after USA in the license
70879         substitution, since that's how it's usually (?) written.
70880
70881 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70884         reported by Bruno Haible.
70885
70886 2007-03-29  Bruno Haible  <bruno@clisp.org>
70887
70888         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70889         a bug in AIX iconv().
70890
70891 2007-03-29  Bruno Haible  <bruno@clisp.org>
70892
70893         * modules/ldexpl-tests: New file.
70894         * tests/test-ldexpl.c: New file.
70895
70896 2007-03-29  Bruno Haible  <bruno@clisp.org>
70897
70898         * lib/ldexpl.c: Include fpucw.h.
70899         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70900         multiplication.
70901         * modules/ldexpl (Depends-on): Add fpucw.
70902
70903 2007-03-29  Bruno Haible  <bruno@clisp.org>
70904
70905         * modules/ldexpl: New file.
70906         * m4/ldexpl.m4: New file.
70907         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70908         set.
70909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70910         REPLACE_LDEXPL.
70911         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70912         REPLACE_LDEXPL.
70913         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70914         gl_FUNC_LDEXPL_WORKS.
70915         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70916         * modules/mathl (Files): Remove lib/ldexpl.c.
70917         (Depends-on): Add ldexpl.
70918
70919 2007-03-29  Bruno Haible  <bruno@clisp.org>
70920
70921         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70922
70923 2007-03-29  Bruno Haible  <bruno@clisp.org>
70924
70925         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70926         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70927         and possibly also HP-UX.
70928         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70929         work on AIX, IRIX, HP-UX, OSF/1.
70930         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70931         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70932         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70933         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70934         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70935         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70936
70937 2007-03-29  Bruno Haible  <bruno@clisp.org>
70938
70939         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70940
70941 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70942
70943         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70944         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70945
70946 2007-03-29  Eric Blake  <ebb9@byu.net>
70947
70948         * lib/acl-internal.h: Remove redundant include.
70949         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70950         Cygwin when a file is locked.
70951
70952 2007-03-29  Bruno Haible  <bruno@clisp.org>
70953
70954         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70955         file.
70956         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70957
70958 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70959
70960         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70961         try to remove a parent directory if the child couldn't be removed
70962         (except for the first rmdir, which could fail because the child
70963         doesn't exist).  Problem reported by Jeff Blaine in
70964         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70965
70966 2007-03-28  Bruno Haible  <bruno@clisp.org>
70967
70968         * lib/striconveh.c (utf8conv_carefully): New function.
70969         (mem_cd_iconveh_internal): Invoke it.
70970
70971 2007-03-28  Bruno Haible  <bruno@clisp.org>
70972
70973         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70974         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70975         input.
70976         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70977         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70978         unistr/u8-uctomb.
70979
70980 2007-03-28  Bruno Haible  <bruno@clisp.org>
70981
70982         * modules/unistr/u8-mbtoucr: New file.
70983         * lib/unistr/u8-mbtoucr.c: New file.
70984         * modules/unistr/u16-mbtoucr: New file.
70985         * lib/unistr/u16-mbtoucr.c: New file.
70986         * modules/unistr/u16-mbtoucr: New file.
70987         * lib/unistr/u16-mbtoucr.c: New file.
70988         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70989
70990 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70991             Bruno Haible  <bruno@clisp.org>
70992
70993         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70994         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70995         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70996
70997         * m4/stdio_h.m4: Add stubs for vasprintf too.
70998
70999         * modules/stdio: Support vasprintf in sed command.
71000
71001         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71002         vasprintf.h.  Add stdio module indicator.
71003
71004         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71005         vasprintf.h.
71006
71007         * lib/vasprintf.h: File removed.
71008
71009         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71010         * lib/vasprintf.c: Ditto.
71011         * lib/xvasprintf.c: Ditto.
71012         * tests/test-vasprintf-posix.c: Ditto.
71013         * tests/test-vasprintf.c: Ditto.
71014
71015 2007-03-27  Bruno Haible  <bruno@clisp.org>
71016
71017         Make vasnprintf multithread-safe.
71018         * lib/vasnprintf.c (decimal_point_char): New function.
71019         (VASNPRINTF): Use it.
71020         Suggested by Simon Josefsson.
71021
71022 2007-03-27  Eric Blake  <ebb9@byu.net>
71023
71024         Support sub-second birthtime on cygwin.
71025         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71026         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71027         (get_stat_birthtime): Also work with st_birthtim.
71028
71029 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71032         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71033         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71034         (get_stat_birthtime_ns): Simplify compile-time tests.
71035         (get_stat_birthtime): Change the API to look like
71036         get_stat_mtime etc., except return a negative tv_nsec on error.
71037         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71038         Don't check for "spare" fields.
71039         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71040         or for struct stat.st_birthtime, as these tests aren't used.
71041         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71042
71043 2007-03-27  Bruno Haible  <bruno@clisp.org>
71044
71045         * lib/stat-time.h: Include <sys/stat.h>.
71046
71047 2007-03-27  James Youngman  <jay@gnu.org>
71048
71049         * lib/stat-time.h (get_stat_birthtime): New function for
71050           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71051         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71052           and its variants.
71053         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71054         * modules/stat-time-test: New file.
71055         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71056
71057 2007-03-26  Bruno Haible  <bruno@clisp.org>
71058
71059         Better support of signalling NaNs.
71060         * lib/atanl.c: Include isnanl.h.
71061         (atanl): Perform test for NaN at the beginning of the function and
71062         through a call to isnanl.
71063         * lib/cosl.c: Include isnanl.h.
71064         (cosl): Perform test for NaN at the beginning of the function and
71065         through a call to isnanl.
71066         * lib/ldexpl.c: Include isnanl.h.
71067         (ldexpl): Perform test for NaN through a call to isnanl.
71068         * lib/logl.c: Include isnanl.h.
71069         (logl): Perform test for NaN at the beginning of the function and
71070         through a call to isnanl.
71071         * lib/sinl.c: Include isnanl.h.
71072         (sinl): Perform test for NaN at the beginning of the function and
71073         through a call to isnanl.
71074         * lib/sqrtl.c: Include isnanl.h.
71075         (sqrtl): Perform test for NaN at the beginning of the function and
71076         through a call to isnanl.
71077         * lib/tanl.c: Include isnanl.h.
71078         (tanl): Perform test for NaN at the beginning of the function and
71079         through a call to isnanl.
71080         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71081         * modules/mathl (Depends-on): Add isnanl.
71082
71083 2007-03-26  Eric Blake  <ebb9@byu.net>
71084
71085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71086         regression in logic sense of previous patch.
71087
71088 2007-03-26  Bruno Haible  <bruno@clisp.org>
71089
71090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71091         unportable shell command "if ! ...".
71092         Reported by Ralf Wildenhues.
71093
71094 2007-03-25  Bruno Haible  <bruno@clisp.org>
71095
71096         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71097         <sysexits.h> file, and only add EX_CONFIG.
71098         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71099         absolute file name and whether it is sufficient. Substitute also
71100         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71101         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71102         ABSOLUTE_SYSEXITS_H into sysexits.h.
71103
71104 2007-03-25  Bruno Haible  <bruno@clisp.org>
71105
71106         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71107         hints is NULL.
71108
71109 2007-03-25  Bruno Haible  <bruno@clisp.org>
71110
71111         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71112         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71113
71114 2007-03-25  Bruno Haible  <bruno@clisp.org>
71115
71116         * lib/vasnprintf.c: Include langinfo.h.
71117         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71118         multithread-safe.
71119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71120         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71121         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71122         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71123         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71125         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71127         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71128         Reported by Simon Josefsson.
71129
71130 2007-03-25  Bruno Haible  <bruno@clisp.org>
71131
71132         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71133         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71134         * modules/vasnprintf (Depends-on): Add stdint.
71135
71136 2007-03-25  Bruno Haible  <bruno@clisp.org>
71137
71138         * modules/fpieee: New file.
71139         * m4/fpieee.m4: New file.
71140         * modules/isnan-nolibm (Depends-on): Add fpieee.
71141         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71142         * modules/isnanl (Depends-on): Add fpieee.
71143
71144 2007-03-25  Bruno Haible  <bruno@clisp.org>
71145
71146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71147
71148 2007-03-25  Bruno Haible  <bruno@clisp.org>
71149
71150         Avoid test failures on IRIX 6.5.
71151         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71152         (main): Use it.
71153         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71154         macros.
71155         (main): Use them.
71156
71157 2007-03-25  Bruno Haible  <bruno@clisp.org>
71158
71159         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71160         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71161         exists but doesn't work.
71162         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71163         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71165         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71166         math.h.
71167
71168 2007-03-25  Bruno Haible  <bruno@clisp.org>
71169
71170         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71171         returns inf. Needed on IRIX 6.5.
71172
71173 2007-03-25  Bruno Haible  <bruno@clisp.org>
71174
71175         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71176         (main): Use isnanl instead of x != x idiom.
71177         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71178
71179         * tests/test-frexp.c: Include isnan.h.
71180         (main): Use isnan instead of x != x idiom.
71181         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71182
71183 2007-03-25  Bruno Haible  <bruno@clisp.org>
71184
71185         * tests/test-frexp.c (NaN): New function/macro.
71186         (main): Use it instead of 0.0 / 0.0.
71187         * tests/test-isnan.c (NaN): New function/macro.
71188         (main): Use it instead of 0.0 / 0.0.
71189         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71190         (test_function): Use it instead of 0.0 / 0.0.
71191         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71192         (test_function): Use it instead of 0.0 / 0.0.
71193         * tests/test-snprintf-posix.h (NaN): New function/macro.
71194         (test_function): Use it instead of 0.0 / 0.0.
71195         * tests/test-sprintf-posix.h (NaN): New function/macro.
71196         (test_function): Use it instead of 0.0 / 0.0.
71197         * tests/test-fprintf-posix.h (NaN): New function/macro.
71198         (test_function): Use it instead of 0.0 / 0.0.
71199         * tests/test-printf-posix.h (NaN): New function/macro.
71200         (test_function): Use it instead of 0.0 / 0.0.
71201
71202         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71203
71204 2007-03-25  Bruno Haible  <bruno@clisp.org>
71205
71206         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71207
71208 2007-03-25  Bruno Haible  <bruno@clisp.org>
71209
71210         * lib/regexec.c (merge_state_with_log): Make static.
71211
71212 2007-03-25  Bruno Haible  <bruno@clisp.org>
71213
71214         * lib/trigl.c (kernel_rem_pio2): Make static.
71215
71216 2007-03-25  Bruno Haible  <bruno@clisp.org>
71217
71218         * lib/sincosl.c (sincosl_table): Make static.
71219
71220 2007-03-25  Bruno Haible  <bruno@clisp.org>
71221
71222         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71223         if the compiler does not support C99.
71224
71225 2007-03-25  Bruno Haible  <bruno@clisp.org>
71226
71227         * modules/time (Makefile.am): Ensure all rule action lines start with a
71228         tab.
71229
71230 2007-03-24  Bruno Haible  <bruno@clisp.org>
71231
71232         * modules/tsearch-tests: New file.
71233         * tests/test-tsearch.sh: New file.
71234         * tests/test-tsearch.c: New file, mostly copied from glibc.
71235
71236         * modules/search-tests: New file.
71237         * tests/test-search.c: New file.
71238
71239         * modules/search: New file.
71240         * lib/search_.h: New file, incorporating lib/tsearch.h.
71241         * m4/search_h.m4: New file.
71242         * lib/tsearch.h: Remove file.
71243         * lib/tsearch.c: Include search.h instead of tsearch.h.
71244         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71245         HAVE_TSEARCH.
71246         * modules/tsearch (Files): Remove lib/tsearch.h.
71247         (Depends-on): Add search.
71248         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71249         (Include): Change tsearch.h into search.h.
71250
71251 2007-03-24  Bruno Haible  <bruno@clisp.org>
71252
71253         * modules/fpucw: New file.
71254         * lib/fpucw.h: New file.
71255         * lib/frexp.c: Include fpucw.h.
71256         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71257         (FUNC): Use them.
71258         * lib/printf-frexp.c: Include fpucw.h.
71259         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71260         (FUNC): Use them.
71261         * lib/vasnprintf.c: Include fpucw.h.
71262         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71263         'long double' calculations.
71264         * tests/test-frexpl.c: Include fpucw.h.
71265         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71266         * tests/test-printf-frexpl.c: Include fpucw.h.
71267         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71268         * modules/frexpl (Depends-on): Add fpucw.
71269         * modules/printf-frexpl (Depends-on): Likewise.
71270         * modules/fprintf-posix (Depends-on): Likewise.
71271         * modules/snprintf-posix (Depends-on): Likewise.
71272         * modules/sprintf-posix (Depends-on): Likewise.
71273         * modules/vasnprintf-posix (Depends-on): Likewise.
71274         * modules/vasprintf-posix (Depends-on): Likewise.
71275         * modules/vfprintf-posix (Depends-on): Likewise.
71276         * modules/vsnprintf-posix (Depends-on): Likewise.
71277         * modules/vsprintf-posix (Depends-on): Likewise.
71278         * modules/frexpl-tests (Depends-on): Likewise.
71279         * modules/printf-frexpl-tests (Depends-on): Likewise.
71280
71281 2007-03-24  Bruno Haible  <bruno@clisp.org>
71282
71283         * lib/float+.h: New file.
71284         * lib/isnan.c: Include float+.h.
71285         (SIZE): New macro.
71286         (FUNC): Compare only SIZE bytes of the value.
71287         * lib/vasnprintf.c: Include float+.h.
71288         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71289         SIZEOF_LDBL or SIZEOF_DBL bytes.
71290         * modules/isnan-nolibm (Files): Add lib/float+.h.
71291         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71292         * modules/isnanl (Files): Add lib/float+.h.
71293         * modules/vasnprintf (Files): Add lib/float+.h.
71294
71295 2007-03-24  Bruno Haible  <bruno@clisp.org>
71296
71297         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71298         include isnanl-nolibm.h.
71299
71300 2007-03-24  Bruno Haible  <bruno@clisp.org>
71301
71302         * tests/test-read-file.c (main): Don't produce spurious output for
71303         expected situations. Make the test fail if it encountered unexpected
71304         results.
71305
71306 2007-03-24  Bruno Haible  <bruno@clisp.org>
71307
71308         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71309         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71310
71311 2007-03-24  Bruno Haible  <bruno@clisp.org>
71312
71313         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71314
71315 2007-03-24  Bruno Haible  <bruno@clisp.org>
71316
71317         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71318         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71319
71320         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71321         * modules/utf8-ucs4: Turn into a symbolic link to module
71322         unistr/u8-mbtouc.
71323
71324         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71325         utf8-ucs4-unsafe.
71326         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71327         unistr/u8-mbtouc-unsafe.
71328
71329         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71330         * modules/utf16-ucs4: Turn into a symbolic link to module
71331         unistr/u16-mbtouc.
71332
71333         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71334         utf16-ucs4-unsafe.
71335         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71336         unistr/u16-mbtouc-unsafe.
71337
71338         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71339         * modules/ucs4-utf8: Turn into a symbolic link to module
71340         unistr/u8-ubtomb.
71341
71342         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71343         * modules/ucs4-utf16: Turn into a symbolic link to module
71344         unistr/u16-ubtomb.
71345
71346 2007-03-24  Bruno Haible  <bruno@clisp.org>
71347
71348         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71349         Enable the function only if HAVE_INLINE.
71350         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71351         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71352         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71353         Enable the function only if HAVE_INLINE.
71354         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71355         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71356         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71357         Enable the function only if HAVE_INLINE.
71358         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71359         Enable the function only if HAVE_INLINE.
71360         * modules/utf8-ucs4: Update.
71361         * modules/utf8-ucs4-unsafe: Update.
71362         * modules/utf16-ucs4: Update.
71363         * modules/utf16-ucs4-unsafe: Update.
71364         * modules/ucs4-utf8: Update.
71365         * modules/ucs4-utf16: Update.
71366
71367 2007-03-24  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/utf8-ucs4.h: Remove file.
71370         * lib/utf8-ucs4-unsafe.h: Remove file.
71371         * lib/utf16-ucs4.h: Remove file.
71372         * lib/utf16-ucs4-unsafe.h: Remove file.
71373         * lib/ucs4-utf8.h: Remove file.
71374         * lib/ucs4-utf16.h: Remove file.
71375         * lib/unistr.h: Include their previous contents.
71376         * m4/utf-ucs4.m4: Remove file.
71377         * m4/ucs4-utf.m4: Remove file.
71378         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71379         (Depends-on): Add unistr/base.
71380         (configure.ac): Remove gl_UTF_UCS4.
71381         (Makefile.am): Update.
71382         (Include): Change to unistr.h.
71383         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71384         (Depends-on): Add unistr/base.
71385         (configure.ac): Remove gl_UTF_UCS4.
71386         (Makefile.am): Update.
71387         (Include): Change to unistr.h.
71388         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71389         (Depends-on): Add unistr/base.
71390         (configure.ac): Remove gl_UTF_UCS4.
71391         (Makefile.am): Update.
71392         (Include): Change to unistr.h.
71393         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71394         (Depends-on): Add unistr/base.
71395         (configure.ac): Remove gl_UTF_UCS4.
71396         (Makefile.am): Update.
71397         (Include): Change to unistr.h.
71398         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71399         (Depends-on): Add unistr/base.
71400         (configure.ac): Remove gl_UCS4_UTF.
71401         (Makefile.am): Update.
71402         (Include): Change to unistr.h.
71403         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71404         (Depends-on): Add unistr/base.
71405         (configure.ac): Remove gl_UCS4_UTF.
71406         (Makefile.am): Update.
71407         (Include): Change to unistr.h.
71408         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71409         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71410         utf8-ucs4-unsafe.h.
71411         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71412         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71413         utf16-ucs4-unsafe.h.
71414         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71415         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71416         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71417         * lib/unistr/u8-strchr.c: Likewise.
71418         * lib/unistr/u8-strrchr.c: Likewise.
71419         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71420         * lib/unistr/u16-strchr.c: Likewise.
71421         * lib/unistr/u16-strrchr.c: Likewise.
71422         * lib/striconveh.c: Update.
71423         * lib/linebreak.c: Update.
71424
71425 2007-03-24  Bruno Haible  <bruno@clisp.org>
71426
71427         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71428         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71429
71430 2007-03-22  Bruno Haible  <bruno@clisp.org>
71431
71432         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71433
71434 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71435
71436         * MODULES.html.sh (File system functions): New module write-any-file.
71437         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71438         * m4/write-any-file.m4: New files.
71439
71440 2007-03-23  Eric Blake  <ebb9@byu.net>
71441
71442         * gnulib-tool: Rearrange space-tab sequences, since some editors
71443         like to eat them.
71444
71445 2007-03-23  Eric Blake  <ebb9@byu.net>
71446
71447         * lib/version-etc.c (version_etc_va): Update license wording to
71448         be more concise.  Recommended by Richard Stallman.
71449
71450 2007-03-22  Bruno Haible  <bruno@clisp.org>
71451
71452         * lib/poll.c (MSG_PEEK): New fallback definition.
71453
71454 2007-03-22  Bruno Haible  <bruno@clisp.org>
71455
71456         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71457         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71458         (main): Update.
71459         Fixes a compilation error on BeOS.
71460
71461 2007-03-22  Bruno Haible  <bruno@clisp.org>
71462
71463         * modules/frexpl-tests: New file.
71464         * tests/test-frexpl.c: New file.
71465
71466         * modules/frexpl: New file.
71467         * m4/frexpl.m4: New file.
71468         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71469         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71471         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71472         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71473         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71474
71475 2007-03-22  Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/frexpl.c: Share code with lib/frexp.c.
71478         * modules/mathl (Files): Add lib/frexp.c.
71479         (Depends-on): Add isnanl-nolibm.
71480
71481 2007-03-22  Bruno Haible  <bruno@clisp.org>
71482
71483         * modules/printf-frexp (Files): Add m4/frexp.m4.
71484         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71485         only if the found frexp function actually works.
71486
71487 2007-03-22  Bruno Haible  <bruno@clisp.org>
71488
71489         * lib/frexp.c: Remove older implementation that uses divisions.
71490
71491 2007-03-21  Bruno Haible  <bruno@clisp.org>
71492
71493         * modules/frexp-tests: New file.
71494         * tests/test-frexp.c: New file.
71495
71496         * modules/frexp: New file.
71497         * lib/frexp.c: New file.
71498         * m4/frexp.m4: New file.
71499         * lib/math_.h (frexp): New declaration.
71500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71501         REPLACE_FREXP.
71502         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71503
71504 2007-03-21  Bruno Haible  <bruno@clisp.org>
71505
71506         * modules/isnanl-tests: New file.
71507         * tests/test-isnanl.c: New file.
71508
71509         * modules/isnanl: New file.
71510         * lib/isnanl.h: New file.
71511         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71512         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71513         gl_FUNC_ISNANL_WORKS.
71514         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71515         New macros.
71516
71517 2007-03-21  Bruno Haible  <bruno@clisp.org>
71518
71519         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71520         lib/isnanl.h.
71521         (Include): Update.
71522         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71523         * lib/vasnprintf.c: Update.
71524         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71525         tests/test-isnanl.h, remove tests/test-isnanl.c.
71526         (Makefile.am): Update.
71527         * tests/test-isnanl-nolibm.c: New file.
71528         * tests/test-isnanl.h: New file.
71529         * tests/test-isnanl.c: Remove file.
71530
71531 2007-03-21  Jim Meyering  <jim@meyering.net>
71532
71533         When trying to open ".", treat ESTALE like EACCES.
71534         * lib/savewd.c (savewd_save): Resort to forking not just upon
71535         failure with EACCES, but also when errno is ESTALE.
71536
71537 2007-03-20  Bruno Haible  <bruno@clisp.org>
71538
71539         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71540         Needed on AIX 5.1. Reported by Matthew Woehlke.
71541
71542 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71543
71544         Suggestions by Bruno Haible:
71545         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71546         our own.
71547         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71548         * modules/acl (Depends-on): Add gettext.
71549
71550 2007-03-19  Bruno Haible  <bruno@clisp.org>
71551
71552         * modules/iconvme: Remove file.
71553         * lib/iconvme.h: Remove file.
71554         * lib/iconvme.c: Remove file.
71555         * m4/iconvme.m4: Remove file.
71556
71557 2007-03-19  Bruno Haible  <bruno@clisp.org>
71558
71559         * doc/relocatable-maint.texi: Break long shell script line.
71560         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71561
71562 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71563
71564         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71565         handle file_has_acl.
71566         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71567         * lib/acl.c: Move header inclusions and related macro defns into
71568         lib/acl-internal.h.
71569         (S_ISLNK): Remove defn, since that's now done for us.
71570         (file_has_acl): Move to lib/file-has-acl.c.
71571         Call acl_trivial if available.  This is the crucial part of the fix.
71572         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71573         shared within the library.  Rewrite a bit, partly to make it compatible
71574         with the GNU coding style.
71575         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71576         Remove unnecessary double-quotes.
71577         Don't test for acl_to_text; the build will catch that.
71578         Replace acl_entries if it doesn't exist and it is needed.
71579         Check for -lsec and acl_trivial (as used on Solaris 10).
71580         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71581         lib/file-has-acl.c.
71582         (Depends-on): Add sys_stat, for S_ISLNK.
71583
71584 2007-03-19  Ben Pfaff  <blp@gnu.org>
71585
71586         * doc/gnulib.texi: Fix typos.
71587         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71588
71589 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71592         If size is zero here, buf must be zero.
71593
71594 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71595
71596         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71597         <bruno@clisp.org>.
71598
71599 2007-03-18  Bruno Haible  <bruno@clisp.org>
71600
71601         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71602         Suggested by Eric Blake.
71603
71604 2007-03-18  Ben Pfaff  <blp@gnu.org>
71605
71606         * doc/relocatable.texi: Recommend using as prefix a directory
71607         that does not exist and will never be created.  Based on
71608         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71609         and others.
71610
71611 2007-03-17  Bruno Haible  <bruno@clisp.org>
71612
71613         * lib/fchownat.c: Include lchown.h.
71614
71615 2007-03-17  Bruno Haible  <bruno@clisp.org>
71616
71617         Fix endless loop when the given allocated size was > INT_MAX.
71618         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71619         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71620         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71621         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71622         * lib/sprintf.c (sprintf): Likewise.
71623
71624 2007-03-17  Bruno Haible  <bruno@clisp.org>
71625
71626         * tests/test-argp-2.sh (func_compare): Output a context diff.
71627
71628 2007-03-17  Bruno Haible  <bruno@clisp.org>
71629
71630         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71631         locale's decimal-point character.
71632
71633 2007-03-17  Bruno Haible  <bruno@clisp.org>
71634
71635         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71636         before comparing it. Needed because on some platforms (e.g. x86) a
71637         'long double' occupies less bytes than sizeof (long double).
71638
71639 2007-03-17  Bruno Haible  <bruno@clisp.org>
71640
71641         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71642         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71643         * tests/test-getaddrinfo.c (simple): Likewise.
71644         * tests/test-read-file.c (main): Likewise.
71645
71646 2007-03-17  Bruno Haible  <bruno@clisp.org>
71647
71648         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71649
71650 2007-03-17  Bruno Haible  <bruno@clisp.org>
71651
71652         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71653         unused variable.
71654
71655 2007-03-17  Bruno Haible  <bruno@clisp.org>
71656
71657         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71658         * tests/test-c-strncasecmp.c: Likewise.
71659
71660 2007-03-17  Bruno Haible  <bruno@clisp.org>
71661
71662         * modules/stdlib (Depends-on): Add unistd.
71663         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71664         Needed for MacOS X 10.3.
71665
71666 2007-03-17  Bruno Haible  <bruno@clisp.org>
71667
71668         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71669
71670 2007-03-17  Bruno Haible  <bruno@clisp.org>
71671
71672         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71673
71674 2007-03-17  Bruno Haible  <bruno@clisp.org>
71675
71676         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71677         to reflect files copied from gnulib (with or without modifications).
71678         Suggested by Jim Meyering.
71679
71680 2007-03-17  Eric Blake  <ebb9@byu.net>
71681
71682         * NEWS: Document stdlib change from 2007-02-18.
71683
71684 2007-03-17  Jim Meyering  <jim@meyering.net>
71685
71686         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71687         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71688         someone uses a name containing shell meta-characters.
71689         Reported by Alfred M. Szmidt.
71690
71691         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71692
71693 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71694
71695         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71696         and copy gettext configuration files only if configure.ac contains
71697         a use of AM_GNU_GETTEXT_VERSION.
71698
71699 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71700
71701         * build-aux/bootstrap (gnulib_name): New variable.
71702         (gnulib_tool_options): Use it.
71703
71704 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71705
71706         * tests/test-des.c: Use new namespace.
71707
71708 2007-03-15  Bruno Haible  <bruno@clisp.org>
71709
71710         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71711         Reported by James Youngman <jay@gnu.org>.
71712
71713 2007-03-15  Bruno Haible  <bruno@clisp.org>
71714
71715         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71716         declared prototype. Needed with cc on OSF/1 5.1.
71717
71718 2007-03-15  Bruno Haible  <bruno@clisp.org>
71719
71720         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71721         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71722         (struct gl_list_implementation): Add dispose_fn argument to the
71723         'create_empty', 'create' methods.
71724         (struct gl_list_impl_base): Add field 'dispose_fn'.
71725         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71726         argument.
71727         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71728         dispose_fn argument.
71729         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71730         dispose_fn on the dropped values.
71731         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71732         dispose_fn argument.
71733         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71734         dropped values.
71735         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71736         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71737         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71738         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71739         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71740         argument.
71741         (gl_tree_list_free): Call dispose_fn on the dropped values.
71742         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71743         the dropped values.
71744         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71745         Add dispose_fn argument.
71746         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71747         Call dispose_fn on the dropped values.
71748         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71749         Add dispose_fn argument.
71750         (gl_sublist_create): Initialize the 'dispose_fn' field.
71751         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71752         * tests/test-array_list.c (main): Update.
71753         * tests/test-carray_list.c (main): Update.
71754         * tests/test-avltree_list.c (main): Update.
71755         * tests/test-rbtree_list.c (main): Update.
71756         * tests/test-avltreehash_list.c (main): Update.
71757         * tests/test-rbtreehash_list.c (main): Update.
71758         * tests/test-linked_list.c (main): Update.
71759         * tests/test-linkedhash_list.c (main): Update.
71760         * tests/test-array_oset.c (main): Update.
71761
71762 2007-03-15  Bruno Haible  <bruno@clisp.org>
71763
71764         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71765         (gl_oset_create_empty): Add dispose_fn argument.
71766         (struct gl_oset_implementation): Add dispose_fn argument to
71767         'create_empty' method.
71768         (struct gl_oset_impl_base): Add dispose_fn field.
71769         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71770         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71771         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71772         values.
71773         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71774         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71775         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71776         dropped value.
71777         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71778         dropped value.
71779         * tests/test-array_oset.c (main): Update.
71780         * tests/test-avltree_oset.c (main): Update.
71781         * tests/test-rbtree_oset.c (main): Update.
71782         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71783
71784 2007-03-13  Bruno Haible  <bruno@clisp.org>
71785
71786         * tests/test-stdbool.c (i): Update after last patch.
71787
71788 2007-03-12  Bruno Haible  <bruno@clisp.org>
71789
71790         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71791         the iswprint macro. Needed on Solaris 2.5.1.
71792
71793 2007-03-12  Bruno Haible  <bruno@clisp.org>
71794
71795         * tests/test-printf-frexp.c (main): Declare x as volatile.
71796
71797 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71798
71799         * doc/gnulib.texi (Build robot for gnulib): New section.
71800
71801 2007-03-12  Jim Meyering  <jim@meyering.net>
71802
71803         * build-aux/bootstrap: New file.
71804         * build-aux/bootstrap.conf: New file, from coreutils.
71805
71806 2007-03-11  Bruno Haible  <bruno@clisp.org>
71807
71808         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71809
71810 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71811
71812         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71813         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71814         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71815
71816 2007-03-11  Bruno Haible  <bruno@clisp.org>
71817
71818         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71819         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71820
71821 2007-03-11  Bruno Haible  <bruno@clisp.org>
71822
71823         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71824         formula. Needed for SunPRO C 5.0.
71825
71826 2007-03-11  Bruno Haible  <bruno@clisp.org>
71827
71828         * modules/long-options (Depends-on): Add getopt.
71829
71830 2007-03-11  Bruno Haible  <bruno@clisp.org>
71831
71832         * modules/modechange (Depends-on): Add stdbool.
71833
71834 2007-03-11  Bruno Haible  <bruno@clisp.org>
71835
71836         * modules/i-ring (Depends-on): Add stdbool.
71837
71838 2007-03-11  Bruno Haible  <bruno@clisp.org>
71839
71840         * modules/gc-des (Depends-on): Add stdbool.
71841
71842 2007-03-11  Bruno Haible  <bruno@clisp.org>
71843
71844         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71845
71846 2007-03-11  Bruno Haible  <bruno@clisp.org>
71847
71848         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71849
71850 2007-03-11  Bruno Haible  <bruno@clisp.org>
71851
71852         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71853
71854 2007-03-11  Bruno Haible  <bruno@clisp.org>
71855
71856         * lib/vasnprintf.c (sprintf): Undefine.
71857
71858 2007-03-11  Bruno Haible  <bruno@clisp.org>
71859
71860         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71861         initializers in SunPRO C and Compaq C compilers.
71862
71863 2007-03-11  Bruno Haible  <bruno@clisp.org>
71864
71865         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71866         decrementing code ANSI C compliant.
71867
71868 2007-03-11  Bruno Haible  <bruno@clisp.org>
71869
71870         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71871         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71872
71873 2007-03-11  Bruno Haible  <bruno@clisp.org>
71874
71875         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71876         <stdbool.h> substitute doesn't pass.
71877
71878 2007-03-11  Bruno Haible  <bruno@clisp.org>
71879
71880         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71881
71882 2007-03-11  Bruno Haible  <bruno@clisp.org>
71883
71884         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71885         script, for submission to autobuild.josefsson.org.
71886
71887 2007-03-10  Bruno Haible  <bruno@clisp.org>
71888
71889         * modules/canonicalize-lgpl-tests: New file.
71890         * tests/test-canonicalize-lgpl.sh: New file.
71891         * tests/test-canonicalize-lgpl.c: New file.
71892
71893         * modules/c-strcase-tests: New file.
71894         * tests/test-c-strcase.sh: New file.
71895         * tests/test-c-strcasecmp.c: New file.
71896         * tests/test-c-strncasecmp.c: New file.
71897
71898         * modules/atexit-tests: New file.
71899         * tests/test-atexit.sh: New file.
71900         * tests/test-atexit.c: New file.
71901
71902 2007-03-10  Bruno Haible  <bruno@clisp.org>
71903
71904         * tests/test-binary-io.sh: Use temporary filenames that are not so
71905         likely to clash with those of other tests (in a parallel make).
71906         * tests/test-binary-io.c: Likewise.
71907
71908 2007-03-10  Bruno Haible  <bruno@clisp.org>
71909
71910         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71911         fallback; use #error instead.
71912         Suggested by Simon Josefsson.
71913
71914 2007-03-10  Bruno Haible  <bruno@clisp.org>
71915
71916         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71917         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71918         first and the last.
71919
71920 2007-03-10  Bruno Haible  <bruno@clisp.org>
71921
71922         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71923
71924 2007-03-10  Bruno Haible  <bruno@clisp.org>
71925
71926         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71927         "make distcheck".
71928         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71929         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71930         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71931
71932 2007-03-10  Bruno Haible  <bruno@clisp.org>
71933
71934         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71935         variable.
71936         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71937         variable.
71938
71939 2007-03-09  Eric Blake  <ebb9@byu.net>
71940         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71941
71942         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71943         types are not being provided by gnulib.
71944         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71945         types are supported.
71946
71947 2007-03-10  Bruno Haible  <bruno@clisp.org>
71948
71949         * lib/stdio_.h (__attribute__): New macro.
71950         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71951         vsprintf): Specify __attribute__ __format__ for GCC.
71952         Suggested by Eric Blake.
71953
71954 2007-03-09  Bruno Haible  <bruno@clisp.org>
71955
71956         * modules/printf-posix-tests: New file.
71957         * tests/test-printf-posix.sh: New file.
71958         * tests/test-printf-posix.c: New file.
71959
71960         * modules/printf-posix: New file.
71961         * lib/printf.c: New file.
71962         * m4/printf-posix-rpl.m4: New file.
71963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71964         REPLACE_PRINTF.
71965         * lib/stdio_.h (printf): New declaration.
71966         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71967         ____strfmon____): New macros.
71968         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71969         REPLACE_PRINTF.
71970
71971 2007-03-09  Bruno Haible  <bruno@clisp.org>
71972
71973         * tests/test-vasnprintf-posix2.sh: New file.
71974         * tests/test-vasnprintf-posix2.c: New file.
71975         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71976         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71977         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71978
71979         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71980         a locale dependent decimal point, rather than always '.'.
71981
71982 2007-03-09  Eric Blake  <ebb9@byu.net>
71983
71984         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71985         spite of platforms like Tandem/NSK that define it to -1.
71986
71987 2007-03-08  Bruno Haible  <bruno@clisp.org>
71988
71989         * modules/vprintf-posix-tests: New file.
71990         * tests/test-vprintf-posix.sh: New file.
71991         * tests/test-vprintf-posix.c: New file.
71992         * tests/test-printf-posix.h: New file.
71993
71994         * modules/vprintf-posix: New file.
71995         * lib/vprintf.c: New file.
71996         * m4/vprintf-posix.m4: New file.
71997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71998         REPLACE_VPRINTF.
71999         * lib/stdio_.h (vprintf): New declaration.
72000         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72001         REPLACE_VPRINTF.
72002
72003 2007-03-08  Bruno Haible  <bruno@clisp.org>
72004
72005         * modules/fprintf-posix-tests: New file.
72006         * tests/test-fprintf-posix.sh: New file.
72007         * tests/test-fprintf-posix.c: New file.
72008
72009         * modules/fprintf-posix: New file.
72010         * lib/fprintf.c: New file.
72011         * m4/fprintf-posix.m4: New file.
72012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72013         REPLACE_FPRINTF.
72014         * lib/stdio_.h (fprintf): New declaration.
72015         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72016         REPLACE_FPRINTF.
72017
72018 2007-03-08  Bruno Haible  <bruno@clisp.org>
72019
72020         * modules/vfprintf-posix-tests: New file.
72021         * tests/test-vfprintf-posix.sh: New file.
72022         * tests/test-vfprintf-posix.c: New file.
72023         * tests/test-fprintf-posix.h: New file.
72024         * tests/test-fprintf-posix.out: New file.
72025
72026         * modules/vfprintf-posix: New file.
72027         * lib/vfprintf.c: New file.
72028         * m4/vfprintf-posix.m4: New file.
72029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72030         REPLACE_VFPRINTF.
72031         * lib/stdio_.h (vfprintf): New declaration.
72032         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72033         REPLACE_VFPRINTF.
72034
72035 2007-03-08  Bruno Haible  <bruno@clisp.org>
72036
72037         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72038
72039 2007-03-08  Bruno Haible  <bruno@clisp.org>
72040
72041         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72042         instead of 'expr' invocations.
72043         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72045         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72046         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72047         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72048         Suggested by Paul Eggert.
72049
72050 2007-03-08  Bruno Haible  <bruno@clisp.org>
72051
72052         * modules/fseterr-tests: New file.
72053         * tests/test-fseterr.c: New file.
72054
72055         * modules/fseterr: New file.
72056         * lib/fseterr.h: New file.
72057         * lib/fseterr.c: New file.
72058
72059 2007-03-08  Bruno Haible  <bruno@clisp.org>
72060
72061         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72062         * lib/getopt_.h: Likewise.
72063         * lib/mbswidth.h: Likewise.
72064         * lib/setenv.h: Likewise.
72065         * lib/vasnprintf.h: Likewise.
72066         * lib/vasprintf.h: Likewise.
72067         * lib/verror.h: Likewise.
72068         * lib/xsetenv.h: Likewise.
72069         * lib/xvasprintf.h: Likewise.
72070
72071 2007-03-08  Jim Meyering  <jim@meyering.net>
72072
72073         * users.txt: Add parted.
72074
72075         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72076
72077 2007-03-07  Bruno Haible  <bruno@clisp.org>
72078
72079         * m4/printf.m4: Make the shell script snippets copy&pastable.
72080
72081 2007-03-02  Bruno Haible  <bruno@clisp.org>
72082
72083         * lib/netinet_in_.h: New file.
72084         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72085         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72086         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72087         (Depends-on): Add absolute-header.
72088         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72089         into netinet/in.h.
72090
72091 2007-03-03  Bruno Haible  <bruno@clisp.org>
72092
72093         * lib/sys_select_.h: New file.
72094         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72095         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72096         * modules/sys_select (Files): Add lib/sys_select_.h.
72097         (Depends-on): Add absolute-header.
72098         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72099         into sys/select.h.
72100
72101 2007-03-02  Bruno Haible  <bruno@clisp.org>
72102
72103         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72104         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72105         values.
72106         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72107         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72108         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72109         * modules/sys_socket (Depends-on): Add absolute-header.
72110         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72111         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72112         (Include): Remove requirement of inclusion of <sys/types.h>.
72113
72114 2007-03-02  Bruno Haible  <bruno@clisp.org>
72115
72116         * lib/byteswap_.h (bswap_32): Fix formula.
72117
72118 2007-03-06  Bruno Haible  <bruno@clisp.org>
72119
72120         * modules/sprintf-posix-tests: New file.
72121         * tests/test-sprintf-posix.c: New file.
72122
72123         * modules/sprintf-posix: New file.
72124         * lib/sprintf.c: New file.
72125         * m4/sprintf-posix.m4: New file.
72126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72127         REPLACE_SPRINTF.
72128         * lib/stdio_.h (sprintf): New declaration.
72129         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72130         REPLACE_SPRINTF.
72131
72132 2007-03-06  Bruno Haible  <bruno@clisp.org>
72133
72134         * modules/vsprintf-posix-tests: New file.
72135         * tests/test-vsprintf-posix.c: New file.
72136         * tests/test-sprintf-posix.h: New file.
72137
72138         * modules/vsprintf-posix: New file.
72139         * lib/vsprintf.c: New file.
72140         * m4/vsprintf-posix.m4: New file.
72141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72142         REPLACE_VSPRINTF.
72143         * lib/stdio_.h (vsprintf): New declaration.
72144         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72145         REPLACE_VSPRINTF.
72146
72147 2007-03-06  Bruno Haible  <bruno@clisp.org>
72148
72149         * modules/vsnprintf (Depend-on): Remove minmax.
72150
72151 2007-03-06  Bruno Haible  <bruno@clisp.org>
72152
72153         * modules/snprintf-posix-tests: New file.
72154         * tests/test-snprintf-posix.c: New file.
72155
72156         * modules/snprintf-posix: New file.
72157         * m4/snprintf-posix.m4: New file.
72158         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72159         gl_FUNC_SNPRINTF.
72160         (gl_FUNC_SNPRINTF): Invoke it.
72161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72162         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72163         is set.
72164         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72165
72166 2007-03-06  Bruno Haible  <bruno@clisp.org>
72167
72168         * modules/vsnprintf-posix-tests: New file.
72169         * tests/test-vsnprintf-posix.c: New file.
72170         * tests/test-snprintf-posix.h: New file.
72171
72172         * modules/vsnprintf-posix: New file.
72173         * m4/vsnprintf-posix.m4: New file.
72174         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72175         gl_FUNC_VSNPRINTF.
72176         (gl_FUNC_VSNPRINTF): Invoke it.
72177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72178         * lib/stdio_.h (vsnprintf): Define as a replacement if
72179         REPLACE_VSNPRINTF is set.
72180         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72181
72182 2007-03-06  Bruno Haible  <bruno@clisp.org>
72183
72184         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72186
72187 2007-03-06  Bruno Haible  <bruno@clisp.org>
72188
72189         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72190         (asinl): Declare also if HAVE_DECL_ASINL is set.
72191         (atanl): Declare also if HAVE_DECL_ATANL is set.
72192         (ceill): Declare also if HAVE_DECL_CEILL is set.
72193         (cosl): Declare also if HAVE_DECL_COSL is set.
72194         (expl): Declare also if HAVE_DECL_EXPL is set.
72195         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72196         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72197         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72198         (logl): Declare also if HAVE_DECL_LOGL is set.
72199         (sinl): Declare also if HAVE_DECL_SINL is set.
72200         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72201         (tanl): Declare also if HAVE_DECL_TANL is set.
72202         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72204         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72205         declaration of frexpl, ldexpl.
72206         * modules/printf-frexpl (Depends-on): Add math.
72207         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72208
72209 2007-03-05  Bruno Haible  <bruno@clisp.org>
72210
72211         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72212         frexpl and ldexpl are declared.
72213         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72214
72215 2007-03-05  Bruno Haible  <bruno@clisp.org>
72216
72217         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72218         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72219
72220 2007-03-05  Bruno Haible  <bruno@clisp.org>
72221
72222         * lib/stdio_.h: Include <stddef.h>.
72223
72224 2007-03-05  Bruno Haible  <bruno@clisp.org>
72225
72226         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72227
72228 2007-03-05  Bruno Haible  <bruno@clisp.org>
72229
72230         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72231         NetBSD 4, from Ralf Wildenhues.
72232
72233 2007-03-04  Bruno Haible  <bruno@clisp.org>
72234
72235         * lib/vasprintf.h: Update #if logic for the case when the functions
72236         exist but are overridden.
72237
72238 2007-03-04  Bruno Haible  <bruno@clisp.org>
72239
72240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72241         implementations: glibc-2.4 and MacOS X 10.3.
72242         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72243         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72244         * tests/test-vasprintf-posix.c (test_function): Likewise.
72245
72246 2007-03-04  Bruno Haible  <bruno@clisp.org>
72247
72248         * modules/vasprintf-posix-tests: New file.
72249         * tests/test-vasprintf-posix.c: New file.
72250
72251         * modules/vasprintf-posix: New file.
72252         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72253         defined.
72254         * m4/vasprintf-posix.m4: New file.
72255         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72256         gl_FUNC_VASPRINTF.
72257         (gl_FUNC_VASPRINTF): Invoke it.
72258         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72259         here.
72260         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72261
72262 2007-03-04  Bruno Haible  <bruno@clisp.org>
72263
72264         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72265         REPLACE_GETTIMEOFDAY.
72266         * modules/sys_time (Makefile.am): Likewise.
72267         * m4/sys_time_h.m4: Likewise.
72268         * m4/gettimeofday.m4: Likewise.
72269
72270 2007-03-04  Bruno Haible  <bruno@clisp.org>
72271
72272         * modules/vasnprintf-posix-tests: New file.
72273         * tests/test-vasnprintf-posix.c: New file.
72274
72275         * modules/vasnprintf-posix: New file.
72276         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72277         printf-frexpl.h.
72278         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72279         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72280         REPLACE_VASNPRINTF is defined.
72281         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72282         gl_FUNC_VASNPRINTF.
72283         (gl_FUNC_VASNPRINTF): Invoke it.
72284         * m4/vasnprintf-posix.m4: New file.
72285         * m4/printf.m4: New file.
72286
72287 2007-03-04  Bruno Haible  <bruno@clisp.org>
72288
72289         Compile progreloc.c only if --enable-relocatable is specified.
72290         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72291         if --enable-relocatable was specified.
72292         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72293         lib_SOURCES.
72294
72295 2007-03-04  Jim Meyering  <jim@meyering.net>
72296
72297         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72298         Use it consistently, rather than enumerating errno constants.
72299
72300 2007-03-04  Bruno Haible  <bruno@clisp.org>
72301
72302         * modules/xvasprintf-tests: New file.
72303         * tests/test-xvasprintf.c: New file.
72304
72305         * modules/vasprintf-tests: New file.
72306         * tests/test-vasprintf.c: New file.
72307
72308         * modules/vasnprintf-tests: New file.
72309         * tests/test-vasnprintf.c: New file.
72310
72311         * modules/vsnprintf-tests: New file.
72312         * tests/test-vsnprintf.c: New file.
72313
72314         * modules/snprintf-tests: New file.
72315         * tests/test-snprintf.c: New file.
72316
72317 2007-03-04  Bruno Haible  <bruno@clisp.org>
72318
72319         Compile relocatable.c only if --enable-relocatable is specified.
72320         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72321         gl_RELOCATABLE_LIBRARY.
72322         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72323         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72324         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72325         gl_RELOCATABLE_LIBRARY.
72326         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72327         (Makefile.am): Remove lib_SOURCES.
72328         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72329         gl_RELOCATABLE_LIBRARY.
72330         (Makefile.am): Remove lib_SOURCES.
72331         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72332         always.
72333         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72334         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72335
72336 2007-03-04  Bruno Haible  <bruno@clisp.org>
72337
72338         * modules/argmatch-tests: New file.
72339         * tests/test-argmatch.c: New file.
72340
72341         * tests/test-allocsa.c (main): Halve the number of loop runs.
72342
72343         * modules/alloca-opt-tests: New file.
72344         * tests/test-alloca-opt.c: New file.
72345
72346 2007-03-04  Jim Meyering  <jim@meyering.net>
72347
72348         Work around difference between Linux ACLs and Solaris 10 ZFS.
72349         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72350         for EINVAL.
72351
72352 2007-03-03  Bruno Haible  <bruno@clisp.org>
72353
72354         * modules/relocatable-prog (Depends-on): Add back progreloc's
72355         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72356
72357 2007-03-03  Bruno Haible  <bruno@clisp.org>
72358
72359         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72360         * modules/relocatable-lib: New file.
72361
72362 2007-03-03  Bruno Haible  <bruno@clisp.org>
72363
72364         * modules/relocatable-prog: Renamed from modules/relocatable.
72365         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72366
72367 2007-03-03  Bruno Haible  <bruno@clisp.org>
72368
72369         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72370         m4/relocatable-lib.m4.
72371         (Depends-on): Remove 'relocatable'.
72372         (configure.ac): Add gl_RELOCATABLE_NOP.
72373
72374 2007-03-03  Bruno Haible  <bruno@clisp.org>
72375
72376         * modules/relocatable-prog-wrapper: New file.
72377         * modules/relocatable (Depends-on): Add it. Remove all other
72378         dependencies except progname.
72379         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72380
72381         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72382         (gl_FUNC_STRERROR): Nop.
72383         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72384
72385         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72386         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72387
72388         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72389         (gl_FUNC_READLINK): Update.
72390
72391         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72392
72393 2007-03-03  Bruno Haible  <bruno@clisp.org>
72394
72395         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72396         * modules/xreadlink (Depends-on): Add unistd.
72397         * modules/xreadlink-with-size (Depends-on): Likewise.
72398
72399 2007-03-03  Bruno Haible  <bruno@clisp.org>
72400
72401         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72402         extracted from gt_FUNC_SETENV.
72403         (gt_FUNC_SETENV): Remove macro.
72404         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72405         remove gt_FUNC_SETENV.
72406
72407 2007-03-03  Bruno Haible  <bruno@clisp.org>
72408
72409         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72410         ENABLE_RELOCATABLE here.
72411         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72412
72413 2007-03-03  Bruno Haible  <bruno@clisp.org>
72414
72415         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72416         * tests/test-rbtreehash_list.c: Include progname.h.
72417         (main): Call set_program_name.
72418
72419         * modules/rbtree-oset-tests (Depends-on): Add progname.
72420         * tests/test-rbtree_oset.c: Include progname.h.
72421         (main): Call set_program_name.
72422
72423         * modules/rbtree-list-tests (Depends-on): Add progname.
72424         * tests/test-rbtree_list.c: Include progname.h.
72425         (main): Call set_program_name.
72426
72427         * modules/linked-list-tests (Depends-on): Add progname.
72428         * tests/test-linked_list.c: Include progname.h.
72429         (main): Call set_program_name.
72430
72431 2007-03-03  Bruno Haible  <bruno@clisp.org>
72432
72433         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72434         All uses of __restrict changed to _Restrict_.
72435         * lib/glob_.h (__restrict): Remove macro.
72436
72437 2007-03-02  Bruno Haible  <bruno@clisp.org>
72438
72439         * modules/gettext (configure.ac): Require gettext infrastructure
72440         from version 0.16.1.
72441
72442 2007-03-02  Bruno Haible  <bruno@clisp.org>
72443
72444         * modules/linkedhash-list-tests (Depends-on): Add progname.
72445         * tests/test-linkedhash_list.c: Include progname.h.
72446         (main): Call set_program_name.
72447
72448         * modules/carray-list-tests (Depends-on): Add progname.
72449         * tests/test-carray_list.c: Include progname.h.
72450         (main): Call set_program_name.
72451
72452         * modules/avltreehash-list-tests (Depends-on): Add progname.
72453         * tests/test-avltreehash_list.c: Include progname.h.
72454         (main): Call set_program_name.
72455
72456         * modules/avltree-oset-tests (Depends-on): Add progname.
72457         * tests/test-avltree_oset.c: Include progname.h.
72458         (main): Call set_program_name.
72459
72460         * modules/avltree-list-tests (Depends-on): Add progname.
72461         * tests/test-avltree_list.c: Include progname.h.
72462         (main): Call set_program_name.
72463
72464         * modules/array-oset-tests (Depends-on): Add progname.
72465         * tests/test-array_oset.c: Include progname.h.
72466         (main): Call set_program_name.
72467
72468         * modules/array-list-tests (Depends-on): Add progname.
72469         * tests/test-array_list.c: Include progname.h.
72470         (main): Call set_program_name.
72471
72472         * modules/argp-tests (Depends-on): Add progname.
72473         * tests/test-argp.c: Include argp.h first. Include progname.h.
72474         (main): Call set_program_name.
72475
72476 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72477
72478         * doc/gnulib-tool.texi (Initial import): Reword description of
72479         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72480         limited effect even if defined after the first system include.
72481
72482 2007-03-01  Bruno Haible  <bruno@clisp.org>
72483
72484         * build-aux/config.libpath: Update to libtool-1.5.22.
72485         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72486
72487 2007-03-01  Bruno Haible  <bruno@clisp.org>
72488
72489         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72490         foo_CFLAGS.
72491         Reported by Ralf Wildenhues.
72492
72493 2007-03-01  Bruno Haible  <bruno@clisp.org>
72494
72495         * build-aux/install-reloc: Remove object files left over by some
72496         compilers.
72497         Reported by Ralf Wildenhues.
72498
72499 2007-03-01  Bruno Haible  <bruno@clisp.org>
72500
72501         * build-aux/install-reloc: Break long lines.
72502
72503 2007-03-01  Bruno Haible  <bruno@clisp.org>
72504
72505         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72506         Reported by Ralf Wildenhues.
72507
72508 2007-03-01  Bruno Haible  <bruno@clisp.org>
72509
72510         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72511         include ordering constraints.
72512
72513 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72514
72515         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72516         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72517         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72518         as another example.
72519         * lib/time_.h: Fix misspelling.
72520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72521         Require gl_HEADER_TIME_H_DEFAULTS.
72522         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72523         * m4/time_r.m4 (gl_TIME_R): Likewise.
72524         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72525
72526 2007-03-01  Bruno Haible  <bruno@clisp.org>
72527
72528         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72529         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72530
72531 2007-03-01  Jim Meyering  <jim@meyering.net>
72532
72533         * modules/xreadlink (Maintainer): Add my name.
72534         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72535
72536 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72537             Bruno Haible  <bruno@clisp.org>
72538
72539         * build-aux/install-reloc: Compile also c-ctype.c.
72540         * build-aux/relocatable.sh.in: New file.
72541         * doc/relocatable.texi: New file.
72542         * doc/relocatable-maint.texi: New file.
72543         * doc/gnulib.texi: Include relocatable-maint.texi.
72544         * lib/progreloc.c: Include unistd.h unconditionally.
72545         * lib/relocwrapper.c: Include unistd.h unconditionally.
72546         Include c-ctype.h.
72547         (add_dotbin): Use c_tolower.
72548         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72549         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72550         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72551         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72552         to m4/relocatable-lib.m4.
72553         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72554         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72555         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72556         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72557         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72558         * modules/relocatable: New file.
72559         * modules/relocatable-lib: New file.
72560         * modules/relocatable-script: New file.
72561
72562 2007-02-28  Bruno Haible  <bruno@clisp.org>
72563
72564         Import --enable-relocatable infrastructure.
72565         * build-aux/config.libpath: New file, from GNU gettext.
72566         * build-aux/install-reloc: New file, from GNU gettext.
72567         * build-aux/reloc-ldflags: New file, from GNU gettext.
72568         * lib/relocatable.h: New file, from GNU gettext.
72569         * lib/relocatable.c: New file, from GNU gettext.
72570         * lib/relocwrapper.c: New file, from GNU gettext.
72571         * m4/relocatable.m4: New file, from GNU gettext.
72572
72573 2007-02-28  Bruno Haible  <bruno@clisp.org>
72574
72575         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72576
72577         * modules/xreadlink: New file, from GNU gettext with modifications.
72578         * lib/xreadlink.c: New file, from GNU gettext.
72579         * lib/xreadlink.h: Add comments.
72580         (xreadlink): New declaration.
72581
72582         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72583         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72584         lib/xreadlink-with-size.c.
72585         (configure.ac): Remove gl_XREADLINK invocation.
72586         (Makefile.am): Augment lib_SOURCES.
72587         * m4/xreadlink.m4: Remove file.
72588         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72589         (xreadlink_with_size): Renamed from xreadink.
72590         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72591         * modules/canonicalize (Depends-on): Replace xreadlink with
72592         xreadlink-with-size.
72593         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72594
72595 2007-02-25  Jim Meyering  <jim@meyering.net>
72596
72597         * build-aux/announce-gen: When complaining about excess arguments,
72598         list them.
72599
72600 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72601
72602         * README: Document signed integer overflow situation more
72603         accurately.
72604
72605 2007-02-25  Bruno Haible  <bruno@clisp.org>
72606
72607         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72608         'a' or 'A' conversion.
72609
72610 2007-02-25  Bruno Haible  <bruno@clisp.org>
72611
72612         * modules/filename: Renamed from modules/pathname.
72613         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72614         lib/concatpath.c with lib/concat-filename.c.
72615         (Makefile.am): Update.
72616         (Include): Replace pathname.h with filename.h.
72617         * lib/filename.h: Renamed from lib/pathname.h.
72618         (concatenated_filename): Renamed from concatenated_pathname.
72619         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72620         (concatenated_filename): Renamed from concatenated_pathname.
72621         * lib/findprog.c: Include filename.h instead of pathname.h.
72622         (find_in_path): Update.
72623         * lib/javacomp.c: Include filename.h instead of pathname.h.
72624         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72625         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72626         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72627         is_oldgcj_14_13_usable, is_javac_usable): Update.
72628         * lib/javaexec.c: Include filename.h instead of pathname.h.
72629         (execute_java_class): Update.
72630         * modules/findprog: Update.
72631         * modules/javacomp: Update.
72632         * modules/javaexec: Update.
72633         * MODULES.html.sh (File system functions): Add 'filename', remove
72634         'pathname'.
72635
72636 2007-02-25  Bruno Haible  <bruno@clisp.org>
72637
72638         * modules/printf-frexpl-tests: New file.
72639         * tests/test-printf-frexpl.c: New file.
72640
72641         * modules/printf-frexpl: New file.
72642         * lib/printf-frexpl.h: New file.
72643         * lib/printf-frexpl.c: New file.
72644         * m4/printf-frexpl.m4: New file.
72645
72646 2007-02-25  Bruno Haible  <bruno@clisp.org>
72647
72648         * modules/printf-frexp-tests: New file.
72649         * tests/test-printf-frexp.c: New file.
72650
72651         * modules/printf-frexp: New file.
72652         * lib/printf-frexp.h: New file.
72653         * lib/printf-frexp.c: New file.
72654         * m4/printf-frexp.m4: New file.
72655
72656 2007-02-25  Bruno Haible  <bruno@clisp.org>
72657
72658         Assume automake >= 1.10 for the tests.
72659         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72660         * modules/arctwo-tests: Likewise.
72661         * modules/argp-tests: Likewise.
72662         * modules/avltree-list-tests: Likewise.
72663         * modules/avltree-oset-tests: Likewise.
72664         * modules/avltreehash-list-tests: Likewise.
72665         * modules/carray-list-tests: Likewise.
72666         * modules/crc-tests: Likewise.
72667         * modules/des-tests: Likewise.
72668         * modules/gc-arcfour-tests: Likewise.
72669         * modules/gc-arctwo-tests: Likewise.
72670         * modules/gc-des-tests: Likewise.
72671         * modules/gc-hmac-md5-tests: Likewise.
72672         * modules/gc-hmac-sha1-tests: Likewise.
72673         * modules/gc-md2-tests: Likewise.
72674         * modules/gc-md4-tests: Likewise.
72675         * modules/gc-md5-tests: Likewise.
72676         * modules/gc-pbkdf2-sha1-tests: Likewise.
72677         * modules/gc-rijndael-tests: Likewise.
72678         * modules/gc-sha1-tests: Likewise.
72679         * modules/gc-tests: Likewise.
72680         * modules/getaddrinfo-tests: Likewise.
72681         * modules/hmac-md5-tests: Likewise.
72682         * modules/hmac-sha1-tests: Likewise.
72683         * modules/linked-list-tests: Likewise.
72684         * modules/linkedhash-list-tests: Likewise.
72685         * modules/lock-tests: Likewise.
72686         * modules/md2-tests: Likewise.
72687         * modules/md4-tests: Likewise.
72688         * modules/md5-tests: Likewise.
72689         * modules/rbtree-list-tests: Likewise.
72690         * modules/rbtree-oset-tests: Likewise.
72691         * modules/rbtreehash-list-tests: Likewise.
72692         * modules/read-file-tests: Likewise.
72693         * modules/rijndael-tests: Likewise.
72694         * modules/stdint-tests: Likewise.
72695         * modules/tls-tests: Likewise.
72696
72697 2007-02-24  Bruno Haible  <bruno@clisp.org>
72698
72699         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72700         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72701         function; instead check whether isnan with a double argument links.
72702         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72703         function; instead check whether isnan with a 'long double' argument
72704         links.
72705         Reported by Eric Blake <ebb9@byu.net>.
72706
72707 2007-02-24  Bruno Haible  <bruno@clisp.org>
72708
72709         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72710         defined.
72711         * lib/isnanl.c: Remove all code. Just include isnan.c.
72712         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72713
72714 2007-02-25  Jim Meyering  <jim@meyering.net>
72715
72716         Avoid conflicting types for 'unsetenv' on FreeBSD.
72717         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72718         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72719         in stdlib.h.
72720
72721 2007-02-24  Bruno Haible  <bruno@clisp.org>
72722
72723         * modules/isnanl-nolibm-tests: New file.
72724         * tests/test-isnanl.c: New file.
72725
72726         * modules/isnanl-nolibm: New file.
72727         * lib/isnanl.h: New file.
72728         * lib/isnanl.c: New file.
72729         * m4/isnanl.m4: New file.
72730
72731 2007-02-24  Bruno Haible  <bruno@clisp.org>
72732
72733         * modules/isnan-nolibm-tests: New file.
72734         * tests/test-isnan.c: New file.
72735
72736         * modules/isnan-nolibm: New file.
72737         * lib/isnan.h: New file.
72738         * lib/isnan.c: New file.
72739         * m4/isnan.m4: New file.
72740
72741 2007-02-24  Bruno Haible  <bruno@clisp.org>
72742
72743         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72744         assume that an exponent fits in 20 bits.
72745
72746 2007-02-24  Jim Meyering  <jim@meyering.net>
72747
72748         * m4/regex.m4: Update the description of the configure-time option,
72749         --without-included-regex, to state accurately what the defaults are,
72750         and perhaps to give people an idea why using this option is risky.
72751
72752 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72753
72754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72755         loops on small arguments.  This attempts to avoid the problem
72756         Bruno Haible reported for AIX 4.3.2 in
72757         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72758
72759 2007-02-23  Bruno Haible  <bruno@clisp.org>
72760
72761         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72762         Needed for help2man.
72763
72764 2007-02-23  Karl Berry  <karl@gnu.org>
72765
72766         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72767         exists, foo.h should be cvs-ignored, not committed.
72768
72769 2007-02-23  Eric Blake  <ebb9@byu.net>
72770
72771         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72772         * lib/stat-time.h (includes): Likewise.
72773         * lib/utimecmp.c (includes): Likewise.
72774         * lib/utimens.h (includes): Likewise.
72775         * lib/getdate.y (includes): Also include "timespec.h" for use
72776         internal to the module.
72777         * modules/utimens (Depends-on): Revert yesterday's patch.
72778         * modules/nanosleep (Depends-on): Add missing dependency.
72779
72780 2007-02-22  Bruno Haible  <bruno@clisp.org>
72781
72782         * lib/glob.c: Don't include getlogin_r.h.
72783
72784 2007-02-22  Jim Meyering  <jim@meyering.net>
72785
72786         * modules/utimens (Depends-on): Add timespec, required for
72787         utimens.h's inclusion of timespec.h.
72788
72789 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72790
72791         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72792         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72793         Schwab in
72794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72795         I'll try to think of a better way to fix the Solaris problem.
72796
72797         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72798         like glibc; on Solaris 10, it fails with errno == EINVAL.
72799         POSIX says the behavior is unspecified if the first argument is NULL,
72800         so play it safe and never pass NULL to the system getcwd.
72801
72802 2007-02-21  Jim Meyering  <jim@meyering.net>
72803
72804         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72805         of gettimeofday.  It would conflict with the one now always
72806         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72807         an IRIX 6.5 build failure.
72808
72809 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72810
72811         Minor fixups to port to Solaris 10 with Sun C 5.8.
72812         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72813         * modules/getcwd (Depends-on): Add dirfd.
72814         * lib/putenv.c (putenv): #undef it.
72815         (rpl_putenv): New decl.
72816         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72817
72818 2007-02-20  Bruno Haible  <bruno@clisp.org>
72819
72820         * modules/stdio-tests: New file.
72821         * tests/test-stdio.c: New file.
72822
72823         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72824         (Depends-on): Add stdio.
72825         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72826         (Include): Use <stdio.h> instead of vsnprintf.h.
72827         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72828         HAVE_DECL_VSNPRINTF.
72829         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72830
72831         * modules/snprintf (Files): Remove lib/snprintf.h.
72832         (Depends-on): Add stdio.
72833         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72834         (Include): Use <stdio.h> instead of snprintf.h.
72835         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72836         HAVE_DECL_SNPRINTF.
72837         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72838         * lib/getaddrinfo.c: Likewise.
72839
72840         * modules/stdio: New file.
72841         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72842         * lib/snprintf.h: Remove file.
72843         * lib/vsnprintf.h: Remove file.
72844         * lib/.cppi-disable: Remove snprintf.h.
72845         * m4/stdio_h.m4: New file.
72846         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72847
72848 2007-02-20  Jim Meyering  <jim@meyering.net>
72849
72850         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72851         used by e.g., mingw.  From Bruno Haible.
72852
72853 2007-02-19  Bruno Haible  <bruno@clisp.org>
72854
72855         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72856         warnings.
72857         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72858
72859 2007-02-19  Bruno Haible  <bruno@clisp.org>
72860
72861         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72862         from mingw users.
72863
72864 2007-02-19  Bruno Haible  <bruno@clisp.org>
72865
72866         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72867         warnings.
72868         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72869
72870 2007-02-19  Jim Meyering  <jim@meyering.net>
72871
72872         Don't use FD after a successful "fdopendir (fd)".
72873         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72874         Reset it by calling dirfd on the just-obtained DIR*.
72875
72876         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72877         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72878
72879 2007-02-18  Bruno Haible  <bruno@clisp.org>
72880
72881         * lib/readlink.c: Include <unistd.h>.
72882         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72883         HAVE_READLINK.
72884         * modules/readlink (Depends-on): Add unistd.
72885         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72886         (Include): Add <unistd.h>.
72887
72888         * lib/getlogin_r.h: Remove file.
72889         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72890         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72891         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72892         HAVE_DECL_GETLOGIN_R.
72893         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72894         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72895         (Include): Use <unistd.h> instead of getlogin_r.h.
72896
72897         * lib/getcwd.h: Remove file.
72898         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72899         * lib/xgetcwd.c: Likewise.
72900         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72901         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72902         * modules/getcwd (Files): Remove lib/getcwd.h.
72903         (Depends-on): Add unistd.
72904         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72905         (Include): Use <unistd.h> instad of getcwd.h.
72906
72907         * lib/ftruncate.c: Include <unistd.h> first.
72908         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72909         Set HAVE_FTRUNCATE.
72910         * modules/ftruncate (Depends-on): Add unistd.
72911         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72912
72913         * lib/fchdir.c: Include <unistd.h> first.
72914         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72915         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72916         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72917         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72918         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72919
72920         * lib/dup2.c: Include <unistd.h> first.
72921         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72922         HAVE_DUP2.
72923         * modules/dup2 (Depends-on): Add unistd.
72924         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72925
72926         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72927         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72928         REPLACE_CHOWN. Don't define chown as a macro here.
72929         * modules/chown (Depends-on): Add unistd.
72930         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72931
72932         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72933         Add definition for GL_LINK_WARNING.
72934         (chown, dup2): New declarations.
72935         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72936         link warning.
72937         (ftruncate): New declaration.
72938         (getcwd): New declaration, taken from old getcwd.h.
72939         (getlogin_r): New declaration, taken from old getlogin_r.h.
72940         (readlink): New declaration.
72941         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72942         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72943         (gl_PREREQ_UNISTD): Remove macro.
72944         (gl_UNISTD_MODULE_INDICATOR): New macro.
72945         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72946         many new variables. Don't set UNISTD_H.
72947         * modules/unistd (Description): Change.
72948         (Depends-on): Add link-warning.
72949         (configure.ac): Update.
72950         (Makefile.am): Create unistd.h always. Substitute many new variables
72951         into it.
72952
72953 2007-02-18  Bruno Haible  <bruno@clisp.org>
72954
72955         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72956         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72957         HAVE_GETSUBOPT.
72958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72959         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72960         * lib/getsubopt.h: Remove file.
72961         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72962         (Depends-on): Add stdlib.
72963         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72964         (Includes): Use <stdlib.h> instead of getsubopt.h.
72965         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72966         Set HAVE_GETSUBOPT.
72967         * lib/getsubopt.c: Don't include getsubopt.h.
72968
72969 2007-02-18  Bruno Haible  <bruno@clisp.org>
72970
72971         * modules/fchdir (Depends-on): Add dup2.
72972
72973 2007-02-18  Bruno Haible  <bruno@clisp.org>
72974
72975         * lib/stdlib_.h: Handle glibc's special invocation convention
72976         specially.
72977
72978 2007-02-18  Bruno Haible  <bruno@clisp.org>
72979
72980         * modules/stdlib-tests: New file.
72981         * tests/test-stdlib.c: New file.
72982
72983         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72984         (Depends-on): Add stdlib.
72985         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72986         (Includes): Use <stdlib.h> instead of mkstemp.h.
72987         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72988         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72989         * lib/mkstemp.c: Don't include mkstemp.h.
72990         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72991         * lib/stdlib--.h: Don't include mkstemp.h.
72992
72993         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72994         (Depends-on): Add stdlib.
72995         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72996         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72997         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72998         HAVE_MKDTEMP.
72999         * lib/mkdtemp.c: Don't include mkdtemp.h.
73000         * lib/clean-temp.c: Don't include mkdtemp.h.
73001
73002         * modules/exit (Files): Remove lib/exit.h.
73003         (Depends-on): Add stdlib.
73004         (Makefile.am): Remove lib_SOURCES.
73005         (Include): Use <stdlib.h> instead of exit.h.
73006         * lib/argmatch.c: Don't include exit.h.
73007         * lib/execute.c: Likewise.
73008         * lib/pagealign_alloc.c: Likewise.
73009         * lib/pipe.c: Likewise.
73010         * lib/wait-process.c: Likewise.
73011         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73012         * lib/exitfail.c: Likewise.
73013         * lib/savewd.c: Likewise.
73014         * lib/xsetenv.c: Likewise.
73015
73016         * modules/stdlib: New file.
73017         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73018         and extra comments about mkstemp().
73019         * lib/exit.h: Remove file.
73020         * lib/mkdtemp.h: Remove file.
73021         * lib/mkstemp.h: Remove file.
73022         * m4/stdlib_h.m4: New file.
73023         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73024
73025 2007-02-18  Bruno Haible  <bruno@clisp.org>
73026
73027         * modules/math-tests: New file.
73028         * tests/test-math.c: New file.
73029
73030         * modules/math: New file.
73031         * modules/mathl (Files): Remove lib/mathl.h.
73032         (Depends-on): Add math.
73033         (Makefile.am): Don't mention mathl.h.
73034         (Include): Use <math.h> instead of mathl.h.
73035         * lib/math_.h: New file.
73036         * lib/mathl.h: Remove file.
73037         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73038         mathl.h.
73039         * lib/asinl.c: Likewise.
73040         * lib/atanl.c: Likewise.
73041         * lib/ceill.c: Likewise.
73042         * lib/cosl.c: Likewise.
73043         * lib/expl.c: Likewise.
73044         * lib/floorl.c: Likewise.
73045         * lib/frexpl.c: Likewise.
73046         * lib/ldexpl.c: Likewise.
73047         * lib/logl.c: Likewise.
73048         * lib/sincosl.c: Likewise.
73049         * lib/sinl.c: Likewise.
73050         * lib/sqrtl.c: Likewise.
73051         * lib/tanl.c: Likewise.
73052         * lib/trigl.c: Likewise.
73053         * m4/math_h.m4: New file.
73054         * MODULES.html.sh (Mathematics): Add math.
73055
73056 2007-02-17  Bruno Haible  <bruno@clisp.org>
73057
73058         * modules/wctype-tests: New file.
73059         * tests/test-wctype.c: New file.
73060
73061         * modules/wchar-tests: New file.
73062         * tests/test-wchar.c: New file.
73063
73064         * modules/unistd-tests: New file.
73065         * tests/test-unistd.c: New file.
73066
73067         * modules/time-tests: New file.
73068         * tests/test-time.c: New file.
73069
73070         * modules/sysexits-tests: New file.
73071         * tests/test-sysexits.c: New file.
73072
73073         * modules/sys_time-tests: New file.
73074         * tests/test-sys_time.c: New file.
73075
73076         * modules/sys_stat-tests: New file.
73077         * tests/test-sys_stat.c: New file.
73078
73079         * modules/sys_socket-tests: New file.
73080         * tests/test-sys_socket.c: New file.
73081
73082         * modules/sys_select-tests: New file.
73083         * tests/test-sys_select.c: New file.
73084
73085         * modules/string-tests: New file.
73086         * tests/test-string.c: New file.
73087
73088         * modules/stdbool-tests: New file.
73089         * tests/test-stdbool.c: New file.
73090
73091         * modules/netinet_in-tests: New file.
73092         * tests/test-netinet_in.c: New file.
73093
73094         * modules/inttypes-tests: New file.
73095         * tests/test-inttypes.c: New file.
73096
73097         * modules/fcntl-tests: New file.
73098         * tests/test-fcntl.c: New file.
73099
73100         * modules/byteswap-tests: New file.
73101         * tests/test-byteswap.c: New file.
73102
73103         * modules/arpa_inet-tests: New file.
73104         * tests/test-arpa_inet.c: New file.
73105
73106 2007-02-17  Bruno Haible  <bruno@clisp.org>
73107
73108         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73109         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73110         if the corresponding module is not enabled. Emit link warnings if
73111         the function is used nevertheless.
73112         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73113         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73114         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73115         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73116         * modules/inttypes (Depends-on): Add link-warning.
73117         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73118         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73119         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73120         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73121         * modules/imaxdiv (configure.ac): Likewise.
73122         * modules/strtoimax (configure.ac): Likewise.
73123         * modules/strtoumax (configure.ac): Likewise.
73124
73125 2007-02-17  Bruno Haible  <bruno@clisp.org>
73126
73127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73128         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73129         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73130         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73131
73132 2007-02-17  Bruno Haible  <bruno@clisp.org>
73133
73134         * modules/link-warning: New file.
73135         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73136         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73137         * modules/string (Depends-on): Add link-warning.
73138         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73139         string.h.
73140         * MODULES.html.sh (Support for building libraries and executables): Add
73141         link-warning.
73142
73143 2007-02-17  Bruno Haible  <bruno@clisp.org>
73144
73145         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73146         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73147         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73148         long lines.
73149
73150 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73151             Bruno Haible  <bruno@clisp.org>
73152
73153         * modules/tmpfile: New file.
73154         * lib/tmpfile.c: New file.
73155         * m4/tmpfile.m4: New file.
73156         * MODULES.html.sh (func_all_modules): New section "Input/output".
73157
73158 2007-02-15  Bruno Haible  <bruno@clisp.org>
73159
73160         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73161         (supports_delete_on_close): New function.
73162         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73163
73164 2007-02-14  Bruno Haible  <bruno@clisp.org>
73165
73166         * modules/mbspcasecmp-tests: New file.
73167         * tests/test-mbspcasecmp.sh: New file.
73168         * tests/test-mbspcasecmp.c: New file.
73169
73170         New module mbspcasecmp.
73171         * modules/mbspcasecmp: New file.
73172         * lib/mbspcasecmp.c: New file.
73173         * lib/string_.h (strncasecmp): Change warning message.
73174         (mbspcasecmp): New declaration.
73175         * m4/mbspcasecmp.m4: New file.
73176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73177         GNULIB_MBSPCASECMP.
73178         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73179         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73180
73181 2007-02-14  Bruno Haible  <bruno@clisp.org>
73182
73183         * modules/mbsncasecmp-tests: New file.
73184         * tests/test-mbsncasecmp.sh: New file.
73185         * tests/test-mbsncasecmp.c: New file.
73186
73187         New module mbsncasecmp.
73188         * modules/mbsncasecmp: New file.
73189         * lib/mbsncasecmp.c: New file.
73190         * lib/string_.h (mbsncasecmp): New declaration.
73191         * m4/mbsncasecmp.m4: New file.
73192         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73193         GNULIB_MBSNCASECMP.
73194         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73195         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73196
73197 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73200         Verify that it doesn't overlap with our flags.
73201         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73202         do not have the desired effect in multibyte locales; instead, use
73203         mbscasecmp.
73204         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73205         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73206         we don't require GNU fnmatch ourselves (if our users require it, they
73207         should do so explicitly).
73208
73209         Fix regex code so it doesn't rely on strcasecmp.
73210         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73211         Otherwise, include gnulib's langinfo.h.
73212         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73213         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73214         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73215         * modules/regex (FILES): Remove m4/codeset.m4.
73216         (Depends-on): Add localcharset.  Remove strcase.
73217
73218 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73219
73220         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73221         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73222
73223 2007-02-13  Bruno Haible  <bruno@clisp.org>
73224
73225         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73227
73228 2007-02-12  Bruno Haible  <bruno@clisp.org>
73229
73230         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73231         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73232         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73233         time warning rather than a link error.
73234
73235 2007-02-12  Bruno Haible  <bruno@clisp.org>
73236
73237         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73238         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73239         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73240
73241 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73242
73243         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73244         args, not 2.
73245
73246 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         New module 'time', so that apps can include <time.h> as per
73249         POSIX and GNU instead of separate include files like time_r.h
73250         and timegm.h.  This implementation tries out a simpler approach
73251         for replacing decls in standard include files (as compared to
73252         the string module), somewhat as an experiment.
73253
73254         * config/srclist.txt: Comment out mktime.c for now.
73255         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73256         since it doesn't apply any more.  Use generic wording instead.
73257         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73258         'time'.
73259         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73260         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73261         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73262         Don't include <sys/types.h>; no longer needed since we assume C89.
73263         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73264         * lib/strftime.c: Likewise.
73265         * lib/time_r.c: Likewise.
73266         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73267         * lib/nanosleep.c: Include <time.h> first, to check interface.
73268         * lib/strptime.c: Likewise.
73269         * lib/time_r.c: Likewise.
73270         * lib/timegm.c: Likewise.
73271         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73272         needed.
73273         * lib/timegm.c: Don't include timegm.h; no longer needed.
73274         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73275         time.h now handles any problems in that area.
73276         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73277         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73278         that time.h defines struct timespec.
73279         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73280         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73281         handles that.
73282         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73283         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73284         needed.  Set REPLACE_LOCALTIME.
73285         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73286         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73287         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73288         nanosleep; time_h.m4 now does that.  Don't require
73289         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73290         module handles this now.
73291         * modules/getdate (Depends-on): Remove timespec.  Add time.
73292         * modules/nanosleep (Depends-on): Likewise.
73293         * modules/stat-time (Depends-on): Likewise.
73294         * modules/nanosleep (Include): Include time.h, not timespec.h.
73295         * modules/strptime (Files): Remove lib/strptime.h.
73296         (Depends-on): Add extensions, time.
73297         (Include): Include time.h, not strptime.h.
73298         * modules/time_r (Files): Remove lib/time_r.h.
73299         (Depends-on): Add time.
73300         (Include): Include time.h, not time_r.h.
73301         * modules/timegm: Likewise.
73302         * modules/timespec (Description): Now does timespec-related decls
73303         of our own, instead of struct timespec itself.
73304         (Depends-on): Add time; remove extensions.
73305         (Maintainer): Add self.
73306         * modules/utimecmp (Depends-on): Add time; remove timespec.
73307         * modules/utimens (Depends-on): Likewise.
73308         * modules/xnanosleep (Depends-on): Likewise.
73309
73310 2007-02-11  Bruno Haible  <bruno@clisp.org>
73311
73312         * lib/c-strstr.c: Include allocsa.h.
73313         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73314         * lib/c-strcasestr.c: Include allocsa.h.
73315         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73316         * lib/strcasestr.c: Include allocsa.h.
73317         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73318         * lib/mbsstr.c: Include allocsa.h.
73319         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73320         allocsa/freesa instead of malloc/free.
73321         * lib/mbscasestr.c: Include allocsa.h.
73322         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73323         allocsa/freesa instead of malloc/free.
73324         * modules/c-strstr (Depends-on): Add allocsa.
73325         * modules/c-strcasestr (Depends-on): Likewise.
73326         * modules/strcasestr (Depends-on): Likewise.
73327         * modules/mbsstr (Depends-on): Likewise.
73328         * modules/mbscasestr (Depends-on): Likewise.
73329
73330 2007-02-11  Bruno Haible  <bruno@clisp.org>
73331
73332         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73333
73334         * modules/mbsspn-tests: New file.
73335         * tests/test-mbsspn.sh: New file.
73336         * tests/test-mbsspn.c: New file.
73337
73338 2007-02-11  Bruno Haible  <bruno@clisp.org>
73339
73340         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73341
73342         * modules/mbspbrk-tests: New file.
73343         * tests/test-mbspbrk.sh: New file.
73344         * tests/test-mbspbrk.c: New file.
73345
73346 2007-02-11  Bruno Haible  <bruno@clisp.org>
73347
73348         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73349         unneeded cast.
73350
73351         * modules/mbscspn-tests: New file.
73352         * tests/test-mbscspn.sh: New file.
73353         * tests/test-mbscspn.c: New file.
73354
73355 2007-02-11  Bruno Haible  <bruno@clisp.org>
73356
73357         * modules/mbscasecmp-tests: New file.
73358         * tests/test-mbscasecmp.sh: New file.
73359         * tests/test-mbscasecmp.c: New file.
73360
73361 2007-02-11  Bruno Haible  <bruno@clisp.org>
73362
73363         Ensure O(n) worst-case complexity of mbscasestr.
73364         * lib/mbscasestr.c: Include stdbool.h.
73365         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73366         functions.
73367         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73368         the bookkeeping indicates that it's worth it.
73369         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73370
73371         * modules/mbscasestr-tests: New file.
73372         * tests/test-mbscasestr1.c: New file.
73373         * tests/test-mbscasestr2.sh: New file.
73374         * tests/test-mbscasestr2.c: New file.
73375         * tests/test-mbscasestr3.sh: New file.
73376         * tests/test-mbscasestr3.c: New file.
73377         * tests/test-mbscasestr4.sh: New file.
73378         * tests/test-mbscasestr4.c: New file.
73379         * m4/locale-tr.m4: New file.
73380
73381 2007-02-11  Bruno Haible  <bruno@clisp.org>
73382
73383         Ensure O(n) worst-case complexity of mbsstr.
73384         * lib/mbsstr.c: Include stdbool.h.
73385         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73386         functions.
73387         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73388         bookkeeping indicates that it's worth it.
73389         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73390
73391         * modules/mbsstr-tests: New file.
73392         * tests/test-mbsstr1.c: New file.
73393         * tests/test-mbsstr2.sh: New file.
73394         * tests/test-mbsstr2.c: New file.
73395         * tests/test-mbsstr3.sh: New file.
73396         * tests/test-mbsstr3.c: New file.
73397         * m4/locale-fr.m4: New file.
73398
73399 2007-02-11  Bruno Haible  <bruno@clisp.org>
73400
73401         * lib/mbsrchr.c (mbsrchr): Fix bug.
73402
73403         * modules/mbsrchr-tests: New file.
73404         * tests/test-mbsrchr.sh: New file.
73405         * tests/test-mbsrchr.c: New file.
73406
73407 2007-02-11  Bruno Haible  <bruno@clisp.org>
73408
73409         * lib/mbschr.c (mbschr): Fix bug.
73410
73411         * modules/mbschr-tests: New file.
73412         * tests/test-mbschr.sh: New file.
73413         * tests/test-mbschr.c: New file.
73414         * m4/locale-zh.m4: New file.
73415
73416 2007-02-11  Bruno Haible  <bruno@clisp.org>
73417
73418         Support for copying multibyte string iterators.
73419         * lib/mbiter.h: Include <string.h>.
73420         (mbiter_multi_copy): New function.
73421         (mbi_copy): New macro.
73422         * lib/mbuiter.h: Include <string.h>.
73423         (mbuiter_multi_copy): New function.
73424         (mbui_copy): New macro.
73425
73426 2007-02-11  Bruno Haible  <bruno@clisp.org>
73427
73428         New module mbslen.
73429         * modules/mbslen: New file.
73430         * lib/mbslen.c: New file.
73431         * lib/string_.h (mbslen): New declaration.
73432         * m4/mbslen.m4: New file.
73433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73434         GNULIB_MBSLEN.
73435         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73436         * MODULES.html.sh (Internationalization functions): Add mbslen.
73437
73438 2007-02-11  Bruno Haible  <bruno@clisp.org>
73439
73440         Ensure O(n) worst-case complexity of strcasestr substitute.
73441         * lib/strcasestr.c: Include stdbool.h.
73442         (knuth_morris_pratt): New function.
73443         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73444         bookkeeping indicates that it's worth it.
73445         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73446
73447         * modules/strcasestr-tests: New file.
73448         * tests/test-strcasestr.c: New file.
73449
73450 2007-02-11  Bruno Haible  <bruno@clisp.org>
73451
73452         Ensure O(n) worst-case complexity of c_strcasestr.
73453         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73454         (knuth_morris_pratt): New function.
73455         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73456         the bookkeeping indicates that it's worth it.
73457         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73458
73459         * modules/c-strcasestr-tests: New file.
73460         * tests/test-c-strcasestr.c: New file.
73461
73462 2007-02-11  Bruno Haible  <bruno@clisp.org>
73463
73464         Ensure O(n) worst-case complexity of c_strstr.
73465         * lib/c-strstr.c: Include stdbool.h, string.h.
73466         (knuth_morris_pratt): New function.
73467         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73468         bookkeeping indicates that it's worth it.
73469         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73470
73471         * lib/c-strstr.c: Complete rewrite for maintainability.
73472
73473         * modules/c-strstr-tests: New file.
73474         * tests/test-c-strstr.c: New file.
73475
73476 2007-02-11  Bruno Haible  <bruno@clisp.org>
73477
73478         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73479         5.2.1 and earlier, whereby \055 was treated just like the range
73480         delimiter '-'.
73481         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73482
73483 2007-02-08  Bruno Haible  <bruno@clisp.org>
73484
73485         * modules/regex (Depends-on): Add stdbool.
73486         Reported by Dalibor Topic <robilad@kaffe.org>.
73487
73488 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73489
73490         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73491         Prefer returning from main to exiting from it.
73492         Remove unnecessary parens after sizeof.
73493
73494 2007-02-05  Bruno Haible  <bruno@clisp.org>
73495
73496         New module mbssep.
73497         * modules/mbssep: New file.
73498         * lib/mbssep.c: New file.
73499         * lib/string_.h (strsep): Add a conditional link warning.
73500         (mbssep): New declaration.
73501         * m4/mbssep.m4: New file.
73502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73503         GNULIB_MBSSEP.
73504         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73505         * MODULES.html.sh (Internationalization functions): Add mbssep.
73506
73507 2007-02-05  Bruno Haible  <bruno@clisp.org>
73508
73509         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73510         Optimize search in case of 1 delimiter.
73511
73512 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73513
73514         * lib/acl.h: Include sys/types.h before sys/acl.h.
73515
73516 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73517
73518         Merge upstream fix for glibc bugzilla #3957:
73519
73520         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73521
73522         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73523         bit for RE_HAT_LISTS_NOT_NEWLINE.
73524         (build_charclass_op): Remove bogus comment.
73525
73526 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73527
73528         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73529
73530 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73533         * lib/memmem.c [!defined _LIBC]: Include config.h.
73534
73535 2007-02-04  Bruno Haible  <bruno@clisp.org>
73536
73537         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73538         warning message.
73539
73540 2007-02-04  Bruno Haible  <bruno@clisp.org>
73541
73542         New module mbstok_r.
73543         * modules/mbstok_r: New file.
73544         * lib/mbstok_r.c: New file.
73545         * lib/string_.h (strtok_r): Change argument names to match the
73546         comments. Add a conditional link warning.
73547         (mbstok_r): New declaration.
73548         * m4/mbstok_r.m4: New file.
73549         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73550         GNULIB_MBSTOK_R.
73551         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73552         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73553
73554 2007-02-04  Bruno Haible  <bruno@clisp.org>
73555
73556         New module mbsspn.
73557         * modules/mbsspn: New file.
73558         * lib/mbsspn.c: New file.
73559         * lib/string_.h (strspn): Add a conditional link warning.
73560         (mbsspn): New declaration.
73561         * m4/mbsspn.m4: New file.
73562         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73563         GNULIB_MBSSPN.
73564         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73565         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73566
73567 2007-02-04  Bruno Haible  <bruno@clisp.org>
73568
73569         New module mbspbrk.
73570         * modules/mbspbrk: New file.
73571         * lib/mbspbrk.c: New file.
73572         * lib/string_.h (strpbrk): Add a conditional link warning.
73573         (mbspbrk): New declaration.
73574         * m4/mbspbrk.m4: New file.
73575         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73576         GNULIB_MBSPBRK.
73577         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73578         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73579
73580 2007-02-04  Bruno Haible  <bruno@clisp.org>
73581
73582         New module mbscspn.
73583         * modules/mbscspn: New file.
73584         * lib/mbscspn.c: New file.
73585         * lib/string_.h (strcspn): Add a conditional link warning.
73586         (mbscspn): New declaration.
73587         * m4/mbscspn.m4: New file.
73588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73589         GNULIB_MBSCSPN.
73590         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73591         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73592
73593 2007-02-04  Bruno Haible  <bruno@clisp.org>
73594
73595         New module mbscasestr, reduced goal of strcasestr.
73596         * modules/mbscasestr: New file.
73597         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73598         (mbscasestr): Renamed from strcasestr.
73599         * lib/strcasestr.c: Don't include mbuiter.h.
73600         (strcasestr): Remove support for multibyte locales.
73601         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73602         Change the conditional link warning.
73603         (mbscasestr): New declaration.
73604         * m4/mbscasestr.m4: New file.
73605         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73606         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73607         REPLACE_STRCASESTR.
73608         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73609         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73610         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73611         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73612         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73613         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73614         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73615         (Depends-on): Remove mbuiter.
73616         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73617
73618 2007-02-04  Bruno Haible  <bruno@clisp.org>
73619
73620         Simplify handling of strncasecmp.
73621         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73622         the conditional link warning.
73623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73624         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73625         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73626         * modules/strcase (configure.ac): Don't invoke
73627         gl_STRING_MODULE_INDICATOR.
73628         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73629
73630 2007-02-04  Bruno Haible  <bruno@clisp.org>
73631
73632         New module mbscasecmp, reduced goal of strcasecmp.
73633         * modules/mbscasecmp: New file.
73634         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73635         (mbscasecmp): Renamed from strcasecmp.
73636         * lib/strcasecmp.c: Don't include mbuiter.h.
73637         (strcasecmp): Remove support for multibyte locales.
73638         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73639         Change the conditional link warning.
73640         (mbscasecmp): New declaration.
73641         * m4/mbscasecmp.m4: New file.
73642         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73643         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73644         REPLACE_STRCASECMP.
73645         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73647         GNULIB_MBSCASECMP.
73648         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73649         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73650         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73651         (Depends-on): Remove mbuiter.
73652         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73653
73654 2007-02-04  Bruno Haible  <bruno@clisp.org>
73655
73656         New module mbsstr. Remove module strstr.
73657         * modules/mbsstr: New file.
73658         * modules/strstr: Remove file.
73659         * lib/mbsstr.c: Renamed from lib/strstr.c.
73660         (mbsstr): Renamed from strstr.
73661         * lib/string_.h (strstr): Remove declaration. Change the conditional
73662         link warning.
73663         (mbsstr): New declaration.
73664         * m4/mbsstr.m4: New file.
73665         * m4/strstr.m4: Remove file.
73666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73667         REPLACE_STRSTR.
73668         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73669         Don't initialize GNULIB_STRSTR.
73670         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73671         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73672         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73673         (Support for systems lacking ANSI C 89): Remove strstr.
73674
73675 2007-02-04  Bruno Haible  <bruno@clisp.org>
73676
73677         New module mbsrchr.
73678         * modules/mbsrchr: New file.
73679         * lib/mbsrchr.c: New file.
73680         * lib/string_.h (strrchr): Add a conditional link warning.
73681         (mbsrchr): New declaration.
73682         * m4/mbsrchr.m4: New file.
73683         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73684         GNULIB_MBSRCHR.
73685         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73686         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73687
73688 2007-02-04  Bruno Haible  <bruno@clisp.org>
73689
73690         New module mbschr.
73691         * modules/mbschr: New file.
73692         * lib/mbschr.c: New file.
73693         * lib/string_.h (strchr): Add a conditional link warning.
73694         (mbschr): New declaration.
73695         * m4/mbschr.m4: New file.
73696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73697         GNULIB_MBSCHR.
73698         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73699         * MODULES.html.sh (Internationalization functions): Add mbschr.
73700
73701 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73704
73705         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73706
73707 2007-02-04  Bruno Haible  <bruno@clisp.org>
73708
73709         New module description section 'configure.ac-early'.
73710         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73711         (func_get_autoconf_early_snippet): New function.
73712         (func_import, func_create_testdir): Use it. Remove special cases for
73713         modules 'extensions' and 'lock'.
73714         * modules/extensions (configure.ac-early): Require
73715         gl_USE_SYSTEM_EXTENSIONS.
73716         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73717
73718 2007-02-04  Bruno Haible  <bruno@clisp.org>
73719
73720         Make use of gcj-4.3's -fsource and -ftarget option.
73721         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73722         and if so try the options -fsource and -ftarget.
73723         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73724         source_version, ftarget_option, target_version arguments.
73725         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73726         (is_envjavac_oldgcj_14_14_usable): Renamed from
73727         is_envjavac_gcj_14_14_usable.
73728         (is_envjavac_oldgcj_14_13_usable): Renamed from
73729         is_envjavac_gcj_14_13_usable.
73730         (is_gcj_present): Update.
73731         (is_gcj_43, is_gcj43_usable): New functions.
73732         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73733         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73734         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73735         try the options -fsource and -ftarget.
73736
73737 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73740         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73741         larger value.
73742
73743 2007-02-03  Jim Meyering  <jim@meyering.net>
73744
73745         Give tools a better chance to allocate space for very large buffers.
73746         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73747
73748         Make pwd and readlink work also when run with an unreadable parent dir
73749         on systems with openat support.
73750         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73751         provided getcwd function, even when we have openat support.
73752         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73753
73754 2007-02-02  Bruno Haible  <bruno@clisp.org>
73755
73756         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73757         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73758         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73759         portability problems if one of these functions is only used on specific
73760         platforms.
73761         Reported by Paul Eggert.
73762
73763 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73764
73765         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73766         is causing more trouble than it's curing.
73767         * lib/regex_internal.h (__mempcpy): Remove.
73768         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73769         (and make the code a tad smaller to boot).
73770         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73771
73772 2007-02-02  Jim Meyering  <jim@meyering.net>
73773
73774         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73775         section, not in the Makefile.am: one.
73776
73777 2007-02-02  Eric Blake  <ebb9@byu.net>
73778
73779         * lib/strchrnul.c: Always include config.h first.
73780
73781         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73782         gnulib strstr is not necessary here.
73783
73784 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73785
73786         * m4/socklen.m4: Fix typo.
73787
73788 2007-02-02  Eric Blake  <ebb9@byu.net>
73789
73790         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73791         * modules/netinet_in (Makefile.am): Likewise.
73792
73793 2007-02-01  Bruno Haible  <bruno@clisp.org>
73794
73795         * lib/string_.h (GL_LINK_WARNING): New macro.
73796         (strcasecmp, strstr, strcasestr): If provided by the system,
73797         conditionally define as a macro that leads to a warning instead of to
73798         an error.
73799         (strncasecmp): Conditionally define as a macro that leads to a warning.
73800
73801 2007-02-01  Karl Berry  <karl@gnu.org>
73802
73803         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73804
73805 2007-02-01  Bruno Haible  <bruno@clisp.org>
73806
73807         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73808         renamings.
73809
73810 2007-02-01  Eric Blake  <ebb9@byu.net>
73811
73812         * modules/regex (Depends-on): Revert dependence on mempcpy.
73813         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73814         module's definition of mempcpy.
73815         Reported by Paul Eggert.
73816
73817 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73818
73819         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73820         the symbol XYZ before redefining it.  This fixes a problem with
73821         programs that don't use XYZ, when compiled on systems that define
73822         XYZ to something else.
73823
73824 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73825
73826         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73827         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73828         writeable to group or other and (2) is intended to have a special
73829         mode bit that is set or cleared.  In such a case, the directory
73830         should be neither group- nor other-writeable until the special
73831         mode bits are right.
73832
73833 2007-01-31  Eric Blake  <ebb9@byu.net>
73834
73835         * modules/mountlist (Depends-on): Add strstr.
73836
73837         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73838         bug.
73839         * modules/string (Makefile.am): Remove redundant replacement.
73840         * modules/regex (Depends-on): Add mempcpy.
73841
73842 2007-01-31  Bruno Haible  <bruno@clisp.org>
73843
73844         New module description field 'Link'.
73845         * gnulib-tool (func_usage): Document --extract-link-directive.
73846         (sed_extract_prog): Recognize 'Link' directive.
73847         (func_get_link_directive): New function.
73848         (func_import): Show summary of link directives.
73849         Handle --extract-link-directive option.
73850         * modules/acl (Link): New section.
73851         * modules/clock-time (Link): New section.
73852         * modules/euidaccess (Link): New section.
73853         * modules/gettext (Link): New section.
73854         * modules/iconv (Link): New section.
73855         * modules/lock (Link): New section.
73856         * modules/nanosleep (Link): New section.
73857         * modules/readline (Link): New section.
73858
73859 2007-01-27  Bruno Haible  <bruno@clisp.org>
73860
73861         Enforce the use of gnulib modules for unportable <string.h> functions.
73862         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73863         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73864         (gl_HEADER_STRING_H_BODY): Require it.
73865         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73866         the symbol XYZ to one that gives a link error.
73867         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73868         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73869         * modules/mempcpy (configure.ac): Likewise.
73870         * modules/memrchr (configure.ac): Likewise.
73871         * modules/stpcpy (configure.ac): Likewise.
73872         * modules/stpncpy (configure.ac): Likewise.
73873         * modules/strcase (configure.ac): Likewise.
73874         * modules/strcasestr (configure.ac): Likewise.
73875         * modules/strchrnul (configure.ac): Likewise.
73876         * modules/strdup (configure.ac): Likewise.
73877         * modules/strndup (configure.ac): Likewise.
73878         * modules/strnlen (configure.ac): Likewise.
73879         * modules/strpbrk (configure.ac): Likewise.
73880         * modules/strsep (configure.ac): Likewise.
73881         * modules/strstr (configure.ac): Likewise.
73882         * modules/strtok_r (configure.ac): Likewise.
73883
73884 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73885
73886         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73887
73888 2007-01-30  Jim Meyering  <jim@meyering.net>
73889
73890         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73891
73892 2007-01-29  Bruno Haible  <bruno@clisp.org>
73893
73894         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73895         * lib/execute.c: Likewise.
73896         * lib/pipe.c: Likewise.
73897         * lib/printf-args.h: Likewise.
73898         * lib/printf-args.c: Likewise.
73899         * lib/printf-parse.c: Likewise.
73900         * lib/vasnprintf.c: Likewise.
73901
73902 2007-01-29  Eric Blake  <ebb9@byu.net>
73903
73904         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73905         declaration.
73906
73907 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73908
73909         * lib/strptime.h (strptime): Use 'restrict' for args where
73910         POSIX requires this.
73911         * lib/strptime.c (strptime): Likewise.
73912         Change license notice from LGPL to GPL, since gnulib-tool will
73913         change this as needed.
73914         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73915         defined.
73916         Include "strptime.h" first, to check interface.
73917         Do not #undef _LIBC and _NL_CURRENT.
73918         Do not include <stdlib.h>; no longer needed.
73919         Include "time_r.h" and declare ptime_locale_status
73920         only if _LIBC is not defined.
73921         (__P): Remove unused macro.
73922         (match_string): Bring back glibc version, but use it only if _LIBC
73923         is defined.
73924         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73925         Remove unnecessary assertion and abort() call.
73926         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73927         * m4/strptime.m4: Fix serial number comment.
73928         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73929         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73930         (Depends-on): Add time_r.
73931
73932 2007-01-29  Bruno Haible  <bruno@clisp.org>
73933
73934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73935         strptime.
73936         * modules/strptime (Depends-on): Add stdbool.
73937         * lib/strptime.h: Include <time.h> always. Add comments.
73938
73939 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73940
73941         * modules/strptime: New file.
73942         * lib/strptime.h: New file.
73943         * lib/strptime.c: New file.
73944         * m4/strptime.m4: New file.
73945
73946 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73947
73948         * MODULES.html.sh: New module mpsort.
73949         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73950
73951         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73952         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73953         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73954         All uses changed.
73955         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73956         All uses changed.
73957         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73958         to _Restrict_.
73959         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73960         the parameter matches the prototype.
73961
73962 2007-01-28  Jim Meyering  <jim@meyering.net>
73963
73964         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73965         sys/time.h here, reverting that part of the previous patch:
73966         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73967
73968 2007-01-28  Bruno Haible  <bruno@clisp.org>
73969
73970         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73971         value of $(SYS_TIME_H).
73972         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73973         remove it conditionally, too. [added by Jim Meyering]
73974         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73975         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73976         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73977         GETTIMEOFDAY_REPLACEMENT to 1.
73978
73979 2007-01-28  Bruno Haible  <bruno@clisp.org>
73980
73981         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73982         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73984         Set UNISTD_H instead of UNISTD_H2.
73985         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73986
73987 2007-01-28  Bruno Haible  <bruno@clisp.org>
73988
73989         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73990         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73991
73992 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73993
73994         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73995         (func_create_testdir): Ensure C locale for `grep' and `tr'
73996         character ranges.
73997         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73998         ACLOCAL_AMFLAGS parsing state machine.
73999
74000 2007-01-27  Bruno Haible  <bruno@clisp.org>
74001
74002         * modules/unistr/base: Update.
74003
74004 2007-01-27  Bruno Haible  <bruno@clisp.org>
74005
74006         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74007         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74008         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74009         modules/unistr/u32-mbtouc.
74010         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74011         * lib/unistr.h: Update.
74012         * lib/linebreak.c: Update.
74013         * modules/unistr/u32-mbtouc: Renamed from
74014         modules/unistr/u32-mbtouc-safe.
74015         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74016         * lib/unistr.h: Update.
74017         * lib/unistr/u32-to-u8.c: Update.
74018         * lib/unistr/u32-to-u16.c: Update.
74019
74020 2007-01-27  Bruno Haible  <bruno@clisp.org>
74021
74022         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74023         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74024         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74025         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74026         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74027         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74028         modules/unistr/u16-mbtouc.
74029         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74030         * lib/unistr.h: Update.
74031         * lib/linebreak.c: Update.
74032         * modules/linebreak: Update.
74033         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74034         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74035         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74036         * modules/unistr/u16-mbtouc: Renamed from
74037         modules/unistr/u16-mbtouc-safe.
74038         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74039         * lib/unistr.h: Update.
74040         * lib/unistr/u16-to-u8.c: Update.
74041         * modules/unistr/u16-to-u8: Update.
74042         * lib/unistr/u16-to-u32.c: Update.
74043         * modules/unistr/u16-to-u32: Update.
74044
74045 2007-01-27  Bruno Haible  <bruno@clisp.org>
74046
74047         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74048         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74049         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74050         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74051         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74052         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74053         modules/unistr/u8-mbtouc.
74054         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74055         * lib/unistr.h: Update.
74056         * lib/striconveh.c: Update.
74057         * modules/striconveh: Update.
74058         * lib/linebreak.c: Update.
74059         * modules/linebreak: Update.
74060         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74061         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74062         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74063         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74064         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74065         * lib/unistr.h: Update.
74066         * lib/striconveh.c: Update.
74067         * modules/striconveh: Update.
74068         * lib/unistr/u8-to-u16.c: Update.
74069         * modules/unistr/u8-to-u16: Update.
74070         * lib/unistr/u8-to-u32.c: Update.
74071         * modules/unistr/u8-to-u32: Update.
74072
74073 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74074
74075         Sync from Libtool.
74076         * lib/argz.c: Do not include strings.h nor memory.h, include
74077         string.h unconditionally.  Patch by Simon Josefsson.
74078
74079 2007-01-27  Bruno Haible  <bruno@clisp.org>
74080
74081         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74082         from gl_HEADER_STRING_H_BODY.
74083         (gl_HEADER_STRING_H_BODY): Require it.
74084         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74085         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74086         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74087         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74088         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74089         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74091         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74092         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74093         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74094         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74095         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74096         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74097         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74098         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74099
74100 2007-01-27  Bruno Haible  <bruno@clisp.org>
74101
74102         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74103         check_PROGRAMS into noinst_PROGRAMS.
74104         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74105         check_PROGRAMS in this case.
74106         (func_import): Set for_test to false.
74107         (func_create_testdir): Set for_test to true.
74108
74109 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74110             Bruno Haible  <bruno@clisp.org>
74111
74112         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74113         (Depends-on): Add string.
74114         (Includes): Use <string.h> instead of strcasestr.h.
74115         * modules/string (Makefile.am): Also substitute the value of
74116         REPLACE_STRCASESTR.
74117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74118         assume strcasestr is declared in <string.h> not <strings.h>. Also
74119         set REPLACE_STRCASESTR.
74120         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74121         REPLACE_STRCASESTR.
74122         * lib/strcasestr.h: Remove file.
74123         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74124         * lib/string_.h (strcasestr): New declaration.
74125
74126 2007-01-27  Bruno Haible  <bruno@clisp.org>
74127
74128         * lib/string_.h: Use 'extern'.
74129
74130 2007-01-27  Jim Meyering  <jim@meyering.net>
74131
74132         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74133         of set-but-not-used local, "q".
74134
74135         * lib/mempcpy.c: Include <config.h> before <string.h>.
74136         This fixes a compilation error on HP-UX, due to the system's
74137         "restrict"-using mempcpy prototype.
74138
74139 2007-01-26  Bruno Haible  <bruno@clisp.org>
74140
74141         Small optimization.
74142         * lib/javacomp.c: Include c-strstr.h.
74143          (is_envjavac_gcj): Use c_strstr instead of strstr.
74144         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74145
74146 2007-01-26  Bruno Haible  <bruno@clisp.org>
74147
74148         * MODULES.html.sh (Unicode string functions): Add the new modules.
74149
74150         * modules/uniconv/u32-strconv-to-locale: New file.
74151         * lib/uniconv/u32-strconv-to-locale.c: New file.
74152
74153         * modules/uniconv/u16-strconv-to-locale: New file.
74154         * lib/uniconv/u16-strconv-to-locale.c: New file.
74155
74156         * modules/uniconv/u8-strconv-to-locale: New file.
74157         * lib/uniconv/u8-strconv-to-locale.c: New file.
74158
74159         * modules/uniconv/u32-strconv-from-locale: New file.
74160         * lib/uniconv/u32-strconv-from-locale.c: New file.
74161
74162         * modules/uniconv/u16-strconv-from-locale: New file.
74163         * lib/uniconv/u16-strconv-from-locale.c: New file.
74164
74165         * modules/uniconv/u8-strconv-from-locale: New file.
74166         * lib/uniconv/u8-strconv-from-locale.c: New file.
74167
74168         * modules/uniconv/u32-strconv-to-enc: New file.
74169         * lib/uniconv/u32-strconv-to-enc.c: New file.
74170         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74171         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74172
74173         * modules/uniconv/u16-strconv-to-enc: New file.
74174         * lib/uniconv/u16-strconv-to-enc.c: New file.
74175         * lib/uniconv/u-strconv-to-enc.h: New file.
74176         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74177         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74178
74179         * modules/uniconv/u8-strconv-to-enc: New file.
74180         * lib/uniconv/u8-strconv-to-enc.c: New file.
74181         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74182         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74183
74184         * modules/uniconv/u32-strconv-from-enc: New file.
74185         * lib/uniconv/u32-strconv-from-enc.c: New file.
74186         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74187         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74188
74189         * modules/uniconv/u16-strconv-from-enc: New file.
74190         * lib/uniconv/u16-strconv-from-enc.c: New file.
74191         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74192         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74193
74194         * modules/uniconv/u8-strconv-from-enc: New file.
74195         * lib/uniconv/u8-strconv-from-enc.c: New file.
74196         * lib/uniconv/u-strconv-from-enc.h: New file.
74197         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74198         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74199
74200         * modules/uniconv/u32-conv-from-enc: New file.
74201         * lib/uniconv/u32-conv-from-enc.c: New file.
74202         * modules/uniconv/u32-conv-from-enc-tests: New file.
74203         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74204
74205         * modules/uniconv/u16-conv-from-enc: New file.
74206         * lib/uniconv/u16-conv-from-enc.c: New file.
74207         * lib/uniconv/u-conv-from-enc.h: New file.
74208         * modules/uniconv/u16-conv-from-enc-tests: New file.
74209         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74210
74211         * modules/uniconv/u8-conv-from-enc: New file.
74212         * lib/uniconv/u8-conv-from-enc.c: New file.
74213         * modules/uniconv/u8-conv-from-enc-tests: New file.
74214         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74215
74216         * modules/uniconv/base: New file.
74217         * lib/uniconv.h: New file.
74218
74219 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74220
74221         * doc/gnulib-tool.texi (Initial import): Update to match current
74222         behavior with strdup module.
74223         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74224         * lib/memmem.h: Remove; all uses removed.  This is now done
74225         by <string.h>.
74226         * lib/mempcpy.h: Likewise.
74227         * lib/memrchr.h: Likewise.
74228         * lib/stpcpy.h: Likewise.
74229         * lib/stpncpy.h: Likewise.
74230         * lib/strcase.h: Likewise.
74231         * lib/strchrnul.h: Likewise.
74232         * lib/strdup.h: Likewise.
74233         * lib/strndup.h: Likewise.
74234         * lib/strnlen.h: Likewise.
74235         * lib/strpbrk.h: Likewise.
74236         * lib/strsep.h: Likewise.
74237         * lib/strstr.h: Likewise.
74238         * lib/strtok_r.h: Likewise.
74239         * lib/string_.h: New file.
74240         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74241         Rely on <string.h> instead.
74242         * lib/canon-host.c: Likewise.
74243         * lib/chdir-long.c: Likewise.
74244         * lib/concatpath.c: Likewise.
74245         * lib/exclude.c: Likewise.
74246         * lib/fchdir.c: Likewise.
74247         * lib/getaddrinfo.c: Likewise.
74248         * lib/getcwd.c: Likewise.
74249         * lib/getsubopt.c: Likewise.
74250         * lib/glob.c: Likewise.
74251         * lib/hard-locale.c: Likewise.
74252         * lib/iconvme.c: Likewise.
74253         * lib/javacomp.c: Likewise.
74254         * lib/mempcpy.c: Likewise.
74255         * lib/memrchr.c: Likewise.
74256         * lib/regex_internal.h: Likewise.
74257         * lib/stpncpy.c: Likewise.
74258         * lib/strcasecmp.c: Likewise.
74259         * lib/strchrnul.c: Likewise.
74260         * lib/strdup.c: Likewise.
74261         * lib/striconv.c: Likewise.
74262         * lib/striconveh.c: Likewise.
74263         * lib/striconveha.c: Likewise.
74264         * lib/strncasecmp.c: Likewise.
74265         * lib/strndup.c: Likewise.
74266         * lib/strnlen.c: Likewise.
74267         * lib/strsep.c: Likewise.
74268         * lib/strstr.c: Likewise.
74269         * lib/strtok_r.c: Likewise.
74270         * lib/userspec.c: Likewise.
74271         * lib/w32spawn.h: Likewise.
74272         * lib/xstrndup.c: Likewise.
74273         * lib/mountlist.c (strstr): Remove decl.
74274         * m4/string_h.m4: New file.
74275         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74276         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74277         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74278         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74279         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74280         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74281         Set REPLACE_STRCASECMP if necessary.
74282         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74283         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74284         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74285         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74286         HAVE_DECL_STRDUP if necessary.
74287         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74288         since gl_FUNC_STRNDUP does that now.
74289         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74290         Check for decl here...
74291         (gl_PREREQ_STRNLEN): ... not here.
74292         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74293         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74294         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74295         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74296         necessary.
74297         * modules/string: New file.
74298         * modules/memmem (Files): Remove special-purpose include file.
74299         (Depends-on): Add string.
74300         (Include): Include <string.h>, not the removed file.
74301         * modules/mempcpy: Likewise.
74302         * modules/memrchr: Likewise.
74303         * modules/stpcpy: Likewise.
74304         * modules/stpncpy: Likewise.
74305         * modules/strcase: Likewise.
74306         * modules/strchrnul: Likewise.
74307         * modules/strdup: Likewise.
74308         * modules/strndup: Likewise.
74309         * modules/strnlen: Likewise.
74310         * modules/strpbrk: Likewise.
74311         * modules/strsep: Likewise.
74312         * modules/strstr: Likewise.
74313         * modules/strtok_r: Likewise.
74314         * tests/test-dirname.c: Don't include "strdup.h", since
74315         <string.h> now suffices.
74316         * tests/test-memmem.c: Don't include "memmem.h", since
74317         <string.h> now suffices.
74318
74319 2007-01-25  Bruno Haible  <bruno@clisp.org>
74320
74321         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74322         *resultp is 0.
74323
74324         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74325         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74326         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74327         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74328
74329         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74330         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74331         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74332         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74333         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74334         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74335
74336 2007-01-24  Bruno Haible  <bruno@clisp.org>
74337
74338         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74339         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74340         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74341         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74342         gl_FUNC_FTS_CORE.
74343         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74344         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74345         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74346         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74347         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74348         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74349         gl_FUNC_FCHOWNAT.
74350         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74351         gl_FUNC_STRFTIME.
74352         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74353         Reported by Ralf Wildenhues.
74354
74355 2007-01-24  Bruno Haible  <bruno@clisp.org>
74356
74357         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74358         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74359         gl_GETADDRINFO.
74360         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74361         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74362         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74363
74364 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74367         Don't use 'exit'; just return from 'main'.
74368         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74369
74370         * lib/fnmatch_.h: Readjust white space and comments to match
74371         glibc, to avoid spurious diffs.
74372
74373 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74374
74375         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74376         2004-12-01 change by Jakub Jelinek, since this code won't compile
74377         if !LIBC.  Problem reported by Bob Proulx.
74378
74379 2007-01-23  Bruno Haible  <bruno@clisp.org>
74380
74381         * lib/striconveh.c: Include c-strcaseeq.h.
74382         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74383         * modules/striconveh (Depends-on): Add c-strcaseeq.
74384
74385 2007-01-23  Bruno Haible  <bruno@clisp.org>
74386
74387         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74388
74389         * modules/c-strcaseeq: New file.
74390         * lib/c-strcaseeq.h: New file.
74391
74392         * modules/streq: New file.
74393         * lib/streq.h: New file.
74394
74395 2007-01-23  Bruno Haible  <bruno@clisp.org>
74396
74397         * modules/striconveha-tests: New file.
74398         * tests/test-striconveha.c: New file.
74399
74400         * lib/striconveha.h: Include <stdbool.h>.
74401         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74402         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74403         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74404         (mem_iconveha): New function.
74405         (str_iconveha_notranslit): Renamed from str_iconveha.
74406         (str_iconveha): New function.
74407         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74408         c-strcase.
74409
74410 2007-01-23  Bruno Haible  <bruno@clisp.org>
74411
74412         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74413         encodings without forgiving before trying any encoding with handler.
74414         (str_iconveha): Try all encodings without forgiving before trying any
74415         encoding with handler.
74416
74417 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         Import the following changes from libc.
74420
74421         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74422
74423         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74424
74425         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74426
74427         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74428         normal_bracket label.
74429
74430         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74431
74432         [BZ #361]
74433         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74434         to normal_bracket after fetching the next character.
74435
74436 2007-01-22  Bruno Haible  <bruno@clisp.org>
74437
74438         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74439         argument.
74440         * lib/striconveh.c (iconv_carefully_1): New function.
74441         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74442         argument.
74443         (str_cd_iconveh): Update.
74444         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74445         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74446         * tests/test-striconveh.c (MAGIC): New macro.
74447         (new_offsets): New function.
74448         (main): Test call with and without offsets.
74449
74450 2007-01-22  Bruno Haible  <bruno@clisp.org>
74451
74452         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74453         * modules/sys_select (Makefile.am): Likewise.
74454         * modules/sys_socket (Makefile.am): Likewise.
74455         * modules/sys_time (Makefile.am): Likewise.
74456
74457 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         * modules/gettimeofday (License): Change from GPL to LGPL, since
74460         gettimeofday is a library function.
74461
74462 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74463
74464         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74465
74466 2007-01-21  Bruno Haible  <bruno@clisp.org>
74467
74468         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74469
74470 2007-01-21  Bruno Haible  <bruno@clisp.org>
74471
74472         * modules/striconveha: New file.
74473         * lib/striconveha.h: New file.
74474         * lib/striconveha.c: New file.
74475         * MODULES.html.sh (Internationalization functions): Add striconveha.
74476         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74477         string.
74478         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74479
74480 2007-01-21  Bruno Haible  <bruno@clisp.org>
74481
74482         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74483         * lib/striconveh.c (str_iconveh): Likewise.
74484
74485 2007-01-21  Bruno Haible  <bruno@clisp.org>
74486
74487         * lib/striconveh.h (mem_iconveh): New declaration.
74488         * lib/striconveh.c (mem_iconveh): New function.
74489         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74490
74491 2007-01-21  Bruno Haible  <bruno@clisp.org>
74492
74493         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74494
74495         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74496         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74497         original result buffer.
74498         (str_cd_iconveh): Update.
74499         * tests/test-striconveh.c (main): Update.
74500
74501         * lib/striconv.h (mem_cd_iconv): Change specification.
74502         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74503         result buffer.
74504         (str_cd_iconv): Update.
74505         * tests/test-striconv.c (main): Update.
74506
74507 2007-01-21  Bruno Haible  <bruno@clisp.org>
74508
74509         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74510
74511 2007-01-20  Jim Meyering  <jim@meyering.net>
74512
74513         * lib/userspec.c (parse_with_separator): If a user or group string
74514         starts with "+", skip the corresponding name-to-ID look-up, since
74515         such a look-up must fail: user and group names may not include "+".
74516
74517 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74518
74519         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74520         since we now assume the sys_time module.
74521         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74522         check for sys/time.h; no longer needed.
74523         * modules/poll (Depends-on): Depend on sys_time.
74524
74525 2007-01-18  Bruno Haible  <bruno@clisp.org>
74526
74527         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74528         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74529
74530         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74531         gettimeofday.
74532
74533         * tests/test-gettimeofday.c: Include <time.h>.
74534         (dummy): Remove variable.
74535
74536         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74537         gl_HEADER_SYS_TIME_H.
74538         (gl_HEADER_SYS_TIME_H): New macro.
74539
74540         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74541         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74542         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74543         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74544         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74545         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74546         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74547         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74548         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74549         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74550         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74551
74552         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74553         last change; it caused a compilation error when cross-compiling to
74554         Cygwin.
74555
74556 2007-01-18  Jim Meyering  <jim@meyering.net>
74557
74558         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74559         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74560         than the race-prone "test -d sys || mkdir sys".
74561         (configure.ac): Use AC_PROG_MKDIR_P.
74562         * modules/sys_select: Likewise.
74563         * modules/sys_socket: Likewise.
74564         * modules/sys_time: Likewise.
74565
74566 2007-01-18  Eric Blake  <ebb9@byu.net>
74567
74568         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74569         replace gettimeofday.
74570         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74571         name, to avoid infinite recursion.
74572
74573 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74574
74575         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74576         module sys_time.
74577         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74578         assume timespec.h defines struct timeval.
74579         * lib/settime.c: Likewise.
74580         * lib/utimens.c: Likewise.
74581         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74582         since we now assume the gettimeofday module.
74583         * lib/tempname.c (__gen_tempname): Likewise.
74584         * lib/gettimeofday.h: Remove.
74585         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74586         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74587         Include <time.h>, for 'time()'.
74588         (localtime_buffer_addr): Also use this workaround if
74589         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74590         to simplify the uses.  All uses changed.
74591         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74592         that #undef is inside {}, and 'const' follows type name consistently.
74593         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74594         (gettimeofday): Do not use the maximum possible value for
74595         tv->tv_usec, since that might break usages other than ls.c.
74596         Instead, we'll leave ls.c alone.  This undoes today's patch
74597         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74598         we've never observed the problem but might as well keep the
74599         canary.
74600         * lib/nanosleep.c: Include timespec.h first, for interface check.
74601         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74602         now assume the sys_time module.
74603         * lib/tempname.c: Likewise.
74604         * lib/timespec.h: Likewise.
74605         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74606         needed.
74607         * lib/strftime.c: Likewise.
74608         * lib/timespec.h: Likewise.
74609         * lib/posixtm.c: Include posixtm.h first, for interface check.
74610         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74611         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74612         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74613         * lib/sys_time_.h: New file.
74614         * lib/timespec.h (struct timespec): Use long int, not long.
74615         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74616         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74617         Remove obsolescent call to AC_HEADER_TIME.
74618         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74620         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74621         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74622         Likewise.
74623         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74624         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74625         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74626         into the sys_time module.  Check for gettimeofday just once.
74627         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74628         for gettimeofday signature to just check the signature.  Merely
74629         compile it, since linking doesn't test signature.  Improve test for
74630         whether gettimeofday.o is actually needed.
74631         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74632         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74633         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74634         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74635         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74636         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74637         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74638         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74639         than worrying about sys/time.h.
74640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74641         Don't bother worrying about TIME_WITH_SYS_TIME.
74642         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74643         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74644         * m4/sys_time_h.m4: New file.
74645         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74646         Don't include sys/time.h.  Return from main rather than exiting.
74647         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74648         all uses changed.
74649         * modules/gethrxtime (Depends-on): Add sys_time.
74650         * modules/gettime (Depends-on): Likewise.
74651         * modules/gettimeofday (Depends-on): Likewise.
74652         * modules/nanosleep (Depends-on): Likewise.
74653         * modules/settime (Depends-on): Likewise.
74654         * modules/tempname (Depends-on): Likewise.
74655         * modules/utimens (Depends-on): Likewise.
74656         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74657         (Include): Change back to <sys/time.h>.
74658         (Maintainer): Add self.
74659         * modules/sys_time: New file.
74660         * modules/tempname (Depends-on): Add gettimeofday.
74661         * tests/test-gettimeofday.c: Include <sys/time.h>
74662         rather than gettimeofday.h.
74663
74664 2007-01-17  Bruno Haible  <bruno@clisp.org>
74665
74666         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74667         the license default to GPL.
74668         (func_create_testdir): Don't complain if a module is LGPL and its
74669         tests module depends on GPLed modules.
74670
74671 2007-01-17  Bruno Haible  <bruno@clisp.org>
74672
74673         * lib/gettimeofday.c (gettimeofday): Add code for the case
74674         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74675         maximum possible value for tv->tv_usec, rather than the minimum one.
74676
74677 2005-10-08  Martin Lambers  <marlam@marlam.de>
74678 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74679 2007-01-16  Bruno Haible  <bruno@clisp.org>
74680
74681         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74682         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74683         gl_FUNC_GETTIMEOFDAY.
74684         (Include): Add gettimeofday.h.
74685         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74686         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74687         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74688         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74689         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74690         * lib/gettimeofday.h: New file.
74691         * lib/gettimeofday.c: Include <sys/timeb.h>.
74692         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74693         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74694         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74695         fall back on time().
74696
74697         * tests/test-gettimeofday.c: New file.
74698         * modules/gettimeofday-tests: New file.
74699
74700 2007-01-16  Eric Blake  <ebb9@byu.net>
74701
74702         * modules/fnmatch (Depends-on): Depend on wchar.
74703         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74704         * m4/fnmatch.m4: Likewise.
74705         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74706         * m4/mbchar.m4: Likewise.
74707         * modules/mbswidth (Depends-on): Depend on wchar.
74708         * lib/mbswidth.c: Assume <wchar.h>.
74709         * m4/mbswidth.m4: Likewise.
74710         * modules/quotearg (Depends-on): Depend on wchar.
74711         * lib/quotearg.c: Assume <wchar.h>.
74712         * m4/quotearg.m4: Likewise.
74713         * modules/regex (Depends-on): Depend on wchar.
74714         * lib/regex_internal.h: Assume <wchar.h>.
74715         * m4/regex.m4: Likewise.
74716         * modules/stdint (Depends-on): Depend on wchar.
74717         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74718         * m4/stdint.m4: Likewise.
74719         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74720         * modules/strftime (Depends-on): Depend on wchar.
74721         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74722         * modules/strtol (Depends-on): Depend on wchar.
74723         * lib/strtol.c: Assume <wchar.h>.
74724         * modules/wcwidth (Depends-on): Depend on wchar.
74725         * lib/wcwidth.h: Assume <wchar.h>.
74726         * m4/wcwidth.m4: Likewise.
74727
74728 2007-01-16  Bruno Haible  <bruno@clisp.org>
74729
74730         * modules/csharpexec-script: New, created from...
74731         * modules/csharpexec: ... this.
74732
74733 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74734
74735         * modules/javaexec-script: New, created from...
74736         * modules/javaexec: ... this.
74737
74738 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74739
74740         * modules/poll (Dependencies): Add sys_select.
74741
74742 2007-01-15  Jim Meyering  <jim@meyering.net>
74743
74744         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74745         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74746         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74747         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74748
74749 2007-01-15  Bruno Haible  <bruno@clisp.org>
74750
74751         * modules/striconveh: New file.
74752         * lib/striconveh.h: New file.
74753         * lib/striconveh.c: New file.
74754         * MODULES.html.sh (Internationalization functions): Add striconveh.
74755
74756         * modules/striconveh-tests: New file.
74757         * tests/test-striconveh.c: New file.
74758
74759 2007-01-15  Bruno Haible  <bruno@clisp.org>
74760
74761         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74762         not from GNU libiconv or GNU libc.
74763
74764 2007-01-15  Bruno Haible  <bruno@clisp.org>
74765
74766         * doc/gnulib-intro.texi (Copyright): Explain the different license
74767         terms for module descriptions, autoconf macros, tests, documentation.
74768
74769 2007-01-14  Bruno Haible  <bruno@clisp.org>
74770
74771         * modules/striconv-tests: New file.
74772         * tests/test-striconv.c: New file.
74773
74774 2007-01-14  Bruno Haible  <bruno@clisp.org>
74775
74776         * modules/iconv-tests: New file.
74777         * tests/test-iconv.c: New file.
74778
74779 2007-01-14  Bruno Haible  <bruno@clisp.org>
74780
74781         * gnulib-tool (func_get_license): For test modules, use the license of
74782         the main module.
74783
74784 2007-01-14  Bruno Haible  <bruno@clisp.org>
74785
74786         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74787         if iconv is found to exist.
74788
74789 2007-01-14  Bruno Haible  <bruno@clisp.org>
74790
74791         * modules/c-ctype-tests: New file.
74792         * tests/test-c-ctype.c: New file.
74793
74794 2007-01-14  Bruno Haible  <bruno@clisp.org>
74795
74796         * modules/binary-io-tests: New file.
74797         * tests/test-binary-io.sh: New file.
74798         * tests/test-binary-io.c: New file.
74799
74800 2007-01-14  Bruno Haible  <bruno@clisp.org>
74801
74802         * modules/array-oset-tests: New file.
74803         * tests/test-array_oset.c: New file.
74804
74805 2007-01-14  Bruno Haible  <bruno@clisp.org>
74806
74807         * modules/array-list-tests: New file.
74808         * tests/test-array_list.c: New file.
74809
74810 2007-01-14  Bruno Haible  <bruno@clisp.org>
74811
74812         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74813         and make.
74814         Reported by Simon Josefsson in
74815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74816
74817 2007-01-14  Bruno Haible  <bruno@clisp.org>
74818
74819         * modules/allocsa-tests: New file.
74820         * tests/test-allocsa.c: New file.
74821
74822 2007-01-14  Bruno Haible  <bruno@clisp.org>
74823
74824         * modules/fchdir (Depends-on): Add absolute-header.
74825         * modules/unistd (Depends-on): Likewise.
74826
74827 2006-12-30  Bruno Haible  <bruno@clisp.org>
74828
74829         * modules/fchdir: New file.
74830         * modules/unistd (Files): Add lib/unistd_.h.
74831         (Makefile.am): Generate unistd.h from unistd_.h.
74832         * lib/fchdir.c: New file.
74833         * lib/dirent_.h: New file.
74834         * lib/unistd_.h: New file.
74835         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74836         * m4/fchdir.m4: New file.
74837         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74838         (gl_HEADER_UNISTD): Invoke it.
74839         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74840         function.
74841         * lib/backupfile.c (opendir, closedir): Undefine.
74842         * lib/chown.c (open, close): Undefine.
74843         * lib/clean-temp.c (open, close): Undefine.
74844         * lib/copy-file.c (open, close): Undefine.
74845         * lib/execute.c (open, close): Undefine.
74846         * lib/fsusage.c (open, close): Undefine.
74847         * lib/gc-gnulib.c (open, close): Undefine.
74848         * lib/getcwd.c (opendir, closedir): Undefine.
74849         * lib/glob.c (opendir, closedir): Undefine.
74850         * lib/javacomp.c (open, close): Undefine.
74851         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74852         * lib/openat-proc.c (open, close): Undefine.
74853         * lib/pagealign_alloc.c (open, close): Undefine.
74854         * lib/pipe.c (open, close): Undefine.
74855         * lib/progreloc.c (open, close): Undefine.
74856         * lib/savedir.c (opendir, closedir): Undefine.
74857         * lib/utime.c (open, close): Undefine.
74858         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74859
74860 2007-01-10  Bruno Haible  <bruno@clisp.org>
74861
74862         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74863
74864 2007-01-12  Eric Blake  <ebb9@byu.net>
74865
74866         Provide a robust <wchar.h>.  Further simplifications are now
74867         possible in other modules, but not included here.
74868         * modules/wchar: New module.
74869         * m4/wchar.m4: New file.
74870         * lib/wchar_.h: Likewise.
74871         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74872         of the new module.
74873         * MODULES.html.sh (Extended multibyte and wide character utilities):
74874         New section.
74875
74876 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74879         to a reasonable default for memory allocation.
74880         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74881         file system that reports garbage st_size values for symlinks.
74882         Problem reported by Liyang Hu.
74883
74884 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74885
74886         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74887         Emacs .#* auto-save files).
74888
74889 2007-01-11  Bruno Haible  <bruno@clisp.org>
74890
74891         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74892         directory.
74893
74894 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74895
74896         Use @...@ consistently in lib/wctype_.h.
74897         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74898         on it being set to 1 or 0.
74899         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74900         go back to AC_SUBSTing it.
74901         * modules/wctype (Makefile.am): Undo previous change.
74902
74903 2007-01-10  Eric Blake  <ebb9@byu.net>
74904
74905         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74906         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74907         * modules/wctype (Makefile.am): Likewise.
74908         Reported by Chris McGuire.
74909
74910 2007-01-10  Jim Meyering  <jim@meyering.net>
74911
74912         fts.c: a small readability/maintainability improvement
74913         * lib/fts.c (fts_read): Make this code slightly more readable and
74914         maintainable by hoisting the "sp->fts_cur = p" assignments to
74915         immediately follow the statements that set P.  Derived from
74916         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74917
74918 2007-01-10  Eric Blake  <ebb9@byu.net>
74919
74920         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74921         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74923         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74924         Reported by Chris McGuire.
74925
74926 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74927
74928         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74929         in sed script.
74930
74931 2007-01-09  Bruno Haible  <bruno@clisp.org>
74932
74933         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74934         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74935         variables.
74936         (func_module): Use them.
74937
74938 2007-01-09  Bruno Haible  <bruno@clisp.org>
74939
74940         * modules/unistr/base: New file.
74941         * lib/unistr.h: New file.
74942
74943         * modules/unistr/u8-to-u16: New file.
74944         * lib/unistr/u8-to-u16.c: New file.
74945
74946         * modules/unistr/u8-to-u32: New file.
74947         * lib/unistr/u8-to-u32.c: New file.
74948
74949         * modules/unistr/u16-to-u8: New file.
74950         * lib/unistr/u16-to-u8.c: New file.
74951
74952         * modules/unistr/u16-to-u32: New file.
74953         * lib/unistr/u16-to-u32.c: New file.
74954
74955         * modules/unistr/u32-to-u8: New file.
74956         * lib/unistr/u32-to-u8.c: New file.
74957
74958         * modules/unistr/u32-to-u16: New file.
74959         * lib/unistr/u32-to-u16.c: New file.
74960
74961         * modules/unistr/u8-check: New file.
74962         * modules/unistr/u16-check: New file.
74963         * modules/unistr/u32-check: New file.
74964         * lib/unistr/u8-check.c: New file.
74965         * lib/unistr/u16-check.c: New file.
74966         * lib/unistr/u32-check.c: New file.
74967
74968         * modules/unistr/u8-chr: New file.
74969         * modules/unistr/u16-chr: New file.
74970         * modules/unistr/u32-chr: New file.
74971         * lib/unistr/u8-chr.c: New file.
74972         * lib/unistr/u16-chr.c: New file.
74973         * lib/unistr/u32-chr.c: New file.
74974
74975         * modules/unistr/u8-cmp: New file.
74976         * modules/unistr/u16-cmp: New file.
74977         * modules/unistr/u32-cmp: New file.
74978         * lib/unistr/u8-cmp.c: New file.
74979         * lib/unistr/u16-cmp.c: New file.
74980         * lib/unistr/u32-cmp.c: New file.
74981
74982         * modules/unistr/u8-cpy: New file.
74983         * modules/unistr/u16-cpy: New file.
74984         * modules/unistr/u32-cpy: New file.
74985         * lib/unistr/u8-cpy.c: New file.
74986         * lib/unistr/u16-cpy.c: New file.
74987         * lib/unistr/u32-cpy.c: New file.
74988         * lib/unistr/u-cpy.h: New file.
74989
74990         * modules/unistr/u8-cpy-alloc: New file.
74991         * modules/unistr/u16-cpy-alloc: New file.
74992         * modules/unistr/u32-cpy-alloc: New file.
74993         * lib/unistr/u8-cpy-alloc.c: New file.
74994         * lib/unistr/u16-cpy-alloc.c: New file.
74995         * lib/unistr/u32-cpy-alloc.c: New file.
74996         * lib/unistr/u-cpy-alloc.h: New file.
74997
74998         * modules/unistr/u8-endswith: New file.
74999         * modules/unistr/u16-endswith: New file.
75000         * modules/unistr/u32-endswith: New file.
75001         * lib/unistr/u8-endswith.c: New file.
75002         * lib/unistr/u16-endswith.c: New file.
75003         * lib/unistr/u32-endswith.c: New file.
75004         * lib/unistr/u-endswith.h: New file.
75005
75006         * modules/unistr/u8-mblen: New file.
75007         * modules/unistr/u16-mblen: New file.
75008         * modules/unistr/u32-mblen: New file.
75009         * lib/unistr/u8-mblen.c: New file.
75010         * lib/unistr/u16-mblen.c: New file.
75011         * lib/unistr/u32-mblen.c: New file.
75012
75013         * modules/unistr/u8-mbtouc: New file.
75014         * modules/unistr/u16-mbtouc: New file.
75015         * modules/unistr/u32-mbtouc: New file.
75016         * lib/unistr/u8-mbtouc.c: New file.
75017         * lib/unistr/u16-mbtouc.c: New file.
75018         * lib/unistr/u32-mbtouc.c: New file.
75019
75020         * modules/unistr/u8-mbtouc-safe: New file.
75021         * modules/unistr/u16-mbtouc-safe: New file.
75022         * modules/unistr/u32-mbtouc-safe: New file.
75023         * lib/unistr/u8-mbtouc-safe.c: New file.
75024         * lib/unistr/u16-mbtouc-safe.c: New file.
75025         * lib/unistr/u32-mbtouc-safe.c: New file.
75026
75027         * modules/unistr/u8-move: New file.
75028         * modules/unistr/u16-move: New file.
75029         * modules/unistr/u32-move: New file.
75030         * lib/unistr/u8-move.c: New file.
75031         * lib/unistr/u16-move.c: New file.
75032         * lib/unistr/u32-move.c: New file.
75033         * lib/unistr/u-move.h: New file.
75034
75035         * modules/unistr/u8-next: New file.
75036         * modules/unistr/u16-next: New file.
75037         * modules/unistr/u32-next: New file.
75038         * lib/unistr/u8-next.c: New file.
75039         * lib/unistr/u16-next.c: New file.
75040         * lib/unistr/u32-next.c: New file.
75041
75042         * modules/unistr/u8-prev: New file.
75043         * modules/unistr/u16-prev: New file.
75044         * modules/unistr/u32-prev: New file.
75045         * lib/unistr/u8-prev.c: New file.
75046         * lib/unistr/u16-prev.c: New file.
75047         * lib/unistr/u32-prev.c: New file.
75048
75049         * modules/unistr/u8-set: New file.
75050         * modules/unistr/u16-set: New file.
75051         * modules/unistr/u32-set: New file.
75052         * lib/unistr/u8-set.c: New file.
75053         * lib/unistr/u16-set.c: New file.
75054         * lib/unistr/u32-set.c: New file.
75055         * lib/unistr/u-set.h: New file.
75056
75057         * modules/unistr/u8-startswith: New file.
75058         * modules/unistr/u16-startswith: New file.
75059         * modules/unistr/u32-startswith: New file.
75060         * lib/unistr/u8-startswith.c: New file.
75061         * lib/unistr/u16-startswith.c: New file.
75062         * lib/unistr/u32-startswith.c: New file.
75063         * lib/unistr/u-startswith.h: New file.
75064
75065         * modules/unistr/u8-stpcpy: New file.
75066         * modules/unistr/u16-stpcpy: New file.
75067         * modules/unistr/u32-stpcpy: New file.
75068         * lib/unistr/u8-stpcpy.c: New file.
75069         * lib/unistr/u16-stpcpy.c: New file.
75070         * lib/unistr/u32-stpcpy.c: New file.
75071         * lib/unistr/u-stpcpy.h: New file.
75072
75073         * modules/unistr/u8-stpncpy: New file.
75074         * modules/unistr/u16-stpncpy: New file.
75075         * modules/unistr/u32-stpncpy: New file.
75076         * lib/unistr/u8-stpncpy.c: New file.
75077         * lib/unistr/u16-stpncpy.c: New file.
75078         * lib/unistr/u32-stpncpy.c: New file.
75079         * lib/unistr/u-stpncpy.h: New file.
75080
75081         * modules/unistr/u8-strcat: New file.
75082         * modules/unistr/u16-strcat: New file.
75083         * modules/unistr/u32-strcat: New file.
75084         * lib/unistr/u8-strcat.c: New file.
75085         * lib/unistr/u16-strcat.c: New file.
75086         * lib/unistr/u32-strcat.c: New file.
75087         * lib/unistr/u-strcat.h: New file.
75088
75089         * modules/unistr/u8-strchr: New file.
75090         * modules/unistr/u16-strchr: New file.
75091         * modules/unistr/u32-strchr: New file.
75092         * lib/unistr/u8-strchr.c: New file.
75093         * lib/unistr/u16-strchr.c: New file.
75094         * lib/unistr/u32-strchr.c: New file.
75095
75096         * modules/unistr/u8-strcmp: New file.
75097         * modules/unistr/u16-strcmp: New file.
75098         * modules/unistr/u32-strcmp: New file.
75099         * lib/unistr/u8-strcmp.c: New file.
75100         * lib/unistr/u16-strcmp.c: New file.
75101         * lib/unistr/u32-strcmp.c: New file.
75102
75103         * modules/unistr/u8-strcpy: New file.
75104         * modules/unistr/u16-strcpy: New file.
75105         * modules/unistr/u32-strcpy: New file.
75106         * lib/unistr/u8-strcpy.c: New file.
75107         * lib/unistr/u16-strcpy.c: New file.
75108         * lib/unistr/u32-strcpy.c: New file.
75109         * lib/unistr/u-strcpy.h: New file.
75110
75111         * modules/unistr/u8-strcspn: New file.
75112         * modules/unistr/u16-strcspn: New file.
75113         * modules/unistr/u32-strcspn: New file.
75114         * lib/unistr/u8-strcspn.c: New file.
75115         * lib/unistr/u16-strcspn.c: New file.
75116         * lib/unistr/u32-strcspn.c: New file.
75117         * lib/unistr/u-strcspn.h: New file.
75118
75119         * modules/unistr/u8-strdup: New file.
75120         * modules/unistr/u16-strdup: New file.
75121         * modules/unistr/u32-strdup: New file.
75122         * lib/unistr/u8-strdup.c: New file.
75123         * lib/unistr/u16-strdup.c: New file.
75124         * lib/unistr/u32-strdup.c: New file.
75125         * lib/unistr/u-strdup.h: New file.
75126
75127         * modules/unistr/u8-strlen: New file.
75128         * modules/unistr/u16-strlen: New file.
75129         * modules/unistr/u32-strlen: New file.
75130         * lib/unistr/u8-strlen.c: New file.
75131         * lib/unistr/u16-strlen.c: New file.
75132         * lib/unistr/u32-strlen.c: New file.
75133         * lib/unistr/u-strlen.h: New file.
75134
75135         * modules/unistr/u8-strmblen: New file.
75136         * modules/unistr/u16-strmblen: New file.
75137         * modules/unistr/u32-strmblen: New file.
75138         * lib/unistr/u8-strmblen.c: New file.
75139         * lib/unistr/u16-strmblen.c: New file.
75140         * lib/unistr/u32-strmblen.c: New file.
75141
75142         * modules/unistr/u8-strmbtouc: New file.
75143         * modules/unistr/u16-strmbtouc: New file.
75144         * modules/unistr/u32-strmbtouc: New file.
75145         * lib/unistr/u8-strmbtouc.c: New file.
75146         * lib/unistr/u16-strmbtouc.c: New file.
75147         * lib/unistr/u32-strmbtouc.c: New file.
75148
75149         * modules/unistr/u8-strncat: New file.
75150         * modules/unistr/u16-strncat: New file.
75151         * modules/unistr/u32-strncat: New file.
75152         * lib/unistr/u8-strncat.c: New file.
75153         * lib/unistr/u16-strncat.c: New file.
75154         * lib/unistr/u32-strncat.c: New file.
75155         * lib/unistr/u-strncat.h: New file.
75156
75157         * modules/unistr/u8-strncmp: New file.
75158         * modules/unistr/u16-strncmp: New file.
75159         * modules/unistr/u32-strncmp: New file.
75160         * lib/unistr/u8-strncmp.c: New file.
75161         * lib/unistr/u16-strncmp.c: New file.
75162         * lib/unistr/u32-strncmp.c: New file.
75163
75164         * modules/unistr/u8-strncpy: New file.
75165         * modules/unistr/u16-strncpy: New file.
75166         * modules/unistr/u32-strncpy: New file.
75167         * lib/unistr/u8-strncpy.c: New file.
75168         * lib/unistr/u16-strncpy.c: New file.
75169         * lib/unistr/u32-strncpy.c: New file.
75170         * lib/unistr/u-strncpy.h: New file.
75171
75172         * modules/unistr/u8-strnlen: New file.
75173         * modules/unistr/u16-strnlen: New file.
75174         * modules/unistr/u32-strnlen: New file.
75175         * lib/unistr/u8-strnlen.c: New file.
75176         * lib/unistr/u16-strnlen.c: New file.
75177         * lib/unistr/u32-strnlen.c: New file.
75178         * lib/unistr/u-strnlen.h: New file.
75179
75180         * modules/unistr/u8-strpbrk: New file.
75181         * modules/unistr/u16-strpbrk: New file.
75182         * modules/unistr/u32-strpbrk: New file.
75183         * lib/unistr/u8-strpbrk.c: New file.
75184         * lib/unistr/u16-strpbrk.c: New file.
75185         * lib/unistr/u32-strpbrk.c: New file.
75186         * lib/unistr/u-strpbrk.h: New file.
75187
75188         * modules/unistr/u8-strrchr: New file.
75189         * modules/unistr/u16-strrchr: New file.
75190         * modules/unistr/u32-strrchr: New file.
75191         * lib/unistr/u8-strrchr.c: New file.
75192         * lib/unistr/u16-strrchr.c: New file.
75193         * lib/unistr/u32-strrchr.c: New file.
75194
75195         * modules/unistr/u8-strspn: New file.
75196         * modules/unistr/u16-strspn: New file.
75197         * modules/unistr/u32-strspn: New file.
75198         * lib/unistr/u8-strspn.c: New file.
75199         * lib/unistr/u16-strspn.c: New file.
75200         * lib/unistr/u32-strspn.c: New file.
75201         * lib/unistr/u-strspn.h: New file.
75202
75203         * modules/unistr/u8-strstr: New file.
75204         * modules/unistr/u16-strstr: New file.
75205         * modules/unistr/u32-strstr: New file.
75206         * lib/unistr/u8-strstr.c: New file.
75207         * lib/unistr/u16-strstr.c: New file.
75208         * lib/unistr/u32-strstr.c: New file.
75209         * lib/unistr/u-strstr.h: New file.
75210
75211         * modules/unistr/u8-strtok: New file.
75212         * modules/unistr/u16-strtok: New file.
75213         * modules/unistr/u32-strtok: New file.
75214         * lib/unistr/u8-strtok.c: New file.
75215         * lib/unistr/u16-strtok.c: New file.
75216         * lib/unistr/u32-strtok.c: New file.
75217         * lib/unistr/u-strtok.h: New file.
75218
75219         * modules/unistr/u8-uctomb: New file.
75220         * modules/unistr/u16-uctomb: New file.
75221         * modules/unistr/u32-uctomb: New file.
75222         * lib/unistr/u8-uctomb.c: New file.
75223         * lib/unistr/u16-uctomb.c: New file.
75224         * lib/unistr/u32-uctomb.c: New file.
75225
75226         * MODULES.html.sh (Unicode string functions): Add the new modules.
75227
75228 2007-01-08  Bruno Haible  <bruno@clisp.org>
75229
75230         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75231         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75232         subdirectories.
75233
75234 2007-01-08  Karl Berry  <karl@gnu.org>
75235
75236         * doc/error.texi: mention that main() fns must set program_name
75237         when progname is used.
75238
75239 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75240
75241         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75242         WCTYPE_H is empty, for the benefit of builds from non-distclean
75243         directories.  Problem reported by Eric Blake in
75244         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75245
75246 2007-01-08  Bruno Haible  <bruno@clisp.org>
75247
75248         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75249         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75250         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75251         PROVIDE_CANONICALIZE_FILENAME_MODE.
75252         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75253
75254 2007-01-08  Bruno Haible  <bruno@clisp.org>
75255
75256         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75257         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75258         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75259         * lib/fts.c: Likewise.
75260         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75261
75262 2006-12-25  Bruno Haible  <bruno@clisp.org>
75263
75264         * modules/utf8-ucs4-safe: New file.
75265         * lib/utf8-ucs4-safe.h: New file.
75266         * lib/unistr/utf8-ucs4-safe.c: New file.
75267
75268         * modules/utf16-ucs4-safe: New file.
75269         * lib/utf16-ucs4-safe.h: New file.
75270         * lib/unistr/utf16-ucs4-safe.c: New file.
75271
75272         * MODULES.html.sh (Unicode string functions): Add the new modules.
75273
75274 2007-01-08  Bruno Haible  <bruno@clisp.org>
75275
75276         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75277         (Depends-on): Add unitypes.
75278         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75279         (u8_mbtouc_aux): Move out to separate file.
75280         (u8_mbtouc): Use ucs4_t, uint8_t types.
75281         * lib/unistr/utf8-ucs4.c: New file.
75282
75283         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75284         (Depends-on): Add unitypes.
75285         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75286         (u16_mbtouc_aux): Move out to separate file.
75287         (u16_mbtouc): Use ucs4_t, uint16_t types.
75288         * lib/unistr/utf16-ucs4.c: New file.
75289
75290         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75291         (Depends-on): Add unitypes.
75292         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75293         (u8_uctomb_aux): Move out to separate file.
75294         (u8_uctomb): Use ucs4_t, uint8_t types.
75295         * lib/unistr/ucs4-utf8.c: New file.
75296
75297         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75298         (Depends-on): Add unitypes.
75299         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75300         (u16_uctomb_aux): Move out to separate file.
75301         (u16_uctomb): Use ucs4_t, uint16_t types.
75302         * lib/unistr/ucs4-utf16.c: New file.
75303
75304 2006-12-25  Bruno Haible  <bruno@clisp.org>
75305
75306         * modules/unitypes: New file.
75307         * lib/unitypes.h: New file.
75308         * MODULES.html.sh (func_all_modules): New section "Unicode string
75309         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75310         this section. Add unitypes.
75311
75312 2007-01-08  Bruno Haible  <bruno@clisp.org>
75313
75314         Avoid variable names that conflict with those from libtool.
75315         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75316         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75317         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75318         library_names_spec to acl_library_names_spec, hardcode_* to
75319         acl_hardcode_*.
75320         Reported by Ralf Wildenhues.
75321
75322 2007-01-08  Bruno Haible  <bruno@clisp.org>
75323
75324         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75325         definition.
75326         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75327         definition.
75328         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75329         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75330         definition.
75331         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75332         definition.
75333         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75334         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75335         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75336         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75337         definition.
75338         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75339         definition.
75340         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75341         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75342         GC_USE_<algorithm>.
75343         * lib/gc-libgcrypt.c: Likewise.
75344         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75345         * modules/gc-arctwo (configure.ac): Likewise.
75346         * modules/gc-des (configure.ac): Likewise.
75347         * modules/gc-hmac-md5 (configure.ac): Likewise.
75348         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75349         * modules/gc-md2 (configure.ac): Likewise.
75350         * modules/gc-md4 (configure.ac): Likewise.
75351         * modules/gc-md5 (configure.ac): Likewise.
75352         * modules/gc-random (configure.ac): Likewise.
75353         * modules/gc-rijndael (configure.ac): Likewise.
75354         * modules/gc-sha1 (configure.ac): Likewise.
75355
75356 2007-01-08  Bruno Haible  <bruno@clisp.org>
75357
75358         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75359         macro definition.
75360         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75361         definition.
75362         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75363         definition.
75364         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75365         * modules/fcntl-safer (configure.ac): Likewise.
75366         * modules/fopen-safer (configure.ac): Likewise.
75367         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75368         GNULIB_FWRITEERROR macro definition.
75369
75370 2007-01-08  Bruno Haible  <bruno@clisp.org>
75371
75372         * m4/gnulib-common.m4: New file.
75373         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75374         (func_get_filelist): Add m4/gnulib-common.m4.
75375
75376 2007-01-08  Bruno Haible  <bruno@clisp.org>
75377
75378         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75379         command.
75380
75381 2007-01-08  Jim Meyering  <jim@meyering.net>
75382
75383         Use a more robust test for a "can't happen" condition.
75384         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75385         narrowed the st_size value.  Presuming the "can't happen" condition
75386         is true, that narrowing could conceivably convert an invalid st_size
75387         value into a valid one.  Instead, use a change based on Matthew
75388         Woehlke's original patch.
75389
75390         Slight readability improvement: use an assert-like macro
75391         in place of literal "abort ()" uses.
75392         * lib/fts.c (fts_assert): Define.
75393         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75394         Use this macro instead of a bare 'abort'.
75395
75396 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75399         simply work around them.
75400         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75401         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75402         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75403         declaring.
75404         Don't bother to define as macros, since the standard doesn't require it.
75405         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75406         longer worry about IRIX 5.3.
75407         (HAVE_WCTYPE_CTMP_BUG): Remove.
75408
75409 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75410
75411         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75412         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75413         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75414         Problems reported by Georg Schwarz for IRIX 5.3.
75415
75416         * gnulib-tool (autoconf_minversion): Take the maximum version number
75417         found, not the minimum.  Problem reported by James Youngman.
75418
75419 2007-01-03  Karl Berry  <karl@gnu.org>
75420
75421         * doc/error.texi: new file, explaining interaction with progname.
75422         * doc/gnulib.texi: include it.  Update copyright.
75423
75424 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75425
75426         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75427         AC_CANONICAL_HOST, to improve autobuild outputs.
75428
75429 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75430             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75431
75432         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75433         sockets, server sockets, and other file descriptors.  Count errors
75434         to compute the return value.  Reorder the code a bit to be easier
75435         to follow.  Don't set event bits that were not requested (except
75436         POLLERR and POLLHUP).
75437
75438 2007-01-01  Bruno Haible  <bruno@clisp.org>
75439
75440         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75441
75442 2007-01-03  Jim Meyering  <jim@meyering.net>
75443
75444         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75445
75446 2007-01-02  Bruno Haible  <bruno@clisp.org>
75447
75448         * modules/settime (Include): Require timespec.h.
75449         * modules/nanosleep (Include): Likewise.
75450
75451 2007-01-01  Bruno Haible  <bruno@clisp.org>
75452
75453         * gnulib-tool (func_emit_copyright_notice): Bump year.
75454         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75455
75456 2007-01-01  Bruno Haible  <bruno@clisp.org>
75457
75458         Improve support for OpenBSD.
75459         * build-aux/config.rpath (libname_spec): Export.
75460         (library_names_spec): New variable. Export.
75461         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75462         library_names_spec from the config.rpath output. Locate shared library
75463         through the name pattern in library_names_spec.
75464
75465 2007-01-01  Eric Blake  <ebb9@byu.net>
75466
75467         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75468
75469 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75470
75471         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75472         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75473         assume the C locale, and avoid an "eval" that could cause trouble.
75474         Problem with SORT reported by Bob Proulx.
75475
75476         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75477         Define.  Trivial patch from Henning Nielsen Lund, originally
75478         sent to bug-grep@gnu.org today.
75479
75480 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75481
75482         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75483         struct stat.  Problem reported by Henning Nielsen Lund.
75484         * lib/acl.c: Include acl.h first, to check interface.  Don't
75485         bother to include sys/types.h and sys/stat.h again.
75486
75487 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75488
75489         Import the following change from libc; problem reported by
75490         Sven Verdoolaege.
75491
75492         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75493
75494         [BZ #1373]
75495         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75496
75497 2006-12-28  Jim Meyering  <jim@meyering.net>
75498
75499         * build-aux/announce-gen: Do not assume that the package
75500         builds any of tar.gz, tar.bz2, and .xdelta files.
75501         Suggestion from Simon Josefsson.
75502
75503 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75504
75505         * modules/announce-gen: New file.
75506
75507 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75508
75509         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75510         handles its gotchas now.
75511         * lib/mbswidth.c: Likewise.
75512         * lib/wcwidth.h: Likewise.
75513         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75514         and iswcntrl; the wctype module does this stuff now.
75515         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75516         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75517         * modules/mbchar (Depends-on): Add wctype.
75518         * modules/mbswidth (Depends-on): Likewise.
75519         * modules/wcwidth (Depends-on): Likewise.
75520
75521 2006-12-27  Eric Blake  <ebb9@byu.net>
75522
75523         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75524         module uses more than what <wctype.h> is required to provide.
75525
75526 2006-12-26  Eric Blake  <ebb9@byu.net>
75527
75528         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75529
75530 2006-12-26  Eric Blake  <ebb9@byu.net>
75531
75532         * modules/absolute-header: New module.
75533         * modules/fcntl (Depends-on): Depend on it.
75534         * modules/inttypes (Depends-on): Likewise.
75535         * modules/stdint (Depends-on): Likewise.
75536         * modules/sys_stat (Depends-on): Likewise.
75537         * modules/wctype (Depends-on): Likewise.
75538         * MODULES.html.sh (Support for building libraries and
75539         executables): Document it.
75540
75541 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * gnulib-tool (SED): Remove, undoing previous change.
75544         The problem was that it broke coreutils on Solaris, because
75545         "sed --posix" leaked into a makefile.
75546         (sed): New alias, if 'alias' and GNU sed.
75547
75548 2006-12-24  Jim Meyering  <jim@meyering.net>
75549
75550         Work around an fchownat bug in glibc-2.4:
75551         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75552         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75553         in spite of the -P option.
75554         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75555         New macros.
75556         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75557         * modules/openat (Files): Add lib/fchownat.c.
75558         * lib/openat.c (fchownat): Don't define here.  Move to...
75559         * lib/fchownat.c: ...this new file.
75560
75561 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75562
75563         Fix bug reported by Bruno Haible in
75564         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75565         where quotearg.c didn't compile on Mac OS X 10.2 because it
75566         lacks <wchar.h> and wint_t.
75567         * lib/wctype_.h (__wctype_wint_t): New type.
75568         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75569         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75570         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75571         Arg is now of type __wctype_wint_t, not wint_t.
75572         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75573         substitute HAVE_WINT_T.
75574         * modules/wctype (Files): Add m4/wint_t.m4.
75575         (wctype.h): Substitute HAVE_WINT_T.
75576
75577 2006-12-23  Bruno Haible  <bruno@clisp.org>
75578
75579         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75580
75581 2006-12-23  Bruno Haible  <bruno@clisp.org>
75582
75583         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75584         S_ISLNK.
75585         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75586         mingw.
75587
75588 2006-12-22  Bruno Haible  <bruno@clisp.org>
75589
75590         * lib/copy-file.c: Include acl.h.
75591         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75592         Close the file descriptors only after being done with copy_acl.
75593         * modules/copy-file (Depends-on): Add acl.
75594
75595 2006-12-22  Bruno Haible  <bruno@clisp.org>
75596
75597         * gnulib-tool (SED): New variable.
75598         Use $SED instead of sed everywhere.
75599
75600 2006-12-22  Bruno Haible  <bruno@clisp.org>
75601
75602         * modules/no-c++: New file.
75603         * m4/no-c++.m4: New file.
75604         * MODULES.html.sh (Support for building libraries and executables):
75605         Add no-c++.
75606
75607 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75610         Include <limits.h>, and use its INT_MAX to rewrite the
75611         j loop so that it does not overflow 'int'.  Problem reported by
75612         Ralf Wildenhues in
75613         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75614         Play it safe by shifting left by 1 rather than multiplying by 2,
75615         as GCC is less likely to optimize this away when the value
75616         is signed (when it assumes overflow leads to undefined behavior).
75617         Also, don't assume time_t uses two's complement.
75618
75619 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         * MODULES.html.sh: New module wctype.
75622         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75623         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75624         <wctype.h>, since the new wctype module should fix this.
75625         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75626         the wctype module should arrange for it.
75627         * lib/regex_internal.h: Likewise.
75628         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75629         since the wctype module should handle this now.
75630         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75631         * modules/fnmatch (Depends-on): Add wctype.
75632         * modules/quotearg (Depends-on): Likewise.
75633         * modules/regex (Depends-on): Likewise.
75634
75635 2006-12-19  Bruno Haible  <bruno@clisp.org>
75636
75637         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75638         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75639
75640 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75641
75642         * modules/savewd (Depends-on): Fix dependency on fcntl.
75643
75644 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75645
75646         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75647         conforms to C99, rather than relying on the user's environment
75648         setting of STDINT_H.
75649
75650 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75651         and Eric Blake  <ebb9@byu.net>
75652
75653         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75654         This is more consistent with the other defines here.
75655         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75656         Port to z/OS.  Problem reported by Paul Gilmartin.
75657         Change local vars to use gl_ prefix rather than ac_.
75658         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75659         with other defines.
75660         * modules/double-slash-root: New module.
75661         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75662         (Depends-on): Add double-slash-root.
75663         * MODULES.html.sh (File system functions): Mention new module.
75664
75665 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75666
75667         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75668         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75669         This is for the benefit of gzip, which doesn't do i18n.
75670
75671 2006-12-12  Jim Meyering  <jim@meyering.net>
75672
75673         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75674         Reported by Andreas Schwab <schwab@suse.de>.
75675
75676 2006-12-12  Bruno Haible  <bruno@clisp.org>
75677
75678         Merge these changes.
75679         2006-09-05  Bruno Haible  <bruno@clisp.org>
75680         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75681         iconv_alloc succeeded.
75682         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75683         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75684         test for " && dest " at the end - dest is always != NULL there. Call
75685         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75686         with 2xNULL arguments, also to flush the state storage. Handle the
75687         IRIX iconv behaviour. Realloc the final result, to throw away unused
75688         memory.
75689
75690 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75691
75692         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75693         and fchmodat unconditionally, since glibc 2.4 has them.
75694         Problem reported by Arkadiusz Miskiewicz.
75695
75696 2006-12-10  Bruno Haible  <bruno@clisp.org>
75697
75698         * gnulib-tool (func_import): Show the include files only for those
75699         modules that are copied and specified.
75700         Reported by Karl Berry.
75701
75702 2006-12-08  Jim Meyering  <jim@meyering.net>
75703
75704         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75705         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75706
75707         * build-aux/announce-gen: Add two new options, both optional:
75708         --bootstrap-tools=TOOL_LIST
75709               a comma-separated list of tools, e.g.,
75710               autoconf,automake,bison,gnulib
75711         --gnulib-snapshot-date=DATE
75712               if gnulib is in the bootstrap tool list,
75713               then report this as the snapshot date.
75714               If not specified, use the current date/time.
75715               If you specify a date here, be sure it's UTC.
75716
75717 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75718
75719         * tests/test-argp-2.sh: Fix test to match actual output.
75720         (func_compare): Fix sed script to be portable.
75721
75722 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75725         workaround for this case.  It is not autoconfigured now; offhand
75726         it's hard to see how to autoconfigure it.
75727
75728 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75729
75730         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75731         a directory that is about to be chowned.  Such a directory's
75732         initial file permissions should permit the owner only and this
75733         should not be changed until after the chown, since the group and
75734         other bits would be incorrect if they granted permission before
75735         the chown.
75736
75737         Fix porting problem for iswctype reported by Georg Schwarz in:
75738         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75739         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75740         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75741         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75742         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75743
75744 2006-12-03  Jim Meyering  <jim@meyering.net>
75745
75746         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75747         p->fts_statp may not yet be defined.
75748         (fts_read): Instead, set it in the caller, once p->fts_statp is
75749         sure to be defined, and corresponds to a top-level directory.
75750         This bug made du -x fail.  Here's the coreutils test case:
75751         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75752         Reported by Mike Frysinger.
75753
75754 2006-12-01  Jim Meyering  <jim@meyering.net>
75755
75756         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75757         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75758         Reported by Simon Josefsson.
75759
75760 2006-11-30  Jim Meyering  <jim@meyering.net>
75761
75762         * m4/warning.m4: Use the all-permissive copyright notice
75763         recommended by RMS (rather than LGPL).
75764         * m4/vararrays.m4: Likewise.
75765         * m4/flexmember.m4: Likewise.
75766
75767 2006-11-29  Bruno Haible  <bruno@clisp.org>
75768
75769         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75770         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75771         using +=.
75772         Reported by Simon Josefsson <simon@josefsson.org>.
75773
75774 2006-11-28  James Youngman <jay@gnu.org>
75775
75776         * README: Advise users that they might find the bug-gnulib@gnu.org
75777         and autotools-announce@gnu.org mailing lists useful.
75778
75779 2006-11-28  Bruno Haible  <bruno@clisp.org>
75780
75781         * m4/ptrdiff_max.m4: Remove file.
75782
75783 2006-11-21  Bruno Haible  <bruno@clisp.org>
75784
75785         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75786         _AC_COMPUTE_INT.
75787         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75788         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75789         _AC_COMPUTE_INT.
75790         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75791         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75792         _AC_COMPUTE_INT.
75793         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75794
75795 2006-11-28  Jim Meyering  <jim@meyering.net>
75796
75797         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75798         warning from "gcc -Wshadow" about shadowing the builtin.
75799
75800 2006-11-27  Bruno Haible  <bruno@clisp.org>
75801
75802         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75803         _AC_COMPUTE_INT.
75804         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75805
75806 2006-11-27  Bruno Haible  <bruno@clisp.org>
75807             Paul Eggert  <eggert@cs.ucla.edu>
75808
75809         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75810
75811 2006-11-26  Bruno Haible  <bruno@clisp.org>
75812
75813         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75814         noinst_LTLIBRARIES.
75815
75816 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75817             Bruno Haible  <bruno@clisp.org>
75818
75819         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75820         if compiling with "gcc -ansi".
75821
75822 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         Fix some incompatibilities with gcc -ansi -pedantic.
75825         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75826         if compiling pedantically with GCC, unless it's C99 or later.
75827         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75828         it mishandles gcc -ansi -pedantic as well.
75829         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75830         if gcc -pedantic.
75831         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75832         initializers for struct if -pedantic, unless it's C99 or later.
75833
75834 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75835
75836         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75837         Don't close an fd more than once. Identical atimes indicate
75838         success, not failure.
75839
75840 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75841
75842         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75843
75844 2006-11-23  Jim Meyering  <jim@meyering.net>
75845
75846         * build-aux/announce-gen: New file.  From coreutils.
75847
75848 2006-11-22  Jim Meyering  <jim@meyering.net>
75849
75850         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75851         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75852         (fts_read): Use a temporary to narrow the overused st_size member
75853         before using it in a switch statement.  Reported by Matthew Woehlke.
75854
75855         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75856         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75857
75858 2006-11-20  Bruno Haible  <bruno@clisp.org>
75859
75860         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75861         changequote instead of pairs of brackets.
75862         Reported by Andreas Schwab <schwab@suse.de>.
75863
75864 2006-11-21  Jim Meyering  <jim@meyering.net>
75865
75866         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75867         so as to remain compatible with older compilers.
75868         Patch from Michael Deutschmann.
75869
75870 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75871
75872         * MODULES.html.sh (File system functions): Add openat.
75873
75874         * lib/openat.h (rpl_fstatat): New macro, if
75875         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75876         (fstatat): Define to rpl_fstatat under the same conditions,
75877         unless COMPILING_FSTATAT.
75878         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75879         seems to have the bug.
75880         * lib/fstatat.c: New file.
75881         * modules/openat (Files): Add it.
75882
75883 2006-11-20  Bruno Haible  <bruno@clisp.org>
75884
75885         * Makefile: New file.
75886
75887 2006-11-20  Jim Meyering  <jim@meyering.net>
75888
75889         The beginnings of syntax-related checks for gnulib.
75890         * lib/Makefile: New file.
75891         * lib/t-idcache: New script.  Ensure that the two halves of
75892         idcache.c stay in sync.
75893
75894         * lib/idcache.c: Adjust comments in user- and group- portions to
75895         be more accurate, and to be consistent with one another.
75896
75897 2006-11-20  Jim Meyering  <jim@meyering.net>
75898
75899         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75900         continue using the flexible array member (thus, this module performs
75901         half as many malloc calls), with the addition that...
75902         (getgroup, getuser): Consistently record a non-match via an empty
75903         "name" string, and map an empty string match to a NULL return value.
75904         * modules/idcache (Depends-on): Re-add flexmember.
75905
75906         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75907         (getuidbyname, getgroup, getgidbyname): Likewise.
75908
75909         Use cleaner syntax: NULL rather than 0.
75910         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75911
75912 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75913
75914         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75915         It mishandled the case where the group was missing.
75916         Problem reported by Greg Schafer.
75917         * modules/idcache: Likewise.
75918
75919 2006-11-18  Jim Meyering  <jim@meyering.net>
75920
75921         * check-module (%exempt_header): Add exception for some
75922         conditionally-included headers.
75923
75924         * modules/i-ring (Depends-on): Add verify.
75925         (License): Change to LGPL.
75926
75927 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75930         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75931         and inttostr.h.  Use snprintf rather than uinttostr, so that
75932         LGPLed code doesn't depend on GPLed.
75933
75934 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * modules/inline (License): Change from GPL to LGPL.
75937
75938 2006-11-17  Jim Meyering  <jim@meyering.net>
75939
75940         * modules/d-type (License): Switch to LGPL.
75941
75942 2006-11-15  Bruno Haible  <bruno@clisp.org>
75943
75944         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75945
75946 2006-11-15  Eric Blake  <ebb9@byu.net>
75947
75948         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75949         the module dependency.
75950
75951 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75952             Bruno Haible  <bruno@clisp.org>
75953
75954         * gnulib-tool (func_create_testdir): Add license consistency check.
75955
75956 2006-11-15  Eric Blake  <ebb9@byu.net>
75957
75958         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75959         random "(cached)" in configure output.
75960
75961 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75962
75963         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75964         test for conforming inttypes.h is both announced and cached.
75965
75966         * MODULES.html.sh (seen_modules, seen_files): New variables.
75967         (func_module): Rewrite to use a few less gnulib-tool and sed
75968         invocations.  Avoid a couple of quadratic algorithms for ...
75969         (missed_modules, missed_files): ... these, with ...
75970         (func_append, func_tmpdir): ... these new functions, from
75971         gnulib-tool.  Analogously, install traps for cleanup.
75972
75973         * tests/test-gc.c (main): Remove unused variables.
75974         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75975
75976 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75977
75978         * modules/inttostr (License): Change to LGPL.
75979
75980 2006-11-14  Eric Blake  <ebb9@byu.net>
75981
75982         * modules/tempname (License): Change to LGPL.
75983
75984 2006-11-14  Eric Blake  <ebb9@byu.net>
75985
75986         * doc/functions.texi (Function Portability): *printf functions on
75987         Cygwin now understand all POSIX size specifiers.
75988
75989 2006-11-14  Bruno Haible  <bruno@clisp.org>
75990
75991         * modules/c-ctype (License): Change to LGPL.
75992
75993 2006-11-12  Bruno Haible  <bruno@clisp.org>
75994
75995         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75996         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75997         for GNOME libraries, for which the include files are installed in
75998         subdirectories of $prefix/include.
75999
76000 2006-11-12  Bruno Haible  <bruno@clisp.org>
76001
76002         * m4/lib-link.m4: Require at least autoconf-2.54.
76003         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76004         name to underscores for the --with option.
76005
76006 2006-11-13  Bruno Haible  <bruno@clisp.org>
76007
76008         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76009         the tests directory.
76010         Reported by Ralf Wildenhues.
76011
76012 2006-11-13  Bruno Haible  <bruno@clisp.org>
76013
76014         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76015         (func_emit_initmacro_end): Undo the override here.
76016         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76017         Works around the famous automake error in coreutils.
76018
76019 2006-11-13  Eric Blake  <ebb9@byu.net>
76020
76021         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76022         element, not its node.
76023
76024 2006-11-12  Bruno Haible  <bruno@clisp.org>
76025
76026         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76027         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76028
76029 2006-11-12  Bruno Haible  <bruno@clisp.org>
76030
76031         * gnulib-tool: New option --local-symlink.
76032         (func_usage): Document it.
76033         (lsymbolic): New variable.
76034         (func_import, func_create_testdir): If --symlink was not specified,
76035         test whether --local-symlink was specified and the file comes from
76036         the local_gnulib_dir.
76037
76038 2006-11-12  Bruno Haible  <bruno@clisp.org>
76039
76040         * gnulib-tool (func_ln): New function.
76041         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76042
76043 2006-11-12  Bruno Haible  <bruno@clisp.org>
76044
76045         Finish support for source files in subdirectories.
76046         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76047         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76048         AUTOMAKE_OPTIONS.
76049         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76050
76051 2006-11-12  Bruno Haible  <bruno@clisp.org>
76052
76053         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76054         EXTRA_lib_SOURCES augmentation.
76055         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76056
76057 2006-11-12  Jim Meyering  <jim@meyering.net>
76058
76059         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76060         file descriptors.  This also averts a failure on systems with
76061         native openat support when a traversed directory lacks "x" access.
76062         * lib/fts_.h: Include "i-ring.h"
76063         (struct FTS) [fts_fd_ring]: New member.
76064         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76065         (FCHDIR): Add parentheses.
76066         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76067         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76068         When descending, rather than simply closing the previous
76069         fts_cwd_fd value, push that file descriptor onto the ring.
76070         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76071         (fts_open): Initialize the new fd_ring member.
76072         (fts_close): Clear the ring.
76073         (fts_safe_changedir): When possible, use our new fd_ring to skip
76074         the diropen and fstat and dev/ino comparison that would normally
76075         accompany a virtual `chdir ("..")'.
76076
76077         * modules/fts (Depends-on): Add i-ring.
76078         * modules/i-ring: New module.
76079         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76080         * m4/i-ring.m4: New file.
76081
76082 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76083
76084         * gnulib-tool (func_create_testdir): Fix replacement of
76085         `build-aux' in configure.ac.  Run autotools in gltests
76086         subdirectory.
76087         (func_create_testdir, func_create_megatestdir, test): There is
76088         no need for '--force' in most autotool invocations in a new
76089         tree.  Actually fail the whole test if any of the tools, or the
76090         configure or make stages fail.
76091
76092         Sync from Automake.
76093         * build-aux/gnupload: Revert last change.  Add pointer to upload
76094         instructions of the GNU Maintenance Instructions.
76095         Suggestion by Karl Berry.
76096
76097 2006-11-10  Jim Meyering  <jim@meyering.net>
76098
76099         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76100
76101 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76102
76103         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76104         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76105         (bind_textdomain_codeset) [! ENABLE_NLS]:
76106         Evaluate all the arguments.  That way, callers get compatible behavior
76107         if the arguments have side effects.  Also, it avoids some GCC
76108         diagnostics in some cases; Joel E. Denny reported problems when Bison
76109         was configured with --enable-gcc-warnigs.
76110
76111 2006-11-10  Jim Meyering  <jim@meyering.net>
76112
76113         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76114         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76115         account.
76116
76117 2006-11-10  Jim Meyering  <jim@meyering.net>
76118
76119         * modules/inline: New file/module.
76120         * modules/xalloc (Files): Remove m4/inline.m4.
76121         (Depends-on): Add inline, instead.
76122         * modules/oset: Likewise.
76123         * modules/list: Likewise.
76124
76125 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76128         Problem reported by Matthew Woehlke.
76129
76130 2006-11-09  Bruno Haible  <bruno@clisp.org>
76131
76132         * lib/tempname.c (gen_tempname): Remove variant that invokes
76133         __gen_tempname.
76134         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76135         __gen_tempname.
76136
76137 2006-11-08  Bruno Haible  <bruno@clisp.org>
76138
76139         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76140         to 'yes' instead of 'cross-compiling'.
76141
76142 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76143
76144         * lib/quotearg.h (quotearg_free): New decl.
76145         * lib/quotearg.c (quotearg_free): New function.
76146         (slot0, nslots, slotvec0, slotvec):
76147         Now file-scope so that quotearg_free can get at them.
76148
76149 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76150
76151         Sync from Automake.
76152         * build-aux/gnupload: Add missing 'gnu' to example URL.
76153         Report by Karl Berry.
76154
76155 2006-11-08  Bruno Haible  <bruno@clisp.org>
76156
76157         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76158         Suggested by Paul Eggert.
76159
76160 2006-11-08  Jim Meyering  <jim@meyering.net>
76161
76162         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76163         It's already included if !_LIBC.
76164         (fts_safe_changedir): Add a comment.
76165
76166 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76169         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76170         Matthew Woehlke.
76171
76172         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76173         definitions up, to avoid colliding with change below.
76174         (static_inline) [HAVE_INLINE]: New macro.
76175         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76176         Provide extern decls when !HAVE_INLINE.  Do not define unless
76177         static_inline is defined, either by us or by xmalloc.c.  Use
76178         static_inline rather than static inline.
76179         (XCALLOC): Optimize sizeof(T) = 1 case.
76180         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76181
76182 2006-11-07  Bruno Haible  <bruno@clisp.org>
76183
76184         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76185         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76186         AC_C_INLINE.
76187         * modules/xalloc (Files): Add m4/inline.m4.
76188
76189 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76190
76191         * README: Fix typo.
76192         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76193         (Miscellanous Notes): ...from this.
76194
76195 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76198         Mention that offsetof should be used instead of sizeof.
76199         From Bruno Haible.
76200
76201 2006-11-07  Bruno Haible  <bruno@clisp.org>
76202
76203         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76204
76205 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76208         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76209         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76210         (gl_tree_add_before, gl_tree_add_after):
76211         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76212         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76213         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76214         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76215         (gl_linked_add_after, gl_linked_add_at): Likewise.
76216         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76217         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76218         (gl_tree_add_before, gl_tree_add_after): Likewise.
76219         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76220         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76221         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76222
76223 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76224
76225         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76226
76227 2006-11-06  Bruno Haible  <bruno@clisp.org>
76228
76229         * m4/inline.m4: New file.
76230         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76231         * modules/list (Files): Add m4/inline.m4.
76232         * modules/oset (Files): Likewise.
76233
76234 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76235
76236         * lib/idcache.c: Include <stddef.h>, for offsetof.
76237         (struct userid.name): Change from char * to a flexible array member.
76238         All uses changed.
76239         * modules/idcache (Depends-on): Add flexmember.
76240
76241         * MODULES.html.sh (Core language properties): New module flexmember.
76242         * modules/flexmember, m4/flexmember.m4: New files.
76243
76244         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76245         inline functions that are identical with the old xnmalloc_inline,
76246         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76247         that we can avoid some unnecessary integer multiplications and
76248         divisions in the common case where the element size is known at
76249         compile time.
76250         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76251         needed.
76252         (xnboundedmalloc): Remove.
76253         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76254         arguments, for consistency with rest of this header.
76255         (xcharalloc): Rewrite using XNMALLOC.
76256         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76257         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76258         versions have been moved to lib/xalloc.h and renamed to be the
76259         non-*_inline versions.
76260         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76261         and xnrealloc functions, since those functions are now inline and
76262         now call us.
76263         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76264         renaming described above.
76265         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76266         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76267         captures the dependency in AC_C_INLINE.
76268
76269         New module canonicalize-lgpl, proposed by Charles Wilson in
76270         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76271         with a few small changes afterwards.
76272         * MODULES.html.sh (File system functions): New module
76273         canonicalize-lgpl.
76274         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76275         and canonicalize_file_name.
76276         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76277         * modules/canonicalize-lgpl: New files.
76278
76279 2006-11-05  Bruno Haible  <bruno@clisp.org>
76280
76281         * gnulib-tool (func_import, func_create_testdir): Create directories
76282         also for files in subdirectories of lib/.
76283
76284 2006-11-05  Bruno Haible  <bruno@clisp.org>
76285
76286         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76287         ANSI C compliant.
76288
76289 2006-11-03  Bruno Haible  <bruno@clisp.org>
76290
76291         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76292         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76293         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76294         (xnboundedmalloc): New inline function.
76295         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76296         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76297         xmalloc.
76298         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76299         xmalloc.
76300         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76301         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76302         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76303         xmalloc.
76304         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76305         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76306         xmalloc.
76307         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76308         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76309         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76310         xmalloc.
76311         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76312         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76313         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76314         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76315         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76316         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76317         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76318
76319 2006-11-03  Bruno Haible  <bruno@clisp.org>
76320
76321         * lib/c-ctype.h [C++]: Define functions without name mangling.
76322         * lib/fwriteerror.h [C++]: Likewise.
76323         * lib/gcd.h [C++]: Likewise.
76324         * lib/linebreak.h [C++]: Likewise.
76325
76326 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76329         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76330         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76331         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76332         Check for functions and headers just once.
76333         Check for declaration of canonicalize_file_name.
76334         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76335
76336 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76337
76338         * gnulib-tool (func_import): Fix typo in actioncmd.
76339
76340 2006-11-02  Bruno Haible  <bruno@clisp.org>
76341
76342         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76343         newline sequence in the Makefile.am snippet as a space, like "make"
76344         does.
76345         Reported by Roger Persson <perrog@gmail.com>.
76346
76347 2006-11-01  Bruno Haible  <bruno@clisp.org>
76348
76349         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76350         already declared in <string.h>.
76351         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76352
76353 2006-11-01  Bruno Haible  <bruno@clisp.org>
76354
76355         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76356         * lib/strcase.h: Include <string.h>.
76357         (strcasecmp): Define to rpl_strcasecmp here.
76358
76359 2006-11-01  Bruno Haible  <bruno@clisp.org>
76360
76361         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76362
76363 2006-11-01  Eric Blake  <ebb9@byu.net>
76364
76365         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76366
76367         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76368
76369 2006-10-29  Bruno Haible  <bruno@clisp.org>
76370
76371         Make it compile in C++ mode.
76372         * lib/full-write.c (full_rw): Add a cast.
76373
76374 2006-11-01  Bruno Haible  <bruno@clisp.org>
76375
76376         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76377         be POSIX compliant.
76378         Reported by Roger Persson <perrog@gmail.com>.
76379
76380 2006-11-01  Eric Blake  <ebb9@byu.net>
76381
76382         * lib/getopt_.h: Fix comments.
76383
76384 2006-10-31  Eric Blake  <ebb9@byu.net>
76385
76386         * modules/tmpdir (Depends-on): Add sys_stat.
76387         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76388         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76389         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76390         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76391         tempname.
76392
76393 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76394
76395         Avoid some C++ diagnostics reported by Bruno Haible.
76396         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76397         xmalloc.
76398         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76399         (struct slotvec): Move to top level.
76400         (quotearg_n_options): Rewrite to avoid xmalloc.
76401         * lib/xalloc.h (xcharalloc): New function.
76402         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76403         [defined __cplusplus]: Add function template that provides result
76404         type propagation.  This part of the change is from Bruno Haible.
76405
76406 2006-10-29  Bruno Haible  <bruno@clisp.org>
76407
76408         Make it compile in C++ mode.
76409         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76410         * lib/strnlen1.c (strnlen1): Cast memchr result.
76411         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76412         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76413         (create_temp_dir): Rename local variable 'template'.
76414         (compile_csharp_using_sscli): Add cast.
76415         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76416         * lib/findprog.c (find_in_path): Likewise.
76417         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76418         * lib/wait-process.c (register_slave_subprocess): Likewise.
76419
76420 2006-10-22  Bruno Haible  <bruno@clisp.org>
76421
76422         * modules/tsearch: New file.
76423         * lib/tsearch.h: New file.
76424         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76425         * m4/tsearch.m4: New file.
76426         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76427
76428 2006-10-29  Eric Blake  <ebb9@byu.net>
76429
76430         * lib/arcfour.c: Assume config.h.
76431         * lib/arctwo.c: Likewise.
76432         * lib/base64.c: Likewise.
76433         * lib/check-version.c: Likewise.
76434         * lib/crc.c: Likewise.
76435         * lib/des.c: Likewise.
76436         * lib/gc-gnulib.c: Likewise.
76437         * lib/gc-libgcrypt.c: Likewise.
76438         * lib/gc-pbkdf2-sha1.c: Likewise.
76439         * lib/getaddrinfo.c: Likewise.
76440         * lib/getdelim.c: Likewise.
76441         * lib/getline.c: Likewise.
76442         * lib/hmac-md5.c: Likewise.
76443         * lib/hmac-sha1.c: Likewise.
76444         * lib/iconvme.c: Likewise.
76445         * lib/md2.c: Likewise.
76446         * lib/md4.c: Likewise.
76447         * lib/memxor.c: Likewise.
76448         * lib/read-file.c: Likewise.
76449         * lib/readline.c: Likewise.
76450         * lib/rijndael-alg-fst.c: Likewise.
76451         * lib/rijndael-api-fst.c: Likewise.
76452         * lib/xgetdomainname.c: Likewise.
76453
76454 2006-10-28  Eric Blake  <ebb9@byu.net>
76455
76456         * lib/xstrndup.c: Assume config.h.
76457
76458 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76459
76460         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76461         stat-macros.h is now for our own macros, whereas stat_h is for
76462         macros in the <sys/stat.h> name space.
76463         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76464         (STAT_MACROS_H): Remove.
76465         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76466         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76467         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76468         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76469         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76470         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76471         Move these macros to ...
76472         * lib/stat_.h: here.  Don't include stat-macros.h.
76473         * lib/canonicalize.c: Don't include stat-macros.h.
76474         * lib/chown.c: Likewise.
76475         * lib/euidaccess.c: Likewise.
76476         * lib/file-type.c: Likewise.
76477         * lib/filemode.c: Likewise.
76478         * lib/glob.c: Likewise.
76479         * lib/isapipe.c: Likewise.
76480         * lib/lchown.c: Likewise.
76481         * lib/lstat.c: Likewise.
76482         * lib/mkdir-p.c: Likewise.
76483         * lib/rmdir.c: Likewise.
76484         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76485         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76486         unless mkdir isn't declared, to speed up 'configure'.
76487         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76488         would define all the S_* symbols.
76489         * modules/canonicalize (Depends-on):
76490         Depend on sys_stat, not stat-macros.
76491         * modules/chown: Likewise.
76492         * modules/euidaccess: Likewise.
76493         * modules/filemode: Likewise.
76494         * modules/file-type: Likewise.
76495         * modules/glob: Likewise.
76496         * modules/isapipe: Likewise.
76497         * modules/lchown: Likewise.
76498         * modules/lstat: Likewise.
76499         * modules/mkancesdirs: Likewise.
76500         * modules/rmdir: Likewise.
76501         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76502         * modules/modechange: Likewise.
76503         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76504         (configure.ac): Remove gl_STAT_MACROS.
76505         * modules/sys_stat (Depends-on): Remove stat-macros.
76506
76507 2006-10-27  Bruno Haible  <bruno@clisp.org>
76508
76509         * m4/signed.m4: Remove file.
76510         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76511         invocation.
76512         * modules/vasnprintf (Files): Remove m4/signed.m4.
76513
76514 2006-10-27  Bruno Haible  <bruno@clisp.org>
76515
76516         Update to GNU gettext 0.16.
76517         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76518         m4/inttypes-h.m4, m4/signed.m4.
76519         * m4/gettext.m4: Update to GNU gettext 0.16.
76520         * m4/intl.m4: New file, from GNU gettext.
76521         * m4/intldir.m4: New file, from GNU gettext.
76522         * config/srclist.txt: Update
76523
76524 2006-10-27  Eric Blake  <ebb9@byu.net>
76525
76526         * MODULES.html.sh: Document tempname.
76527         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76528         dependencies.
76529         (Files): Move lib/tempname.c...
76530         * modules/tempname: ...to this new module.
76531         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76532         (gl_PREREQ_TEMPNAME): Move...
76533         * m4/tempname.m4: ...to this new file.
76534         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76535         * modules/sys_stat (Depends-on): Add stat-macros.
76536         * lib/stat_.h (includes): Pick up stat macros.
76537         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76538         if stat macros are broken.
76539         * lib/tempname.c (includes): No need to include "stat-macros.h".
76540         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76541         (direxists, __path_search) [!_LIBC]: Don't compile these in
76542         gnulib; the tmpdir module covers that.
76543         * lib/tempname.h: New file.
76544
76545 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76546
76547         * COPYING: Explain how gnulib-tool converts licence headers.
76548         Almost all wording by Eric Blake.
76549
76550 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76551
76552         * lib/mbchar.h (is_basic_table): Make read-only.
76553         * lib/mbchar.c (is_basic_table): Likewise.
76554         Reported by John Darrington.
76555
76556 2006-10-25  Bruno Haible  <bruno@clisp.org>
76557
76558         * lib/progname.h (set_program_name): Undefine before defining.
76559
76560 2006-10-25  Bruno Haible  <bruno@clisp.org>
76561
76562         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76563         false for non-gcc C++ compilers.
76564         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76565
76566 2006-10-24  Bruno Haible  <bruno@clisp.org>
76567
76568         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76569         iconv implementations like Irix iconv.
76570
76571 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76572
76573         * modules/vararrays: New file.
76574         * m4/vararrays.m4: New file, taken from diffutils.
76575         * MODULES.html.sh: New module vararrays.
76576
76577 2006-10-24  Karl Berry  <karl@gnu.org>
76578
76579         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76580         Don't call GNU Unix.
76581
76582 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76583
76584         * users.txt: Add Libtool.
76585
76586         Sync from Libtool:
76587
76588         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76589
76590         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76591         to gnulib's policy of including config.h unconditionally.
76592
76593 2006-10-24  Bruno Haible  <bruno@clisp.org>
76594
76595         * modules/wcwidth (Files): Add m4/wint_t.m4.
76596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76597         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76598
76599 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76600
76601         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76602         to pacify GCC with some -W flags enabled.  Problem reported by
76603         Bruno Haible.
76604
76605 2006-10-24  Jim Meyering  <jim@meyering.net>
76606
76607         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76608         Reported by Karl Berry.
76609
76610 2006-10-23  Bruno Haible  <bruno@clisp.org>
76611
76612         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76613
76614 2006-10-24  Bruno Haible  <bruno@clisp.org>
76615
76616         * lib/gl_list.h: Use C comment style, not C++ comment style.
76617
76618 2006-10-23  Eric Blake  <ebb9@byu.net>
76619
76620         * lib/getaddrinfo.c (includes): Add missing include.
76621
76622 2006-10-23  Bruno Haible  <bruno@clisp.org>
76623             Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         Ability to rename obstack_free.
76626         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76627         obstack_free.
76628         (obstack_free): Invoke the __obstack_free macro.
76629         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76630
76631 2006-10-23  Bruno Haible  <bruno@clisp.org>
76632             Paul Eggert  <eggert@cs.ucla.edu>
76633
76634         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76635         __argc, __argv from the declaration. (They are defined as macros on
76636         mingw.)
76637
76638 2006-10-22  Bruno Haible  <bruno@clisp.org>
76639
76640         * doc/gnulib-intro.texi: New file.
76641         * doc/gnulib.texi: Include it.
76642
76643 2006-10-21  Bruno Haible  <bruno@clisp.org>
76644
76645         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76646         "Introduction", "Miscellanous Notes", "Particular Modules".
76647
76648 2006-10-21  Bruno Haible  <bruno@clisp.org>
76649
76650         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76651         Change mostlyclean-local rule to avoid sh syntax error from bash
76652         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76653
76654 2006-10-23  Jim Meyering  <jim@meyering.net>
76655
76656         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76657         in place of snprintf.
76658
76659         * modules/inttostr (Files): Add lib/uinttostr.c.
76660         * lib/uinttostr.c (inttostr): New file/function.
76661         * lib/inttostr.h (uinttostr): Declare.
76662         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76663         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76664         Add uinttostr.
76665         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76666
76667 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76668
76669         * lib/canonicalize.c (ELOOP): Define if not already defined.
76670         Problem reported by Bruno Haible in
76671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76672
76673 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76674
76675         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76676         Problem reported by Perry Smith and Ville Laurikari.
76677
76678         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76679         uses.
76680
76681 2006-10-19  Bruno Haible  <bruno@clisp.org>
76682
76683         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76684         for mingw.
76685
76686 2006-10-19  Bruno Haible  <bruno@clisp.org>
76687
76688         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76689         Needed for mingw.
76690
76691 2006-10-19  Bruno Haible  <bruno@clisp.org>
76692
76693         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76694
76695 2006-10-19  Bruno Haible  <bruno@clisp.org>
76696
76697         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76698         it.
76699
76700 2006-10-19  Bruno Haible  <bruno@clisp.org>
76701
76702         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76703         invocation.
76704
76705 2006-10-19  Bruno Haible  <bruno@clisp.org>
76706
76707         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76708         mountlist by default.
76709
76710 2006-10-16  Bruno Haible  <bruno@clisp.org>
76711
76712         * lib/c-strstr.c: Include c-strstr.h.
76713
76714 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76715
76716         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76717         in a slash.
76718
76719 2006-10-18  Bruno Haible  <bruno@clisp.org>
76720
76721         * lib/lock.h [C++]: Wrap definitions in extern "C".
76722
76723 2006-10-18  Bruno Haible  <bruno@clisp.org>
76724
76725         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76726         gl_LIBOBJS list.
76727
76728 2006-10-18  Bruno Haible  <bruno@clisp.org>
76729
76730         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76731
76732 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         * lib/xstrtol.h: Include gettext.h.
76735         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76736         Problem reported by Eric Blake.
76737         * modules/xstrtol (Depends-on): Add gettext-h.
76738
76739 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76740
76741         * lib/strftime.c (advance): New macro.
76742         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76743         incomplete type, so you can't add 0 to it.  Problem and patch
76744         reported by Eelco Dolstra for dietlibc.
76745
76746 2006-10-18  Jim Meyering  <jim@meyering.net>
76747
76748         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76749         type for a local, and rename it: s/up/user_proc/.
76750
76751 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76752
76753         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76754         READ_UTMP_USER_PROCESS.
76755         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76756
76757 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76760         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76761
76762 2006-10-17  Eric Blake  <ebb9@byu.net>
76763
76764         * lib/sigprocmask.c (sigprocmask): Fix typo.
76765
76766         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76767
76768         * modules/clean-temp (Makefile.am): Don't add to make output...
76769         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76770         config.h.
76771
76772 2006-10-17  Bruno Haible  <bruno@clisp.org>
76773
76774         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76775         differently if DEFAULT_TEXT_DOMAIN is set.
76776
76777 2006-10-16  Bruno Haible  <bruno@clisp.org>
76778
76779         * lib/clean-temp.c: Include fwriteerror.h.
76780
76781 2006-10-16  Bruno Haible  <bruno@clisp.org>
76782
76783         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76784
76785 2006-10-16  Bruno Haible  <bruno@clisp.org>
76786
76787         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76788         * lib/sigprocmask.h: Include <sys/types.h>.
76789         (sigset_t): Use the system's definition if present.
76790
76791 2006-10-17  Eric Blake  <ebb9@byu.net>
76792
76793         * lib/xvasprintf.c (includes): Assume config.h.
76794         * lib/xasprintf.c (includes): Likewise.
76795
76796 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76799         at least as wide as intmax_t.
76800
76801 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76802
76803         (Imported from Automake.)
76804         * build-aux/gnupload: Update to version 1.1 of directive file.
76805
76806 2006-10-16  Eric Blake  <ebb9@byu.net>
76807
76808         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76809         match Automake 1.10a.
76810
76811 2006-10-14  Bruno Haible  <bruno@clisp.org>
76812
76813         * modules/sigprocmask: New file.
76814         * lib/sigprocmask.h: New file.
76815         * lib/sigprocmask.c: New file.
76816         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76817         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76818         request sigprocmask.o.
76819         (gl_PREREQ_SIGPROCMASK): New macro.
76820         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76821         (Depends-on): Add sigprocmask.
76822         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76823         gt_SIGNALBLOCKING. Test for 'raise' only once.
76824         * lib/fatal-signal.c: Include sigprocmask.h.
76825         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76826         unblock_fatal_signals): Define always.
76827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76828         sigprocmask.
76829
76830 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         Sync from Automake.
76833         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76834         which incorrectly sets the mode of an existing destination
76835         directory.  In some cases the unpatched install-sh could do the
76836         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76837         system.  We hope this is rare in practice, but it's clearly worth
76838         fixing.  Problem reported by Alex Unleashed in
76839         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76840         Also, don't bother to check for -m bugs unless we're using -m;
76841         suggested by Stepan Kasal.
76842
76843 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76844
76845         Sync from Automake.
76846         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76847         `-c' flag, so they appear at the same position as in %FASTDEP%
76848         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76849         which ignores unknown options only after the first non-option.
76850         Bug report against M4 by Nelson H. F. Beebe.
76851
76852 2006-10-13  Jim Meyering  <jim@meyering.net>
76853
76854         Fix a bug in yesterday's change.
76855         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76856         p->fts_statp->st_dev would be used uninitialized.
76857         Ensures that we always call fts_stat on the very first entry.
76858         Miklos Szeredi reported that find -xdev stopped working.
76859
76860 2006-10-12  Bruno Haible  <bruno@clisp.org>
76861
76862         * gnulib-tool (func_get_automake_snippet): Append an automatically
76863         computed EXTRA_DIST augmentation.
76864         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76865         * modules/alloca-opt (Makefile.am): Likewise.
76866         * modules/allocsa (Makefile.am): Likewise.
76867         * modules/arcfour (Makefile.am): Likewise.
76868         * modules/arctwo (Makefile.am): Likewise.
76869         * modules/argmatch (Makefile.am): Likewise.
76870         * modules/argz (Makefile.am): Likewise.
76871         * modules/atexit (Makefile.am): Likewise.
76872         * modules/backupfile (Makefile.am): Likewise.
76873         * modules/byteswap (Makefile.am): Likewise.
76874         * modules/c-strtod (Makefile.am): Likewise.
76875         * modules/c-strtold (Makefile.am): Likewise.
76876         * modules/calloc (Makefile.am): Likewise.
76877         * modules/canon-host (Makefile.am): Likewise.
76878         * modules/canonicalize (Makefile.am): Likewise.
76879         * modules/chdir-long (Makefile.am): Likewise.
76880         * modules/chdir-safer (Makefile.am): Likewise.
76881         * modules/check-version (Makefile.am): Likewise.
76882         * modules/chown (Makefile.am): Likewise.
76883         * modules/cloexec (Makefile.am): Likewise.
76884         * modules/close-stream (Makefile.am): Likewise.
76885         * modules/closeout (Makefile.am): Likewise.
76886         * modules/crc (Makefile.am): Likewise.
76887         * modules/csharpexec (Makefile.am): Likewise.
76888         * modules/cycle-check (Makefile.am): Likewise.
76889         * modules/des (Makefile.am): Likewise.
76890         * modules/dev-ino (Makefile.am): Likewise.
76891         * modules/dirfd (Makefile.am): Likewise.
76892         * modules/dirname (Makefile.am): Likewise.
76893         * modules/dup2 (Makefile.am): Likewise.
76894         * modules/eealloc (Makefile.am): Likewise.
76895         * modules/error (Makefile.am): Likewise.
76896         * modules/euidaccess (Makefile.am): Likewise.
76897         * modules/exclude (Makefile.am): Likewise.
76898         * modules/exitfail (Makefile.am): Likewise.
76899         * modules/fcntl-safer (Makefile.am): Likewise.
76900         * modules/fcntl (Makefile.am): Likewise.
76901         * modules/file-type (Makefile.am): Likewise.
76902         * modules/fileblocks (Makefile.am): Likewise.
76903         * modules/filemode (Makefile.am): Likewise.
76904         * modules/filenamecat (Makefile.am): Likewise.
76905         * modules/fnmatch (Makefile.am): Likewise.
76906         * modules/fopen-safer (Makefile.am): Likewise.
76907         * modules/fpending (Makefile.am): Likewise.
76908         * modules/fprintftime (Makefile.am): Likewise.
76909         * modules/free (Makefile.am): Likewise.
76910         * modules/fsusage (Makefile.am): Likewise.
76911         * modules/ftruncate (Makefile.am): Likewise.
76912         * modules/fts (Makefile.am): Likewise.
76913         * modules/gc-arcfour (Makefile.am): Likewise.
76914         * modules/gc-des (Makefile.am): Likewise.
76915         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76916         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76917         * modules/gc-md4 (Makefile.am): Likewise.
76918         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76919         * modules/gc-sha1 (Makefile.am): Likewise.
76920         * modules/gc (Makefile.am): Likewise.
76921         * modules/getaddrinfo (Makefile.am): Likewise.
76922         * modules/getcwd (Makefile.am): Likewise.
76923         * modules/getdelim (Makefile.am): Likewise.
76924         * modules/getdomainname (Makefile.am): Likewise.
76925         * modules/getgroups (Makefile.am): Likewise.
76926         * modules/gethostname (Makefile.am): Likewise.
76927         * modules/gethrxtime (Makefile.am): Likewise.
76928         * modules/getline (Makefile.am): Likewise.
76929         * modules/getloadavg (Makefile.am): Likewise.
76930         * modules/getlogin_r (Makefile.am): Likewise.
76931         * modules/getndelim2 (Makefile.am): Likewise.
76932         * modules/getopt (Makefile.am): Likewise.
76933         * modules/getpagesize (Makefile.am): Likewise.
76934         * modules/getpass-gnu (Makefile.am): Likewise.
76935         * modules/getpass (Makefile.am): Likewise.
76936         * modules/getsubopt (Makefile.am): Likewise.
76937         * modules/gettime (Makefile.am): Likewise.
76938         * modules/gettimeofday (Makefile.am): Likewise.
76939         * modules/getugroups (Makefile.am): Likewise.
76940         * modules/getusershell (Makefile.am): Likewise.
76941         * modules/glob (Makefile.am): Likewise.
76942         * modules/group-member (Makefile.am): Likewise.
76943         * modules/hard-locale (Makefile.am): Likewise.
76944         * modules/hash (Makefile.am): Likewise.
76945         * modules/hmac-md5 (Makefile.am): Likewise.
76946         * modules/hmac-sha1 (Makefile.am): Likewise.
76947         * modules/human (Makefile.am): Likewise.
76948         * modules/idcache (Makefile.am): Likewise.
76949         * modules/imaxabs (Makefile.am): Likewise.
76950         * modules/imaxdiv (Makefile.am): Likewise.
76951         * modules/inet_ntop (Makefile.am): Likewise.
76952         * modules/inet_pton (Makefile.am): Likewise.
76953         * modules/intprops (Makefile.am): Likewise.
76954         * modules/inttostr (Makefile.am): Likewise.
76955         * modules/inttypes (Makefile.am): Likewise.
76956         * modules/isapipe (Makefile.am): Likewise.
76957         * modules/javaversion (Makefile.am): Likewise.
76958         * modules/lchmod (Makefile.am): Likewise.
76959         * modules/lchown (Makefile.am): Likewise.
76960         * modules/localcharset (Makefile.am): Likewise.
76961         * modules/long-options (Makefile.am): Likewise.
76962         * modules/lstat (Makefile.am): Likewise.
76963         * modules/malloc (Makefile.am): Likewise.
76964         * modules/mathl (Makefile.am): Likewise.
76965         * modules/mbchar (Makefile.am): Likewise.
76966         * modules/md2 (Makefile.am): Likewise.
76967         * modules/md4 (Makefile.am): Likewise.
76968         * modules/md5 (Makefile.am): Likewise.
76969         * modules/memcasecmp (Makefile.am): Likewise.
76970         * modules/memchr (Makefile.am): Likewise.
76971         * modules/memcmp (Makefile.am): Likewise.
76972         * modules/memcoll (Makefile.am): Likewise.
76973         * modules/memcpy (Makefile.am): Likewise.
76974         * modules/memmem (Makefile.am): Likewise.
76975         * modules/memmove (Makefile.am): Likewise.
76976         * modules/mempcpy (Makefile.am): Likewise.
76977         * modules/memrchr (Makefile.am): Likewise.
76978         * modules/memset (Makefile.am): Likewise.
76979         * modules/memxor (Makefile.am): Likewise.
76980         * modules/mkancesdirs (Makefile.am): Likewise.
76981         * modules/mkdir-p (Makefile.am): Likewise.
76982         * modules/mkdir (Makefile.am): Likewise.
76983         * modules/mkdtemp (Makefile.am): Likewise.
76984         * modules/mkstemp (Makefile.am): Likewise.
76985         * modules/mktime (Makefile.am): Likewise.
76986         * modules/modechange (Makefile.am): Likewise.
76987         * modules/mountlist (Makefile.am): Likewise.
76988         * modules/nanosleep (Makefile.am): Likewise.
76989         * modules/obstack (Makefile.am): Likewise.
76990         * modules/openat (Makefile.am): Likewise.
76991         * modules/pagealign_alloc (Makefile.am): Likewise.
76992         * modules/pathmax (Makefile.am): Likewise.
76993         * modules/physmem (Makefile.am): Likewise.
76994         * modules/poll (Makefile.am): Likewise.
76995         * modules/posixtm (Makefile.am): Likewise.
76996         * modules/posixver (Makefile.am): Likewise.
76997         * modules/putenv (Makefile.am): Likewise.
76998         * modules/quote (Makefile.am): Likewise.
76999         * modules/quotearg (Makefile.am): Likewise.
77000         * modules/raise (Makefile.am): Likewise.
77001         * modules/read-file (Makefile.am): Likewise.
77002         * modules/readline (Makefile.am): Likewise.
77003         * modules/readlink (Makefile.am): Likewise.
77004         * modules/readtokens (Makefile.am): Likewise.
77005         * modules/readutmp (Makefile.am): Likewise.
77006         * modules/realloc (Makefile.am): Likewise.
77007         * modules/regex (Makefile.am): Likewise.
77008         * modules/rename-dest-slash (Makefile.am): Likewise.
77009         * modules/rename (Makefile.am): Likewise.
77010         * modules/rijndael (Makefile.am): Likewise.
77011         * modules/rmdir (Makefile.am): Likewise.
77012         * modules/rpmatch (Makefile.am): Likewise.
77013         * modules/safe-read (Makefile.am): Likewise.
77014         * modules/safe-write (Makefile.am): Likewise.
77015         * modules/same-inode (Makefile.am): Likewise.
77016         * modules/same (Makefile.am): Likewise.
77017         * modules/save-cwd (Makefile.am): Likewise.
77018         * modules/savedir (Makefile.am): Likewise.
77019         * modules/setenv (Makefile.am): Likewise.
77020         * modules/settime (Makefile.am): Likewise.
77021         * modules/sha1 (Makefile.am): Likewise.
77022         * modules/sig2str (Makefile.am): Likewise.
77023         * modules/snprintf (Makefile.am): Likewise.
77024         * modules/stat-macros (Makefile.am): Likewise.
77025         * modules/stat-time (Makefile.am): Likewise.
77026         * modules/stdbool (Makefile.am): Likewise.
77027         * modules/stdint (Makefile.am): Likewise.
77028         * modules/stdlib-safer (Makefile.am): Likewise.
77029         * modules/stpcpy (Makefile.am): Likewise.
77030         * modules/stpncpy (Makefile.am): Likewise.
77031         * modules/strcase (Makefile.am): Likewise.
77032         * modules/strcasestr (Makefile.am): Likewise.
77033         * modules/strchrnul (Makefile.am): Likewise.
77034         * modules/strcspn (Makefile.am): Likewise.
77035         * modules/strdup (Makefile.am): Likewise.
77036         * modules/strerror (Makefile.am): Likewise.
77037         * modules/strftime (Makefile.am): Likewise.
77038         * modules/strndup (Makefile.am): Likewise.
77039         * modules/strnlen (Makefile.am): Likewise.
77040         * modules/strpbrk (Makefile.am): Likewise.
77041         * modules/strsep (Makefile.am): Likewise.
77042         * modules/strstr (Makefile.am): Likewise.
77043         * modules/strtod (Makefile.am): Likewise.
77044         * modules/strtoimax (Makefile.am): Likewise.
77045         * modules/strtok_r (Makefile.am): Likewise.
77046         * modules/strtol (Makefile.am): Likewise.
77047         * modules/strtoll (Makefile.am): Likewise.
77048         * modules/strtoul (Makefile.am): Likewise.
77049         * modules/strtoull (Makefile.am): Likewise.
77050         * modules/strtoumax (Makefile.am): Likewise.
77051         * modules/strverscmp (Makefile.am): Likewise.
77052         * modules/sys_socket (Makefile.am): Likewise.
77053         * modules/sys_stat (Makefile.am): Likewise.
77054         * modules/sysexits (Makefile.am): Likewise.
77055         * modules/time_r (Makefile.am): Likewise.
77056         * modules/timegm (Makefile.am): Likewise.
77057         * modules/timespec (Makefile.am): Likewise.
77058         * modules/tmpfile-safer (Makefile.am): Likewise.
77059         * modules/trim (Makefile.am): Likewise.
77060         * modules/unistd-safer (Makefile.am): Likewise.
77061         * modules/unlinkdir (Makefile.am): Likewise.
77062         * modules/unlocked-io (Makefile.am): Likewise.
77063         * modules/userspec (Makefile.am): Likewise.
77064         * modules/utime (Makefile.am): Likewise.
77065         * modules/utimecmp (Makefile.am): Likewise.
77066         * modules/utimens (Makefile.am): Likewise.
77067         * modules/vasnprintf (Makefile.am): Likewise.
77068         * modules/vasprintf (Makefile.am): Likewise.
77069         * modules/vsnprintf (Makefile.am): Likewise.
77070         * modules/xalloc (Makefile.am): Likewise.
77071         * modules/xgetcwd (Makefile.am): Likewise.
77072         * modules/xnanosleep (Makefile.am): Likewise.
77073         * modules/xreadlink (Makefile.am): Likewise.
77074         * modules/xstrtod (Makefile.am): Likewise.
77075         * modules/xstrtol (Makefile.am): Likewise.
77076         * modules/xstrtold (Makefile.am): Likewise.
77077         * modules/yesno (Makefile.am): Likewise.
77078         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77079
77080 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77081
77082         * modules/error (Makefile.am): Distribute files through
77083         EXTRA_DIST, not lib_SOURCES.
77084
77085 2006-10-12  Eric Blake  <ebb9@byu.net>
77086
77087         * modules/error (Makefile.am): Distribute files in /lib.
77088         * modules/obstack (Makefile.am): Likewise.
77089
77090 2006-10-12  Bruno Haible  <bruno@clisp.org>
77091
77092         * modules/acl (Makefile.am): Distribute all files in lib/ through
77093         EXTRA_DIST.
77094         * modules/arcfour (Makefile.am): Likewise.
77095         * modules/arctwo (Makefile.am): Likewise.
77096         * modules/argmatch (Makefile.am): Likewise.
77097         * modules/argz (Makefile.am): Likewise.
77098         * modules/atexit (Makefile.am): Likewise.
77099         * modules/backupfile (Makefile.am): Likewise.
77100         * modules/c-strtod (Makefile.am): Likewise.
77101         * modules/c-strtold (Makefile.am): Likewise.
77102         * modules/calloc (Makefile.am): Likewise.
77103         * modules/canon-host (Makefile.am): Likewise.
77104         * modules/canonicalize (Makefile.am): Likewise.
77105         * modules/chdir-long (Makefile.am): Likewise.
77106         * modules/chdir-safer (Makefile.am): Likewise.
77107         * modules/check-version (Makefile.am): Likewise.
77108         * modules/chown (Makefile.am): Likewise.
77109         * modules/cloexec (Makefile.am): Likewise.
77110         * modules/close-stream (Makefile.am): Likewise.
77111         * modules/closeout (Makefile.am): Likewise.
77112         * modules/crc (Makefile.am): Likewise.
77113         * modules/cycle-check (Makefile.am): Likewise.
77114         * modules/des (Makefile.am): Likewise.
77115         * modules/dirfd (Makefile.am): Likewise.
77116         * modules/dirname (Makefile.am): Likewise.
77117         * modules/dup2 (Makefile.am): Likewise.
77118         * modules/euidaccess (Makefile.am): Likewise.
77119         * modules/exclude (Makefile.am): Likewise.
77120         * modules/exitfail (Makefile.am): Likewise.
77121         * modules/fcntl-safer (Makefile.am): Likewise.
77122         * modules/file-type (Makefile.am): Likewise.
77123         * modules/fileblocks (Makefile.am): Likewise.
77124         * modules/filemode (Makefile.am): Likewise.
77125         * modules/filenamecat (Makefile.am): Likewise.
77126         * modules/fnmatch (Makefile.am): Likewise.
77127         * modules/fopen-safer (Makefile.am): Likewise.
77128         * modules/fpending (Makefile.am): Likewise.
77129         * modules/fprintftime (Makefile.am): Likewise.
77130         * modules/free (Makefile.am): Likewise.
77131         * modules/fsusage (Makefile.am): Likewise.
77132         * modules/ftruncate (Makefile.am): Likewise.
77133         * modules/fts (Makefile.am): Likewise.
77134         * modules/gc (Makefile.am): Likewise.
77135         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77136         * modules/getaddrinfo (Makefile.am): Likewise.
77137         * modules/getcwd (Makefile.am): Likewise.
77138         * modules/getdelim (Makefile.am): Likewise.
77139         * modules/getdomainname (Makefile.am): Likewise.
77140         * modules/getgroups (Makefile.am): Likewise.
77141         * modules/gethostname (Makefile.am): Likewise.
77142         * modules/gethrxtime (Makefile.am): Likewise.
77143         * modules/getline (Makefile.am): Likewise.
77144         * modules/getloadavg (Makefile.am): Likewise.
77145         * modules/getlogin_r (Makefile.am): Likewise.
77146         * modules/getopt (Makefile.am): Likewise.
77147         * modules/getpass (Makefile.am): Likewise.
77148         * modules/getpass-gnu (Makefile.am): Likewise.
77149         * modules/getsubopt (Makefile.am): Likewise.
77150         * modules/gettime (Makefile.am): Likewise.
77151         * modules/gettimeofday (Makefile.am): Likewise.
77152         * modules/getugroups (Makefile.am): Likewise.
77153         * modules/getusershell (Makefile.am): Likewise.
77154         * modules/glob (Makefile.am): Likewise.
77155         * modules/group-member (Makefile.am): Likewise.
77156         * modules/hard-locale (Makefile.am): Likewise.
77157         * modules/hash (Makefile.am): Likewise.
77158         * modules/hmac-md5 (Makefile.am): Likewise.
77159         * modules/hmac-sha1 (Makefile.am): Likewise.
77160         * modules/human (Makefile.am): Likewise.
77161         * modules/idcache (Makefile.am): Likewise.
77162         * modules/imaxabs (Makefile.am): Likewise.
77163         * modules/imaxdiv (Makefile.am): Likewise.
77164         * modules/inet_ntop (Makefile.am): Likewise.
77165         * modules/inet_pton (Makefile.am): Likewise.
77166         * modules/inttostr (Makefile.am): Likewise.
77167         * modules/isapipe (Makefile.am): Likewise.
77168         * modules/lchown (Makefile.am): Likewise.
77169         * modules/long-options (Makefile.am): Likewise.
77170         * modules/lstat (Makefile.am): Likewise.
77171         * modules/malloc (Makefile.am): Likewise.
77172         * modules/mathl (Makefile.am): Likewise.
77173         * modules/mbchar (Makefile.am): Likewise.
77174         * modules/md2 (Makefile.am): Likewise.
77175         * modules/md4 (Makefile.am): Likewise.
77176         * modules/md5 (Makefile.am): Likewise.
77177         * modules/memcasecmp (Makefile.am): Likewise.
77178         * modules/memchr (Makefile.am): Likewise.
77179         * modules/memcmp (Makefile.am): Likewise.
77180         * modules/memcoll (Makefile.am): Likewise.
77181         * modules/memcpy (Makefile.am): Likewise.
77182         * modules/memmem (Makefile.am): Likewise.
77183         * modules/memmove (Makefile.am): Likewise.
77184         * modules/mempcpy (Makefile.am): Likewise.
77185         * modules/memrchr (Makefile.am): Likewise.
77186         * modules/memset (Makefile.am): Likewise.
77187         * modules/memxor (Makefile.am): Likewise.
77188         * modules/mkancesdirs (Makefile.am): Likewise.
77189         * modules/mkdir (Makefile.am): Likewise.
77190         * modules/mkdir-p (Makefile.am): Likewise.
77191         * modules/mkdtemp (Makefile.am): Likewise.
77192         * modules/mkstemp (Makefile.am): Likewise.
77193         * modules/mktime (Makefile.am): Likewise.
77194         * modules/modechange (Makefile.am): Likewise.
77195         * modules/mountlist (Makefile.am): Likewise.
77196         * modules/nanosleep (Makefile.am): Likewise.
77197         * modules/openat (Makefile.am): Likewise.
77198         * modules/pagealign_alloc (Makefile.am): Likewise.
77199         * modules/physmem (Makefile.am): Likewise.
77200         * modules/poll (Makefile.am): Likewise.
77201         * modules/posixtm (Makefile.am): Likewise.
77202         * modules/posixver (Makefile.am): Likewise.
77203         * modules/putenv (Makefile.am): Likewise.
77204         * modules/quote (Makefile.am): Likewise.
77205         * modules/quotearg (Makefile.am): Likewise.
77206         * modules/raise (Makefile.am): Likewise.
77207         * modules/read-file (Makefile.am): Likewise.
77208         * modules/readline (Makefile.am): Likewise.
77209         * modules/readlink (Makefile.am): Likewise.
77210         * modules/readtokens (Makefile.am): Likewise.
77211         * modules/readutmp (Makefile.am): Likewise.
77212         * modules/realloc (Makefile.am): Likewise.
77213         * modules/regex (Makefile.am): Likewise.
77214         * modules/rename (Makefile.am): Likewise.
77215         * modules/rename-dest-slash (Makefile.am): Likewise.
77216         * modules/rijndael (Makefile.am): Likewise.
77217         * modules/rmdir (Makefile.am): Likewise.
77218         * modules/rpmatch (Makefile.am): Likewise.
77219         * modules/safe-read (Makefile.am): Likewise.
77220         * modules/safe-write (Makefile.am): Likewise.
77221         * modules/same (Makefile.am): Likewise.
77222         * modules/save-cwd (Makefile.am): Likewise.
77223         * modules/savedir (Makefile.am): Likewise.
77224         * modules/setenv (Makefile.am): Likewise.
77225         * modules/settime (Makefile.am): Likewise.
77226         * modules/sha1 (Makefile.am): Likewise.
77227         * modules/sig2str (Makefile.am): Likewise.
77228         * modules/snprintf (Makefile.am): Likewise.
77229         * modules/stdlib-safer (Makefile.am): Likewise.
77230         * modules/stpcpy (Makefile.am): Likewise.
77231         * modules/stpncpy (Makefile.am): Likewise.
77232         * modules/strcase (Makefile.am): Likewise.
77233         * modules/strcasestr (Makefile.am): Likewise.
77234         * modules/strchrnul (Makefile.am): Likewise.
77235         * modules/strcspn (Makefile.am): Likewise.
77236         * modules/strdup (Makefile.am): Likewise.
77237         * modules/strerror (Makefile.am): Likewise.
77238         * modules/strftime (Makefile.am): Likewise.
77239         * modules/strndup (Makefile.am): Likewise.
77240         * modules/strnlen (Makefile.am): Likewise.
77241         * modules/strpbrk (Makefile.am): Likewise.
77242         * modules/strsep (Makefile.am): Likewise.
77243         * modules/strstr (Makefile.am): Likewise.
77244         * modules/strtod (Makefile.am): Likewise.
77245         * modules/strtoimax (Makefile.am): Likewise.
77246         * modules/strtok_r (Makefile.am): Likewise.
77247         * modules/strtol (Makefile.am): Likewise.
77248         * modules/strtoll (Makefile.am): Likewise.
77249         * modules/strtoul (Makefile.am): Likewise.
77250         * modules/strtoull (Makefile.am): Likewise.
77251         * modules/strtoumax (Makefile.am): Likewise.
77252         * modules/strverscmp (Makefile.am): Likewise.
77253         * modules/time_r (Makefile.am): Likewise.
77254         * modules/timegm (Makefile.am): Likewise.
77255         * modules/tmpfile-safer (Makefile.am): Likewise.
77256         * modules/unistd-safer (Makefile.am): Likewise.
77257         * modules/unlinkdir (Makefile.am): Likewise.
77258         * modules/userspec (Makefile.am): Likewise.
77259         * modules/utime (Makefile.am): Likewise.
77260         * modules/utimecmp (Makefile.am): Likewise.
77261         * modules/utimens (Makefile.am): Likewise.
77262         * modules/vasnprintf (Makefile.am): Likewise.
77263         * modules/vasprintf (Makefile.am): Likewise.
77264         * modules/vsnprintf (Makefile.am): Likewise.
77265         * modules/xalloc (Makefile.am): Likewise.
77266         * modules/xgetcwd (Makefile.am): Likewise.
77267         * modules/xnanosleep (Makefile.am): Likewise.
77268         * modules/xreadlink (Makefile.am): Likewise.
77269         * modules/xstrtod (Makefile.am): Likewise.
77270         * modules/xstrtol (Makefile.am): Likewise.
77271         * modules/xstrtold (Makefile.am): Likewise.
77272         * modules/yesno (Makefile.am): Likewise.
77273
77274 2006-10-12  Jim Meyering  <jim@meyering.net>
77275
77276         * m4/getloadavg.m4: Revert the change below.
77277
77278         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77279         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77280         fail with a symlink, which is what coreutils' ./bootstrap now
77281         creates by default.
77282
77283 2006-10-12  Bruno Haible  <bruno@clisp.org>
77284
77285         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77286         mingw.
77287         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77288         MSVC and mingw explicitly.
77289
77290 2006-10-11  Simon Josefsson  <jas@extundo.com>
77291             Bruno Haible  <bruno@clisp.org>
77292
77293         Add support for multiple gnulib-tool invocations in the scope of a
77294         single configure.ac file.
77295         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77296         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77297         with the same contents as the _LIBADD variable.
77298         (func_emit_initmacro_start, func_emit_initmacro_end,
77299         func_emit_initmacro_done): New functions.
77300         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77301         gl_LIBOBJS and gl_LTLIBOBJS.
77302
77303 2006-10-11  Bruno Haible  <bruno@clisp.org>
77304
77305         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77306         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77307         autoreconf. Instead, invoke autopoint explicitly but move back the
77308         *.m4 files from gnulib.
77309
77310 2006-10-11  Bruno Haible  <bruno@clisp.org>
77311
77312         * gnulib-tool (func_usage): Make module names after --create-testdir
77313         optional.
77314         (func_create_testdir): If no module was specified, use nearly all
77315         modules.
77316
77317 2006-10-12  Jim Meyering  <jim@meyering.net>
77318
77319         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77320         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77321         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77322         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77323         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77324         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77325         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77326         (fts_set_stat_required): New function.
77327         (fts_open): Defer the calls to fts_stat, if possible or requested.
77328         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77329         into fts_stat itself.
77330         (fts_read): Perform any required (deferred) fts_stat call.
77331         (fts_build): Likewise, for the directory we're about to open and read.
77332         In the readdir loop, carefully decide whether each entry will require
77333         an eventual call to fts_stat, using dirent.d_type info if available.
77334         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77335         a command line argument into this function.  Update all callers.
77336         Map a return value of FTS_DOT to FTS_D for a command line argument.
77337         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77338         Thanks to Miklos Szeredi for his tenacity and for the initial
77339         bug report about "find" failing on a FUSE-based file system.
77340
77341         * lib/fts.c (fts_open): Use consistent indentation.
77342
77343 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77346         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77347         reported by Jim Meyering.  All uses of cache variables renamed
77348         to match Autoconf's.
77349         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77350         the other one.
77351
77352         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77353         Fix misspelling in diagnostic.
77354
77355 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77356
77357         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77358         defined.  Problem reported by Matthew Woehlke.
77359
77360         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77361         Add support for Tandem NonStop R series.
77362         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77363         Use new macro.
77364
77365         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77366         (has_trailing_slash): Omit size arg; all callers changed.
77367         Omit 'inline', since it doesn't help performance and we'd
77368         need to configure it.
77369         Don't count //, ///, etc. as having a trailing slash.
77370         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77371         (rpl_rename_dest_slash): On failure, use rename's errno rather
77372         than (in some cases) an incorrect or junk errno.
77373         Simplify code by removing need to compute length; this does
77374         cause it to make two passes instead of one over the file name,
77375         but it's worth it.
77376
77377         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77378         change, since Autoconf's version may no longer be appropriate now
77379         that we are using CVS Autoconf's version.  Add support for Tandem.
77380
77381 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77382             Bruno Haible  <bruno@clisp.org>
77383
77384         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77385         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77386         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77387         gl_AC_TYPE_LONG_LONG.
77388
77389         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77390         instead of HAVE_LONG_LONG.
77391         * lib/printf-args.c (printf_fetchargs): Likewise.
77392         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77393         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77394         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77395         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77396         gl_AC_TYPE_LONG_LONG.
77397
77398 2006-10-11  Bruno Haible  <bruno@clisp.org>
77399
77400         * m4/longlong.m4: Add comments.
77401         * m4/ulonglong.m4: Likewise.
77402
77403 2006-10-10  Bruno Haible  <bruno@clisp.org>
77404
77405         Make it possible to #define stpcpy, strdup to aliases.
77406         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77407         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77408
77409 2006-10-10  Bruno Haible  <bruno@clisp.org>
77410
77411         Make it possible to #define gcd to an alias.
77412         * lib/gcd.c: Include config.h.
77413
77414 2006-10-10  Bruno Haible  <bruno@clisp.org>
77415
77416         Make it possible to #define c_isascii to an alias.
77417         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77418         defined. Undefine the macros before defining them, to avoid gcc
77419         warnings.
77420         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77421         define NO_C_CTYPE_MACROS early.
77422
77423 2006-10-10  Bruno Haible  <bruno@clisp.org>
77424
77425         Make it possible to #define set_program_name to an alias.
77426         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77427         ENABLE_RELOCATABLE early.
77428
77429 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77432         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77433         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77434         More generally, don't assume that 64-bit signed int is available
77435         if unsigned int is, and vice versa.
77436         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77437         unsigned symbols, not on their signed counterparts.
77438         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77439         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77440         (UINT64_C, UINTMAX_C):
77441         Likewise.
77442         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77443         unsigned counterparts.
77444         (Have_long_long, Unsigned): New macros.
77445         (Int): Renamed from INT.
77446         (strtoimax): Use the new macros.
77447         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77448         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77449         * modules/inttypes (inttypes.h): Substitute
77450         HAVE_UNSIGNED_LONG_LONG_INT.
77451         * modules/stdint (stdint.h): Likewise.
77452         (Files): Add m4/ulonglong.m4.
77453
77454 2006-10-10  Bruno Haible  <bruno@clisp.org>
77455
77456         Fix a gcc -Wshadow warning.
77457         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77458         to 'bucket'.
77459         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77460         gl_linked_indexof_from_to): Likewise.
77461         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77462         Likewise.
77463         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77464         Likewise.
77465         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77466         Reported by Eric Blake.
77467
77468 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77469
77470         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77471         for NetBSD.  Problem reported by Bruno Haible.
77472
77473 2006-10-09  Jim Meyering  <jim@meyering.net>
77474
77475         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77476         Patch from Bruno Haible.
77477
77478 2006-10-09  Jim Meyering  <jim@meyering.net>
77479
77480         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77481         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77482         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77483
77484 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         Don't include <config.h> twice; this doesn't work in some cases,
77487         e.g., when config.h has "#define intmax_t long long int" and
77488         we include <config.h>, <inttypes.h>, <config.h> in that order.
77489         Problem reported by Matthew Woehlke in:
77490         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77491         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77492         * lib/fts-cycle.c: Don't include config.h.
77493         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77494         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77495         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77496         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77497         inttypes.h.
77498         * lib/xstrtoumax.c: Likewise.
77499         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77500         __strtol and the like, so that this module is more like its siblings.
77501         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77502         Remove; no longer needed now that we assume gnulib inttypes.h.
77503
77504 2006-10-08  Bruno Haible  <bruno@clisp.org>
77505
77506         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77507         option.
77508
77509 2006-10-07  Jim Meyering  <jim@meyering.net>
77510
77511         * modules/inttypes (inttypes.h): Revert what seems to have been
77512         an inadvertent part of today's change: use "|", not "/" in the
77513         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77514
77515 2006-10-07  Bruno Haible  <bruno@clisp.org>
77516
77517         * modules/sublist: New file.
77518
77519 2006-10-07  Bruno Haible  <bruno@clisp.org>
77520
77521         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77522         * modules/argz (argz.h): Likewise.
77523         * modules/arpa_inet (arpa/inet.h): Likewise.
77524         * modules/byteswap (byteswap.h): Likewise.
77525         * modules/configmake (configmake.h): Likewise.
77526         * modules/fcntl (fcntl.h): Likewise.
77527         * modules/fnmatch (fnmatch.h): Likewise.
77528         * modules/getopt (getopt.h): Likewise.
77529         * modules/glob (glob.h): Likewise.
77530         * modules/inttypes (inttypes.h): Likewise.
77531         * modules/netinet_in (netinet/in.h): Likewise.
77532         * modules/poll (poll.h): Likewise.
77533         * modules/stdbool (stdbool.h): Likewise.
77534         * modules/stdint (stdint.h): Likewise.
77535         * modules/sys_select (sys/select.h): Likewise.
77536         * modules/sys_socket (sys/socket.h): Likewise.
77537         * modules/sys_stat (sys/stat.h): Likewise.
77538         * modules/sysexits (sysexits.h): Likewise.
77539         * modules/unistd (unistd.h): Likewise.
77540         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77541         Add a "DO NOT EDIT" comment to the generated file.
77542         (func_import): Likewise for gnulib-comp.m4.
77543
77544 2006-10-07  Bruno Haible  <bruno@clisp.org>
77545
77546         * lib/gl_sublist.h: New file.
77547         * lib/gl_sublist.c: New file.
77548
77549 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77550
77551         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77552         name (relative to the original working directory) and the file
77553         name component (relative to the temporary working directory).  All
77554         callers changed.
77555         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77556         * lib/mkdir-p.c (make_dir_parents): Likewise.
77557         * lib/mkdir-p.h (make_dir_parents): Likewise.
77558
77559 2006-10-06  Eric Blake  <ebb9@byu.net>
77560
77561         Define several macros for use by the clean-temp module.
77562         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77563         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77564         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77565
77566         * lib/clean-temp.h (close_stream_temp): New declaration.
77567         * lib/clean-temp.c (includes): Pull in headers according to what
77568         other modules are in use.
77569         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77570
77571 2006-10-06  Bruno Haible  <bruno@clisp.org>
77572
77573         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77574         instead of fopen, fwriteerror.
77575
77576 2006-10-06  Bruno Haible  <bruno@clisp.org>
77577
77578         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77579         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77580         int.
77581         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77582         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77583         Return an error indicator.
77584         Suggested by Eric Blake.
77585
77586 2006-10-06  Bruno Haible  <bruno@clisp.org>
77587
77588         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77589         Reported by Eric Blake.
77590
77591 2006-10-06  Bruno Haible  <bruno@clisp.org>
77592
77593         * modules/closeout (Description): Mention stderr too.
77594
77595 2006-10-06  Bruno Haible  <bruno@clisp.org>
77596         and Paul Eggert  <eggert@cs.ucla.edu>
77597
77598         * lib/closeout.c (close_stdout): Also close stderr.
77599         * lib/closeout.h: Update comment.
77600
77601 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77602
77603         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77604         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77605         * lib/dirchownmod.c: Include lchown.h.
77606         * lib/lchown.c: Don't include files that lchown.h now includes.
77607         Don't declare chown, since lchown.h now does that.
77608         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77609         (lchown): Define to rpl_chown if lchown is declared but
77610         does not exist.  Declare using a prototype if lchown is not
77611         declared.  Add a copyright notice.
77612         * lib/mkstemp.h: Include <unistd.h>.
77613         * lib/openat.c: Include lchown.h.
77614
77615         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77616         we now test for that separately.
77617         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77618         rather than O_NOFOLLOW, when testing whether it's possible to
77619         avoid a race condition reliably.
77620         * lib/savewd.c (savewd_chdir): Likewise.
77621
77622         Remove macros that are no longer needed now that stdint.h is
77623         reliable.
77624         * lib/fsusage.c (UINTMAX_MAX): Remove.
77625         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77626         * lib/utimecmp.c (SIZE_MAX): Remove.
77627
77628         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77629
77630         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77631         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77632         O_NOATIME works.
77633
77634 2006-10-05  Bruno Haible  <bruno@clisp.org>
77635
77636         * lib/gl_list.h (gl_sortedlist_search_from_to,
77637         gl_sortedlist_indexof_from_to): New declarations.
77638         (gl_list_implementation): New fields sortedlist_search_from_to,
77639         sortedlist_indexof_from_to.
77640         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77641         inline functions.
77642         * lib/gl_list.c (gl_sortedlist_search_from_to,
77643         gl_sortedlist_indexof_from_to): New functions.
77644         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77645         function.
77646         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77647         (gl_array_sortedlist_search_from_to): New function.
77648         (gl_array_list_implementation): Update.
77649         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77650         function.
77651         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77652         (gl_carray_sortedlist_search_from_to): New function.
77653         (gl_carray_list_implementation): Update.
77654         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77655         gl_linked_sortedlist_indexof_from_to): New functions.
77656         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77657         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77658         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77659         gl_tree_sortedlist_indexof_from_to): New functions.
77660         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77661         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77662         Update.
77663         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77664         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77665         Update.
77666
77667 2006-10-05  Bruno Haible  <bruno@clisp.org>
77668
77669         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77670         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77671         (struct gl_list_implementation): Add fields search_from_to,
77672         indexof_from_to. Remove fields search, indexof.
77673         (gl_list_search): Use the search_from_to method.
77674         (gl_list_search_from, gl_list_search_from_to): New functions.
77675         (gl_list_indexof): Use the indexof_from_to method.
77676         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77677         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77678         (gl_list_search_from, gl_list_search_from_to): New functions.
77679         (gl_list_indexof): Use the indexof_from_to method.
77680         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77681         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77682         gl_array_indexof. Add start_index, end_index arguments.
77683         (gl_array_search_from_to): Renamed from gl_array_search. Add
77684         start_index, end_index arguments.
77685         (gl_array_remove, gl_array_list_implementation): Update.
77686         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77687         gl_carray_indexof. Add start_index, end_index arguments.
77688         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77689         start_index, end_index arguments.
77690         (gl_carray_remove, gl_carray_list_implementation): Update.
77691         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77692         gl_linked_search. Add start_index, end_index arguments.
77693         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77694         start_index, end_index arguments.
77695         (gl_linked_remove): Update.
77696         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77697         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77698         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77699         field to 'size_t'.
77700         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77701         gl_tree_search. Add start_index, end_index arguments.
77702         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77703         start_index, end_index arguments.
77704         (gl_tree_remove): Update.
77705         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77706         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77707         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77708         function.
77709         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77710         gl_tree_search. Add start_index, end_index arguments.
77711         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77712         start_index, end_index arguments.
77713         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77714         Update.
77715         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77716
77717 2006-10-05  Bruno Haible  <bruno@clisp.org>
77718
77719         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77720
77721         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77722         fwriteerror_temp): New declarations.
77723         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77724         (descriptors): New variable.
77725         (cleanup): First, close the descriptors.
77726         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77727         fclose_temp, fwriteerror_temp): New functions.
77728
77729 2006-10-04  Jim Meyering  <jim@meyering.net>
77730
77731         * lib/fts.c (fts_open): Tiny comment change.
77732
77733 2006-10-04  Bruno Haible  <bruno@clisp.org>
77734
77735         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77736         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77737         gl_LOCK_BODY.
77738         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77739         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77740         gl_LOCK_EARLY_BODY.
77741         (gl_LOCK): Require gl_LOCK_BODY.
77742
77743 2006-10-04  Bruno Haible  <bruno@clisp.org>
77744
77745         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77746         (gl_oset_search_atleast): New declaration.
77747         (struct gl_oset_implementation): Add field 'search_atleast'.
77748         (gl_oset_search_atleast): New inline function.
77749         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77750         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77751         (gl_array_oset_implementation): Update.
77752         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77753         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77754         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77755
77756 2006-10-04  Bruno Haible  <bruno@clisp.org>
77757
77758         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77759
77760 2006-10-03  Bruno Haible  <bruno@clisp.org>
77761
77762         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77763         from gl_avltreehash_list_implementation.
77764
77765 2006-10-03  Bruno Haible  <bruno@clisp.org>
77766
77767         * lib/gl_oset.c (gl_oset_add): Fix return type.
77768
77769 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77770
77771         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77772
77773 2006-10-02  Eric Blake  <ebb9@byu.net>
77774
77775         * modules/strnlen (Depends-on): Add extensions.
77776
77777 2006-10-02  Eric Blake  <ebb9@byu.net>
77778
77779         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77780         definition in 2.60+.
77781
77782 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77783
77784         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77785         checks.
77786
77787 2006-10-02  Bruno Haible  <bruno@clisp.org>
77788
77789         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77790         to the AUTOMAKE_OPTIONS.
77791         Reported by Jim Meyering.
77792
77793 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77794
77795         Work around bug in Solaris 10 /proc file system:
77796         /proc/self/fd/NNN/.. isn't the parent directory of
77797         the directory whose file descriptor is NNN.  This needs to
77798         be worked around at run time, not compile time, since a
77799         program might be built on Solaris 8, where things work, and
77800         run on Solaris 10.
77801         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77802         to use the following interface instead:
77803         (OPENAT_BUFFER_SIZE): New macro.
77804         (openat_proc_name): New function.
77805         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77806         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77807         Likewise.
77808         * lib/openat-proc.c: New file.
77809         * modules/openat (Files): Add lib/openat-proc.c.
77810         (Depends-on): Add same-inode, stdbool.
77811         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77812
77813 2006-09-29  Bruno Haible  <bruno@clisp.org>
77814
77815         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77816         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77817         argument. Set stdout_closed before testing for ferror, not after.
77818         (fwriteerror, fwriteerror_no_ebadf): New functions.
77819
77820 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77821
77822         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77823
77824 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77825
77826         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77827         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77828
77829 2006-09-28  Jim Meyering  <jim@meyering.net>
77830
77831         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77832         Include <unistd.h>.
77833
77834 2006-09-28  Bruno Haible  <bruno@clisp.org>
77835
77836         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77837         * modules/linkedhash-list (Depends-on): Likewise.
77838         * modules/rbtreehash-list (Depends-on): Likewise.
77839
77840 2006-09-28  Bruno Haible  <bruno@clisp.org>
77841
77842         * lib/strndup.h: Simplify the redefinition of strndup.
77843         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77844         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77845
77846 2006-09-28  Bruno Haible  <bruno@clisp.org>
77847
77848         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77849         * lib/gl_linkedhash_list.c: Likewise.
77850         * lib/gl_rbtreehash_list.c: Likewise.
77851
77852 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77853
77854         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77855         getaddrinfo.
77856
77857         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77858         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77859         it causes <stdio_ext.h> to cause a compile-time error.
77860         Problem reported by Nelson H. F. Beebe.
77861         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77862         of HAVE_DECL___PENDING.
77863
77864         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77865         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77866         declaration.
77867
77868 2006-09-27  Jim Meyering  <jim@meyering.net>
77869
77870         This file could end up with a definition for a function
77871         named __strndup, rather than rpl_strndup on a system with
77872         incomplete weak_alias support.
77873         * lib/strndup.c (strndup): Rename from __strndup.
77874         Remove #defines that used to map __strndup to strndup.
77875         Don't use K&R prototypes.
77876         Remove LIBC-related code, since this file is not sync'd with glibc.
77877         * lib/strndup.h: Revamp, accordingly.
77878         * m4/strndup.m4: Modernize.
77879
77880 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77881
77882         * modules/savewd (Depends-on): Add 'raise'.
77883         * lib/savewd.c: Include <signal.h>, for 'raise'.
77884
77885 2006-09-26  Jim Meyering  <jim@meyering.net>
77886
77887         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77888         when we detect Darwin 8.7.0's acl_get_file bug.
77889         Rearrange to perform the new (below) run-test while $LIBS
77890         contains any acl-related library.  Set USE_ACL at the end.
77891         (gl_ACL_GET_FILE): New function.
77892
77893 2006-09-26  Eric Blake  <ebb9@byu.net>
77894
77895         * lib/verror.c: Include <config.h> unconditionally.
77896
77897 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         * modules/clock-time (Maintainer): Add self.
77900         * modules/getlogin_r (Depends-on): Add extensions.
77901
77902 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77903
77904         * modules/clock-time: New module.
77905         * modules/nanosleep (Depends-on): Add clock-time.
77906         * modules/gethrxtime (Depends-on): Likewise.
77907         * modules/gettime (Depends-on): Likewise.
77908         * modules/settime (Depends-on): Likewise.
77909
77910         * modules/fts-lgpl: Depend on openat.
77911         * modules/mkancesdirs: Depend on savewd.
77912         * modules/mkdir-p: Likewise.
77913
77914 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77915
77916         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77917
77918         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77919         `gl_have_arbitrary_file_name_length_limit' to
77920         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77921         actually works between configure runs.
77922
77923 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77924             Bruno Haible  <bruno@clisp.org>
77925
77926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77927
77928 2006-09-25  Jim Meyering  <jim@meyering.net>
77929
77930         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77931         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77932
77933 2006-09-25  Eric Blake  <ebb9@byu.net>
77934
77935         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77936         exec's in 2006-09-18 patch when shuffling fds.
77937
77938 2006-09-25  Bruno Haible  <bruno@clisp.org>
77939
77940         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77941         Reported by Jim Meyering.
77942
77943 2006-09-24  Jim Meyering  <jim@meyering.net>
77944
77945         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77946         compare a pointer against a literal "0".  That caused failures with
77947         at least HP-UX's hpcc.
77948
77949 2006-09-22  Simon Josefsson  <jas@extundo.com>
77950
77951         * modules/gc-sha1:
77952         * modules/gc-md4:
77953         * modules/gc-hmac-sha1:
77954         * modules/gc-hmac-md5:
77955         * modules/gc-des:
77956         * modules/gc-arcfour: Distribute more files.
77957
77958 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77959
77960         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77961         (gl_linked_iterator_from_to): Initialize struct completely.
77962         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77963         (gl_tree_iterator_from_to): Likewise
77964         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77965         * lib/gl_array_list.c [lint] (gl_array_iterator)
77966         (gl_array_iterator_from_to): Likewise.
77967         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77968         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77969         (gl_carray_iterator_from_to): Likewise.
77970
77971         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77972         * lib/md4.c (md4_process_block): Remove unused variable.
77973         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77974         parentheses for clarity.
77975
77976 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77977
77978         * modules/bison-i18n (Depends-on): Add gettext.
77979
77980 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77981
77982         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77983         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77984         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77985         also add missing comma that caused broken test.
77986         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77987         stdlib.h, for `abort'.
77988         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77989         variables.
77990         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77991         include unistd.h if present, for `rmdir'.
77992         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77993         variables.
77994         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77995         in the process include standard headers for prototypes.
77996         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77997         gets declared on GNU/Linux.
77998         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77999         unistd.h, for `rmdir'.
78000         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78001
78002         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78003         always true.
78004         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78005
78006         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78007
78008 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78009
78010         * gnulib-tool (func_version): Create output all at once.  This
78011         may help avoid triggering unnecessary SIGPIPEs, and at any
78012         rate it doesn't hurt.
78013
78014 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78015             Bruno Haible  <bruno@clisp.org>
78016
78017         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78018         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78019         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78020
78021         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78022         (gl_FUNC_VASPRINTF): Invoke it.
78023
78024 2006-09-22  Bruno Haible  <bruno@clisp.org>
78025
78026         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78027         getloadavg.c as first argument.
78028
78029 2006-09-22  Bruno Haible  <bruno@clisp.org>
78030
78031         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78032         at the beginning of the gl_INIT macro.
78033         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78034         gl_GETLOADAVG.
78035
78036 2006-09-22  Bruno Haible  <bruno@clisp.org>
78037
78038         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78039         module.
78040         Suggested by Ralf Wildenhues.
78041
78042 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78043
78044         Import this patch from libc:
78045
78046         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78047
78048         * lib/regex_internal.c (re_string_reconstruct): Handle
78049         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78050         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78051         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78052         re_string_context_at.
78053
78054         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78055         now requires it.
78056         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78057         gl_REGEX now does it for us.
78058         (gl_REGEX): Add test taken from
78059         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78060
78061         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78062         Check that large offsets work.  Modernize Autoconf usages.
78063         Prefer "yes" to mean a good thing rather than a bad.
78064         Don't put "#define mkstemp" in config.h, as this might interfere
78065         with standard system headers that "#define mkstemp mkstemp64".
78066
78067         * modules/mkstemp (Depends-on): Add extensions, so that
78068         mkstemp is visible on some platforms.
78069         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78070         (Include): Change to "mkstemp.h" from <stdlib.h>.
78071         (Files): Add mkstemp.h.
78072
78073         * lib/mkstemp.h: New file, since some standard headers
78074         #define mkstemp.
78075         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78076         Include "mkstemp.h".
78077         Make the _LIBC code resemble glibc original more,
78078         e.g., use K&R style.
78079         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78080         (mkstemp): Remove, since mkstemp.h does this for us.
78081         * lib/stdlib--.h: Include mkstemp.h.
78082
78083         Import this patch from libc:
78084
78085         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78086
78087         * lib/tempname.c (__gen_tempname): Change attempts_min
78088         into a macro.  Use preprocessor to decide how to initialize
78089         attempts [Coverity CID 67].
78090
78091 2006-09-20  Bruno Haible  <bruno@clisp.org>
78092
78093         * lib/mkdtemp.c: Import from libc.
78094         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78095                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78096                 attempts_min into a macro.  Use preprocessor to decide how to
78097                 initialize attempts [Coverity CID 67].
78098         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78099                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78100                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78101
78102 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78103
78104         * gnulib-tool (func_exit): New function, to allow to pass the
78105         exit status portably through the trap.  Use everywhere.
78106         (--help, --version): Signal a write error.
78107         (trap): catch SIGPIPE, for write errors.
78108         Exit at the end of the trap, with the correct exit status.
78109
78110 2006-09-19  Karl Berry  <karl@gnu.org>
78111
78112         * doc/gnulib.texi: note about the license texinfo files.
78113
78114 2006-09-19  Eric Blake  <ebb9@byu.net>
78115
78116         * gnulib-tool: Avoid space-tab.
78117
78118 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78119
78120         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78121         that prevented coreutils 6.1 from building.  Problem reported
78122         by Petter Reinholdtsen.
78123
78124 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * gnulib-tool (avoidlist): Fix typo that broke options like
78127         --avoid=lock that are used by coreutils bootstrap.
78128
78129 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78130
78131         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78132         more systematically.
78133
78134 2006-09-18  Jim Meyering  <jim@meyering.net>
78135
78136         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78137
78138 2006-09-18  Bruno Haible  <bruno@clisp.org>
78139
78140         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78141
78142 2006-09-18  Bruno Haible  <bruno@clisp.org>
78143
78144         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78145         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78146         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78147         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78148         * m4/gettext.m4: Require autoconf >= 2.52.
78149         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78150         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78151         of gl_cv_header_inttypes_h.
78152
78153 2006-09-18  Bruno Haible  <bruno@clisp.org>
78154
78155         * lib/javaversion.c: Include configmake.h.
78156
78157 2006-09-18  Bruno Haible  <bruno@clisp.org>
78158
78159         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78160         avoid that the while loops be executed in a subshell.
78161
78162 2006-09-18  Bruno Haible  <bruno@clisp.org>
78163
78164         * MODULES.html.sh (func_module): Break long lines.
78165         Suggested by Bruce Korb <bkorb@gnu.org>.
78166
78167 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78168
78169         Speed up by a factor of 1.12.
78170         * gnulib-tool (nl): New variable.
78171         (func_import): Rewrite include directive extraction to only read each
78172         directive once.
78173
78174 2006-09-17  Bruno Haible  <bruno@clisp.org>
78175
78176         * modules/javaversion (Makefile.am): Remove DEFS setting.
78177         (Depends-on): Add configmake, for PKGDATADIR definition.
78178
78179 2006-09-17  Bruno Haible  <bruno@clisp.org>
78180
78181         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78182
78183 2006-09-17  Bruno Haible  <bruno@clisp.org>
78184
78185         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78186         (func_modules_transitive_closure, func_modules_add_dummy,
78187         func_modules_to_filelist, func_import, func_create_testdir,
78188         func_create_megatestdir, ...): Use it wherever possible.
78189         Suggested by Ralf Wildenhues.
78190
78191 2006-09-16  Karl Berry  <karl@gnu.org>
78192
78193         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78194         to avoid sectioning errors.
78195         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78196         [ifinfo]: blank line after @center-ed titles.
78197         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78198         Spell FSF address consistently with others.
78199         (These changes approved by rms.)
78200
78201 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78202
78203         Speed up by a factor of 1.61.
78204         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78205         already checked module names again.
78206
78207 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78208
78209         Speed up by a factor of 1.13.
78210         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78211         for new_files, and the input to func_add_or_update.
78212
78213 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78214
78215         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78216         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78217
78218 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78219
78220         * modules/mkancesdirs (Depends-on): Add fcntl.
78221         * modules/savewd: New file.
78222         * MODULES.html.sh (File system functions): Add savewd.
78223
78224         * modules/configmake (Makefile.am): Add support for the
78225         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78226
78227 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78228
78229         * m4/savewd.m4: New file.
78230
78231 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78232
78233         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78234         (dirchownmod): New arg FD.  All callers changed.
78235         Use FD rather than opening the directory ourself, as opening is
78236         now the caller's responsibility.
78237         * lib/dirchownmod.h: Likewise.
78238         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78239         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78240         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78241         (test_dir): Remove.
78242         (mkancesdirs): Return length of prefix of FILE that has already
78243         been made, or -2 if there is a child doing the work.  Redo
78244         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78245         ".", and treat ".." specially since it might stray back into
78246         already-created areas.  Use a subprocess if necessary.  New arg
78247         WD; all users changed.  MAKE_DIR function should now return 1
78248         if it creates a directory that is not readable.  Return -2 if
78249         a child process is spun off.
78250         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78251         Adjust signature to match code.
78252         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78253         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78254         all users changed.
78255         * lib/savewd.c, lib/savewd.h: New files.
78256
78257 2006-09-15  Jim Meyering  <jim@meyering.net>
78258
78259         * modules/rename-dest-slash: New module.
78260         * MODULES.html.sh (posix_compat): Add it here.
78261
78262         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78263
78264 2006-09-15  Jim Meyering  <jim@meyering.net>
78265
78266         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78267         file.
78268
78269         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78270
78271 2006-09-15  Jim Meyering  <jim@meyering.net>
78272
78273         * lib/rename-dest-slash.c (has_trailing_slash): Use
78274         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78275         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78276         test before testing whether SRC is a directory.
78277         Suggestions from Bruno Haible.
78278
78279         Avoid a warning about an unused variable.
78280         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78281         into the #ifdef block where it's used.
78282
78283         * lib/rename-dest-slash.c: New file.
78284
78285 2006-09-14  Bruno Haible  <bruno@clisp.org>
78286
78287         * lib/allocsa.c: Include <config.h> unconditionally.
78288         * lib/asnprintf.c: Likewise.
78289         * lib/asprintf.c: Likewise.
78290         * lib/c-strcasecmp.c: Likewise.
78291         * lib/c-strcasestr.c: Likewise.
78292         * lib/c-strncasecmp.c: Likewise.
78293         * lib/c-strstr.c: Likewise.
78294         * lib/classpath.c: Likewise.
78295         * lib/clean-temp.c: Likewise.
78296         * lib/concatpath.c: Likewise.
78297         * lib/copy-file.c: Likewise.
78298         * lib/csharpcomp.c: Likewise.
78299         * lib/csharpexec.c: Likewise.
78300         * lib/execute.c: Likewise.
78301         * lib/fatal-signal.c: Likewise.
78302         * lib/findprog.c: Likewise.
78303         * lib/fwriteerror.c: Likewise.
78304         * lib/gl_array_list.c: Likewise.
78305         * lib/gl_array_oset.c: Likewise.
78306         * lib/gl_avltree_list.c: Likewise.
78307         * lib/gl_avltree_oset.c: Likewise.
78308         * lib/gl_avltreehash_list.c: Likewise.
78309         * lib/gl_carray_list.c: Likewise.
78310         * lib/gl_linked_list.c: Likewise.
78311         * lib/gl_linkedhash_list.c: Likewise.
78312         * lib/gl_list.c: Likewise.
78313         * lib/gl_oset.c: Likewise.
78314         * lib/gl_rbtree_list.c: Likewise.
78315         * lib/gl_rbtree_oset.c: Likewise.
78316         * lib/gl_rbtreehash_list.c: Likewise.
78317         * lib/imaxabs.c: Likewise.
78318         * lib/imaxdiv.c: Likewise.
78319         * lib/javacomp.c: Likewise.
78320         * lib/javaexec.c: Likewise.
78321         * lib/javaversion.c: Likewise.
78322         * lib/linebreak.c: Likewise.
78323         * lib/localcharset.c: Likewise.
78324         * lib/lock.c: Likewise.
78325         * lib/mbchar.c: Likewise.
78326         * lib/mbswidth.c: Likewise.
78327         * lib/mkdtemp.c: Likewise.
78328         * lib/pipe.c: Likewise.
78329         * lib/printf-args.c: Likewise.
78330         * lib/printf-parse.c: Likewise.
78331         * lib/progname.c: Likewise.
78332         * lib/progreloc.c: Likewise.
78333         * lib/readlink.c: Likewise.
78334         * lib/sh-quote.c: Likewise.
78335         * lib/stpcpy.c: Likewise.
78336         * lib/stpncpy.c: Likewise.
78337         * lib/strcasecmp.c: Likewise.
78338         * lib/strcasestr.c: Likewise.
78339         * lib/strcspn.c: Likewise.
78340         * lib/striconv.c: Likewise.
78341         * lib/strncasecmp.c: Likewise.
78342         * lib/strnlen1.c: Likewise.
78343         * lib/strstr.c: Likewise.
78344         * lib/strtok_r.c: Likewise.
78345         * lib/tls.c: Likewise.
78346         * lib/tmpdir.c: Likewise.
78347         * lib/unicodeio.c: Likewise.
78348         * lib/unsetenv.c: Likewise.
78349         * lib/vasnprintf.c: Likewise.
78350         * lib/vasprintf.c: Likewise.
78351         * lib/wait-process.c: Likewise.
78352         * lib/xallocsa.c: Likewise.
78353         * lib/xsetenv.c: Likewise.
78354         * lib/xstriconv.c: Likewise.
78355
78356 2006-09-13  Simon Josefsson  <jas@extundo.com>
78357
78358         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78359         that internally, suggested by Ralf Wildenhues
78360         <Ralf.Wildenhues@gmx.de>.
78361
78362 2006-09-13  Simon Josefsson  <jas@extundo.com>
78363
78364         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78365         @LIBOBJS@.
78366         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78367
78368 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78369
78370         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78371         longer worry about uses that don't define HAVE_CONFIG_H.
78372         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78373         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78374         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78375         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78376         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78377         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78378         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78379         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78380         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78381         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78382         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78383         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78384         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78385         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78386         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78387         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78388         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78389         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78390         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78391         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78392         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78393         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78394         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78395         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78396         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78397         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78398         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78399         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78400         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78401         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78402         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78403         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78404         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78405         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78406         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78407         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78408         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78409         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78410         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78411         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78412         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78413         Likewise.
78414
78415 2006-09-13  Eric Blake  <ebb9@byu.net>
78416
78417         * lib/getopt.c: Fix typo in last commit.
78418
78419 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78420
78421         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78422         dgettext.
78423
78424 2006-09-12  Jim Meyering  <jim@meyering.net>
78425
78426         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78427         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78428         Reported by Nelson H. F. Beebe.
78429
78430 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78431
78432         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78433         program_invocation_name and program_invocation_short_name are
78434         initialized.
78435         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78436         and program_invocation_short_name to argp.h, so they are visible
78437         to user programs.
78438         * lib/argp.h: Likewise
78439
78440 2006-09-10  Bruno Haible  <bruno@clisp.org>
78441
78442         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78443         m4/inttypes_h.m4, m4/uintmax_t.m4.
78444
78445 2006-09-10  Bruno Haible  <bruno@clisp.org>
78446
78447         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78448         gl_AC_TYPE_UINTMAX_T.
78449
78450 2006-09-10  Bruno Haible  <bruno@clisp.org>
78451
78452         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78453
78454 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78455
78456         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78457         convention.  Text proposed by Bruno Haible.
78458         (struct argp_option): Document the use of N_() wrappers.
78459
78460         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78461         '\v', and translate the two parts separately, instead of feeding
78462         the whole string to gettext.  This allows to exclude
78463         '\v' from the strings visible to the translator by writing doc
78464         strings as N_("..") "\v" N_("..").
78465
78466 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78467
78468         * config/srclist.txt: Undo latest change; the bug was fixed.
78469
78470 2006-09-09  Bruno Haible  <bruno@clisp.org>
78471
78472         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78473         assignments if building a library without libtool.
78474         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78475         in func_emit_lib_Makefile_am.
78476         (func_import): When building a static library libfoo.a, arrange to
78477         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78478         (func_create_testdir): Likewise.
78479         * modules/gc (configure.ac, Makefile.am): If building statically,
78480         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78481         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78482         * modules/striconv (configure.ac, Makefile.am): Likewise.
78483         Based on a suggestion by Ralf Wildenhues.
78484
78485 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78488         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78489         Also:
78490
78491         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78492         Add year_2050_test to catch glibc bug 2821
78493         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78494
78495         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78496         Prefer #ifdef to #if.
78497
78498         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78499         Return from 'main' instead of calling 'exit'.
78500
78501 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78502
78503         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78504         returned the maximum time_t value rather than (time_t) -1.
78505         Problem originally reported by William Bardwell
78506         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78507
78508         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78509         Moved to here ...
78510         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78511         ... from here.
78512
78513 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78514
78515         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78516         2821 is fixed.
78517
78518 2006-09-08  Jim Meyering  <jim@meyering.net>
78519
78520         Don't make generated files read-only.  That would bother too many
78521         people.  However, do retain the ability to work when targets are
78522         read-only: remove the destination and temporary files before writing
78523         them (when generated via sed or echo), or by using the -f option for
78524         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78525         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78526         * modules/byteswap, modules/configmake, modules/fcntl:
78527         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78528         * modules/localcharset, modules/netinet_in, modules/poll:
78529         * modules/stdbool, modules/stdint, modules/sys_select:
78530         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78531
78532 2006-09-08  Jim Meyering  <jim@meyering.net>
78533
78534         Avoid new build failure on FreeBSD 6.0.
78535         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78536         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78537         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78538
78539 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78540
78541         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78542
78543 2006-09-07  Jim Meyering  <jim@meyering.net>
78544
78545         Fix global typo in last change: use chmod u-w, not chmod u-x.
78546         Spotted by Paul Eggert and Bruce Korb.
78547         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78548         * modules/byteswap, modules/configmake, modules/fcntl:
78549         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78550         * modules/localcharset, modules/netinet_in, modules/poll:
78551         * modules/stdbool, modules/stdint, modules/sys_select:
78552         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78553
78554 2006-09-06  Jim Meyering  <jim@meyering.net>
78555
78556         Make generated files be read-only.
78557         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78558         Ensure that each generated file is now read-only.
78559         * modules/argz: Likewise.
78560         * modules/arpa_inet: Likewise.
78561         * modules/byteswap: Likewise.
78562         * modules/configmake: Likewise.
78563         * modules/fcntl: Likewise.
78564         * modules/fnmatch: Likewise.
78565         * modules/getopt: Likewise.
78566         * modules/glob: Likewise.
78567         * modules/inttypes: Likewise.
78568         * modules/netinet_in: Likewise.
78569         * modules/poll: Likewise.
78570         * modules/stdbool: Likewise.
78571         * modules/stdint: Likewise.
78572         * modules/sys_select: Likewise.
78573         * modules/sys_socket: Likewise.
78574         * modules/sys_stat: Likewise.
78575         * modules/sysexits: Likewise.
78576         * modules/localcharset: Same as above, but continue using temporary
78577         file named "t-$@" (why different?) rather than the "$@-t" used
78578         everywhere else.
78579
78580         * modules/sysexits (Makefile.am): Replace literal occurrences
78581         of "sysexit.h" more readable, and more consistent, "$@".
78582
78583 2006-09-06  Bruno Haible  <bruno@clisp.org>
78584
78585         * modules/striconv: New file.
78586         * modules/xstriconv: New file.
78587         * MODULES.html.sh (Internationalization functions): Add striconv,
78588         xstriconv.
78589
78590 2006-09-06  Bruno Haible  <bruno@clisp.org>
78591
78592         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78593         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78594         not using libtool correctly.
78595
78596 2006-09-06  Bruno Haible  <bruno@clisp.org>
78597
78598         * lib/striconv.h: New file.
78599         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78600         iconvstring.c.
78601         * lib/xstriconv.h: New file.
78602         * lib/xstriconv.c: New file.
78603
78604 2006-09-06  Bruno Haible  <bruno@clisp.org>
78605
78606         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78607         lib_..._LDFLAGS.
78608
78609 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78610
78611         * lib/argz_.h: Sync from Libtool.
78612
78613         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78614                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78615
78616         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78617
78618 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78619
78620         * modules/trim: New file.
78621
78622 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78623
78624         * lib/trim.h: New file.
78625         * lib/trim.c: New file.
78626
78627 2006-09-05  Bruno Haible  <bruno@clisp.org>
78628
78629         * MODULES.html.sh (String handling): Add trim.
78630
78631 2006-09-04  Karl Berry  <karl@gnu.org>
78632
78633         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78634         until next release.
78635
78636 2006-09-03  Bruno Haible  <bruno@clisp.org>
78637
78638         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78639         correctly.
78640
78641 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78644         not gl_GETLOADAVG.  Omit unneeded semicolons.
78645         Problems reported by Ralf Wildenhues in
78646         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78647         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78648         at the end, which is the usual gnulib style.
78649
78650         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78651         of doing all the work ourselves.
78652         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78653         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78654
78655 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78658         Problem reported by Ralf Wildenhues in
78659         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78660
78661         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78662         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78663
78664 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78665
78666         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78667         yesterday's patch by changing test -n to test -z.
78668
78669 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78670
78671         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78672         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78673         the former is now obsolescent.
78674
78675         * modules/chdir-long (Depends-on): Add fcntl.
78676
78677 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78678
78679         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78680         obsolescent, and programs should use gnulib instead.
78681         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78682         but with prefixes changed.
78683
78684 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78685
78686         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78687         or stdbool.h, because they might not exist while configuring.
78688
78689         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78690         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78691         does that for us.
78692         (O_DIRECTORY): Remove.
78693
78694 2006-08-31  Eric Blake  <ebb9@byu.net>
78695
78696         * gnulib-tool: Don't let emacs change spaces to TAB.
78697
78698 2006-08-31  Bruno Haible  <bruno@clisp.org>
78699
78700         * gnulib-tool: When calling func_import more than once, do it in a
78701         subshell.
78702         Reported by Eric Blake <ebb9@byu.net>.
78703
78704 2006-08-31  Bruno Haible  <bruno@clisp.org>
78705
78706         * gnulib-tool (nl): Remove variable.
78707         (sed_transform_lib_file): Use more robust test for config-h module.
78708         (func_import): Fix typo in 2006-08-25 patch.
78709
78710 2006-08-31  Bruno Haible  <bruno@clisp.org>
78711
78712         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78713         specified, augment Makefile.am variables instead of assigning them.
78714
78715 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78716
78717         Work around a bug in both the Linux and SunOS 64-bit kernels:
78718         nanosleep mishandles sleeps for longer than 2**31 seconds.
78719         Problem reported by Frank v Waveren in
78720         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78721         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78722         Check for nanosleep bug.
78723         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78724
78725 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78726
78727         Work around a bug in both the Linux and SunOS 64-bit kernels:
78728         nanosleep mishandles sleeps for longer than 2**31 seconds.
78729         Problem reported by Frank v Waveren in
78730         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78731         * lib/nanosleep.c (BILLION): New constant.
78732         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78733         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78734         implementation.
78735
78736 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78737
78738         * modules/nanosleep (Depends-on): Add gettime.
78739
78740 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78741         and Simon Josefsson  <jas@extundo.com>
78742         and Oskar Liljeblad  <oskar@osk.mine.nu>
78743
78744         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78745         * gnulib-tool (func_import): New license type 'unmodifiable license
78746         text'.
78747         * modules/fdl: Use it.  Longer description.
78748         * module/gpl, module/lgpl: New files.
78749
78750 2006-08-30  Jim Meyering  <jim@meyering.net>
78751
78752         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78753         shadowing the parameter.
78754
78755 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78756
78757         Sync from Libtool:
78758
78759         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78760
78761         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78762         sharing with gnulib.  Report by Eric Blake.
78763
78764 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78765
78766         * modules/isapipe: New file.
78767         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78768
78769 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78770
78771         * modules/configmake (Makefile.am): Add a comment, and omit
78772         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78773         by Bruno Haible.
78774
78775 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         * m4/isapipe.m4: New file.
78778
78779 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78780
78781         * lib/isapipe.c, lib/isapipe.h: New files.
78782
78783 2006-08-29  Jim Meyering  <jim@meyering.net>
78784
78785         * modules/configmake (Makefile.am): Make configmake.h depend on
78786         Makefile.  Otherwise, a stale configmake.h could hang around.
78787
78788 2006-08-29  Eric Blake  <ebb9@byu.net>
78789
78790         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78791         resolution of upstream bug 3044.
78792
78793 2006-08-29  Bruno Haible  <bruno@clisp.org>
78794
78795         * modules/localcharset (Depends-on): Add configmake.
78796         (Makefile.am): Remove setting of LIBDIR through DEFS.
78797
78798 2006-08-29  Bruno Haible  <bruno@clisp.org>
78799
78800         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78801         defined.
78802
78803 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         * modules/fcntl: New file.
78806         * modules/chdir-safer (Depends-on): Add fcntl.
78807         * modules/fts: Likewise.
78808         * modules/mkdir-p: Likewise.
78809
78810         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78811         This undoes the most recent change, since we're now addressing the
78812         problem in a different way.
78813
78814         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78815         into output, since the output might be called Makefile.am even
78816         if $makefile_name is something different.
78817         (func_import): Use $makefile_am rather than
78818         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78819         empty.
78820
78821         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78822
78823 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78824
78825         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78826         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78827         recent change to stdint.m4, since we're now addressing the problem in a
78828         different way.
78829
78830 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78831
78832         * m4/fcntl_h.m4: New file.
78833
78834 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78835
78836         * lib/fcntl_.h: New file.
78837         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78838         the fcntl module.
78839         * lib/dirchownmod.c: Likewise.
78840         * lib/fts.c: Likewise.
78841
78842         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78843         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78844         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78845         just before including <inttypes.h>, to avoid circular inclusion.
78846
78847 2006-08-28  Jim Meyering  <jim@meyering.net>
78848
78849         * doc/visibility.texi: Actually read and correct the grammar of the
78850         sentence affected by yesterday's change.
78851
78852 2006-08-28  Eric Blake  <ebb9@byu.net>
78853
78854         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78855         needs wrapper.
78856
78857 2006-08-28  Eric Blake  <ebb9@byu.net>
78858
78859         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78860
78861 2006-08-28  Eric Blake  <ebb9@byu.net>
78862
78863         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78864
78865 2006-08-28  Bruno Haible  <bruno@clisp.org>
78866
78867         * modules/c-strstr: New file, from GNU gettext.
78868         * MODULES.html.sh (String handling): Add c-strstr.
78869
78870 2006-08-28  Bruno Haible  <bruno@clisp.org>
78871
78872         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78873         macros.
78874         Reported by Eric Blake.
78875
78876 2006-08-28  Bruno Haible  <bruno@clisp.org>
78877
78878         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78879         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78880         * lib/vasprintf.c: Include errno.h, limits.h.
78881         (EOVERFLOW): New fallback definition.
78882         (vasprintf): Test here whether the string length is > INT_MAX.
78883         * lib/vsnprintf.c: Include errno.h, limits.h.
78884         (EOVERFLOW): New fallback definition.
78885         (vsnprintf): Fix bug when generated string was too long for the buffer.
78886         Test here whether the string length is > INT_MAX.
78887
78888 2006-08-28  Bruno Haible  <bruno@clisp.org>
78889
78890         * lib/inttypes_.h (SCNX*): Remove definitions.
78891         Reported by Eric Blake.
78892
78893 2006-08-28  Bruno Haible  <bruno@clisp.org>
78894
78895         * lib/c-strstr.h: New file, from GNU gettext.
78896         * lib/c-strstr.c: New file, from GNU gettext.
78897
78898 2006-08-28  Bruno Haible  <bruno@clisp.org>
78899
78900         * gnulib-tool: Reorder some statements.
78901
78902 2006-08-28  Bruno Haible  <bruno@clisp.org>
78903
78904         * gnulib-tool: New option --makefile-name.
78905         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78906         $makefile_name.
78907         (func_import): Write $makefile_name to the cache file, and read it from
78908         there unless explicitly specified. Use $makefile_name as file name
78909         instead of Makefile.am. Adjust the recommendations accordingly.
78910
78911 2006-08-28  Bruno Haible  <bruno@clisp.org>
78912
78913         * gnulib-tool (func_verify_module): Check against misapplying patch.
78914
78915 2006-08-28  Bruno Haible  <bruno@clisp.org>
78916
78917         * gnulib-tool (func_relativize, func_relconcat): New functions.
78918         Give an error if --local-dir is given with --update.
78919         Remove trailing slashes from $local_gnulib_dir.
78920         (func_import): Store the relativized $local_gnulib_dir in
78921         gnulib-cache.m4, and read it from there if not specified explicitly.
78922
78923 2006-08-28  Bruno Haible  <bruno@clisp.org>
78924
78925         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78926         is the current directory. Respect also $local_gnulib_dir.
78927
78928 2006-08-28  Bruno Haible  <bruno@clisp.org>
78929             Simon Josefsson  <jas@extundo.com>
78930
78931         BeOS portability.
78932         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78933
78934 2006-08-27  Jim Meyering  <jim@meyering.net>
78935
78936         * doc/visibility.texi: Remove duplicate word: "pointer".
78937
78938 2006-08-26  Bruno Haible  <bruno@clisp.org>
78939
78940         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78941         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78942         (Makefile.am): Create inttypes.h from inttypes_.h.
78943         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78944
78945         * modules/imaxabs: New file.
78946
78947         * modules/imaxdiv: New file.
78948
78949 2006-08-26  Bruno Haible  <bruno@clisp.org>
78950
78951         * m4/inttypes.m4: New file.
78952         * m4/_inttypes_h.m4: Remove file.
78953         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78954         PRI_MACROS_BROKEN.
78955         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78956
78957         * m4/imaxabs.m4: New file.
78958
78959         * m4/imaxdiv.m4: New file.
78960
78961 2006-08-26  Bruno Haible  <bruno@clisp.org>
78962
78963         * lib/inttypes_.h: New file.
78964         * lib/inttypes.h: Remove file.
78965         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78966
78967         * lib/imaxabs.c: New file.
78968
78969         * lib/imaxdiv.c: New file.
78970
78971 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78972
78973         New config-h module, so that "make" output needn't be cluttered
78974         by -DHAVE_CONFIG_H.
78975         * MODULES.html.sh (Support for building libraries and executables):
78976         Add config-h.
78977         * modules/config-h: New file.
78978         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78979         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78980         the config-h module is used.
78981
78982         New configmake module, so that "make" output needn't be cluttered
78983         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78984         * MODULES.html.sh (Support for building libraries and executables):
78985         Add configmake.
78986         * modules/configmake: New file.
78987
78988 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78989
78990         * m4/config-h.m4: New file.
78991
78992 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78993
78994         * config/srclist.txt: Add elisp-comp.
78995
78996 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78997
78998         * MODULES.html.sh (Support for building libraries and executables):
78999         Add elisp-comp.
79000         * build-aux/elisp-comp: New file.
79001         * modules/elisp-comp: New file.
79002
79003 2006-08-24  Bruno Haible  <bruno@clisp.org>
79004
79005         * gnulib-tool (func_create_testdir): Use non-default values of
79006         sourcebase and m4base.
79007
79008 2006-08-24  Bruno Haible  <bruno@clisp.org>
79009
79010         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79011         HTML structure.
79012
79013 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79014
79015         * modules/openat (Depends-on): Add lchown.
79016
79017 2006-08-23  Bruno Haible  <bruno@clisp.org>
79018
79019         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79020         of gl_LOCK_EARLY instead of gl_LOCK.
79021
79022 2006-08-23  Bruno Haible  <bruno@clisp.org>
79023
79024         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79025         on OSF/1 to no.
79026         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79027
79028 2006-08-23  Bruno Haible  <bruno@clisp.org>
79029
79030         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79031         as unusable.
79032
79033         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79034         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79035         (gl_LOCK): New macro.
79036
79037 2006-08-22  Simon Josefsson  <jas@extundo.com>
79038
79039         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79040         to md5 module.
79041
79042 2006-08-22  Simon Josefsson  <jas@extundo.com>
79043
79044         * MODULES.html.sh: Add "Support for maintaining and release
79045         projects".
79046
79047         * build-aux/gnupload: New file, from coreutils.
79048
79049 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79050
79051         Avoid the need for AC_LIBSOURCES in m4 macros.
79052         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79053         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79054         * modules/check-version (EXTRA_DIST): Add check-version.h.
79055         * modules/crc (EXTRA_DIST): Add crc.h.
79056         * modules/des (EXTRA_DIST): Add des.h.
79057         * modules/gc (EXTRA_DIST): Add gc.h.
79058         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79059         * modules/getline (EXTRA_DIST): Add getline.h.
79060         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79061         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79062         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79063         * modules/md2 (EXTRA_DIST): Add md2.h.
79064         * modules/md4 (EXTRA_DIST): Add md4.h.
79065         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79066         * modules/read-file (EXTRA_DIST): Add read-file.h.
79067         * modules/readline (EXTRA_DIST): Add readline.h.
79068         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79069         rijndael-api-fst.h.
79070
79071 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * m4/rijndael.m4 (gl_ARCFOUR):
79074         * m4/arctwo.m4 (gl_ARCTWO):
79075         * m4/check-version.m4 (gl_CHECK_VERSION):
79076         * m4/crc.m4 (gl_CRC):
79077         * m4/des.m4 (gl_DES):
79078         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79079         * m4/gc.m4 (gl_GC):
79080         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79081         * m4/getline.m4 (gl_FUNC_GETLINE):
79082         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79083         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79084         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79085         * m4/md2.m4 (gl_MD2):
79086         * m4/md4.m4 (gl_MD4):
79087         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79088         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79089         * m4/readline.m4 (gl_FUNC_READLINE):
79090         * m4/rijndael.m4 (gl_RIJNDAEL):
79091         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79092         to get the necessary .h files and whatnot.
79093
79094 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79097         gnulib rather than the other way around.
79098         * config/srclistvars.sh (COREUTILS): Remove.
79099
79100 2006-08-22  Jim Meyering  <jim@meyering.net>
79101
79102         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79103
79104         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79105
79106 2006-08-22  Eric Blake  <ebb9@byu.net>
79107
79108         * modules/regexprops-generic: New file.
79109         * MODULES.html.sh (Support for building documentation): List it.
79110
79111 2006-08-22  Eric Blake  <ebb9@byu.net>
79112
79113         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79114         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79115         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79116         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79117
79118 2006-08-22  Bruno Haible  <bruno@clisp.org>
79119
79120         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79121         and lib_LTLIBRARIES like the other lib_* variables.
79122
79123 2006-08-22  Bruno Haible  <bruno@clisp.org>
79124
79125         * build-aux/x-to-1.in: New file, from GNU gettext.
79126
79127 2006-08-22  Bruno Haible  <bruno@clisp.org>
79128
79129         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79130         <utmpx.h> exists.
79131
79132 2006-08-22  Bruno Haible  <bruno@clisp.org>
79133
79134         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79135         <utmpx.h> exists.
79136
79137 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79138
79139         BeOS portability.
79140         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79141         exist.
79142         Problem reported by Bruno Haible.
79143
79144 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79145
79146         Avoid the need for AC_LIBSOURCES in m4 macros.
79147         * modules/acl (EXTRA_DIST): Add acl.h.
79148         * modules/argmatch (Files): Add m4/argmatch.m4.
79149         (configure.ac): Add gl_ARGMATCH.
79150         (EXTRA_DIST): Renamed from lib_SOURCES, for
79151         consistency with the other modules.  Remove argmatch.c.
79152         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79153         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79154         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79155         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79156         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79157         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79158         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79159         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79160         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79161         * modules/closeout (EXTRA_DIST): Add closeout.h.
79162         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79163         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79164         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79165         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79166         dirname.h; remove basename.c and stripslash.c.
79167         * modules/exclude (EXTRA_DIST): Add exclude.h.
79168         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79169         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79170         * modules/file-type (EXTRA_DIST): Add file-type.h.
79171         * modules/filemode (EXTRA_DIST): Add filemode.h.
79172         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79173         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79174         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79175         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79176         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79177         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79178         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79179         * modules/getdate (EXTRA_DIST): Add getdate.c.
79180         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79181         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79182         * modules/getpass (EXTRA_DIST): Add getpass.h.
79183         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79184         * modules/group-member (EXTRA_DIST): Add group-member.h.
79185         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79186         * modules/hash (EXTRA_DIST): Add hash.h.
79187         * modules/human (EXTRA_DIST): Add human.h.
79188         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79189         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79190         * modules/lchown (EXTRA_DIST): Add lchown.h.
79191         * modules/long-options (EXTRA_DIST): Add long-options.h.
79192         * modules/lstat (EXTRA_DIST): Add lstat.h.
79193         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79194         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79195         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79196         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79197         * modules/memxor (EXTRA_DIST): Add memxor.h.
79198         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79199         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79200         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79201         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79202         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79203         * modules/physmem (EXTRA_DIST): Add physmem.h.
79204         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79205         * modules/posixver (EXTRA_DIST): Add posixver.h.
79206         * modules/quote (EXTRA_DIST): Add quote.h.
79207         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79208         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79209         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79210         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79211         regex_internal.h regexec.c.
79212         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79213         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79214         * modules/same (EXTRA_DIST): Add same.h.
79215         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79216         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79217         * modules/savedir (EXTRA_DIST): Add savedir.h.
79218         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79219         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79220         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79221         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79222         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79223         * modules/strdup (EXTRA_DIST): Add strdup.h.
79224         * modules/strftime (EXTRA_DIST): Add strftime.h.
79225         * modules/strndup (EXTRA_DIST): Add strndup.h.
79226         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79227         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79228         * modules/time_r (EXTRA_DIST): Add time_r.h.
79229         * modules/timespec (EXTRA_DIST): Add timespec.h.
79230         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79231         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79232         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79233         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79234         * modules/userspec (EXTRA_DIST): Add userspec.h.
79235         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79236         * modules/utimens (EXTRA_DIST): Add utimens.h.
79237         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79238         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79239         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79240         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79241         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79242         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79243         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79244         * modules/yesno (EXTRA_DIST): Add yesno.h.
79245
79246 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79247
79248         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79249
79250         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79251         * m4/dev-ino.m4, same-inode.m4: Remove.
79252
79253         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79254         * m4/acl.m4 (AC_FUNC_ACL):
79255         * m4/backupfile.m4 (gl_BACKUPFILE):
79256         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79257         * m4/canon-host.m4 (gl_CANON_HOST):
79258         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79259         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79260         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79261         * m4/cloexec.m4 (gl_CLOEXEC):
79262         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79263         * m4/closeout.m4 (gl_CLOSEOUT):
79264         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79265         * m4/dirname.m4 (gl_DIRNAME):
79266         * m4/exclude.m4 (gl_EXCLUDE):
79267         * m4/exitfail.m4 (gl_EXITFAIL):
79268         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79269         * m4/file-type.m4 (gl_FILE_TYPE):
79270         * m4/filemode.m4 (gl_FILEMODE):
79271         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79272         * m4/fpending.m4 (gl_FUNC_FPENDING):
79273         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79274         * m4/fts.m4 (gl_FUNC_FTS):
79275         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79276         * m4/getdate.m4 (gl_GETDATE):
79277         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79278         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79279         * m4/getpass.m4 (gl_FUNC_GETPASS):
79280         * m4/gettime.m4 (gl_GETTIME):
79281         * m4/getugroups.m4 (gl_GETUGROUPS):
79282         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79283         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79284         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79285         * m4/hash.m4 (gl_HASH):
79286         * m4/idcache.m4 (gl_IDCACHE):
79287         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79288         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79289         * m4/long-options.m4 (gl_LONG_OPTIONS):
79290         * m4/lstat.m4 (gl_FUNC_LSTAT):
79291         * m4/md5.m4 (gl_MD5):
79292         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79293         * m4/memcoll.m4 (gl_MEMCOLL):
79294         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79295         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79296         * m4/memxor.m4 (gl_MEMXOR):
79297         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79298         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79299         * m4/modechange.m4 (gl_MODECHANGE):
79300         * m4/mountlist.m4 (gl_MOUNTLIST):
79301         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79302         * m4/openat.m4 (gl_FUNC_OPENAT):
79303         * m4/pathmax.m4 (gl_PATHMAX):
79304         * m4/physmem.m4 (gl_PHYSMEM):
79305         * m4/posixtm.m4 (gl_POSIXTM):
79306         * m4/posixver.m4 (gl_POSIXVER):
79307         * m4/quote.m4 (gl_QUOTE):
79308         * m4/quotearg.m4 (gl_QUOTEARG):
79309         * m4/readtokens.m4 (gl_READTOKENS):
79310         * m4/readutmp.m4 (gl_READUTMP):
79311         * m4/regex.m4 (gl_REGEX):
79312         * m4/safe-read.m4 (gl_SAFE_READ):
79313         * m4/safe-write.m4 (gl_SAFE_WRITE):
79314         * m4/same.m4 (gl_SAME):
79315         * m4/save-cwd.m4 (gl_SAVE_CWD):
79316         * m4/savedir.m4 (gl_SAVEDIR):
79317         * m4/settime.m4 (gl_SETTIME):
79318         * m4/sha1.m4 (gl_SHA1):
79319         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79320         * m4/stat-macros.m4 (gl_STAT_MACROS):
79321         * m4/stat-time.m4 (gl_STAT_TIME):
79322         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79323         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79324         * m4/strdup.m4 (gl_FUNC_STRDUP):
79325         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79326         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79327         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79328         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79329         * m4/time_r.m4 (gl_TIME_R):
79330         * m4/timespec.m4 (gl_TIMESPEC):
79331         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79332         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79333         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79334         * m4/userspec.m4 (gl_USERSPEC):
79335         * m4/utimecmp.m4 (gl_UTIMECMP):
79336         * m4/utimens.m4 (gl_UTIMENS):
79337         * m4/xalloc.m4 (gl_XALLOC):
79338         * m4/xgetcwd.m4 (gl_XGETCWD):
79339         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79340         * m4/xreadlink.m4 (gl_XREADLINK):
79341         * m4/xstrtod.m4 (gl_XSTRTOD):
79342         * m4/yesno.m4 (gl_YESNO):
79343         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79344         to get the necessary .h files and whatnot.
79345
79346 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79347             Bruno Haible  <bruno@clisp.org>
79348
79349         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79350         /bin/sh understanding of '!' conditional negation.
79351
79352 2006-08-21  Jim Meyering  <jim@meyering.net>
79353
79354         * modules/openat (Depends-on): Really alphabetize.
79355
79356         * modules/acl (Depends-on): Add error and quote.
79357
79358         * check-module (find_included_lib_files): Add at-func.c to the
79359         ok-to-include-more-than-once white list.
79360
79361         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79362
79363 2006-08-21  Bruno Haible  <bruno@clisp.org>
79364
79365         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79366         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79367         Reported by Martin Lambers <marlam@marlam.de>.
79368
79369 2006-08-21  Bruno Haible  <bruno@clisp.org>
79370
79371         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79372         specify an installation location, don't emit a noinst_LIBRARIES or
79373         noinst_LTLIBRARIES assignment.
79374
79375 2006-08-21  Bruno Haible  <bruno@clisp.org>
79376
79377         BeOS portability.
79378         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79379         BeOS has mbrtowc() but no <wctype.h>.
79380
79381 2006-08-21  Bruno Haible  <bruno@clisp.org>
79382
79383         BeOS portability.
79384         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79385         exist.
79386
79387 2006-08-21  Bruno Haible  <bruno@clisp.org>
79388
79389         BeOS portability.
79390         * lib/mbchar.h: Include <wctype.h> only if it exists.
79391
79392 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         Remove files that are no longer needed by their respective modules.
79395         * m4/obstack.m4: Remove.
79396         * m4/strerror_r.m4: Remove.
79397         * m4/uint32_t.m4: Remove.
79398         * m4/uintptr_t.m4: Remove.
79399         * m4/ullong_max.m4: Remove.
79400         * m4/xstrtoimax.m4: Remove.
79401         * m4/xstrtoumax.m4: Remove.
79402
79403         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79404         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79405         dependencies now capture this.
79406
79407         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79408         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79409         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79410         * m4/human.m4 (gl_HUMAN): Likewise.
79411         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79412         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79413
79414         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79415
79416         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79417         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79418         stdint.
79419         * m4/human.m4 (gl_HUMAN): Likewise.
79420         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79421         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79422         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79423         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79424         * m4/xstrtol (gl_XSTRTOL): Likewise.
79425
79426         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79427         AC_TYPE_LONG_LONG_INT.
79428         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79429         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79430         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79431         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79432
79433         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79434         on stdbool.
79435
79436         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79437         (gl_PREREQ_XSTRTOUL): Remove.
79438
79439         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79440
79441         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79442         mode.
79443
79444 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79445
79446         Add and change modules to make it easier for coreutils to use
79447         gnulib-tool.
79448         * modules/backupfile (Files): Remove m4/d-ino.m4.
79449         (Depends-on): Add d-ino.
79450         * modules/cycle-check (Depends-on): Add stdint.
79451         (lib_SOURCES): Add cycle-check.h.
79452         * modules/d-ino: New module.
79453         * modules/d-type: New module.
79454         * modules/error (Files): Remove m4/strerror_r.m4.
79455         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79456         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79457         m4/inttypes_h.m4, m4/uintmax_t.m4.
79458         (Depends-on): Add stdint.
79459         (lib_SOURCES): Add fsusage.h.
79460         * modules/getcwd (Files): Remove d-ino.m4.
79461         (Depends-on): Add d-ino.
79462         * modules/getndelim2 (Depends-on): Add stdint.
79463         * modules/glob (Files): Remove m4/d-type.m4.
79464         (Depends-on): Add d-type.
79465         * modules/host-os: New module.
79466         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79467         m4/inttypes_h.m4, m4/uintmax_t.m4.
79468         * Depends-on: Add stdint.
79469         (lib_SOURCES): Add human.h.
79470         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79471         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79472         m4/uintmax_t.m4, m4/ulonglong.m4.
79473         (Depends-on): Add stdint.
79474         (EXTRA_DIST): Add inttostr.h.
79475         * modules/lchmod: New module.
79476         * modules/link-follow: New module.
79477         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79478         (Depends-on): Add lchmod.
79479         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79480         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79481         (Depends-on): Add stdint.
79482         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79483         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79484         (Depends-on): Add stdint.
79485         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79486         * modules/perl: New module.
79487         * modules/regex (Depends-on): Add stdint.
79488         * modules/rmdir-errno: New module.
79489         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79490         m4/intmax_t.m4.
79491         (Depends-on): Add stdint.
79492         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79493         m4/uintmax_t.m4.
79494         (Depends-on): Add stdint.
79495         * modules/unlink-busy: New module.
79496         * modules/utimecmp (Depends-on): Add stdint.
79497         * modules/uptime: New module.
79498         * modules/winsz-ioctl: New module.
79499         * modules/winsz-termios: New module.
79500         * modules/xnanosleep (Depends-on): Add nanosleep.
79501         * modules/ullong_max: Remove.
79502         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79503         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79504         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79505         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79506         (Depends-on): Add inttypes.
79507         (lib_SOURCES): Add xstrtol.h.
79508         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79509         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79510         * MODULES.html.sh: Move 'assert' into the assert section.
79511         Move 'dummy' into the linking section.
79512         Remove ullong_max.
79513         Add section for compatibility checks for POSIX:2001 functions,
79514         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79515         winsz-ioctl, and winsz-termios into it.
79516         Add lchmod.
79517         Add top-level Misc section and put host-os, perl, and uptime
79518         into it.
79519
79520 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79521
79522         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79523         now assume the stdint module.  Do not include inttypes.h.
79524         * lib/fsusage.h: Likewise.
79525         * lib/getndelim2.c: Likewise.
79526         * lib/human.h: Likewise.
79527         * lib/inttostr.h: Likewise.
79528         * lib/obstack.c: Likewise.
79529         * lib/regex_internal.h: Likewise.
79530         * lib/tempname.c: Likewise.
79531         * lib/utimecmp.c: Likewise.
79532         * lib/xstrtol.h: Likewise.
79533
79534         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79535
79536         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79537         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79538         * lib/xtime.h: Likewise.
79539
79540 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79541
79542         * modules/openat (Files): Add lib/fchmodat.c.
79543         Fixes problem reported by Jay Youngman.
79544
79545 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79546
79547         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79548         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79549
79550 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79551             Bruno Haible  <bruno@clisp.org>
79552
79553         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79554         and is a script that invokes bison. Tighten the code. Add comments.
79555
79556 2006-08-18  Jim Meyering  <jim@meyering.net>
79557
79558         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79559         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79560         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79561         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79562
79563 2006-08-18  Bruno Haible  <bruno@clisp.org>
79564
79565         * modules/bison-i18n: New file.
79566         * MODULES.html.sh (Internationalization functions): Add it.
79567
79568 2006-08-18  Bruno Haible  <bruno@clisp.org>
79569
79570         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79571         sys/statvfs.h. When getmntinfo was found, check its declaration and
79572         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79573
79574 2006-08-18  Bruno Haible  <bruno@clisp.org>
79575
79576         * m4/bison-i18n.m4: New file, from bison.
79577
79578 2006-08-18  Bruno Haible  <bruno@clisp.org>
79579
79580         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79581         (ME_DUMMY): Treat "kernfs" as a dummy.
79582         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79583
79584 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79585
79586         Update from coreutils.
79587
79588         2006-08-15  Jim Meyering  <jim@meyering.net>
79589
79590         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79591
79592         2006-01-17  Jim Meyering  <jim@meyering.net>
79593
79594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79595
79596         2006-01-11  Jim Meyering  <jim@meyering.net>
79597
79598         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79599         Check for the lchmod function.
79600
79601 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79602
79603         Update from coreutils.
79604
79605         * lib/__fpending.h: Add copyright notice.
79606         * lib/fprintftime.h: Likewise.
79607         * lib/savedir.c: Use (C) in copyright notice.
79608         * lib/savedir.h: Likewise.
79609
79610         2006-08-15  Jim Meyering  <jim@meyering.net>
79611
79612         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79613         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79614         in support of the EXPECTED_ERRNO macro.
79615         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79616         definitions.  Instead, define the appropriate symbols and include
79617         "at-func.c".
79618         * lib/mkdirat.c (mkdirat): Likewise.
79619         * lib/fchmodat.c (fchmodat): Likewise.
79620         (ENOSYS): Remove definition.
79621         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79622         it.  Don't include "unistd--.h" -- it wasn't ever used.
79623
79624         2006-01-17  Jim Meyering  <jim@meyering.net>
79625
79626         Rewrite fts.c not to change the current working directory,
79627         by using openat, fstatat, fdopendir, etc..
79628
79629         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79630         (HAVE_OPENAT_SUPPORT): Define.
79631         [_LIBC] (fchdir): Don't undef or define; no longer used.
79632         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79633         Now, this `function' always succeeds, and consumes its file descriptor
79634         parameter -- so callers must not close such FDs.  Update callers.
79635         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79636         (diropen): Add parameter, SP.  Adjust all callers.
79637         Implement using diropen_fd, rather than open.
79638         (fts_open): Initialize new member, fts_cwd_fd.
79639         Remove fts_rft-setting code.
79640         (fts_close): Close fts_cwd_fd, if necessary.
79641         (__opendir2): Define in terms of opendir or opendirat,
79642         depending on whether the FST_NOCHDIR flag is set.
79643         (fts_build): Since fts_safe_changedir consumes its FD, and since
79644         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79645         and close the dup'd file descriptor upon failure.
79646         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79647         (fts_safe_changedir): Tweak semantics to reflect that this function
79648         now calls cwd_advance_fd and hence consumes its FD argument.
79649         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79650         [struct FTS] (fts_rft): Remove now-unused member.
79651         [struct FTS] (fts_cycle.state): Improve comment.
79652
79653         * lib/openat.c (openat_needs_fchdir): New function.
79654         * lib/openat.h (openat_needs_fchdir): Declare it.
79655
79656 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79657
79658         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79659         Problem and fix reported by Pádraig Brady in
79660         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79661
79662 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79663
79664         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79665
79666 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79667
79668         * lib/memcoll.c (memcoll): Optimize for the common case where the
79669         arguments are bytewise equal.
79670
79671 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79672
79673         * doc/regexprops-generic.texi: Add a copyright notice.
79674
79675 2006-08-15  Bruno Haible  <bruno@clisp.org>
79676
79677         * modules/tmpdir (License): Change to LGPL.
79678
79679 2006-08-15  Bruno Haible  <bruno@clisp.org>
79680
79681         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79682         module.
79683
79684 2006-08-14  Simon Josefsson  <jas@extundo.com>
79685
79686         * config/srclist.txt: Add gnupload.
79687
79688 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79689
79690         Change copyright notice from LGPL 2 to GPL 2, since that's the
79691         standard form used in the gnulib repository.
79692         * tests/test-lock.c: Likewise.
79693         * tests/test-stdint.c: Likewise.
79694         * tests/test-tls.c: Likewise.
79695
79696         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79697         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79698         Add copyright notice.
79699
79700         * check-module: Add copyright notice.  Output a copyright
79701         notice if "--version" is specified.
79702         * modules/COPYING: New file.
79703         * tests/test-getaddrinfo.c: Add copyright notice.
79704         * tests/test-verify.c: Likewise.
79705
79706 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         Change copyright notice from LGPL 2 to GPL 2, since that's the
79709         standard form used in the gnulib repository.
79710         * lib/lock.c: LGPL -> GPL.
79711         * lib/lock.h: Likewise.
79712         * lib/strnlen1.c: Likewise.
79713         * lib/strnlen1.h: Likewise.
79714         * lib/tls.c: Likewise.
79715         * lib/tls.h: Likewise.
79716         * lib/tmpdir.c: Likewise.
79717
79718         * lib/TODO: Remove; this belongs only in coreutils.
79719
79720 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         Add copyright notices to long-enough files that lack them, since
79723         otherwise the files aren't clearly free.  Use the same notice that
79724         getdate.texi already uses.
79725         * doc/alloca-opt.texi: Add copyright notice.
79726         * doc/alloca.texi: Likewise.
79727         * doc/ctime.texi: Likewise.
79728         * doc/functions.texi: Likewise.
79729         * doc/gcd.texi: Likewise.
79730         * doc/gnulib-tool.texi: Likewise.
79731         * doc/inet_ntoa.texi: Likewise.
79732         * doc/visibility.texi: Likewise.
79733
79734         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79735         * doc/quote.texi: Add copyright notice.
79736
79737         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79738         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79739         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79740         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79741         is now obsolete, and give a pointer to the Sun list.
79742         Add copyright notice.
79743
79744 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         * config/srclistvars.sh: Add copyright notice.
79747
79748 2006-08-14  Eric Blake  <ebb9@byu.net>
79749
79750         Import the following change from libc:
79751
79752         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79753
79754         Upstream bug 2997.
79755         * lib/misc/error.c: Add space between program name and message if file
79756         name is missing.
79757
79758 2006-08-12  Karl Berry  <karl@gnu.org>
79759
79760         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79761         remove, these originate in gnulib now.
79762
79763 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79764
79765         * doc/Makefile (standards.info standards.html standards.dvi):
79766         Also depend on make-stds.texi.
79767
79768 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79771         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79772
79773         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79774         in wchar_t.  Problem reported by Eric Blake.
79775
79776         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79777         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79778         Also, help the compiler to keep LEN in a register.
79779
79780 2006-08-11  Eric Blake  <ebb9@byu.net>
79781
79782         * users.txt: Sort.  Add tar.
79783
79784 2006-08-11  Bruno Haible  <bruno@clisp.org>
79785
79786         * users.txt: New file.
79787
79788 2006-08-11  Bruno Haible  <bruno@clisp.org>
79789
79790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79791         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79792
79793 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79794
79795         * modules/snprintf (Depends-on): Remove minmax.
79796         (Maintainer): Add self and Bruno.
79797
79798 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79799
79800         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79801         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79802         (EOVERFLOW): Define if the system does not.
79803         Do not include "minmax.h"; it wasn't used.
79804         (snprintf): Don't assume size_t promotes to an unsigned type.
79805         Fix bug when generated string was too long for the buffer: the
79806         buffer's contents are supposed to be the initial prefix of the
79807         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79808         exceeds INT_MAX; do the check ourselves.
79809
79810         Import the following changes from libc:
79811
79812         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79813
79814         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79815         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79816         set wc to the byte which couldn't be converted.
79817         (re_string_reconstruct): Don't clear valid_raw_len before calling
79818         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79819         tip_context using re_string_context_at.
79820
79821         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79822
79823         * lib/posix/regex.h: g++ still cannot handled [restrict].
79824
79825         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79826
79827         * lib/posix/regex.h: Remove special handling for VMS.
79828
79829 2006-08-10  Jim Meyering  <jim@meyering.net>
79830
79831         * modules/same-inode: New module.
79832         * modules/dev-ino: New module.
79833         * modules/cycle-check: Depend on these modules, rather than simply
79834         including their .h files.
79835         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79836         required via m4/cycle-check.m4.
79837         * modules/same: Depend on new same-inode module, rather than
79838         including same-inode.h.
79839         * modules/chdir-safer: New file.
79840
79841         * modules/chown (Depends-on): Add stat-macros.
79842
79843 2006-08-10  Jim Meyering  <jim@meyering.net>
79844
79845         * m4/cycle-check.m4: New file.
79846         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79847         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79848
79849 2006-08-10  Eric Blake  <ebb9@byu.net>
79850
79851         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79852         in from original proposal.
79853
79854 2006-08-10  Eric Blake  <ebb9@byu.net>
79855         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79856
79857         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79858         namespace.
79859
79860 2006-08-10  Bruno Haible  <bruno@clisp.org>
79861
79862         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79863         as well.
79864
79865 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         Sync from coreutils.
79868
79869         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79870
79871         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79872         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79873
79874 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * modules/restrict: Remove; no longer needed now that we assume
79877         Autoconf 2.59 or later.
79878         * MODULES.html.sh: Remove 'restrict'.
79879         * modules/argp (Depends-on): Remove 'restrict'.
79880         * modules/base64 (Depends-on): Likewise.
79881         * modules/gc (Depends-on): Likewise.
79882         * modules/getaddrinfo (Depends-on): Likewise.
79883         * modules/glob (Depends-on): Likewise.
79884         * modules/inet_ntop (Depends-on): Likewise.
79885         * modules/inet_pton (Depends-on): Likewise.
79886         * modules/memxor (Depends-on): Likewise.
79887         * modules/regex (Depends-on): Likewise.
79888         * modules/strtok_r (Depends-on): Likewise.
79889         * modules/time_r (Depends-on): Likewise.
79890
79891 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79892
79893         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79894         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79895         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79896         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79897         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79898         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79899         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79900         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79901
79902         Merge from coreutils.
79903         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79904         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79905         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79906         * m4/time_r.m4 (gl_TIME_R): Likewise.
79907
79908 2006-08-09  Karl Berry  <karl@gnu.org>
79909
79910         * config/srclist.txt: no more gettext-tools, per Bruno.
79911
79912 2006-08-08  Eric Blake  <ebb9@byu.net>
79913
79914         * modules/verror: New module.
79915         * MODULES.html.sh: Document it.
79916
79917 2006-08-08  Eric Blake  <ebb9@byu.net>
79918
79919         * lib/verror.h, lib/verror.c: New files.
79920
79921 2006-08-08  Eric Blake  <ebb9@byu.net>
79922
79923         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79924         verror_at_line output complies with GNU Coding Standards even when
79925         file is NULL.
79926
79927 2006-08-07  Bruno Haible  <bruno@clisp.org>
79928
79929         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79930         versions of AIX.
79931         Reported by Ralf Wildenhues.
79932
79933 2006-08-07  Bruno Haible  <bruno@clisp.org>
79934
79935         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79936         in an AC_DEFUN. Needed so that the autoconf snippets can use
79937         AC_REQUIRE.
79938
79939 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79940
79941         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79942         Initialize pkgdata_DATA.
79943         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79944         overriding it.
79945
79946 2006-08-06  Eric Blake  <ebb9@byu.net>
79947
79948         * lib/error.h: Fold in some upstream changes from glibc.
79949         * lib/error.c: Likewise.
79950
79951 2006-08-04  Bruno Haible  <bruno@clisp.org>
79952
79953         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79954         Make the mostlyclean-local rule depend on mostlyclean-generic.
79955         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79956
79957 2006-07-31  Bruno Haible  <bruno@clisp.org>
79958
79959         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79960         <stdlib.h>, <string.h>.
79961
79962 2006-07-30  Bruno Haible  <bruno@clisp.org>
79963
79964         * modules/readlink (License): Change to LGPL.
79965
79966 2006-07-30  Bruno Haible  <bruno@clisp.org>
79967
79968         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79969         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79970         set PKGDATADIR to point to it.
79971
79972 2006-07-30  Bruno Haible  <bruno@clisp.org>
79973
79974         * modules/csharpexec (configure.ac): Comment out macro invocation.
79975         * modules/javaexec (configure.ac): Likewise.
79976         * modules/javacomp-script (configure.ac): Likewise.
79977
79978         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79979
79980 2006-07-30  Bruno Haible  <bruno@clisp.org>
79981
79982         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79983         linked-list.
79984
79985 2006-07-30  Bruno Haible  <bruno@clisp.org>
79986
79987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79988
79989 2006-07-30  Bruno Haible  <bruno@clisp.org>
79990
79991         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79992         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79993         get removed.
79994
79995 2006-07-29  Bruno Haible  <bruno@clisp.org>
79996
79997         Make it possible for gnulib-tool to work with locally modified or
79998         augmented gnulib repositories.
79999         * gnulib-tool (func_usage): Document --local-dir option.
80000         (local_gnulib_dir): New variable.
80001         Handle --local-dir option.
80002         (func_lookup_file): New function.
80003         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80004         (func_get_description, func_get_filelist, func_get_description,
80005         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80006         func_get_automake_snippet, func_get_include_directive,
80007         func_get_license, func_get_maintainer): Use func_lookup_file.
80008         (func_import, func_create_testdir): Use func_lookup_file.
80009
80010 2006-07-29  Bruno Haible  <bruno@clisp.org>
80011
80012         * modules/setenv (Depends-on): Add unistd.
80013
80014 2006-07-29  Bruno Haible  <bruno@clisp.org>
80015
80016         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80017
80018 2006-07-29  Bruno Haible  <bruno@clisp.org>
80019
80020         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80021
80022 2006-07-29  Bruno Haible  <bruno@clisp.org>
80023
80024         * gnulib-tool (import, update): If there is no Makefile.am, look at
80025         aclocal.m4, instead of bailing out.
80026
80027 2006-07-29  Bruno Haible  <bruno@clisp.org>
80028
80029         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80030         Categorize the options by when they are useful.
80031
80032 2006-07-29  Bruno Haible  <bruno@clisp.org>
80033
80034         * gnulib-tool (func_usage): Document option --no-libtool.
80035         Handle option --no-libtool.
80036         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80037         for changed semantics of $libtool variable.
80038         (func_import): Likewise. If libtool is not used, show this through
80039         an option --no-libtool.
80040         (func_create_testdir): Update.
80041
80042 2006-07-29  Bruno Haible  <bruno@clisp.org>
80043
80044         * gnulib-tool (func_import): Extend error message about missing
80045         --doc-base.
80046
80047 2006-07-29  Bruno Haible  <bruno@clisp.org>
80048
80049         * gnulib-tool (func_import): Don't create the $docbase directory if
80050         there is no file to store there.
80051
80052 2006-07-29  Bruno Haible  <bruno@clisp.org>
80053
80054         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80055         relevant, look for configure.ac there, not in the current directory.
80056         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80057
80058 2006-07-29  Bruno Haible  <bruno@clisp.org>
80059
80060         * gnulib-tool (SORT): New variable.
80061         (func_usage): Undocument --assume-autoconf option.
80062         Remove --assume-autoconf option handling.
80063         (autoconf_minversion): Determine from the contents of configure.ac.
80064         (func_import): Remove autoconf_minversion handling.
80065         Suggested by Eric Blake.
80066
80067 2006-07-29  Bruno Haible  <bruno@clisp.org>
80068
80069         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80070
80071 2006-07-29  Bruno Haible  <bruno@clisp.org>
80072
80073         * config/srclist.txt (*setenv.[ch]): Remove rules.
80074
80075 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80076
80077         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80078
80079 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80080
80081         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80082         arpa/inet.h.
80083
80084 2006-07-28  Simon Josefsson  <jas@extundo.com>
80085
80086         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80087         * modules/inet_pton (Depends-on): Likewise.
80088
80089 2006-07-28  Simon Josefsson  <jas@extundo.com>
80090
80091         * m4/netinet_in_h.m4: New file.
80092
80093 2006-07-28  Simon Josefsson  <jas@extundo.com>
80094
80095         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80096         #include's.
80097
80098 2006-07-28  Simon Josefsson  <jas@extundo.com>
80099
80100         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80101         #include's.
80102
80103 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80104
80105         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80106         setgid on directories only if they set these bits.
80107         * lib/modechange.h: Remove obsolete comment about masks.
80108
80109 2006-07-28  Eric Blake  <ebb9@byu.net>
80110
80111         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80112         macro expansion.
80113
80114 2006-07-28  Bruno Haible  <bruno@clisp.org>
80115
80116         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80117
80118 2006-07-28  Bruno Haible  <bruno@clisp.org>
80119
80120         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80121
80122 2006-07-28  Bruno Haible  <bruno@clisp.org>
80123
80124         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80125         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80126         Define fallbacks.
80127         Avoids link error on FreeBSD 4.x.
80128         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80129
80130         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80131         encoding.
80132         * lib/mbswidth.c (iswcntrl): Likewise.
80133
80134 2006-07-27  Bruno Haible  <bruno@clisp.org>
80135
80136         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80137         test.
80138
80139 2006-07-27  Bruno Haible  <bruno@clisp.org>
80140
80141         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80142         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80143         defined.
80144
80145 2006-07-26  Eric Blake  <ebb9@byu.net>
80146
80147         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80148
80149 2006-07-26  Eric Blake  <ebb9@byu.net>
80150
80151         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80152         like mingw that lack mkstemp.
80153         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80154         avoid compilation warning on mingw.
80155
80156 2006-07-26  Bruno Haible  <bruno@clisp.org>
80157
80158         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80159         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80160         INT_FAST*_MIN, INTPTR_MIN.
80161
80162 2006-07-25  Bruno Haible  <bruno@clisp.org>
80163
80164         * modules/version-etc (Depends-on): Add stdarg.
80165
80166 2006-07-25  Bruno Haible  <bruno@clisp.org>
80167
80168         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80169         complex commands.
80170
80171 2006-07-25  Bruno Haible  <bruno@clisp.org>
80172
80173         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80174         defined in <stdarg.h> or config.h.
80175
80176 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80177
80178         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80179         (gl_STDIO_SAFER): Remove.
80180
80181 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80182
80183         * MODULES.html.sh (File stream based Input/Output):
80184         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80185         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80186         * modules/fopen-safer, modules/tmpfile-safer: New files.
80187         * modules/stdio-safer: Remove.
80188
80189 2006-07-24  Bruno Haible  <bruno@clisp.org>
80190
80191         * modules/tmpdir: New file.
80192         * MODULES.html.sh (File system functions): Add it.
80193
80194 2006-07-24  Bruno Haible  <bruno@clisp.org>
80195
80196         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80197         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80198
80199 2006-07-24  Bruno Haible  <bruno@clisp.org>
80200
80201         * modules/clean-temp: New file.
80202
80203 2006-07-24  Bruno Haible  <bruno@clisp.org>
80204
80205         * m4/tmpdir.m4: New file, from GNU gettext.
80206
80207 2006-07-24  Bruno Haible  <bruno@clisp.org>
80208
80209         * lib/tmpdir.h: New file, from GNU gettext.
80210         * lib/tmpdir.c: New file, from GNU gettext.
80211
80212 2006-07-24  Bruno Haible  <bruno@clisp.org>
80213
80214         * lib/clean-temp.h: New file, from GNU gettext.
80215         * lib/clean-temp.c: New file, from GNU gettext.
80216
80217 2006-07-23  Eric Blake  <ebb9@byu.net>
80218
80219         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80220         (Depends-on): Add binary-io.
80221
80222 2006-07-23  Eric Blake  <ebb9@byu.net>
80223
80224         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80225
80226 2006-07-23  Eric Blake  <ebb9@byu.net>
80227
80228         * lib/tmpfile-safer.c: New file.
80229         * lib/stdio-safer.h (fopen_safer): Add prototype.
80230         * lib/stdio--.h (tmpfile): Make safer.
80231
80232 2006-07-23  Bruno Haible  <bruno@clisp.org>
80233
80234         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80235         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80236         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80237         gl_linked_remove_at): Use it.
80238
80239 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80240         and Simon Josefsson <jas@extundo.com>
80241
80242         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80243
80244         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80245
80246 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80247
80248         * modules/close-stream: New file.
80249         * modules/closeout (Description): Make it clear that it exits
80250         with a diagnostic on error.
80251         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80252         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80253
80254 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80255
80256         * m4/close-stream.m4: New file.
80257
80258 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80259
80260         * lib/close-stream.c, lib/close-stream.h: New files.
80261
80262 2006-07-22  Bruno Haible  <bruno@clisp.org>
80263
80264         Merge from GNU gettext 0.15.
80265
80266         2006-05-01  Bruno Haible  <bruno@clisp.org>
80267
80268                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80269
80270         2006-07-22  Bruno Haible  <bruno@clisp.org>
80271
80272                 * modules/javaversion: New file.
80273                 * MODULES.html.sh (Java): Add javaversion.
80274
80275         2006-03-12  Bruno Haible  <bruno@clisp.org>
80276
80277                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80278
80279         2005-12-04  Bruno Haible  <bruno@clisp.org>
80280
80281                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80282                 (untested).
80283
80284         2006-06-21  Bruno Haible  <bruno@clisp.org>
80285
80286                 Avoid warnings from recent versions of mcs.
80287                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80288                 -o, -L, -r any more. Use options documented since mcs-1.0
80289                 instead. Similarly for -g.
80290
80291         2005-12-04  Bruno Haible  <bruno@clisp.org>
80292
80293                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80294                 .resources, not .resource.
80295
80296         2005-07-09  Bruno Haible  <bruno@clisp.org>
80297
80298                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80299                 add a .dll suffix.
80300                 Reported by Mark Junker <mjscod@gmx.de>.
80301
80302         2006-07-22  Bruno Haible  <bruno@clisp.org>
80303
80304                 * modules/gettext: Upgrade to gettext-0.15.
80305                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80306                 m4/visibility.m4.
80307                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80308
80309 2006-07-22  Bruno Haible  <bruno@clisp.org>
80310
80311         Merge from GNU gettext 0.15.
80312
80313         2006-03-25  Bruno Haible  <bruno@clisp.org>
80314
80315                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80316
80317         2006-07-21  Bruno Haible  <bruno@clisp.org>
80318
80319                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80320                 "1.1".
80321
80322         2006-05-09  Bruno Haible  <bruno@clisp.org>
80323
80324                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80325                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80326                 for the conftestver execution.
80327
80328         2006-05-01  Bruno Haible  <bruno@clisp.org>
80329
80330                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80331                 optional target-version argument. Verify that the compiler
80332                 groks source of the specified source-version, or add -source
80333                 option as necessary. Verify that the compiler produces
80334                 bytecode in the specified target-version, or add -target and
80335                 -source options as necessary. Make the result of the test
80336                 available as variable CONF_JAVAC. Also log error output in
80337                 config.log.
80338
80339         2006-03-11  Bruno Haible  <bruno@clisp.org>
80340
80341                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80342
80343         2006-05-09  Bruno Haible  <bruno@clisp.org>
80344
80345                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80346                 CLASSPATH_SEPARATOR to a semicolon.
80347
80348         2006-03-12  Bruno Haible  <bruno@clisp.org>
80349
80350                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80351                 available as variable CONF_JAVA, for subsequent autoconf
80352                 tests. Also log error output in config.log.
80353
80354         2006-07-19  Bruno Haible  <bruno@clisp.org>
80355
80356                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80357                 that getline works on glibc2 systems. Needed to avoid trouble
80358                 in relocatable.c.
80359                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80360
80361         2005-12-04  Bruno Haible  <bruno@clisp.org>
80362
80363                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80364                 launcher (untested).
80365
80366         2005-12-04  Bruno Haible  <bruno@clisp.org>
80367
80368                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80369
80370         2006-07-22  Bruno Haible  <bruno@clisp.org>
80371
80372                 * gettext.m4: Update from GNU gettext-0.15.
80373                 * nls.m4: Likewise.
80374                 * po.m4: Likewise.
80375                 * inttypes-pri.m4: Likewise.
80376                 * inttypes-h.m4: Renamed from inttypes.m4.
80377                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80378
80379 2006-07-22  Bruno Haible  <bruno@clisp.org>
80380
80381         Merge from GNU gettext 0.15.
80382
80383         2005-07-05  Bruno Haible  <bruno@clisp.org>
80384
80385                 * printf-args.c (printf_fetchargs): Work around broken
80386                 definition of wint_t on mingw.
80387
80388         2005-02-12  Bruno Haible  <bruno@clisp.org>
80389
80390                 * xallocsa.h: Add extern "C" for C++.
80391
80392         2006-05-17  Bruno Haible  <bruno@clisp.org>
80393
80394                 Cygwin portability.
80395                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80396
80397         2006-04-30  Bruno Haible  <bruno@clisp.org>
80398
80399                 * progreloc.c: Include <mach-o/dyld.h> if available.
80400                 (find_executable): Use _NSGetExecutablePath when possible.
80401
80402         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80403
80404                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80405                 function.
80406
80407         2005-12-29  Bruno Haible  <bruno@clisp.org>
80408
80409                 * progreloc.c (set_program_name_and_installdir): Fix
80410                 compilation error.
80411
80412         2005-12-04  Bruno Haible  <bruno@clisp.org>
80413
80414                 Cygwin portability.
80415                 * progreloc.c: Include <windows.h> also on Cygwin.
80416                 (find_executable): Add support for Cygwin.
80417                 (set_program_name_and_installdir): Handle also platforms with
80418                 nonempty EXEEXT.
80419
80420         2006-07-11  Bruno Haible  <bruno@clisp.org>
80421
80422                 * javacomp.c: Fix a comment.
80423                 Reported by Jim Meyering.
80424
80425         2006-04-30  Bruno Haible  <bruno@clisp.org>
80426
80427                 * javacomp.h (compile_java_class): Add source_version,
80428                 target_version arguments.
80429                 * javacomp.c: Rewritten to choose only a compiler that
80430                 respects the specified source_version and target_version.
80431
80432         2006-06-27  Bruno Haible  <bruno@clisp.org>
80433
80434                 Assume correct S_ISDIR macro.
80435                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80436
80437         2006-07-22  Bruno Haible  <bruno@clisp.org>
80438
80439                 * javaversion.h: New file, from GNU gettext.
80440                 * javaversion.c: New file, from GNU gettext.
80441                 * javaversion.java: New file, from GNU gettext.
80442                 * javaversion.class: New file, from GNU gettext.
80443
80444         2006-05-17  Bruno Haible  <bruno@clisp.org>
80445
80446                 Cygwin portability.
80447                 * javaexec.c (execute_java_class): Test for jview program
80448                 also on Cygwin.
80449
80450         2006-04-09  Bruno Haible  <bruno@clisp.org>
80451
80452                 * fatal-signal.c: Don't include string.h.
80453                 (at_fatal_signal): Use a copying loop instead of memcpy.
80454
80455         2005-12-04  Bruno Haible  <bruno@clisp.org>
80456
80457                 * csharpexec.c: Add support for 'clix' launcher (untested).
80458                 (execute_csharp_using_sscli): New function.
80459                 (execute_csharp_program): Call it.
80460
80461         2006-06-21  Bruno Haible  <bruno@clisp.org>
80462
80463                 Avoid warnings from recent versions of mcs.
80464                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80465                 -o, -L, -r any more. Use options documented since mcs-1.0
80466                 instead. Similarly for -g.
80467
80468         2005-07-09  Bruno Haible  <bruno@clisp.org>
80469
80470                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80471                 add a .dll suffix.
80472                 Reported by Mark Junker <mjscod@gmx.de>.
80473
80474         2006-06-17  Bruno Haible  <bruno@clisp.org>
80475
80476                 * config.charset: Update for NetBSD 3.0.
80477
80478         2006-05-17  Bruno Haible  <bruno@clisp.org>
80479
80480                 Cygwin portability.
80481                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80482
80483         2006-05-16  Bruno Haible  <bruno@clisp.org>
80484
80485                 * localcharset.c [CYGWIN]: Include <windows.h>.
80486                 (get_charset_aliases): For Cygwin, return the same CPxxx
80487                 aliases list as under WIN32.
80488                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80489                 the environment variables. Fall back to GetACP().
80490
80491         2006-04-05  Bruno Haible  <bruno@clisp.org>
80492
80493                 * config.charset: Update Juan Manuel Guerrero's address.
80494
80495         2005-02-12  Bruno Haible  <bruno@clisp.org>
80496
80497                 * allocsa.h: Add extern "C" for C++.
80498
80499         2005-02-10  Bruno Haible  <bruno@clisp.org>
80500
80501                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80502                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80503
80504         2006-07-22  Bruno Haible  <bruno@clisp.org>
80505
80506                 * gettext.h: Update to GNU gettext-0.15.
80507
80508 2006-07-22  Bruno Haible  <bruno@clisp.org>
80509
80510         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80511         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80512         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80513
80514 2006-07-21  Eric Blake  <ebb9@byu.net>
80515
80516         * modules/stdlib-safer: New file.
80517         * MODULES.html.sh (File stream based Input/Output): Add
80518         stdlib-safer.
80519
80520 2006-07-21  Eric Blake  <ebb9@byu.net>
80521
80522         * lib/stdlib-safer.h: New file from coreutils, required by
80523         stdlib--.h.
80524
80525 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80526
80527         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80528
80529 2006-07-20  Bruno Haible  <bruno@clisp.org>
80530
80531         * gnulib-tool: Recognize new option --assume-autoconf.
80532         (autoconf_minversion): New variable.
80533         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80534
80535 2006-07-20  Bruno Haible  <bruno@clisp.org>
80536
80537         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80538
80539 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80540
80541         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80542         Reindent and repaginate.
80543
80544 2006-07-19  Derek Price  <derek@ximbiot.com>
80545
80546         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80547         Correct grammar.
80548
80549 2006-07-17  Bruno Haible  <bruno@clisp.org>
80550
80551         * modules/list: New file.
80552         * modules/array-list: New file.
80553         * modules/carray-list, modules/carray-list-tests: New files.
80554         * modules/linked-list, modules/linked-list-tests: New files.
80555         * modules/avltree-list, modules/avltree-list-tests: New files.
80556         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80557         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80558         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80559         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80560         * modules/oset: New file.
80561         * modules/array-oset: New file.
80562         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80563         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80564         * tests/test-carray_list.c: New file.
80565         * tests/test-linked_list.c: New file.
80566         * tests/test-avltree_list.c: New file.
80567         * tests/test-rbtree_list.c: New file.
80568         * tests/test-linkedhash_list.c: New file.
80569         * tests/test-avltreehash_list.c: New file.
80570         * tests/test-rbtreehash_list.c: New file.
80571         * tests/test-avltree_oset.c: New file.
80572         * tests/test-rbtree_oset.c: New file.
80573         * MODULES.html.sh (Container data structures): New section.
80574
80575 2006-07-17  Bruno Haible  <bruno@clisp.org>
80576
80577         * m4/gl_list.m4: New file.
80578
80579 2006-07-17  Bruno Haible  <bruno@clisp.org>
80580
80581         * lib/gl_list.h: New file.
80582         * lib/gl_list.c: New file.
80583         * lib/gl_array_list.h: New file.
80584         * lib/gl_array_list.c: New file.
80585         * lib/gl_carray_list.h: New file.
80586         * lib/gl_carray_list.c: New file.
80587         * lib/gl_linked_list.h: New file.
80588         * lib/gl_linked_list.c: New file.
80589         * lib/gl_anylinked_list1.h: New file.
80590         * lib/gl_anylinked_list2.h: New file.
80591         * lib/gl_avltree_list.h: New file.
80592         * lib/gl_avltree_list.c: New file.
80593         * lib/gl_anyavltree_list1.h: New file.
80594         * lib/gl_anyavltree_list2.h: New file.
80595         * lib/gl_rbtree_list.h: New file.
80596         * lib/gl_rbtree_list.c: New file.
80597         * lib/gl_anyrbtree_list1.h: New file.
80598         * lib/gl_anyrbtree_list2.h: New file.
80599         * lib/gl_anytree_list1.h: New file.
80600         * lib/gl_anytree_list2.h: New file.
80601         * lib/gl_linkedhash_list.h: New file.
80602         * lib/gl_linkedhash_list.c: New file.
80603         * lib/gl_anyhash_list1.h: New file.
80604         * lib/gl_anyhash_list2.h: New file.
80605         * lib/gl_avltreehash_list.h: New file.
80606         * lib/gl_avltreehash_list.c: New file.
80607         * lib/gl_rbtreehash_list.h: New file.
80608         * lib/gl_rbtreehash_list.c: New file.
80609         * lib/gl_anytreehash_list1.h: New file.
80610         * lib/gl_anytreehash_list2.h: New file.
80611
80612         * lib/gl_oset.h: New file.
80613         * lib/gl_oset.c: New file.
80614         * lib/gl_array_oset.h: New file.
80615         * lib/gl_array_oset.c: New file.
80616         * lib/gl_avltree_oset.h: New file.
80617         * lib/gl_avltree_oset.c: New file.
80618         * lib/gl_rbtree_oset.h: New file.
80619         * lib/gl_rbtree_oset.c: New file.
80620         * lib/gl_anytree_oset.h: New file.
80621
80622 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80623
80624         * m4/mkancesdirs.m4: New file.
80625         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80626         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80627         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80628         it.
80629
80630 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80631
80632         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80633         * lib/mkancesdirs.h: New files.
80634         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80635         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80636         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80637         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80638         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80639         callers changed.  Revamp internals significantly, by not
80640         attempting to create directories that are temporarily more
80641         permissive than the final results.  Do not attempt to use
80642         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80643         This removes some race conditions, fixes some bugs, and simplifies
80644         things.  Use new dirchownmod function to do owner and mode changes.
80645         * lib/mkdir-p.h: Likewise.
80646         * lib/modechange.c (octal_to_mode): New function.
80647         (struct mode_change): New member mentioned.
80648         (make_node_op_equals): New arg mentioned.  All callers changed.
80649         (mode_compile): Keep track of which mode bits the user has explicitly
80650         mentioned.
80651         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80652         New arg PMODE_BITS, to keep track of which mode bits the user
80653         mentioned; it treats S_ISUID and S_ISGID speciall.
80654         All callers changed.
80655         * lib/modechange.h: Likewise.
80656
80657 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80658
80659         * MODULES.html.sh: Add mkancestors.
80660         * modules/mkancesdirs: New module.
80661         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80662         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80663         The chdir-safer and afs files are now orphans; I'll remove them
80664         unless someone speaks up.
80665         Add lib/dirchownmod.c, lib/dirchownmod.h.
80666         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80667         Add lchown, mkancesdirs.
80668         (Maintainer): Add self.
80669
80670 2006-07-15  Karl Berry  <karl@gnu.org>
80671
80672         * gnulib-tool: help message wording/arrangement.
80673
80674 2006-07-14  Simon Josefsson  <jas@extundo.com>
80675
80676         * doc/gnulib.texi (Libtool and Windows): New section.
80677
80678 2006-07-12  Simon Josefsson  <jas@extundo.com>
80679
80680         * modules/gendocs (License): Fix license, approved by Karl.
80681
80682 2006-07-12  Eric Blake  <ebb9@byu.net>
80683
80684         * MODULES.html.sh: Add gendocs.
80685
80686 2006-07-11  Eric Blake  <ebb9@byu.net>
80687
80688         * modules/fdl: New module, to install doc/fdl.texi.
80689         * MODULES.html.sh: Add new section for documentation modules.
80690         * gnulib-tool: Avoid space-tab.
80691         (--doc-base): New option, to manage files from doc.
80692
80693 2006-07-11  Eric Blake  <ebb9@byu.net>
80694
80695         * m4/absolute-header.m4: Fix comments to match recent change.
80696
80697 2006-07-11  Eric Blake  <ebb9@byu.net>
80698
80699         * gnulib-tool: List --doc-base before --tests-base.
80700
80701 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80702
80703         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80704
80705 2006-07-11  Bruno Haible  <bruno@clisp.org>
80706
80707         * README: Mention where to put documentation.
80708
80709 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80710
80711         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80712
80713 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80716         to stdint.m4.
80717
80718 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80719
80720         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80721         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80722         "no/such/file/stdint.h" when there is no such file, so that
80723         the resulting C code can be parsed by dodgy compilers.
80724         Problems reported by Bob Proulx.
80725
80726 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80727
80728         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80729         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80730         macros into the GNU _D_EXACT_NAMLEN.
80731         * lib/savedir.c:  Likewise.
80732         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80733
80734 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80735         and Paul Eggert  <eggert@cs.ucla.edu>
80736
80737         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80738         * m4/savedir.m4:
80739         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80740         macros into the GNU _D_EXACT_NAMLEN.
80741
80742 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80745         around the absolute name, to work around a problem with the HP-UX
80746         11.23 native C compiler, reported by Bob Proulx.
80747
80748 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80749
80750         * doc/maintain.texi, make-stds.texi: Sync from
80751         <http://savannah.gnu.org/projects/gnustandards>.
80752
80753 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80754
80755         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80756
80757 2006-07-09  Jim Meyering  <jim@meyering.net>
80758
80759         * m4/glob.m4: Remove a doubled word in a comment.
80760
80761 2006-07-09  Jim Meyering  <jim@meyering.net>
80762
80763         * lib/argp-pv.c: Remove a doubled word in a comment.
80764         * lib/check-version.c (check_version): Likewise.
80765         * lib/javacomp.c (compile_java_class): Likewise.
80766
80767 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80768
80769         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80770         for the benefit of people using Autoconf 2.60.  If you want to
80771         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80772         (or m4/onceonly.m4, if pre-2.57) manually.
80773
80774 2006-07-08  Jim Meyering  <jim@meyering.net>
80775
80776         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80777         comment.
80778         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80779         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80780         comment.
80781
80782 2006-07-08  Jim Meyering  <jim@meyering.net>
80783
80784         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80785
80786 2006-07-07  Simon Josefsson  <jas@extundo.com>
80787
80788         * tests/test-crc.c: Change expected crc value, the test vector
80789         were probably computed using the old broken crc.c?
80790
80791 2006-07-06  Simon Josefsson  <jas@extundo.com>
80792
80793         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80794         now the canonical place for the M4 file).
80795
80796         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80797         from the sys_socket dependency now.
80798
80799         * modules/inet_pton (Files): Ditto.
80800
80801         * modules/inet_ntop (Files): Ditto.
80802
80803 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80804
80805         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80806         not gl_PREREQ_GETUSERSHELL.
80807
80808 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80809
80810         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80811         with only one argument, for Autoconf 2.60.
80812         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80813         expand to nothing, so add a shell command to avoid syntax error.
80814         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80815
80816 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80817
80818         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80819
80820 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80821
80822         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80823         no longer needed.  Check for isblank decl.
80824         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80825         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80826         of existence.
80827
80828 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80829
80830         * lib/getloadavg.c: Use __VMS, not VMS.
80831         * lib/getopt.c: Likewise.
80832         * lib/getpagesize.h: Likewise.
80833         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80834         and probably does not work.
80835
80836 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80837
80838         * lib/.cppi-disable: Add wcwidth.
80839         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80840         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80841         (ISGRAPH): Remove.  All uses changed to isgraph.
80842         (FOLD) [!defined _LIBC]: Remove special case.
80843         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80844         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80845         HAVE_ISBLANK.
80846         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80847         case.
80848
80849 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80850
80851         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80852         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80853         brackets.  Other minor changes to suppress some compiler
80854         warnings.
80855
80856 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80857         and Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80860         of invoking obsolescent AC_HEADER_DIRENT macro.
80861         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80862         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80863         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80864         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80865         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80866         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80867         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80868         * m4/readdir.m4: Remove; no longer needed.
80869
80870 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80871         and Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80874         Don't worry about this obsolete case any more.
80875         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80876         directories.
80877         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80878         worry about this obsolete case any more.
80879         * lib/fts.c: Likewise.
80880         * lib/getcwd.c: Likewise.
80881         * lib/glob.h: Likewise.
80882         * lib/savedir.c: Likewise.
80883
80884 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80885
80886         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80887         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80888         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80889         needed.
80890         All uses removed.
80891         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80892         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80893         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80894         needed.
80895         * m4/getdate.m4 (gl_GETDATE): Likewise.
80896         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80897         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80898         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80899         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80900         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80901         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80902         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80903         needed.
80904
80905 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80906
80907         * lib/memcasecmp.c: Include <limits.h>.
80908         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80909         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80910         Don't assume isdigit succeeds only on '0' through '9'.
80911
80912 2006-07-05  Eric Blake  <ebb9@byu.net>
80913
80914         * modules/getaddrinfo (Depends-on): Add snprintf.
80915
80916 2006-07-05  Eric Blake  <ebb9@byu.net>
80917
80918         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80919         to avoid 'header present but could not be compiled' on cygwin.
80920
80921 2006-07-05  Eric Blake  <ebb9@byu.net>
80922
80923         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80924         missing from netdb.h.
80925         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80926
80927 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80928
80929         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80930         no longer needed.
80931         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80932         * m4/getdate.m4 (gl_GETDATE): Likewise.
80933         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80934         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80935         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80936         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80937         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80938
80939 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80940
80941         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80942         All uses of is_space replaced by isspace.
80943         * lib/exit.h: Don't talk about STDC_HEADERS.
80944         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80945         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80946         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80947         replaced by isprint etc.
80948         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80949         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80950         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80951         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80952         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80953         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80954
80955 2006-07-05  Bruno Haible  <bruno@clisp.org>
80956
80957         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80958         the function exists, before testing against AIX.
80959         Reported by Martin Lambers <marlam@marlam.de>.
80960
80961 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80962
80963         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80964         From Mark D. Baushke.
80965
80966 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80967
80968         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80969         to the absolute name, not just one, to bypass Sun C 5.8's
80970         "warning: #include of /usr/include/... may be non-portable".
80971
80972 2006-07-04  Eric Blake  <ebb9@byu.net>
80973
80974         * modules/dirname-tests: New test module.
80975         * tests/test-dirname.c: New file, replacing dirname.c
80976         TEST_DIRNAME section that was recently deleted.
80977
80978 2006-07-04  Bruno Haible  <bruno@clisp.org>
80979
80980         Assume ANSI C header files and <ctype.h> functions.
80981         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80982         (mbsnwidth): Use isprint, iscntrl instead.
80983
80984 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80985
80986         Merge from coreutils.
80987         * MODULES.html.sh: Add xstrtold.
80988         * modules/xstrtold: New file.
80989         * modules/cycle-check (Files): Add lib/same-inode.h.
80990         * modules/dirname (Files): Add m4/double-slash-root.m4.
80991         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80992         * modules/mkdir-p (Files): Add lib/same-inode.h.
80993         * modules/same (Files): Add lib/same-inode.h.
80994
80995 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80996
80997         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80998         This is to keep the terminology clean; POSIX talks about
80999         "absolute pathnames", not "full pathnames", but the GNU
81000         Coding Standards say to use "path" for something else;
81001         so use "absolute" to keep both sides happy.
81002         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81003         Set gl_absolute_header, not gl_full_header_path.
81004         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81005         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81006         All uses changed.
81007
81008         Merge from coreutils.
81009
81010         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81011
81012         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81013         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81014         want to require the building of c-strtod.o.
81015         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81016         needs -lm directly.
81017         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81018
81019         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81020
81021         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81022         --as-needed option if available.  Problem reported by Albert Chin in
81023         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81024         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81025         cc merely issues a bunch of annoying warnings for --as-needed
81026         (this problem was reported by Bob Proulx).  Also, try linking with
81027         -lm to detect a bug in binutils 2.16 (this problem was reported
81028         by Ralf Wildenhues).
81029
81030         2006-06-18  Jim Meyering  <jim@meyering.net>
81031
81032         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81033         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81034         macro.
81035         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81036         also check for glibc-2.4's abort-inducing bug.
81037
81038         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81039         Low-probability clean-up should be to use rmdir to get rid of
81040         the just-created directory, not unlink.
81041
81042         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81043         configure fail, and request a bug report to inform us about it.
81044         Add a comment that, barring reports to the contrary, in 2007 we'll
81045         assume ftruncate is universally available.
81046
81047         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81048
81049         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81050
81051         2006-03-12  Jim Meyering  <jim@meyering.net>
81052
81053         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81054         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81055         * m4/same.m4 (gl_SAME): Likewise.
81056         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81057
81058         2006-03-11  Eric Blake  <ebb9@byu.net>
81059
81060         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81061         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81062         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81063         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81064
81065 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81066
81067         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81068         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81069         reported by Mark D. Baushke, one in
81070         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81071
81072         Merge from coreutils.
81073
81074         * lib/.cppi-disable: Add stdint_.h.
81075         * lib/.cvsignore: Add stdint.h.
81076
81077         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81080         both double and long double versions.
81081         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81082         * lib/xstrtold.c: New file.
81083         * lib/xstrtod.h (xstrtold): New decl.
81084
81085         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * lib/filemode.c (setst): Remove.
81088         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81089         (arguably) clearer, and the generated code is a bit smaller on my
81090         Debian GNU/Linux stable x86 host.
81091
81092         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81093
81094         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81095         Assume that filemode.h includes sys/types.h and sys/stat.h.
81096         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81097         (ftypelet): Reorder to put common cases first, for efficiency.
81098         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81099         to do 'M'.
81100         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81101         of 10, for compatibility with FreeBSD.  All callers changed.
81102         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81103         types that can't be deduced solely from st_mode.  First arg is now a
81104         const pointer.
81105         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81106         (strmode): Renamed from mode_string.
81107         (filemodestring): New decl.
81108         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81109         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81110         needed.
81111         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81112
81113         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81114
81115         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81116         fsusage.h now does that.  Include fsusage.h first, to test interface.
81117         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81118         at most one method (the old code could have generated decls that
81119         didn't conform to C89, not that this was ever exercised).
81120         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81121
81122         2006-03-19  Jim Meyering  <jim@meyering.net>
81123
81124         Work even in a chroot where d_ino values for entries in "/"
81125         don't match the stat.st_ino values for the same names.
81126         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81127         number, iterate through all entries again, using lstat instead.
81128         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81129         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81130
81131         * lib/getcwd.c (__getcwd): Clarify a comment.
81132         Use memcpy in place of a call to strcpy.
81133
81134         2006-03-12  Jim Meyering  <jim@meyering.net>
81135
81136         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81137         matches that of the current directory (which we're about to chdir ".."
81138         out of), then save the dev-ino of the parent, instead.
81139
81140         * lib/same-inode.h (SAME_INODE): New file/macro.
81141         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81142         Include "same-inode.h", instead.
81143         * lib/same.c: Likewise.
81144         * lib/cycle-check.h: Include "same-inode.h".
81145         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81146         * lib/cycle-check.c (SAME_INODE): Remove definition.
81147         * lib/root-dev-ino.h: Include "same-inode.h".
81148
81149         2006-03-11  Eric Blake  <ebb9@byu.net>
81150
81151         * lib/same.c (same_name): s/base_name/last_component/
81152         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81153         * lib/filenamecat.c (file_name_concat): Likewise.
81154
81155         2006-03-11  Eric Blake  <ebb9@byu.net>,
81156                     Paul Eggert  <eggert@cs.ucla.edu>
81157
81158         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81159         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81160         drive prefix.
81161         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81162         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81163         (last_component): New method.
81164         * lib/dirname.c (dir_len): Determine when drive letters need a
81165         subsequent slash.  Preserve // when it is special.
81166         (dir_name): Don't append dot when drive letter is absolute.
81167         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81168         * lib/basename.c (base_name): New semantics - malloc the result.
81169         Preserve // when it is special.  Preserve relative files that look
81170         like drive letters.
81171         (base_len): Preserve // when it is special.
81172         (last_component): New method, similar to old base_name semantics.
81173         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81174         base_name.  Strip redundant slashes from ///.
81175
81176 2006-07-03  Jim Meyering  <jim@meyering.net>
81177
81178         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81179         macro is used before the first cycle_check call.
81180
81181 2006-07-03  Eric Blake  <ebb9@byu.net>
81182
81183         * modules/dirname (Depends-on): Add xstrndup.
81184
81185 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81186
81187         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81188         test cases, so that config.log is a bit easier to follow.
81189
81190 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81191
81192         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81193         both are 64 bits, since this seems to be the tradition, and this
81194         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81195         we ever run into a host that prefers long long to long in this
81196         case, we'll need another configure-time test.  Problem reported by
81197         Jim Meyering.
81198
81199 2006-07-02  Eric Blake  <ebb9@byu.net>
81200
81201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81202
81203 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81204
81205         * modules/inttypes (Depends-on): No longer depends on stdint.
81206         * modules/stdint (Description): Say more about assumptions.
81207         Say that the fast types might differ.  Say macros are used.
81208         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81209         (Makefile.am): Revise list of substituted symbols to match
81210         new stdint.m4.
81211         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81212         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81213         * tests/test-stdint.c (verify_same_types)
81214         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81215         the code conforms to C99/C89.
81216         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81217         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81218
81219 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81220
81221         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81222         but fix a bug, by requiring at least 64 bits.
81223         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81224         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81225         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81226         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81227
81228         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81229         changes.  Make 2.59 a prerequisite.  Check and substitute for
81230         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81231         inttypes.h.  Do not use special include files; just use the
81232         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81233         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81234         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81235         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81236         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81237         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81238         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81239         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81240         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81241         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81242         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81243         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81244         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81245         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81246         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81247         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81248         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81249         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81250         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81251         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81252         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81253         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81254         not check for things that C99 does not require, e.g., int8_t.  If
81255         a test isn't needed unless <stdint.h> isn't working, and is
81256         unlikely to be needed for any other reason, then don't do it
81257         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81258         size_t, since we assume C89 freestanding at least.  Do not check
81259         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81260         the right thing even if the types are not defined.  Instead use:
81261         (gl_STDINT_TYPE_PROPERTIES): New macro.
81262         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81263         testing whether <sys/types.h> clashes, as Autoconf does this for
81264         us now.  All uses removed.
81265         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81266         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81267         (gl_CHECK_TYPE_SAME):
81268         Remove; no longer needed.
81269         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81270         exists, since we'll return 0 anyway in that case.
81271         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81272
81273 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81276         possible collision with system files.
81277         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81278         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81279         WCHAR_MIN and WCHAR_MAX in this case.
81280         (<stddef.h>): Do not include; no longer needed.
81281         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81282         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81283         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81284         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81285         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81286         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81287         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81288         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81289         !defined(__c99))]: Include in this case too, since it's harmless
81290         now.
81291         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81292         dangerous to do so.
81293         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81294         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81295         (_STDINT_MIN, _STDINT_MAX): New macros.
81296         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81297         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81298         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81299         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81300         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81301         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81302         macros, not typedefs; this simplifies things quite a bit.
81303         Use long int for all types narrower than int64_t.
81304         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81305         Define in terms of long long int or int64_t or long int,
81306         not int64_t or int32_t.  This saves some compile-time testing.
81307         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81308         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81309         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81310         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81311         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81312         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81313         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81314         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81315         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81316         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81317         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81318         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81319         undef any previous version and define our own version, for
81320         simplicity and consistency with the new macros for types.
81321         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81322         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81323         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81324         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81325         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81326         @WINT_T_SUFFIX@ to keep things simple here.
81327         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81328         Simplify by assuming typical 8/16/32/64 host, since we're
81329         already doing that elsewhere anyway.
81330         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81331         and assume long long int is 64 bits if available.  This
81332         speeds up 'configure'.
81333
81334 2006-07-01  Eric Blake  <ebb9@byu.net>
81335
81336         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81337         Reported by Andreas Buening.
81338
81339 2006-07-01  Eric Blake  <ebb9@byu.net>
81340
81341         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81342
81343 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81344
81345         * lib/getaddrinfo.c: fixed typo
81346
81347 2006-06-29  Jim Meyering  <jim@meyering.net>
81348
81349         * modules/strftime (Maintainer): Add my name, since with the
81350         FPRINTFTIME changes strftime.c has forked from glibc.
81351
81352 2006-06-29  Eric Blake  <ebb9@byu.net>
81353
81354         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81355
81356 2006-06-29  Eric Blake  <ebb9@byu.net>
81357
81358         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81359
81360 2006-06-29  Eric Blake  <ebb9@byu.net>
81361
81362         * lib/stat_.h: New file.
81363
81364 2006-06-29  Eric Blake  <ebb9@byu.net>
81365
81366         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81367         unused static function.
81368
81369 2006-06-29  Eric Blake  <ebb9@byu.net>
81370
81371         * doc/functions.texi (Function Portability): Document missing lstat
81372         on mingw.
81373
81374 2006-06-29  Eric Blake  <ebb9@byu.net>
81375
81376         * MODULES.html.sh: Add sys_stat.
81377         * modules/sys_stat: New module.
81378         * modules/mkstemp (Depends-on): Add sys_stat.
81379
81380 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81381
81382         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81383
81384 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81385
81386         * m4/c-bs-a.m4: Removed.
81387
81388 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81389
81390         * lib/strftime.c: Assume strftime() exists.
81391
81392 2006-06-29  Derek Price  <derek@ximbiot.com>
81393
81394         * modules/c-bs-a: Removed - \a is C89.
81395         * MODULES.html.sh: Remove c-bs-a.
81396
81397 2006-06-29  Bruno Haible  <bruno@clisp.org>
81398
81399         * modules/wcwidth (License): Change to LGPL.
81400
81401 2006-06-28  Simon Josefsson  <jas@extundo.com>
81402
81403         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81404         on _WIN32.
81405
81406         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81407         getnameinfo.
81408
81409 2006-06-28  Simon Josefsson  <jas@extundo.com>
81410
81411         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81412
81413 2006-06-28  Simon Josefsson  <jas@extundo.com>
81414
81415         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81416         functions there.  It will succeed on Windows XP, but on Windows
81417         2000 and (presumably) earlier, it will fail, and use the internal
81418         re-implementation.
81419         (use_win32_p): New function.
81420         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81421         Support AI_NUMERICSERV to disable getservbyname.
81422         (getnameinfo): New function, only supports
81423         NI_NUMERICHOST|NI_NUMERICSERV for now.
81424
81425         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81426         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81427         getnameinfo.
81428
81429 2006-06-28  Eric Blake  <ebb9@byu.net>
81430
81431         * modules/wcwidth: New file.
81432         * modules/mbchar (Depends-on): Add wcwidth.
81433         * modules/mbswidth (Depends-on): Add wcwidth.
81434         * MODULES.html.sh: Add wcwidth.
81435
81436 2006-06-28  Eric Blake  <ebb9@byu.net>
81437
81438         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81440
81441 2006-06-28  Eric Blake  <ebb9@byu.net>
81442
81443         * lib/xvasprintf.h: Fix comments.
81444
81445 2006-06-28  Eric Blake  <ebb9@byu.net>
81446
81447         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81448         * lib/mbswidth.c (wcwidth): Move from here...
81449         * lib/wcwidth.h: ...to this new file.
81450
81451 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81452
81453         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81454
81455         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81456         it's obsolete.
81457         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81458
81459 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81460
81461         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81462         Autoconf 2.60 says this stuff was obsolete.
81463
81464 2006-06-28  Bruno Haible  <bruno@clisp.org>
81465
81466         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81467
81468 2006-06-28  Bruno Haible  <bruno@clisp.org>
81469
81470         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81471         gt_TYPE_WCHAR_T.
81472
81473 2006-06-28  Bruno Haible  <bruno@clisp.org>
81474
81475         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81476         declaration for wcwidth.
81477         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81478
81479 2006-06-28  Bruno Haible  <bruno@clisp.org>
81480
81481         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81482         (mkdir): Define using _mkdir.
81483
81484 2006-06-28  Bruno Haible  <bruno@clisp.org>
81485
81486         * lib/getaddrinfo.h: Fix POSIX URL.
81487         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81488         _WIN32.
81489         (use_win32_p): Make static.
81490         (getaddrinfo): Reject service name if it is empty or does not consist
81491         solely of decimal digits, or if its value is > 65535.
81492         (getnameinfo): Remove useless casts.
81493
81494 2006-06-27  Simon Josefsson  <jas@extundo.com>
81495
81496         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81497         Eggert and Martin Lambers.
81498
81499 2006-06-27  Simon Josefsson  <jas@extundo.com>
81500
81501         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81502         Eggert and Martin Lambers.
81503
81504 2006-06-27  Bruno Haible  <bruno@clisp.org>
81505
81506         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81507         result to 0, not to empty.
81508         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81509
81510 2006-06-27  Bruno Haible  <bruno@clisp.org>
81511
81512         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81513
81514 2006-06-26  Simon Josefsson  <jas@extundo.com>
81515
81516         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81517         present.
81518
81519 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81520
81521         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81522         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81523         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81524
81525 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81526
81527         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81528
81529 2006-06-26  Bruno Haible  <bruno@clisp.org>
81530
81531         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81532
81533 2006-06-26  Bruno Haible  <bruno@clisp.org>
81534
81535         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81536
81537 2006-06-26  Bruno Haible  <bruno@clisp.org>
81538
81539         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81540         SGI C compiler in pre-C99 mode.
81541         Suggested by Mark D. Baushke and Larry Jones.
81542
81543 2006-06-26  Bruno Haible  <bruno@clisp.org>
81544
81545         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81546         WCHAR_MAX.
81547         Reported by Mark D. Baushke and Larry Jones.
81548
81549 2006-06-26  Bruno Haible  <bruno@clisp.org>
81550
81551         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81552         in pre-C99 mode.
81553         Suggested by Mark D. Baushke and Larry Jones.
81554
81555 2006-06-23  Simon Josefsson  <jas@extundo.com>
81556             Bruno Haible  <bruno@clisp.org>
81557
81558         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81559         Emit mostlyclean-local rule.
81560         (func_emit_tests_Makefile_am): Likewise.
81561         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81562
81563 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81564
81565         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81566
81567 2006-06-23  Bruno Haible  <bruno@clisp.org>
81568
81569         * tests/test-stdint.c: Update to match ISO C 99 Technical
81570         Corrigendum 1.
81571
81572 2006-06-23  Bruno Haible  <bruno@clisp.org>
81573
81574         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81575
81576 2006-06-23  Bruno Haible  <bruno@clisp.org>
81577
81578         * lib/stdint_.h: Treat IRIX like OpenBSD.
81579
81580 2006-06-23  Bruno Haible  <bruno@clisp.org>
81581
81582         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81583         ISO C 99 Technical Corrigendum 1.
81584
81585 2006-06-22  Simon Josefsson  <jas@extundo.com>
81586
81587         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81588         MinGW.
81589
81590 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81591
81592         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81593         needed.  Some compiler complained about some of them.  Problem reported
81594         by Larry Jones in
81595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81596
81597 2006-06-21  Simon Josefsson  <jas@extundo.com>
81598
81599         * tests/test-getaddrinfo.c: New file.
81600
81601         * modules/getaddrinfo-tests: New file.
81602
81603         * MODULES.html.sh: Add inet_pton.
81604
81605         * modules/inet_pton: New file.
81606
81607 2006-06-21  Simon Josefsson  <jas@extundo.com>
81608
81609         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81610         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81611         of using the (limited) gnulib implementation on Windows XP.
81612
81613         * m4/inet_pton.m4: New file.
81614
81615 2006-06-21  Simon Josefsson  <jas@extundo.com>
81616
81617         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81618         variable.
81619
81620         * lib/socket_.h: Don't define WINVER.
81621
81622         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81623         slightly modified to work in gnulib.
81624
81625 2006-06-21  Simon Josefsson  <jas@extundo.com>
81626
81627         * doc/gnulib.texi (Windows sockets): Add.
81628
81629 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81630
81631         * lib/read-file.c (fread_file): Start with buffer allocation of
81632         0 bytes rather than 1 byte; this simplifies the code.
81633         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81634         code to free buffer and save/restore errno.
81635         (internal_read_file): Remove unused local.
81636
81637 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81638
81639         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81640         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81641         Problem reported by Denis Excoffier in
81642         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81643
81644 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81645
81646         * modules/sys_socket, modules/socklen: Include sys/types since
81647         FreeBSD 4.x's sys/socket.h needs it.
81648
81649 2006-06-19  Simon Josefsson  <jas@extundo.com>
81650
81651         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81652
81653 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81654
81655         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81656
81657 2006-06-19  Bruno Haible  <bruno@clisp.org>
81658
81659         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81660         and FULL_PATH_INTTYPES_H in angle brackets.
81661         Reported by Mark D. Baushke <mdb@gnu.org>.
81662
81663 2006-06-17  Eric Blake  <ebb9@byu.net>
81664
81665         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81666         errno.
81667
81668 2006-06-17  Bruno Haible  <bruno@clisp.org>
81669
81670         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81671         <sys/inttypes.h>.
81672
81673 2006-06-17  Bruno Haible  <bruno@clisp.org>
81674
81675         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81676         whether errno is declared. Assume <errno.h> declares errno.
81677
81678 2006-06-17  Bruno Haible  <bruno@clisp.org>
81679
81680         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81681
81682 2006-06-17  Bruno Haible  <bruno@clisp.org>
81683
81684         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81685         problem on Solaris 2.5.1.
81686
81687 2006-06-16  Eric Blake  <ebb9@byu.net>
81688
81689         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81690         * lib/unicodeio.c [!defined errno]: Likewise.
81691         * lib/strtol.c [!defined errno]: Likewise.
81692         * lib/strtod.c [!defined errno]: Likewise.
81693
81694 2006-06-15  Eric Blake  <ebb9@byu.net>
81695
81696         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81697
81698 2006-06-15  Eric Blake  <ebb9@byu.net>
81699
81700         * config/srclist.txt (ssize_t.m4): Lose sync.
81701
81702 2006-06-15  Bruno Haible  <bruno@clisp.org>
81703
81704         * modules/stdint (Files): Include m4/full-header-path.m4,
81705         m4/size_max.m4, m4/wchar_t.m4.
81706         (Makefile.am): Many more substitutions.
81707         * modules/stdint-tests: New file.
81708         * tests/test-stdint.c: New file.
81709
81710 2006-06-15  Bruno Haible  <bruno@clisp.org>
81711
81712         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81713         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81714         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81715         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81716         gl_CHECK_TYPE_SAME): New macros.
81717
81718 2006-06-15  Bruno Haible  <bruno@clisp.org>
81719
81720         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81721
81722 2006-06-15  Bruno Haible  <bruno@clisp.org>
81723
81724         * lib/stdint_.h: Rewritten to be fully auto-configured.
81725         Fixes bug on HP-UX/IA64.
81726
81727 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * lib/getdate.y (__attribute__): Don't define if already defined.
81730         Problem reported by Larry Jones.
81731         * lib/utimens.c (__attribute__): Likewise.
81732
81733 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81734
81735         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81736         reported by Andreas Schwab.
81737
81738 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81739             Bruno Haible  <bruno@clisp.org>
81740
81741         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81742         check for the declaration of strnlen and a run test that exposes the
81743         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81744         rpl_strndup.
81745
81746 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81747             Bruno Haible  <bruno@clisp.org>
81748
81749         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81750
81751 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81752
81753         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81754         compile test, for Tru64 4.0D.
81755
81756 2006-05-28  Karl Berry  <karl@gnu.org>
81757
81758         * config/srclist.txt (printf-args.c): lose sync.
81759
81760 2006-05-26  Martin Lambers  <marlam@marlam.de>
81761
81762         * lib/getpass.c: Updates the test for the native W32 API, and adds
81763         missing includes, thus fixing compilation warnings.
81764
81765 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81766
81767         * lib/exclude.c (exclude_fnmatch): New function.
81768         (excluded_file_name): Call exclude_fnmatch.
81769         * lib/exclude.h (excluded_file_name): New prototype
81770
81771 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81772
81773         * lib/tempname.c (small_open, large_open): New macros.
81774         (__open, __open64) [!_LIBC]: Remove.
81775         (__gen_tempname): Use small_open and large_open instead of __open
81776         and __open64.  This fixes a portability bug on HP-UX 11.11i
81777         reported by Simon Wing-Tang in
81778         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81779
81780 2006-05-24  Bruno Haible  <bruno@clisp.org>
81781
81782         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81783         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81784         Reported by Thorsten Maerz <torte@netztorte.de> via
81785         Aaron Stone <aaron@serendipity.cx>.
81786
81787 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81788
81789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81790         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81791         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81792         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81793         not really conditional on the cache.
81794         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81795
81796 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81797
81798         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81799         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81800         (my_usleep): Don't mishandle maximum value.
81801
81802 2006-05-19  Jim Meyering  <jim@meyering.net>
81803
81804         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81805
81806 2006-05-17  Bruno Haible  <bruno@clisp.org>
81807
81808         Cygwin portability.
81809         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81810
81811 2006-05-17  Bruno Haible  <bruno@clisp.org>
81812
81813         * lib/stdint_.h: Fix recognition of Cygwin.
81814
81815 2006-05-15  Bruno Haible  <bruno@clisp.org>
81816
81817         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81818         on libtool patch by Ralf Wildenhues.
81819
81820 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81821
81822         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81823         test for C99 conformance; (bool) 0.5 is an integer constant
81824         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81825         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81826
81827 2006-05-11  Simon Josefsson  <jas@extundo.com>
81828
81829         * m4/xvasprintf.m4: Fix obvious typo.
81830
81831 2006-05-11  Jim Meyering  <jim@meyering.net>
81832
81833         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81834         James Lemley.
81835
81836 2006-05-10  Simon Josefsson  <jas@extundo.com>
81837
81838         * lib/md4.c: Typo fix, update copyright years.
81839         (K1, K2): Don't use L because it turn computations into 64-bit on
81840         64-bit platforms.
81841
81842 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81843
81844         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81845         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81846         unwanted sign propagation, e.g., on hosts with 64-bit int.
81847         There still are some problems with reeelly weird theoretical hosts
81848         (e.g., 33-bit int) but it's not worth worrying about now.
81849         * lib/sha1.c (rol): Likewise.
81850         (K1, K2, K3, K4): Remove unnecessary L suffix.
81851
81852 2006-05-10  Bruno Haible  <bruno@clisp.org>
81853
81854         * lib/des.c: Cast to avoid warnings.
81855
81856 2006-05-09  Bruno Haible  <bruno@clisp.org>
81857
81858         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81859         (Depends-on): Depend also on xsize, stdarg.
81860         (configure.ac): Add gl_XVASPRINTF.
81861
81862 2006-05-09  Bruno Haible  <bruno@clisp.org>
81863
81864         * m4/xvasprintf.m4: New file.
81865
81866 2006-05-09  Bruno Haible  <bruno@clisp.org>
81867
81868         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81869         (EOVERFLOW): Define fallback value.
81870         (xstrcat): New function.
81871         (xvasprintf): Recognize the special case of a string concatenation.
81872
81873 2006-05-08  Eric Blake  <ebb9@byu.net>
81874
81875         * gnulib-tool (func_version): Base copyright year on CVS date.
81876         (func_emit_copyright_notice): New function.
81877         (func_emit_lib_Makefile_am): Use it.
81878         (func_emit_tests_Makefile_am): Likewise.
81879         (func_import): Likewise.
81880
81881 2006-05-08  Bruno Haible  <bruno@clisp.org>
81882
81883         * modules/stdarg: New file.
81884         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81885
81886 2006-05-08  Bruno Haible  <bruno@clisp.org>
81887
81888         * m4/stdarg.m4: New file, from GNU gettext.
81889
81890 2006-05-08  Bruno Haible  <bruno@clisp.org>
81891
81892         * config/srclist.txt (build-aux/config.rpath): different from latest
81893         release.
81894
81895 2006-05-08  Bruno Haible  <bruno@clisp.org>
81896
81897         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81898
81899 2006-05-05  Jim Meyering  <jim@meyering.net>
81900
81901         * m4/warning.m4: New file, derived from bison's file by the same name.
81902
81903 2006-05-03  Bruno Haible  <bruno@clisp.org>
81904
81905         * lib/stdint_.h: Shorter URL.
81906         * lib/inttypes.h: Likewise.
81907
81908 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81909
81910         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81911
81912 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81913
81914         * lib/verify.h: Document the internals better.  Most of this change
81915         was written by Bruno Haible.
81916
81917 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         * doc/verify.texi: New file, partly based on a proposal by
81920         Bruno Haible.
81921
81922 2006-05-02  Bruno Haible  <bruno@clisp.org>
81923
81924         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81925         test from here...
81926         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81927
81928 2006-04-29  Bruno Haible  <bruno@clisp.org>
81929
81930         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81931         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81932
81933 2006-04-29  Bruno Haible  <bruno@clisp.org>
81934
81935         * gnulib-tool: Make --update option actually work.
81936
81937 2006-04-29  Bruno Haible  <bruno@clisp.org>
81938
81939         * doc/gcd.texi: New file.
81940         * doc/gnulib.texi: Include it.
81941
81942 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * lib/getdate.y (get_date): When adding relative date, start with the
81945         initial time, not with the result of the first mktime call.
81946
81947 2006-04-25  Bruno Haible  <bruno@clisp.org>
81948
81949         * gnulib-tool (func_import): Output the include directives in three
81950         blocks, sorted separately.
81951         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81952
81953 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81954
81955         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81956         to define main with arguments, for C++.  Reported by Eric Blake.
81957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81958         Prefer 'int main ()' to 'int main (void)', for C++.
81959         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81960         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81961         for 'main', for C99 and C++.
81962
81963 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81964
81965         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81966         Don't assume that exit status -1 is valid.
81967         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81968         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81969         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81970         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81971         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81972         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81973         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81974         functions can be used without declaring them, or that you can
81975         exit with status -1.
81976         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81977
81978 2006-04-24  Karl Berry  <karl@gnu.org>
81979
81980         * config/srclist.txt (longdouble.m4): sync lost.
81981
81982 2006-04-24  Eric Blake  <ebb9@byu.net>
81983
81984         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81985
81986 2006-04-24  Bruno Haible  <bruno@clisp.org>
81987
81988         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81989         poll() implementation in AIX.
81990         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81991
81992 2006-04-24  Bruno Haible  <bruno@clisp.org>
81993
81994         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81995         assigned exactly once.
81996
81997 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81998             Bruno Haible  <bruno@clisp.org>
81999
82000         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82001         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82002         for AM_CPPFLAGS.
82003
82004 2006-04-23  Bruno Haible  <bruno@clisp.org>
82005
82006         * modules/copy-file: Depend on unistd.
82007         * modules/execute: Likewise.
82008         * modules/fatal-signal: Likewise.
82009         * modules/findprog: Likewise.
82010         * modules/mkdtemp : Likewise.
82011         * modules/pipe: Likewise.
82012         * modules/wait-process: Likewise.
82013
82014 2006-04-23  Bruno Haible  <bruno@clisp.org>
82015
82016         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82017         condition was already detected.
82018         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82019
82020 2006-04-23  Bruno Haible  <bruno@clisp.org>
82021
82022         * lib/copy-file.c: Include <unistd.h> unconditionally.
82023         * lib/execute.c: Likewise.
82024         * lib/fatal-signal.c: Likewise.
82025         * lib/findprog.c: Likewise.
82026         * lib/mkdtemp.c: Likewise.
82027         * lib/pipe.h: Likewise.
82028         * lib/pipe.c: Likewise.
82029         * lib/wait-process.h: Likewise.
82030
82031 2006-04-23  Bruno Haible  <bruno@clisp.org>
82032
82033         * gnulib-tool (func_usage): Fix --import description. Document
82034         --update.
82035         (func_import): Create temporary file in a temporary directory, if
82036         --dry-run is specified. Silence errors from 'grep' when there are no
82037         m4 files in $m4dir.
82038         (func_create_testdir): Silence errors from 'grep' when there are no
82039         m4 files in $m4dir.
82040         Reported by Karl Berry <karl@freefriends.org>.
82041
82042 2006-04-20  Bruno Haible  <bruno@clisp.org>
82043
82044         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82045         one argument, so that the code will be portable to Autoconf 2.60.
82046         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82047         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82048         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82049
82050 2006-04-19  Derek Price  <derek@ximbiot.com>
82051             Eric Blake  <ebb9@byu.net>
82052
82053         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82054         rather than "/full/path.h".  Update comment to match.  Shorten &
82055         generalize m4_translit call via AS_TR_CPP.
82056
82057 2006-04-19  Derek Price  <derek@ximbiot.com>
82058             Eric Blake  <ebb9@byu.net>
82059
82060         * lib/inttypes.h: Correct grammar in comment.
82061
82062 2006-04-18  Derek Price  <derek@ximbiot.com>
82063             Paul Eggert  <eggert@cs.ucla.edu>
82064
82065         * modules/inttypes: New file.
82066         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82067
82068 2006-04-18  Derek Price  <derek@ximbiot.com>
82069             Paul Eggert  <eggert@cs.ucla.edu>
82070
82071         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82072         New files.
82073
82074 2006-04-18  Derek Price  <derek@ximbiot.com>
82075             Paul Eggert  <eggert@cs.ucla.edu>
82076
82077         * lib/inttypes.h: New file.
82078         * lib/strtoimax.c: Assume <inttypes.h>.
82079
82080 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82081
82082         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82083         isn't mounted.  Problem reported by Kir Kolyshkin.
82084
82085 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82086
82087         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82088         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82089         Derek R. Price.
82090         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82091         implementation.
82092
82093 2006-04-12  Eric Blake  <ebb9@byu.net>
82094
82095         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82096         is now done automatically by the corresponding Autoconf macro.
82097
82098 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82099
82100         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82101         time_r.h.
82102
82103 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82104
82105         Merge regex changes from libc, removing some of our
82106         POSIX-conformance changes that were rejected and redoing them in a
82107         less-intrusive way.
82108
82109         * lib/regcomp.c (re_compile_internal, init_dfa):
82110         Length arg is now size_t, not Idx.  All uses changed.
82111         (peek_token): Forward decl now says internal_function.
82112         (__re_error_msgid, __re_error_msgid_idx):
82113         Now static rather than extern with attribute_hidden.
82114         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82115         For some reason libc prefers K&R style defns for external functions.
82116         (regerror) [!defined _LIBC]: Likewise.
82117         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82118         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82119         (build_range_exp, build_collating_symbol):
82120         Use K&R-style defn.
82121         (re_compile_fastmap): Use '\0' to memset, not 0.
82122         (utf8_sb_map): Make the calculations more obvious.
82123         (init_dfa, parse_bracket_exp, build_charclass_op):
82124         Call calloc and cast result, as glibc does.
82125         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82126         (build_range_exp, build_collating_symbol):
82127         Now internal functions.
82128
82129         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82130
82131         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82132         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82133         Don't depend on VMS; depend on __VMS instead, for POSIX
82134         namespace cleanness.
82135         (regoff_t): Define to ssize_t, not long int.
82136
82137         Remove the REG_ macros named below.  Instead, make the old names
82138         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82139         __USE_GNU_REGEX.
82140         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82141         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82142         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82143         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82144         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82145         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82146         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82147         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82148         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82149         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82150         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82151         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82152         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82153         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82154         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82155         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82156         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82157         (REG_NREGS):
82158         Remove.  All uses replaced by the old RE_* names.
82159         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82160         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82161         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82162         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82163         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82164         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82165         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82166         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82167         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82168         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82169         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82170         Don't bother having these macros be independent of each others'
82171         values, since they no longer exist in the POSIX name space.
82172
82173         Rename the following member names back to their old names,
82174         unless !__USE_GNU_REGEX.  All uses changed back.
82175         (buffer): Renamed from re_buffer.
82176         (allocated): Renamed from re_allocated.
82177         (used): Renamed from re_used.
82178         (syntax): Renamed from re_syntax.
82179         (fastmap): Renamed from re_fastmap.
82180         (translate): Renamed from re_translate.
82181         (can_be_null): Renamed from re_can_be_null.
82182         (regs_allocated): Renamed from re_regs_allocated.
82183         (fastmap_accurate): Renamed from re_fastmap_accurate.
82184         (no_sub): Renamed from re_no_sub.
82185         (not_bol): Renamed from re_not_bol.
82186         (not_eol): Renamed from re_not_eol.
82187         (newline_anchor): Renamed from re_newline_anchor.
82188         (num_regs): Renamed from rm_num_regs.
82189         (start): Renamed from rm_start.
82190         (end): Renamed from rm_end.
82191
82192         (free_state): Move up a bit.
82193
82194         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82195         #define to be empty.
82196         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82197         when that is what is intended.
82198         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82199         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82200         (MAX): New macro.
82201         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82202         All uses changed back to re_malloc, etc.  It's now the caller's
82203         responsibility to check for overflow; all callers changed.
82204         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82205         (re_x2nrealloc): Remove.
82206         (free_state): Remove decl.
82207
82208         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82209         (re_set_registers, re_exec):
82210         Use K&R-style defn.
82211
82212         2006-01-31  Roland McGrath  <roland@redhat.com>
82213
82214         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82215         Reported by Mike Frysinger <vapier@gentoo.org>.
82216
82217         2006-01-15  Andreas Jaeger  <aj@suse.de>
82218
82219         [BZ #1950]
82220         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82221         build_wcs_upper_buffer change.
82222         (build_wcs_upper_buffer): Change return type.
82223
82224         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82225
82226         * lib/regex_internal.h: Include <stdint.h> if available.
82227
82228         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82229
82230         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82231
82232         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82233
82234         * lib/regcomp.c: Adjust for changed secondary hash function.
82235
82236         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82237
82238         * lib/regex.h: Pretty printing.
82239         Clean up namespace a bit.
82240
82241         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82242
82243         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82244         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82245
82246         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82247                     Ulrich Drepper  <drepper@redhat.com>
82248
82249         [BZ #1302]
82250         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82251         changed.
82252         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82253
82254         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82255
82256         [BZ #281]
82257         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82258         * lib/regcomp.c: Remove unnecessary uses of
82259         unsigned RE_TRANSLATE_TYPE.
82260         * lib/regex_internal.h: Likewise.
82261         * lib/regex_internal.c: Likewise.
82262         * lib/regexec.c: Likewise.
82263         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82264
82265         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82266
82267         * lib/regexec.c (find_recover_state): Remove unnecessary
82268         initialization.
82269         (transit_state_bkref): Make DFA a const pointer.
82270         (get_subexp): Likewise.
82271         (check_arrival): Likewise.
82272         (update_cur_sifted_state): Likewise.
82273         (re_search_internal): Likewise.
82274         (prune_impossible_nodes): Likewise.
82275         (acquire_init_state_context): Likewise.
82276         (proceed_next_node): Likewise.
82277         (set_regs): Likewise.
82278         (free_fail_stack_return): Likewise.
82279         (check_arrival_expand_ecl): Mark DFA parameter as const.
82280         (check_arrival_expand_ecl_sub): Likewise.
82281         (check_subexp_limits): Likewise.
82282         (sub_epsilon_src_nodes):  Likewise.
82283         (add_epsilon_src_nodes):  Likewise.
82284         (merge_state_array): Likewise.
82285         (update_regs): Likewise.
82286         (build_trtable): Likewise.
82287         (sift_states_backward): Mark MCTX parameter as const.
82288         (build_sifted_states): Likewise.
82289         (update_cur_sifted_state): Likewise.
82290         (sift_states_mkref): Likewise.
82291         (check_arrival_expand_ecl): Mark eclosure as const.
82292         (check_dst_limits_calc_pos_1): Likewise.
82293         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82294         pointer.
82295
82296         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82297
82298         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82299         (transit_state_sb): Likewise.
82300         (transit_state_mb): Likewise.
82301         (sift_states_iter_mb): Likewise.
82302         (check_arrival_add_next_nodes): Likewise.
82303         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82304         [_LIBC] (re_search_2_stub): Use mempcpy.
82305
82306         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82307         mbrtowc for very simple UTF-8 case.
82308
82309         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82310         a pointer-to-const.
82311         (re_acquire_state_context): Likewise.
82312         * lib/regex_internal.h: Adjust prototypes.
82313
82314         * lib/regex.c: Prevent using C++ compilers.
82315
82316         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82317         (re_acquire_state_context): Likewise.
82318
82319 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82320
82321         * modules/regex (Depends-on): Add ssize_t.
82322
82323 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82324
82325         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82326         translation table.
82327
82328 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82329
82330         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82331
82332 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82333             Bruno Haible  <bruno@clisp.org>
82334
82335         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82336         <sys/types.h> and <inttypes.h>.
82337
82338 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82339
82340         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82341         `__error_t_defined', so argp.h will not typedef the former.
82342
82343 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82344
82345         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82346         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82347         glibc names.  Even if glibc is changed to conform to POSIX, the
82348         traditional names will be available anyway, since regex depends on
82349         the extensions module.  Also, fix a longstanding typo in the
82350         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82351         reported by Emanuele Giaquinta.  Also, change sense of cached
82352         variable, so that the message makes sense.
82353
82354 2006-03-24  Simon Josefsson  <jas@extundo.com>
82355
82356         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82357         including some doc fixes.
82358         (base64_encode_alloc): Fix +1 bug on allocation failures.
82359
82360 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82361
82362         * lib/base64.c (base64_encode): Do not read past end of array with
82363         unsanitized input on systems with CHAR_BIT > 8.
82364
82365 2006-03-24  Eric Blake  <ebb9@byu.net>
82366
82367         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82368
82369 2006-03-22  Karl Berry  <karl@gnu.org>
82370
82371         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82372         * config/srclistvars.sh (COREUTILS): new var.
82373
82374 2006-03-17  Jim Meyering  <jim@meyering.net>
82375
82376         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82377         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82378
82379 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82380
82381         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82382         no longer needs it.  Instead, check that regoff_t is as least
82383         as wide as ptrdiff_t.
82384
82385         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82386         so that our regex.h stays compatible with the installed regex.
82387         This is helpful for installers who configure --without-included-regex.
82388         Problem reported by Emanuele Giaquinta.
82389
82390 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82391
82392         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82393         Typedef to long int, not to off_, as POSIX will likely change
82394         in that direction.
82395
82396 2006-03-15  Eric Blake  <ebb9@byu.net>
82397
82398         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82399
82400 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82401
82402         * lib/argp-help.c (validate_uparams): Fix typo
82403         * lib/argp-parse.c (argp_default_options): Consistently begin help
82404         messages with a lowercase letter.
82405
82406 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82407
82408         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82409         overrun buffers and shouldn't be used (much as gets shouldn't be
82410         used).
82411         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82412
82413 2006-03-08  Simon Josefsson  <jas@extundo.com>
82414
82415         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82416         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82417
82418 2006-03-08  Simon Josefsson  <jas@extundo.com>
82419
82420         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82421         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82422
82423 2006-03-08  Simon Josefsson  <jas@extundo.com>
82424
82425         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82426         signal that configure disabled the device.
82427
82428 2006-03-08  Simon Josefsson  <jas@extundo.com>
82429
82430         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82431         languages.
82432
82433 2006-03-07  Simon Josefsson  <jas@extundo.com>
82434
82435         * modules/getopt (Depends-on): Add unistd.
82436
82437         * modules/unistd: New file.
82438
82439 2006-03-07  Simon Josefsson  <jas@extundo.com>
82440
82441         * modules/gc-random: New file.
82442
82443 2006-03-07  Simon Josefsson  <jas@extundo.com>
82444
82445         * m4/unistd_h.m4: New file.
82446
82447 2006-03-07  Simon Josefsson  <jas@extundo.com>
82448
82449         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82450         test to be side-effect free by storing the result in the cache
82451         variable gl_cv_lib_readline, and moving the assignment of
82452         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82453         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82454
82455 2006-03-07  Simon Josefsson  <jas@extundo.com>
82456
82457         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82458         error on missing devices (the functions will return an error).
82459
82460         * m4/gc.m4: Move random stuff to gc-random.m4
82461
82462 2006-03-07  Simon Josefsson  <jas@extundo.com>
82463
82464         * lib/unistd_.h: New file.
82465
82466 2006-03-07  Simon Josefsson  <jas@extundo.com>
82467
82468         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82469
82470 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82471
82472         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82473         Problem reported by Juan Manuel Guerrero.
82474
82475 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82476
82477         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82478         the unistd module.
82479         * lib/getlogin_r.c: Likewise.
82480         * lib/getlogin_r.h: Likewise.
82481         * lib/glob.c: Likewise.
82482         * lib/pagealign_alloc.c: Likewise.
82483         * lib/unistd_.h: Remove; no longer needed.
82484
82485 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82486
82487         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82488         Add unistd.
82489         * modules/c-stack (Depends-on): Add unistd.
82490         * modules/getlogin_r: Likewise.
82491         * modules/glob: Likewise.
82492         * modules/pagealign_alloc: Likewise.
82493         * modules/unistd (Files): Remove lib/unistd_.h.
82494         (EXTRA_DIST): Remove.
82495         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82496         need unistd_.h.
82497         (MOSTLYCLEANFILES): Remove unistd.h-t.
82498
82499 2006-03-03  Simon Josefsson  <jas@extundo.com>
82500
82501         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82502
82503 2006-03-03  Simon Josefsson  <jas@extundo.com>
82504
82505         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82506         libidn and bison.
82507
82508 2006-03-03  Simon Josefsson  <jas@extundo.com>
82509
82510         * build-aux/maint.mk: Add indent target.
82511
82512 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82513
82514         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82515         our replacement poll.h in any case, to avoid a differing
82516         declaration from a system header.  Seen on AIX.
82517
82518 2006-03-01  Simon Josefsson  <jas@extundo.com>
82519
82520         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82521         <kasal@ucw.cz>.
82522
82523 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82524
82525         * modules/gettime (Depends-on): Add extensions module.
82526         * modules/nanosleep (Depends-on): Likewise.
82527         * modules/settime (Depends-on): Likewise.
82528
82529 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82530
82531         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82532         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82533         pedantically.
82534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82535         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82536
82537         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82538         not "==".  Reported by Ralf Wildenhues.
82539
82540 2006-03-01  Karl Berry  <karl@gnu.org>
82541
82542         * doc/Copyright/request-*: new files, synced from gnuorg.
82543
82544 2006-03-01  Karl Berry  <karl@gnu.org>
82545
82546         * config/srclist.txt (Copyright/*): new entries.
82547
82548 2006-02-28  Simon Josefsson  <jas@extundo.com>
82549
82550         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82551
82552 2006-02-27  Simon Josefsson  <jas@extundo.com>
82553
82554         * lib/base64.h: Indent #define's.  From Jim Meyering
82555         <jim@meyering.net>.
82556
82557 2006-02-27  Jim Meyering  <jim@meyering.net>
82558
82559         Revert the change of 2006-02-24, so these files can continue
82560         to be sync'd from gettext.
82561         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82562         of `config.h'.
82563
82564 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82565
82566         * modules/intprops: New file.
82567         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82568         Add intprops.
82569         * modules/getloadavg (Files): Remove lib/intprops.h.
82570         (Depends-on): Add intprops.
82571         * modules/human: Likewise.
82572         * modules/inttostr: Likewise.
82573         * modules/openat: Likewise.
82574         * modules/sig2str: Likewise.
82575         * modules/userspec: Likewise.
82576         * modules/utimecmp: Likewise.
82577         * modules/xnanosleep: Likewise.
82578         * modules/xstrtol: Likewise.
82579
82580 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82581
82582         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82583         * modules/lock-tests (TESTS): Use $(EXEEXT).
82584         * modules/tls-tests: Likewise.
82585         * modules/argp-tests: Likewise.
82586         (check_PROGRAMS): New var, replacing...
82587         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82588
82589 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82590
82591         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82592         `config.h'.
82593
82594 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82597
82598 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82599
82600         Sync from coreutils.
82601         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82602         gl_CHDIR_SAFER.
82603
82604 2006-02-22  Jim Meyering  <jim@meyering.net>
82605
82606         Sync from coreutils.
82607         * m4/chdir-safer.m4: New file.
82608
82609 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82610
82611         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82612         AT_FDCWD exceeds INT_MAX.
82613         * lib/openat.h (AT_FDCWD): Likewise.
82614
82615 2006-02-17  Eric Blake  <address@hidden>
82616
82617         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82618
82619 2006-02-16  Simon Josefsson  <jas@extundo.com>
82620
82621         * modules/getaddrinfo (Depends-on): Add sys_socket.
82622
82623 2006-02-15  Simon Josefsson  <jas@extundo.com>
82624
82625         * build-aux/maint.mk: Add dsyntax-check rule.
82626
82627 2006-02-15  Eric Blake  <ebb9@byu.net>
82628
82629         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82630         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82631         'present but cannot compile' warnings on cygwin.
82632         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82633         use ws2tcpip.h if sys/socket.h works.
82634         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82635         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82636
82637 2006-02-14  Simon Josefsson  <jas@extundo.com>
82638
82639         * modules/maintainer-makefile (Files): Rename.
82640
82641         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82642         and (the local) Makefile.cfg to maint-cfg.mk.
82643
82644         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82645         to the latter.
82646
82647         * modules/maintainer-makefile: New module.
82648
82649         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82650         severaly stripped to make it possible to build it up from scratch
82651         with reliable tests.
82652
82653         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82654         fixes to permit overriding the default actions when configure and
82655         makefile are not available.
82656
82657 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82658
82659         Sync from coreutils.
82660         * modules/lstat (Depends-on): Don't depend on xalloc.
82661         (License): Change from GPL to LGPL, since this is now simply a
82662         replacement for a libc function.
82663
82664 2006-02-14  Jim Meyering  <jim@meyering.net>
82665
82666         Sync from coreutils.
82667
82668         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82669         failure on deficient systems, and simplify gnulib lgpl dependencies.
82670         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82671         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82672
82673         * lib/xalloc-die.c: Remove unused definition of N_.
82674
82675 2006-02-14  Jim Meyering  <jim@meyering.net>
82676
82677         Sync from coreutils.
82678         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82679         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82680         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82681         double-quote uses of that variable, to accommodate the rare case in
82682         which getmntent is available in none of the libraries checked.  This
82683         happens at least on FreeBSD 5.0.
82684
82685 2006-02-13  Simon Josefsson  <jas@extundo.com>
82686
82687         * gnulib-tool (Usage): Fix --import, from
82688         karl@freefriends.org (Karl Berry).
82689
82690 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82691
82692         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82693
82694 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82695
82696         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82697         "autoupdate" on 2005-12-12.
82698
82699 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82700
82701         * modules/closeout (Depends-on): Remove atexit.
82702
82703 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82704
82705         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82706         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82707
82708 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82709
82710         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82711         __EXTENSIONS__ if this causes compilation to fail.  Problem
82712         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82713         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82714
82715 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82716
82717         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82718         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82719         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82720         All uses changed.
82721
82722 2006-01-26  Simon Josefsson  <jas@extundo.com>
82723
82724         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82725         prototype is visible on mingw32.
82726
82727         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82728         for mingw32.
82729
82730         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82731         mingw32).
82732
82733 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82734
82735         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82736         attempt to open for write; this always fails, at least on POSIX
82737         hosts.  This reinstates the 2006-01-09 change, which was
82738         inadvertently removed.
82739
82740 2006-01-26  Bruno Haible  <bruno@clisp.org>
82741
82742         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82743         Reported by Paul Eggert.
82744
82745 2006-01-26  Bruno Haible  <bruno@clisp.org>
82746             Paul Eggert  <eggert@cs.ucla.edu>
82747
82748         * lib/stdbool_.h (_Bool)
82749         [(! (defined __cplusplus || defined __BEOS__)
82750           && !defined __GNUC__
82751           && !(defined __HP_cc || defined __xlc__
82752                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82753                || defined __sgi))]:
82754         #define to signed char in these cases too; this simplifies
82755         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82756         etc., separately) and makes it more conservative.
82757
82758 2006-01-25  Simon Josefsson  <jas@extundo.com>
82759
82760         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82761         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82762         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82763
82764 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82765
82766         * lib/argp-namefrob.h: Bugfix. Remove stray #
82767
82768 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82769
82770         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82771         so that we test the test.
82772         Check for yet another HP-UX cc bug involving *bool |= bool.
82773
82774 2006-01-25  Karl Berry  <karl@gnu.org>
82775
82776         * config/srclist.txt (vasnprintf.c): sync lost.
82777
82778 2006-01-25  Jim Meyering  <jim@meyering.net>
82779
82780         Sync from the stable (b5) branch of coreutils:
82781
82782         * lib/fts.c (fts_children): Don't let close() clobber errno from
82783         failed fchdir().
82784
82785         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82786         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82787         a dangling symlink.  That can also happen at least for ELOOP.
82788         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82789         FYI, this bug predates the inclusion of fts.c in coreutils.
82790
82791         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82792         in their own block, so pre-c99 compilers don't object.
82793
82794         Avoid the double-free (first in fts_read, second in fts_close) that
82795         would occur when an `active' directory is made inaccessible (e.g.,
82796         via chmod a-x) during a traversal.
82797         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82798         before returning.  Reproduce this failure by
82799         mkdir -p a/b; cd a; chmod a-x . b
82800         Reported by Stavros Passas.
82801
82802 2006-01-25  Jim Meyering  <jim@meyering.net>
82803
82804         * lib/fileblocks.c: Remove more useless parentheses.
82805         * lib/readutmp.h: Likewise.
82806
82807 2006-01-25  Bruno Haible  <bruno@clisp.org>
82808
82809         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82810         warnings.
82811         Reported by Paul Eggert.
82812
82813 2006-01-25  Bruno Haible  <bruno@clisp.org>
82814
82815         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82816         rid of a trap command. For Solaris sh.
82817         Reported by Mark D. Baushke <mdb@gnu.org>.
82818
82819 2006-01-24  Simon Josefsson  <jas@extundo.com>
82820
82821         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82822         Bruno.
82823
82824 2006-01-24  Karl Berry  <karl@gnu.org>
82825
82826         * config/srclist.txt (argp-namefrob.h): sync lost.
82827
82828 2006-01-24  Jim Meyering  <jim@meyering.net>
82829
82830         * modules/openat (Files): Add lib/intprops.h.
82831         From Mark D. Baushke.
82832
82833 2006-01-24  Jim Meyering  <jim@meyering.net>
82834
82835         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82836         Reported by Mark D. Baushke.
82837
82838 2006-01-24  Jim Meyering  <jim@meyering.net>
82839
82840         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82841
82842 2006-01-24  Bruno Haible  <bruno@clisp.org>
82843
82844         * modules/strnlen (Maintainer): Change from glibc to all.
82845
82846 2006-01-24  Bruno Haible  <bruno@clisp.org>
82847
82848         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82849         Patch by Paul Eggert.
82850
82851 2006-01-24  Bruno Haible  <bruno@clisp.org>
82852
82853         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82854         already has it.
82855         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82856         2005-11-26.
82857
82858         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82859         'signed char' to avoid problems with the built-in _Bool type.
82860         Reported by Paul Eggert on 2005-11-26.
82861
82862 2006-01-24  Bruno Haible  <bruno@clisp.org>
82863
82864         * gnulib-tool (func_import): Avoid constructing complicated sed
82865         expressions inside backquote.
82866         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82867
82868 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82869
82870         These changes imported from libc.
82871         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82872         test and two separate function calls.
82873         * lib/strndup.c (__strndup): Add libc_hidden_def.
82874
82875 2006-01-23  Simon Josefsson  <jas@extundo.com>
82876
82877         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82878         Remove the test_*_SOURCES variable: automake infers it by default.
82879         * modules/tls-tests: Likewise.
82880
82881 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82882
82883         Work around porting bugs reported by Dieter in
82884         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82885         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82886         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82887         Include "getopt.h" first, to check interface.
82888         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82889         !HAVE_DECL_GETENV.
82890         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82891         (__strndup): Revert to K&R-style function dfns, the glibc style.
82892         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82893         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82894         Include strnlen.h first, to get prototype properly.
82895         (strnlen): Renamed from __strnlen.
82896         Remove weak alias.
82897
82898 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82901
82902 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82903
82904         * config/srclist.txt: Adjust to reflect glibc reorganization.
82905         This affects only comments.
82906
82907 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82908
82909          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82910          Reported by Bruce Korb <bkorb@gnu.org>.
82911
82912 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82913
82914         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82915         to pacify gcc -Wswitch-default.
82916
82917 2006-01-22  Bruno Haible  <bruno@clisp.org>
82918
82919         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82920         temporary buffer for sprintf, take into account the precision also
82921         for 'd', 'i', 'u', 'o', 'x', 'X'.
82922
82923 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82924
82925         * modules/argp-tests: New module
82926         * tests/test-argp.c: New file
82927         * tests/test-argp-2.sh: New file
82928
82929 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82930
82931         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82932         (__argp_base_name): Removed
82933         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82934         typo.
82935         (__argp_base_name): Provide macro definition or extern declaration
82936         depending on the configuration
82937
82938 2006-01-20  Simon Josefsson  <jas@extundo.com>
82939
82940         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82941
82942 2006-01-20  Simon Josefsson  <jas@extundo.com>
82943
82944         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82945
82946 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82947
82948         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82949         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82950         Suggested by Bruno Haible.
82951
82952 2006-01-20  Karl Berry  <karl@gnu.org>
82953
82954         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82955         until changes propagate, I guess.
82956
82957 2006-01-19  Simon Josefsson  <jas@extundo.com>
82958
82959         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82960
82961 2006-01-19  Simon Josefsson  <jas@extundo.com>
82962
82963         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82964
82965 2006-01-19  Simon Josefsson  <jas@extundo.com>
82966
82967         * gnulib-tool: Set check_PROGRAMS.
82968
82969         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82970         modules/des-tests, modules/gc-arcfour-tests,
82971         modules/gc-arctwo-tests, modules/gc-des-tests,
82972         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82973         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82974         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82975         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82976         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82977         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82978         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82979         test_*_SOURCES.
82980
82981 2006-01-18  Simon Josefsson  <jas@extundo.com>
82982
82983         * modules/socklen (Depends-on): Depend on sys_socket.
82984
82985 2006-01-18  Simon Josefsson  <jas@extundo.com>
82986
82987         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82988         modules/des-tests, modules/gc-arcfour-tests,
82989         modules/gc-arctwo-tests, modules/gc-des-tests,
82990         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82991         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82992         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82993         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82994         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82995         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82996         $(EXEEXT) to automake TESTS variable, for mingw32.
82997
82998 2006-01-17  Simon Josefsson  <jas@extundo.com>
82999
83000         * modules/socklen (Include): Need sys/socket.h.
83001
83002 2006-01-17  Bruno Haible  <bruno@clisp.org>
83003
83004         * modules/ssize_t (Include): Add <sys/types.h>.
83005
83006 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83007
83008         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83009         it's not portable and it doesn't work with cross-compiles.
83010         Problem reported by Bruno Haible.  Fix missing-$ typo in
83011         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83012         -zignore from being used with Sun's C compiler.
83013
83014 2006-01-12  Simon Josefsson  <jas@extundo.com>
83015
83016         * lib/base64.c: Fix warning, reported by Bruno Haible
83017         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83018
83019 2006-01-12  Bruno Haible  <bruno@clisp.org>
83020
83021         * modules/ldd: New file.
83022         * build-aux/ldd.sh.in: New file.
83023         * MODULES.html.sh (Support for building libraries and executables): Add
83024         ldd.
83025
83026 2006-01-12  Bruno Haible  <bruno@clisp.org>
83027
83028         * m4/ldd.m4: New file.
83029
83030 2006-01-12  Bruno Haible  <bruno@clisp.org>
83031
83032         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83033         endless loop while replacing $auxdir with build-aux.
83034
83035 2006-01-11  Simon Josefsson  <jas@extundo.com>
83036
83037         * lib/stdint_.h (SIZE_MAX): Add missing (.
83038
83039 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         Sync from coreutils.
83042         * lib/md5.c: Fix commentary typos.
83043         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83044         * lib/md5.h (__attribute__): Remove; unused.
83045         * lib/sha1.c: Fix commentary to match md5 better.
83046         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83047         so that we don't need to worry about alignment.  All uses changed.
83048         This merges the 2005-10-28 md5 change into sha1.
83049
83050 2006-01-11  Jim Meyering  <jim@meyering.net>
83051
83052         Sync from coreutils.
83053         * lib/md5.c (OP): Fix spacing.
83054
83055 2006-01-11  Bruno Haible  <bruno@clisp.org>
83056
83057         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83058         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83059         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83060
83061 2006-01-11  Bruno Haible  <bruno@clisp.org>
83062
83063         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83064         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83065         the "early" section as well.
83066
83067 2006-01-11  Bruno Haible  <bruno@clisp.org>
83068
83069         Avoid "ar: no archive members specified" error on MacOS X.
83070         * gnulib-tool (func_modules_add_dummy): New function.
83071         (func_import, func_create_testdir): Invoke it.
83072
83073 2006-01-11  Bruno Haible  <bruno@clisp.org>
83074
83075         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83076         with $auxdir in AC_CONFIG_FILES statements.
83077
83078 2006-01-11  Bruno Haible  <bruno@clisp.org>
83079
83080         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83081         Initialize also noinst_HEADERS to empty.
83082
83083 2006-01-11  Bruno Haible  <bruno@clisp.org>
83084
83085         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83086         variables.
83087         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83088         autoreconf.
83089
83090 2006-01-11  Bruno Haible  <bruno@clisp.org>
83091
83092         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83093         overridable by the user.
83094         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83095
83096 2006-01-10  Simon Josefsson  <jas@extundo.com>
83097
83098         * modules/sys_socket: New file.
83099
83100 2006-01-10  Simon Josefsson  <jas@extundo.com>
83101
83102         * m4/sys_socket_h.m4: New file.
83103
83104 2006-01-10  Simon Josefsson  <jas@extundo.com>
83105
83106         * lib/socket_.h: New file.
83107
83108 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83109
83110         * modules/readutmp (Maintainer): Add myself.
83111
83112 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83113
83114         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83115         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83116         People who are still concerned with buggy memcmp implementations
83117         can invoke gl_FUNC_MEMCMP themselves.
83118
83119 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83120
83121         * lib/regex_internal.h (BITSET_WORD_BITS):
83122         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83123         preprocessor mishandles large unsigned values as if they were signed.
83124         Problem reported by Claudio Fontana in
83125         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83126
83127 2006-01-10  Jim Meyering  <jim@meyering.net>
83128
83129         Avoid the double-free (first in fts_read, second in fts_close) that
83130         would occur when an `active' directory is made inaccessible (e.g.,
83131         via chmod a-x) during a traversal.
83132         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83133         before returning.  Reproduce this failure by
83134         mkdir -p a/b; cd a; chmod a-x . b
83135         Reported by Stavros Passas.
83136
83137         Sync from coreutils.
83138         * lib/sha1.c: Tweak grammar in a comment.
83139
83140 2006-01-10  Jim Meyering  <jim@meyering.net>
83141
83142         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83143         Patch by Joerg Sonnenberger.
83144
83145 2006-01-10  Bruno Haible  <bruno@clisp.org>
83146
83147         * modules/readutmp: Depend on module free.
83148         * modules/strtok_r: Depend on module restrict.
83149
83150 2006-01-10  Bruno Haible  <bruno@clisp.org>
83151
83152         * modules/gettext (configure.ac): Add an invocation of
83153         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83154
83155 2006-01-10  Bruno Haible  <bruno@clisp.org>
83156
83157         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83158         Reported by Werner Lemberg <wl@gnu.org>.
83159
83160 2006-01-10  Bruno Haible  <bruno@clisp.org>
83161
83162         * lib/localcharset.c: Update from GNU gettext.
83163
83164 2006-01-10  Bruno Haible  <bruno@clisp.org>
83165
83166         * lib/argp.h (__const): Remove macro. Use const instead.
83167         * lib/argp-fmtstream.h (__const): Likewise.
83168         * lib/glob_.h (__const): Remove macro.
83169         * lib/glob-libc.h: Use const instead of __const.
83170
83171 2006-01-10  Bruno Haible  <bruno@clisp.org>
83172
83173         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83174         variable.
83175         Needed to avoid an automake error regarding the 'gettext' module.
83176
83177 2006-01-09  Simon Josefsson  <jas@extundo.com>
83178
83179         * modules/inet_ntop (Depends-on): Add restrict.
83180
83181 2006-01-09  Simon Josefsson  <jas@extundo.com>
83182
83183         * modules/gc-rijndael-tests (License): Put under LGPL.
83184
83185         * modules/gc-des-tests (License): Likewise.
83186
83187         * modules/gc-arcfour-tests (License): Likewise.
83188
83189         * modules/gc-arctwo-tests (License): Likewise.
83190
83191         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83192
83193         * modules/gc-hmac-sha1-tests (Files): Likewise.
83194
83195         * modules/gc-hmac-md5-tests (License): Likewise.
83196
83197         * modules/gc-sha1-tests (License): Likewise.
83198
83199         * modules/gc-md5-tests (License): Likewise.
83200
83201         * modules/gc-md4-tests (License): Likewise.
83202
83203         * modules/gc-md2-tests (License): Likewise.
83204
83205         * modules/gc-tests (License): Likewise.
83206
83207         * modules/des-tests (License): Likewise.
83208
83209         * modules/md4-tests (License): Likewise.
83210
83211         * modules/md2-tests (License): Likewise.
83212
83213 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83214
83215         Sync from coreutils:
83216
83217         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83218         * modules/lib-ignore: New file.
83219         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83220         chdir-safer.m4, lchmod.m4.
83221         * modules/openat: Add mkdirat.c, openat-priv.h.
83222
83223 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83224
83225         Sync from coreutils.
83226         * m4/lib-ignore.m4: New file.
83227         * m4/lchmod.m4: New file.
83228
83229 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83230
83231         Sync from coreutils.
83232         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83233         for write access: POSIX says that must fail.
83234         * lib/fts.c (diropen): Likewise.
83235         * lib/save-cwd.c (save_cwd): Likewise.
83236         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83237         well, for minor improvements on hosts that lack O_DIRECTORY.
83238         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83239         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83240         Fall back on chown if open failed with EACCES.
83241
83242         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83243         Report an error at compile-time if only a 1-second nominal clock
83244         resolution is found.
83245
83246         * lib/lchmod.h: New file.
83247         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83248         (make_dir_parents): Use lchown rather than chown, and
83249         lchmod rather than chmod.
83250
83251         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83252         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83253         "proc" reported by n0dalus.
83254
83255         * lib/mountlist.c: Include <limits.h>.
83256         (dev_from_mount_options)
83257         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83258         New function.  It no longer assumes "dev=" has the System V meaning
83259         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83260         (read_file_system_list)
83261         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83262         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83263         dev= in that case.
83264
83265         * lib/posixtm.h (PDS_PRE_2000): New macro.
83266         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83267         allow_century.  All usages changed.  Reject dates outside the range
83268         1969-1999 if PDS_PRE_2000 is used.
83269
83270 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83271
83272         Sync from coreutils.
83273         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83274         (Time of day items): Mention the possibility of leap seconds.
83275         Problem reported by Dr. David Alan Gilbert.
83276
83277 2006-01-09  Jim Meyering  <jim@meyering.net>
83278
83279         Sync from coreutils.
83280
83281         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83282
83283         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83284
83285         * lib/modechange.c (mode_compile): Reject an invalid mode string
83286         that starts with an octal digit.  From Andreas Gruenbacher.
83287
83288         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83289         and dup to open_safer and dup_safer, respectively.
83290         (openat_permissive): Fix typo in comment.
83291
83292         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83293         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83294         (_): Remove; no longer needed.
83295         (openat): Renamed from rpl_openat; no need for rpl_openat
83296         since openat.h renames openat for us.
83297         Replace most of the body with a call to openat_permissive,
83298         to avoid duplicate code.
83299         Port to (probably hypothetical) environments were mode_t is
83300         wider than int.
83301         (openat_permissive): Require mode arg, so that we can check
83302         types better.  Put it just after flags.  Change cwd failure
83303         indicator from pointer-to-bool to pointer-to-errno-value.
83304         All callers changed.
83305         Invoke openat_save_fail and/or openat_restore_fail if
83306         cwd_errno is null, so that openat can call us.
83307         (openat_permissive, fdopendir, fstatat, unlinkat):
83308         Simplify errno handling to avoid some duplicate code,
83309         as it's OK to set errno on success.
83310         * lib/openat.h: Revamp code so that function macros depend on
83311         __OPENAT_PREFIX only, not also on AT_FDCWD.
83312         (openat_ro): Remove.  Caller changed to use openat_permissive.
83313         (openat_permissive): Now a macro, if not a function.
83314         (openat_restore_fail, openat_save_fail): Now always functions,
83315         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83316
83317         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83318         and openat.c.
83319         * lib/mkdirat.c: Include openat-priv.h.
83320         Remove definitions of macros defined therein.
83321         * lib/openat.c: Likewise.
83322
83323         * lib/mkdirat.c (mkdirat): New file and function.
83324         * lib/openat.h (mkdirat): Declare.
83325
83326         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83327
83328         * lib/openat.h (openat_permissive): Declare.
83329         (openat_ro): Define.
83330
83331         * lib/openat.c (EXPECTED_ERRNO): New macro.
83332         (openat_permissive): New function -- used in remove.c rewrite.
83333         (all functions): Set errno just before returning, only if there
83334         was an actual failure.
83335         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83336
83337         Emulate openat-family functions using Linux's procfs, if possible.
83338         Idea and some code based on Ulrich Drepper's glibc changes.
83339
83340         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83341         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83342         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83343         before falling back on save_cwd and restore_cwd.
83344         (fdopendir, fstatat, unlinkat): Likewise.
83345
83346         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83347         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83348
83349         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83350         as second argument to va_arg.  Otherwise, some versions of gcc
83351         warn that `if this code is reached, the program will abort'.
83352
83353 2006-01-09  Jim Meyering  <jim@meyering.net>
83354
83355         Sync from coreutils.
83356         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83357         Require openat-priv.h.
83358
83359 2006-01-09  Bruno Haible  <bruno@clisp.org>
83360
83361         * modules/strnlen (Include): Use strnlen.h.
83362
83363 2006-01-09  Bruno Haible  <bruno@clisp.org>
83364
83365         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83366
83367 2006-01-09  Bruno Haible  <bruno@clisp.org>
83368
83369         * lib/sysexit_.h (EX_OK): New macro.
83370         Suggested by Martin Lambers <marlam@marlam.de>.
83371
83372 2006-01-09  Bruno Haible  <bruno@clisp.org>
83373
83374         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83375         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83376
83377 2006-01-09  Bruno Haible  <bruno@clisp.org>
83378
83379         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83380         numbers.
83381
83382 2006-01-09  Bruno Haible  <bruno@clisp.org>
83383
83384         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83385         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83386         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83387         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83388
83389 2006-01-09  Bruno Haible  <bruno@clisp.org>
83390
83391         * build-aux/javacomp.sh.in: New file, moved from lib/.
83392         * modules/javacomp-script (Files): Update.
83393         (configure.ac): Add AC_CONFIG_FILES invocation.
83394         (EXTRA_DIST): Remove variable.
83395
83396         * build-aux/javaexec.sh.in: New file, moved from lib/.
83397         * modules/javaexec (Files): Update.
83398         (configure.ac): Add AC_CONFIG_FILES invocation.
83399         (EXTRA_DIST): Remove javaexec.sh.in.
83400
83401         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83402         * modules/csharpcomp-script (Files): Update.
83403         (configure.ac): Add AC_CONFIG_FILES invocation.
83404         (EXTRA_DIST): Remove variable.
83405
83406         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83407         * modules/csharpexec (Files): Update.
83408         (configure.ac): Add AC_CONFIG_FILES invocation.
83409         (EXTRA_DIST): Remove csharpexec.sh.in.
83410
83411 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83412
83413         Sync from coreutils.
83414
83415         Add POSIX ACL support
83416         * lib/acl.h (copy_acl, set_acl): Add declarations.
83417         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83418         systems other than Linux.
83419         (chmod_or_fchmod): New function: use fchmod when possible,
83420         and chmod otherwise.
83421         (file_has_acl): Add a POSIX ACL implementation, with a
83422         Linux-specific subcase.
83423         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83424         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83425         acls are unsupported.
83426         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83427         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83428         are unsupported.
83429
83430 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83431
83432         Sync from coreutils.
83433         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83434
83435 2006-01-07  Bruno Haible  <bruno@clisp.org>
83436
83437         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83438         gl_EARLY.
83439
83440 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83441
83442         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83443         Problem reported for Mingw by Mark Junker.
83444
83445 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83446
83447         * README: Gnulib normally doesn't generate a tarball.
83448
83449 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83450
83451         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83452         long int, not int, for nanosecond counts, so that people who are
83453         used to POSIX struct timespec won't be surprised.  Reported by Jim
83454         Meyering.
83455
83456 2005-12-28  Bruno Haible  <bruno@clisp.org>
83457
83458         * build-aux/config.rpath: Update from GNU gettext.
83459
83460 2005-12-16  Jim Meyering  <jim@meyering.net>
83461
83462         * modules/fprintftime: New module.
83463         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83464
83465 2005-12-16  Jim Meyering  <jim@meyering.net>
83466
83467         * m4/fprintftime.m4: New file.
83468
83469 2005-12-16  Jim Meyering  <jim@meyering.net>
83470
83471         * lib/fprintftime.c, lib/fprintftime.h: New files.
83472
83473 2005-12-15  Simon Josefsson  <jas@extundo.com>
83474
83475         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83476         new m4/socklen.m4.
83477
83478 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83479
83480         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83481         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83482
83483 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83484
83485         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83486         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83487         struct uparams is valid. Fall back to the default values if it is
83488         not.
83489
83490 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83491
83492         * modules/argp (Files): Add argp-pin.c
83493         (Depends-on): dirname
83494         (lib_SOURCES): Add argp-pin.c
83495
83496 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83497
83498         * m4/argp.m4:  Check if program_invocation_name and
83499         program_invocation_short_name are declared and define appropriate
83500         macros if they are not.
83501
83502 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83503
83504         * lib/argp-help.c (__argp_base_name): New function
83505         (__argp_short_program_name): Rewrite using __argp_base_name
83506         * lib/argp-namefrob.h: Define program_invocation_name and
83507         program_invocation_short_name if requested
83508         (__argp_base_name): Add prototype
83509         * lib/argp-parse.c (argp_def): Use gettext wrappers
83510         (argp_default_parser): Use __argp_base_name
83511         * lib/argp-pin.c: New file. Defines program_invocation_name and
83512         program_invocation_short_name on systems that lack them.
83513
83514 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83515
83516         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83517         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83518         porting problem reported by Georg Schwarz in
83519         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83520
83521 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83522
83523         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83524         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83525         porting problem reported by Georg Schwarz in
83526         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83527
83528 2005-12-05  Bruno Haible  <bruno@clisp.org>
83529
83530         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83531         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83532         Reported by Mark Junker <mjscod@gmx.de>.
83533
83534 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83535
83536         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83537         Use implementation from Albert Chin, with some
83538         comments/corrections by Stepan Kasal and myself.
83539
83540 2005-12-02  Bruno Haible  <bruno@clisp.org>
83541
83542         * gnulib-tool (func_import): Accept GPLed build tool modules when
83543         --lgpl is given.
83544         * modules/csharpcomp-script: New file.
83545         * modules/csharpcomp: Depend on it.
83546         * modules/javacomp-script: New file.
83547         * modules/javacomp: Depend on it.
83548         Suggested by Simon Josefsson.
83549
83550 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83551
83552         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83553         statement, to work around an HP-UX 10.20 compiler bug reported by
83554         Peter O'Gorman.
83555
83556 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83557
83558         * modules/savedir (Depends-on): Add openat.
83559
83560 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83561
83562         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83563         (uintmax_t) [defined uintmax_t]: Do not declare.
83564         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83565         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83566         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83567         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83568         sake of portability to weird hosts that C allows (though we don't
83569         know of any practical examples).
83570
83571         * lib/savedir.h (fdsavedir): New decl.
83572         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83573         contains most of the former guts of savedir.
83574         (savedir): Use savedirstream.
83575         Include "openat.h".
83576
83577 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83578
83579         * modules/obstack (Files): Add m4/ulonglong.m4.
83580         Problem reported by Davide Angelocola.
83581
83582 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83583
83584         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83585         coreutils no longer futzes with rounding modes.
83586
83587 2005-11-14  Jim Meyering  <jim@meyering.net>
83588
83589         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83590         replacement of mkstemp.
83591
83592 2005-11-10  Simon Josefsson  <jas@extundo.com>
83593
83594         * lib/readline.c: Remove EOL.
83595
83596 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83597
83598         * modules/gethrxtime (Depends-on): Add gettime.
83599
83600 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83601
83602         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83603         or gettimeofday; no longer needed.
83604
83605 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83606
83607         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83608         time business.
83609         (gethrxtime) [! (HAVE_NANOUPTIME
83610         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83611         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83612         our own approximation.
83613
83614 2005-11-08  Eric Blake  <ebb9@byu.net>
83615
83616         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83617
83618 2005-11-08  Eric Blake  <ebb9@byu.net>
83619
83620         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83621
83622 2005-11-04  Bruno Haible  <bruno@clisp.org>
83623
83624         * gnulib-tool: Implement --update mode.
83625
83626 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83627
83628         Fix porting problem reported by Theodoros V. Kalamatianos.
83629         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83630         Don't assume that futimes failing means we must fail.
83631
83632 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83633
83634         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83635         variables to suggest the intended function of the PATH_MAX check.
83636
83637 2005-10-30  Kean Johnston  <jkj@sco.com>
83638
83639         Trivial changes to support SCO systems.
83640         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83641         as PATH_MAX.
83642         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83643         where __ptr is null when no I/O is pending.
83644
83645 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83646
83647         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83648         leave errno alone.  Problem reported by Dmitry V. Levin.
83649
83650 2005-10-28  Simon Josefsson  <jas@extundo.com>
83651
83652         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83653         Test more.
83654
83655         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83656
83657         * modules/md2, modules/md2-tests: New files.
83658
83659 2005-10-28  Simon Josefsson  <jas@extundo.com>
83660
83661         * m4/inet_ntop.m4: More tests.
83662
83663         * m4/gc-md2.m4, md2.m4: New file.
83664
83665 2005-10-28  Simon Josefsson  <jas@extundo.com>
83666
83667         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83668         "restrict" keywords, as per POSIX.  Protect the function
83669         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83670         Don't use K&R prototypes.  Check the sprintf return values.
83671         Re-define EAFNOSUPPORT if not present.  Indent.
83672
83673         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83674         suggested by Bruno Haible <bruno@clisp.org>.
83675
83676         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83677
83678         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83679
83680         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83681         libgcrypt).
83682
83683         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83684
83685         * lib/md2.h, lib/md2.c: New files.
83686
83687 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83690         errno alone.  Problem reported by Frederic Jolliton.
83691
83692 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83693
83694         * modules/verify (License): Change from GPL to LGPL.  This is a
83695         tiny module and there are apparently near-equivalents that are
83696         under the BSD license.
83697
83698 2005-10-24  Simon Josefsson  <jas@extundo.com>
83699
83700         * modules/sha1: Relicense to LGPL.
83701
83702 2005-10-24  Simon Josefsson  <jas@extundo.com>
83703
83704         * lib/md4.h: Shrink buffer size, now that we changed the type.
83705
83706 2005-10-23  Simon Josefsson  <jas@extundo.com>
83707
83708         * gnulib-tool (func_import): Fix --tests-base.
83709
83710 2005-10-22  Simon Josefsson  <jas@extundo.com>
83711
83712         * modules/arcfour (Depends-on): Need stdint.
83713
83714 2005-10-22  Simon Josefsson  <jas@extundo.com>
83715
83716         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83717         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83718
83719 2005-10-22  Simon Josefsson  <jas@extundo.com>
83720
83721         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83722         suggested by Bruno Haible <bruno@clisp.org>.
83723
83724 2005-10-22  Simon Josefsson  <jas@extundo.com>
83725
83726         * lib/crc.h: Include stddef.h, for size_t.
83727
83728 2005-10-22  Simon Josefsson  <jas@extundo.com>
83729
83730         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83731         arcfour_context struct (simplify test vector testing in GNU
83732         Shishi).
83733
83734 2005-10-21  Simon Josefsson  <jas@extundo.com>
83735
83736         * modules/des, modules/des-tests: New files.
83737
83738         * modules/gc-des, modules/gc-des-tests: New files.
83739
83740         * tests/test-des.c, tests/test-gc-des.c: New file.
83741
83742 2005-10-21  Simon Josefsson  <jas@extundo.com>
83743
83744         * modules/arctwo, modules/arctwo-tests: New files.
83745
83746         * tests/test-arctwo.c: New file.
83747
83748         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83749
83750         * tests/test-gc-arctwo.c: New file.
83751
83752 2005-10-21  Simon Josefsson  <jas@extundo.com>
83753
83754         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83755         Bruno Haible <bruno@clisp.org>.
83756
83757         * m4/gc-des.m4: New file.
83758
83759 2005-10-21  Simon Josefsson  <jas@extundo.com>
83760
83761         * m4/arctwo.m4: New file.
83762
83763         * m4/gc-arctwo.m4: New file.
83764
83765 2005-10-21  Simon Josefsson  <jas@extundo.com>
83766
83767         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83768         block.
83769
83770 2005-10-21  Simon Josefsson  <jas@extundo.com>
83771
83772         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83773         <bruno@clisp.org>.
83774
83775         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83776
83777         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83778         Bruno Haible <bruno@clisp.org>.
83779
83780         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83781         <bruno@clisp.org>.
83782
83783 2005-10-21  Simon Josefsson  <jas@extundo.com>
83784
83785         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83786
83787 2005-10-21  Simon Josefsson  <jas@extundo.com>
83788
83789         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83790
83791 2005-10-21  Simon Josefsson  <jas@extundo.com>
83792
83793         * lib/des.h, lib/des.c: New files.
83794
83795         * lib/gc-gnulib.c: Support DES.c
83796
83797 2005-10-21  Simon Josefsson  <jas@extundo.com>
83798
83799         * lib/arctwo.h, lib/arctwo.c: New files.
83800
83801         * lib/gc-gnulib.c: Support ARCTWO.
83802
83803 2005-10-21  Simon Josefsson  <jas@extundo.com>
83804
83805         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83806         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83807
83808 2005-10-21  Simon Josefsson  <jas@extundo.com>
83809
83810         * gnulib-tool (func_import, func_create_testdir): Define automake
83811         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83812         Makefile.am snippet),
83813         suggested by Bruno Haible <bruno@clisp.org>.
83814
83815         * modules/gc (Makefile.am): Use it.
83816
83817 2005-10-21  Bruno Haible  <bruno@clisp.org>
83818
83819         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83820         patch.
83821
83822 2005-10-19  Simon Josefsson  <jas@extundo.com>
83823
83824         * tests/test-gc-rijndael.c: New file.
83825
83826         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83827
83828 2005-10-19  Simon Josefsson  <jas@extundo.com>
83829
83830         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83831         interface too.
83832
83833 2005-10-19  Simon Josefsson  <jas@extundo.com>
83834
83835         * tests/test-gc-arcfour.c: New file.
83836
83837         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83838
83839 2005-10-19  Simon Josefsson  <jas@extundo.com>
83840
83841         * modules/gc-md4, modules/gc-md4-tests: New file.
83842
83843         * tests/test-gc-md4.c: New file.
83844
83845 2005-10-19  Simon Josefsson  <jas@extundo.com>
83846
83847         * m4/gc-md4.m4: New file.
83848
83849 2005-10-19  Simon Josefsson  <jas@extundo.com>
83850
83851         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83852         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83853         <kasal@ucw.cz>.
83854
83855 2005-10-19  Simon Josefsson  <jas@extundo.com>
83856
83857         * m4/gc-arcfour.m4: New file.
83858
83859         * m4/gc-rijndael.m4: New file.
83860
83861 2005-10-19  Simon Josefsson  <jas@extundo.com>
83862
83863         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83864
83865 2005-10-19  Simon Josefsson  <jas@extundo.com>
83866
83867         * lib/gc-gnulib.c: Support ARCFOUR.
83868
83869 2005-10-19  Simon Josefsson  <jas@extundo.com>
83870
83871         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83872         support.
83873
83874         * lib/gc.h: Add ECB enum type.
83875
83876         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83877
83878 2005-10-18  Simon Josefsson  <jas@extundo.com>
83879
83880         * tests/test-md5.c: New file.
83881
83882         * modules/md5-tests: New file.
83883
83884 2005-10-18  Simon Josefsson  <jas@extundo.com>
83885
83886         * tests/test-md4.c: New file.
83887
83888         * modules/md4, modules/md4-tests: New files.
83889
83890 2005-10-18  Simon Josefsson  <jas@extundo.com>
83891
83892         * m4/md4.m4: New file.
83893
83894 2005-10-18  Simon Josefsson  <jas@extundo.com>
83895
83896         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83897
83898 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83899
83900         * gnulib-tool (func_create_testdir): Omit the second check whether
83901         BUILT_SOURCES in nonempty.
83902
83903 2005-10-17  Simon Josefsson  <jas@extundo.com>
83904
83905         * tests/test-rijndael.c: New file.
83906
83907 2005-10-17  Simon Josefsson  <jas@extundo.com>
83908
83909         * modules/sha1: Depend on stdint instead of md5.
83910
83911         * modules/md5: Depend on stdint, remove uint32_t.
83912
83913 2005-10-17  Simon Josefsson  <jas@extundo.com>
83914
83915         * modules/gc-sha1-tests: New file.
83916
83917         * tests/test-gc-sha1.c: New file.
83918
83919 2005-10-17  Simon Josefsson  <jas@extundo.com>
83920
83921         * m4/md5.m4: Remove call to uint32_t.m4.
83922
83923 2005-10-17  Simon Josefsson  <jas@extundo.com>
83924
83925         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83926
83927         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83928         md5.h.
83929
83930         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83931
83932         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83933
83934 2005-10-17  Simon Josefsson  <jas@extundo.com>
83935
83936         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83937
83938 2005-10-17  Simon Josefsson  <jas@extundo.com>
83939
83940         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83941
83942 2005-10-17  Simon Josefsson  <jas@extundo.com>
83943
83944         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83945
83946         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83947
83948 2005-10-17  Bruno Haible  <bruno@clisp.org>
83949
83950         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83951         that it can also be used in a test.
83952
83953 2005-10-16  Bruno Haible  <bruno@clisp.org>
83954
83955         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83956         TESTS_ENVIRONMENT, so that individual tests can augment it.
83957
83958         * gnulib-tool (func_create_testdir): Use an intermediate target for
83959         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83960         macros, like $(ALLOCA_H), which cannot be passed through the command
83961         line.
83962
83963 2005-10-15  Simon Josefsson  <jas@extundo.com>
83964
83965         * modules/rijndael-tests: New file.
83966
83967         * modules/rijndael: New file.
83968
83969 2005-10-15  Simon Josefsson  <jas@extundo.com>
83970
83971         * m4/rijndael.m4: New file.
83972
83973 2005-10-15  Simon Josefsson  <jas@extundo.com>
83974
83975         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83976
83977         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83978
83979 2005-10-14  Simon Josefsson  <jas@extundo.com>
83980
83981         * tests/test-arcfour.c: New file.
83982
83983         * modules/arcfour, modules/arcfour-tests: New files.
83984
83985 2005-10-14  Simon Josefsson  <jas@extundo.com>
83986
83987         * m4/arcfour.m4: New file.
83988
83989 2005-10-14  Simon Josefsson  <jas@extundo.com>
83990
83991         * lib/arcfour.h, lib/arcfour.c: New files.
83992
83993 2005-10-14  Roland McGrath  <roland@redhat.com>
83994
83995         Import from libc.  [BZ #1331]
83996         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83997         macro argument.
83998         Reported by Matej Vela <vela@debian.org>.
83999
84000 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84001
84002         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84003         include <wchar.h>; no longer needed.
84004
84005 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84006
84007         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84008
84009 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84010         and  Ulrich Drepper  <drepper@redhat.com>
84011
84012         Import from libc.
84013         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84014         instead of inline stream orientation test and two separate
84015         function calls.  Pay no attention to USE_IN_LIBIO.
84016
84017 2005-10-13  Simon Josefsson  <jas@extundo.com>
84018
84019         * modules/gc-hmac-md5-tests: New file.
84020
84021         * tests/test-gc-hmac-sha1.c: New file.
84022
84023         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84024
84025         * modules/gc-hmac-md5-tests: New file.
84026
84027         * tests/test-gc-md5.c: New file.
84028
84029         * modules/gc-md5-tests: New file.
84030
84031 2005-10-13  Simon Josefsson  <jas@extundo.com>
84032
84033         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84034         Move memory allocation outside of loop.
84035
84036 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84037
84038         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84039         intermediate directory is in a read-only file system.  Problem
84040         reported by Eric Blake.
84041
84042 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84043
84044         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84045
84046 2005-10-12  Simon Josefsson  <jas@extundo.com>
84047
84048         * tests/test-hmac-sha1.c: New file.
84049
84050         * modules/hmac-sha1-tests: New file.
84051
84052         * modules/hmac-sha1: New file.
84053
84054 2005-10-12  Simon Josefsson  <jas@extundo.com>
84055
84056         * modules/gc-sha1: New file.
84057
84058 2005-10-12  Simon Josefsson  <jas@extundo.com>
84059
84060         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84061
84062         * tests/test-gc-pbkdf2-sha1.c: New file.
84063
84064 2005-10-12  Simon Josefsson  <jas@extundo.com>
84065
84066         * modules/gc-md5, modules/gc-hmac-md5: New files.
84067
84068         * modules/gc (Files): Remove md5, memxor and hmac files.
84069
84070 2005-10-12  Simon Josefsson  <jas@extundo.com>
84071
84072         * m4/gc-pbkdf2-sha1.m4: New file.
84073
84074         * m4/gc-hmac-sha1.m4: New file.
84075
84076         * m4/gc-sha1: New file.
84077
84078         * m4/hmac-sha1.m4: New file.
84079
84080 2005-10-12  Simon Josefsson  <jas@extundo.com>
84081
84082         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84083
84084         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84085
84086 2005-10-12  Simon Josefsson  <jas@extundo.com>
84087
84088         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84089         suggested by Bruno Haible <bruno@clisp.org>.
84090
84091 2005-10-12  Simon Josefsson  <jas@extundo.com>
84092
84093         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84094
84095 2005-10-12  Simon Josefsson  <jas@extundo.com>
84096
84097         * lib/gc-pbkdf2-sha1.c: New file.
84098
84099         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84100
84101 2005-10-12  Simon Josefsson  <jas@extundo.com>
84102
84103         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84104
84105         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84106
84107 2005-10-12  Simon Josefsson  <jas@extundo.com>
84108
84109         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84110         GC_USE_HMAC_MD5, respectively.
84111
84112         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84113         (gc_md5): Fix typo.
84114
84115         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84116
84117         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84118
84119         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84120
84121 2005-10-12  Bruno Haible  <bruno@clisp.org>
84122
84123         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84124         Reported by Stepan Kasal <kasal@ucw.cz>.
84125
84126 2005-10-11  Simon Josefsson  <jas@extundo.com>
84127
84128         * tests/test-crc.c: New file.
84129
84130         * modules/crc, modules/crc-tests: New files.
84131
84132 2005-10-11  Simon Josefsson  <jas@extundo.com>
84133
84134         * m4/crc.m4: New file.
84135
84136 2005-10-11  Simon Josefsson  <jas@extundo.com>
84137
84138         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84139
84140         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84141
84142         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84143
84144 2005-10-11  Simon Josefsson  <jas@extundo.com>
84145
84146         * lib/crc.h, lib/crc.c: New files.
84147
84148         * lib/gc.h (gc_hash_buffer): Add doc.
84149
84150 2005-10-11  Bruno Haible  <bruno@clisp.org>
84151
84152         * modules/c-strcasestr: New file.
84153         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84154
84155 2005-10-11  Bruno Haible  <bruno@clisp.org>
84156
84157         * modules/c-strcase: New file.
84158         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84159
84160 2005-10-11  Bruno Haible  <bruno@clisp.org>
84161
84162         * lib/strcasecmp.c: Include limits.h.
84163         (strcasecmp): Avoid integer overflow on exotic platforms.
84164         * lib/strncasecmp.c: Include limits.h.
84165         (strncasecmp): Avoid integer overflow on exotic platforms.
84166         Reported by Paul Eggert.
84167
84168 2005-10-11  Bruno Haible  <bruno@clisp.org>
84169
84170         * lib/c-strcasestr.h: New file, from GNU gettext.
84171         * lib/c-strcasestr.c: New file, from GNU gettext.
84172
84173 2005-10-11  Bruno Haible  <bruno@clisp.org>
84174
84175         * lib/c-strcase.h: New file, from GNU gettext.
84176         * lib/c-strcasecmp.c: New file, from GNU gettext.
84177         * lib/c-strncasecmp.c: New file, from GNU gettext.
84178
84179 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84180
84181         * modules/mempcpy (License): GPL -> LGPL.
84182         * modules/strchrnul (License): Likewise.
84183         * modules/sysexits (License): Likewise.
84184
84185 2005-10-08  Simon Josefsson  <jas@extundo.com>
84186
84187         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84188
84189 2005-10-07  Simon Josefsson  <jas@extundo.com>
84190
84191         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84192
84193 2005-10-06  Simon Josefsson  <jas@extundo.com>
84194
84195         * tests/test-hmac-md5.c: New file.
84196
84197         * modules/hmac-md5-tests: New file.
84198
84199         * modules/hmac-md5: New file.
84200
84201 2005-10-06  Simon Josefsson  <jas@extundo.com>
84202
84203         * m4/hmac-md5.m4: New file.
84204
84205         * m4/memxor.m4: Require gl_C_RESTRICT.
84206
84207 2005-10-06  Simon Josefsson  <jas@extundo.com>
84208
84209         * lib/memxor.c (memxor): Avoid casts and warnings.
84210
84211 2005-10-06  Simon Josefsson  <jas@extundo.com>
84212
84213         * lib/hmac-md5.c: New file.
84214
84215         * lib/hmac.h: New file.
84216
84217 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84218
84219         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84220         promotes to int, not unsigned int, to catch the AIX 5.3
84221         compiler bug.
84222
84223 2005-10-05  Simon Josefsson  <jas@extundo.com>
84224
84225         * modules/memxor: New file.
84226
84227         * modules/iconv (Files): Move config.rpath to havelib, it is used
84228         there.
84229
84230         * modules/havelib (Files): Add config.rpath.
84231
84232 2005-10-05  Simon Josefsson  <jas@extundo.com>
84233
84234         * m4/memxor.m4: New file.
84235
84236 2005-10-05  Simon Josefsson  <jas@extundo.com>
84237
84238         * lib/memxor.c (memxor): Fix compiler error.
84239
84240         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84241         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84242
84243         * lib/memxor.h, lib/memxor.c: New files.
84244
84245         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84246         we assume all systems have it, suggested by Jim Meyering
84247         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84248         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84249         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84250         same reasons.
84251
84252 2005-10-05  Simon Josefsson  <jas@extundo.com>
84253
84254         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84255
84256 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84257
84258         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84259         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84260         needed, since the source code now assumes these .h files.
84261
84262 2005-10-05  Derek Price  <derek@ximbiot.com>
84263
84264         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84265
84266 2005-10-05  Bruno Haible  <bruno@clisp.org>
84267
84268         * modules/stdint (License): Change to LGPL.
84269
84270 2005-10-04  Simon Josefsson  <jas@extundo.com>
84271
84272         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84273         D. Baushke" <mdb@gnu.org>.
84274
84275 2005-10-04  Bruno Haible  <bruno@clisp.org>
84276
84277         * lib/verify.h (verify_true): Provide alternative definition for C++.
84278
84279 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84280
84281         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84282         (SSIZE_MAX): New macro, if not already defined.
84283         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84284         than 2 GiB.
84285
84286 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84287
84288         Sync from coreutils.
84289         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84290         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84291         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84292         ULLONG_MAX doesn't work with 2.7.2.1.
84293
84294 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84295
84296         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84297         From Ben Pfaff.
84298
84299         * modules/exclude (Depends-on): Depend on verify.
84300         * modules/strtoimax (Depends-on): Likewise.
84301         * modules/utimecmp (Depends-on): Likewise.
84302
84303 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84304
84305         * lib/exclude.c: Include verify.h.
84306         (verify): Remove.  All callers changed to use verify.h's version.
84307         * lib/strtoimax.c: Likewise.
84308         * lib/utimecmp.c: Likewis.e
84309
84310         Sync from coreutils.
84311         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84312         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84313         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84314         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84315         bother returning ENOSYS if settimeofday or stime fails; just let
84316         them return whatever errno they want to return.
84317         * lib/utimens.c: Include unistd.h, for dup2.
84318         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84319         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84320
84321 2005-10-02  Jim Meyering  <jim@meyering.net>
84322
84323         Sync from coreutils.
84324         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84325         from glibc-2.2.5 that fails for read-only files.
84326
84327 2005-10-02  Jim Meyering  <jim@meyering.net>
84328
84329         Sync from coreutils.
84330         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84331         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84332         `#if HAVE_CONFIG_H'.
84333         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84334         Remove AT_FDCWD test.
84335         Do not consume the fd unless successful.
84336         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84337         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84338         block, so that we don't even try to compile it if settimeofday is
84339         available.  This works around a compilation failure on OSF1 V5.1,
84340         due to stime requiring a `long int*' while tv_sec is `int'.
84341
84342 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84343
84344         Sync from coreutils.
84345         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84346         against `yes', rather than just testing for nonempty.
84347
84348 2005-10-01  Simon Josefsson  <jas@extundo.com>
84349
84350         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84351         and Darwin.
84352
84353         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84354         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84355         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84356         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84357         Check if struct addrinfo is declared.
84358
84359 2005-10-01  Simon Josefsson  <jas@extundo.com>
84360
84361         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84362         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84363         AI_* and EAI_* definitions.  Protect function declarations.
84364
84365 2005-10-01  Jim Meyering  <jim@meyering.net>
84366
84367         Sync from coreutils.
84368
84369         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84370         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84371         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84372         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84373         in the inet and nsl libraries.  Required on Solaris 5.7.
84374
84375 2005-10-01  Jim Meyering  <jim@meyering.net>
84376
84377         Sync from coreutils.
84378         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84379         in the inet and nsl libraries.  Required on Solaris 5.7.
84380
84381 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84382
84383         * lib/getdelim.c (getdelim): Remove unused variables.
84384
84385 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84386
84387         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84388         so that the code works even with ancient cpp.  Portability problem
84389         with GCC 2.7.2.1 reported by Thomas M.Ott.
84390
84391 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84392
84393         * modules/regex (Depends-on): Add strcase.
84394
84395         * modules/gethostname (Licence): Change from GPL to LGPL, since
84396         gethostname.c is a trivial implementation of a standard library
84397         function.
84398         * modules/poll (License): Change from GPL to LGPL, since it's
84399         derived from LGPL code.
84400
84401 2005-09-27  Jim Meyering  <jim@meyering.net>
84402
84403         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84404         HAVE_CONFIG_H.
84405
84406         * lib/intprops.h (signed_type_or_expr__): Define.
84407         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84408         for unsigned types.
84409
84410 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84411
84412         * lib/verify.h (verify_expr): Remove, replacing with:
84413         (verify_true): New macro that returns true instead of void.
84414         (verify_type__): Remove.
84415         (verify): Use verify_true rather than verify_type__.
84416
84417 2005-09-26  Bruno Haible  <bruno@clisp.org>
84418
84419         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84420         is necessary.
84421         (lib_SOURCES): Remove mbchar.c.
84422         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84423         (Files): Add m4/mbrtowc.m4.
84424         * modules/mbiter: Likewise.
84425         * modules/mbuiter: Likewise.
84426
84427 2005-09-26  Bruno Haible  <bruno@clisp.org>
84428
84429         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84430         compile mbchar.c if they are not both present.
84431         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84432         * m4/mbiter.m4 (gl_MBITER): Likewise.
84433         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84434         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84435         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84436
84437 2005-09-25  Jim Meyering  <jim@meyering.net>
84438
84439         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84440         also uses socklen_t.
84441
84442 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84443
84444         * lib/utimens.c (ENOSYS): Define if not already defined.
84445         (futimens): Support having a null PATH if the file descriptor
84446         is nonnegative.
84447
84448         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84449         Remove.
84450         (__attribute): Define to empty unless GCC 3.1 or later.
84451         This works around a core dump on OpenBSD 3.4, which has GCC
84452         2.95.3, which dumps core when given __attribute__(()).  It also
84453         simplifies other tests, since we really don't want to bother with
84454         worrying about which ancient version of GCC supported what.
84455         Original problem reported by Yoann Vandoorselaere, with part of
84456         the fix suggested by Derek Price.
84457
84458 2005-09-24  Jim Meyering  <jim@meyering.net>
84459
84460         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84461         so we can once again use a positive bitfield width of 1 -- now we
84462         don't have to explain why we were using a bitfield width of 2.
84463
84464 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84465
84466         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84467         and similarly for the other external symbols.  Problem reported
84468         by James Gallager.
84469
84470         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84471         bug reported by Jim Meyering.
84472
84473         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84474         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84475         not needed, since socklen is a prerequisite module.
84476
84477 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84478
84479         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84480         Problem reported by Eric Blake.
84481         (getaddrinfo): Initialize se so that it's not garbage.
84482         Redo internal storage allocation so that it doesn't make unportable
84483         assumptions about alignment.
84484         Fix a memory leak.
84485
84486         * lib/utimens.c (futimens): Use futimesat if available.
84487         Prefer it to futimes since it doesn't have the futimes bug.
84488
84489         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84490         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84491         Instead, declare a function that returns a pointer to an array,
84492         and use verify_type__ to declare the size of the array.
84493         Problem and germ of a solution reported by Bruno Haible.
84494         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84495         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84496
84497 2005-09-23  Jim Meyering  <jim@meyering.net>
84498
84499         Sync from coreutils.
84500         Correct build failure (socklen_t not defined) on at least
84501         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84502         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84503
84504 2005-09-23  Jim Meyering  <jim@meyering.net>
84505
84506         * modules/getaddrinfo (Depends-on): Add socklen.
84507
84508 2005-09-23  Bruno Haible  <bruno@clisp.org>
84509
84510         * tests/test-verify.c: New file.
84511
84512 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84513
84514         Sync from coreutils.
84515
84516         * modules/argmatch (Depends-on): Add verify.
84517         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84518         unistd-safer.
84519         * modules/save-cwd (Depends-on): Likewise.
84520
84521         * modules/openat (Files): Add lib/openat-die.c.
84522         (Depends-on): Remove error, exitfail.
84523         Add dirname.
84524
84525         * modules/verify: New file.
84526         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84527         with "verify" module.
84528
84529 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84530
84531         Sync from coreutils.
84532
84533         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84534         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84535         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84536         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84537         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84538         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84539         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84540         Don't bother checking for string.h, stdlib.h, unistd.h.
84541         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84542         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84543         module's job.
84544         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84545         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84546
84547         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84548         (gl_GETDATE): Use it.
84549
84550         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84551
84552 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84553
84554         Sync from coreutils.
84555
84556         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84557         stat-time.h.
84558         * lib/argmatch.h: Include verify.h
84559         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84560         (ARGMATCH_ASSERT): Remove; unused.
84561         * lib/canonicalize.c: Assume STDC_HEADERS.
84562         * lib/exclude.c: Include "strcase.h".
84563         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84564         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84565         and stdio-safer.h.
84566         (getusershell): Call fopen, not fopen_safer.
84567         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84568         Do not include unistd-safer.h.
84569         (save_cwd): Don't call fd_safer; no longer needed
84570         now that we include fcntl--.h.
84571
84572         * lib/getdate.y (relative_time): New type.
84573         (RELATIVE_TIME_0): New constant.
84574         (parser_control): Use relative_time instead of doing it ourselves.
84575         (%union): Add new relative_time rel member.
84576         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84577         Now typeless.
84578         (relunit, relunit_snumber): Now of type rel.
84579         (zone, rel, relunit, get_date): Adjust to above changes.
84580
84581         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84582         Do not include unistd-safer.h.
84583         (getloadavg): Don't call fd_safer; no longer needed
84584         now that we include fcntl--.h.
84585
84586         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84587         (make_dir_parents): Treat ENOSYS like EEXIST.
84588
84589         Improve quality of diagnostics on restore_cwd failure.
84590         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84591         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84592         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84593         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84594         each time through the loop.  Do not diagnose restore_cwd failure;
84595         that is the caller's job (and perhaps the caller does not care).
84596
84597         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84598         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84599         If the file already exists but is not a directory, don't bother
84600         to try to make its parents.
84601         Close potential file descriptor leak if we can't chdir("/") (!).
84602         Don't always return true if chdir($PWD) fails; return true only
84603         if the requested action was done successfully (except for the
84604         chdir($PWD)).
84605         Don't log final directory unless we actually made it.
84606         Refactor to avoid duplicate code to fix up permissions.
84607         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84608
84609         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84610         to make it a bit faster and (I hope) clearer.
84611         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84612         Fix bug in formats like %2N.
84613
84614         * lib/verify.h: New file.
84615
84616 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84617
84618         Sync from coreutils.
84619         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84620
84621 2005-09-22  Jim Meyering  <jim@meyering.net>
84622
84623         Sync from coreutils.
84624
84625         * m4/lstat.m4 (gl_FUNC_LSTAT):
84626         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84627         Remove obsolete comment.
84628         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84629         * m4/xstrtod.m4: Likewise.
84630
84631         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84632
84633 2005-09-22  Jim Meyering  <jim@meyering.net>
84634
84635         Sync from coreutils.
84636
84637         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84638
84639         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84640         the .tm_year member, since otherwise gcc-4.0 would now warn about
84641         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84642
84643         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84644         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84645
84646         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84647         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84648         when run in a time zone for which daylight savings time is in effect
84649         for the starting date.
84650
84651         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84652         stop us from restricting permissions of just-created absolute-named
84653         directories.
84654         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84655         to restore initial working directory.
84656         * lib/mkdir-p.c (make_dir_parents): New parameter:
84657         different_working_dir, to tell caller if/when we change the working
84658         directory and are unable to return to the initial one.
84659         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84660         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84661         `return false'.  This fixes a bug introduced on 2004-07-30.
84662
84663         * lib/openat.c (fdopendir): Be sure to close the supplied
84664         file descriptor before returning.  This makes our replacement
84665         implementation a little closer to Solaris's, where fdopendir
84666         ties the file descriptor to the returned DIR* pointer.
84667         * lib/openat.c (unlinkat): New function.
84668         * lib/openat.h (unlinkat): Add prototype.
84669         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84670         (openat_restore_fail): Rename from openat_restore_die.
84671         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84672
84673         Provide an alternative to exiting immediately upon save_cwd or
84674         restore_cwd failure.  Now, an application can arrange e.g.,
84675         to perform a longjump in that case.
84676         * lib/openat.c: Include dirname.h.
84677         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84678         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84679         and openat_restore_die rather than calling error directly.
84680         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84681
84682         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84683         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84684         define.
84685
84686         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84687         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84688                             int utc, int nanoseconds);
84689         Background:
84690         date should not have to allocate a megabyte of virtual memory to
84691         handle a format argument like +%1048575T.  When implemented with
84692         strftime, it must allocate such a buffer, use strftime to fill it
84693         in, print it, then free it.
84694         With fprintftime, it simply prints everything and exits.
84695         With no need for memory allocation, that's one fewer way to fail.
84696         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84697         optional field width, not before, so we accept %9:z, not %:9z.
84698         (my_strftime): Be sure to use L_('x') for literals.
84699
84700         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84701         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84702         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84703         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84704         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84705         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84706         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84707         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84708         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84709         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84710         * lib/xgethostname.c, lib/xreadlink.c:
84711         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84712
84713         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84714         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84715         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84716         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84717         and don't include <sys/file.h>).
84718
84719 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84720
84721         Sync from coreutils.
84722
84723         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84724         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84725         [!LDAV_DONE]: Avoid unused variable warning.
84726
84727 2005-09-21  Bruno Haible  <bruno@clisp.org>
84728
84729         * lib/unicodeio.h (unicode_to_mb): New declaration.
84730
84731 2005-09-20  Derek Price  <derek@ximbiot.com>
84732
84733         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84734         getaddrinfo.h.
84735
84736 2005-09-20  Bruno Haible  <bruno@clisp.org>
84737
84738         * gnulib-tool: Remove trailing slashes from the values specified for
84739         --source-base, --m4-base, --tests-base, --aux-dir.
84740         Suggested by Simon Josefsson <jas@extundo.com>.
84741
84742 2005-09-20  Bruno Haible  <bruno@clisp.org>
84743
84744         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84745         func_modules_to_filelist, func_import, func_create_testdir): Make all
84746         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84747         change when gnulib-tool is invoked in a different locale.
84748
84749 2005-09-19  Simon Josefsson  <jas@extundo.com>
84750
84751         * m4/socklen.m4: Fix typo.
84752
84753 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84754
84755         Use a consistent style for including <config.h>.
84756         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84757         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84758         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84759         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84760         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84761         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84762         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84763         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84764         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84765         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84766         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84767         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84768         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84769         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84770         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84771         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84772         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84773         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84774         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84775         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84776         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84777         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84778         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84779         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84780         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84781         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84782         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84783         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84784         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84785         lib/xstrtoumax.c, lib/yesno.c:
84786         Standardize inclusion of config.h.
84787         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84788         lib/inttostr.h:  Removed inclusion of config.h from header files.
84789         * lib/inttostr.c:  Adjusted in-tree users.
84790         * lib/timespec.h: Remove superfluous warning to include config.h.
84791         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84792         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84793         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84794         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84795         config.h with HAVE_CONFIG_H.
84796
84797 2005-09-19  Jim Meyering  <jim@meyering.net>
84798
84799         * modules/pathmax (License): Change to LGPL.
84800
84801 2005-09-19  Derek Price  <derek@ximbiot.com>
84802
84803         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84804
84805 2005-09-19  Bruno Haible  <bruno@clisp.org>
84806
84807         * gnulib-tool (import): Provide default for --tests-base.
84808
84809 2005-09-19  Bruno Haible  <bruno@clisp.org>
84810
84811         * doc/quote.texi: New file, extracted from gnulib.texi.
84812         * doc/ctime.texi: New file, extracted from gnulib.texi.
84813         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84814         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84815         * doc/gnulib.texi: Include them.
84816
84817 2005-09-18  Bruno Haible  <bruno@clisp.org>
84818
84819         Portability fix.
84820         * gnulib-tool (func_readlink): New function.
84821         (func_ln_if_changed): Use it.
84822
84823 2005-09-18  Bruno Haible  <bruno@clisp.org>
84824
84825         * gnulib-tool: Support --with-tests also with --import.
84826         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84827         (func_import): Use variables $testsbase and $inctests. Emit a
84828         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84829         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84830         SUBDIRS += $testsdir.
84831         (func_create_testdir): Update.
84832
84833 2005-09-18  Bruno Haible  <bruno@clisp.org>
84834
84835         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84836         instead of $dry_run.
84837         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84838         (func_ln_if_changed): Don't handle dry-run here.
84839         (func_import): In dry-run mode, detect more precisely which actions
84840         would be performed, and don't use "...ing" verbs.
84841
84842 2005-09-18  Bruno Haible  <bruno@clisp.org>
84843
84844         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84845         (func_import): Use join on two temporary files instead of three nested
84846         loops, in order to determine which files are new or old.
84847
84848 2005-09-18  Bruno Haible  <bruno@clisp.org>
84849
84850         * gnulib-tool (func_import): Comment out code that spits out the
84851         new files with --dry-run.
84852
84853 2005-09-18  Bruno Haible  <bruno@clisp.org>
84854
84855         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84856
84857 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84858
84859         * lib/stat-time.h: New file.
84860         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84861         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84862         in a different way.
84863         (timespec_cmp): New function.
84864         * lib/utimecmp.c: Include stat-time.h.
84865         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84866         members exist, not on the obsolescent ST_MTIM_NSEC.
84867         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84868
84869 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84870
84871         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84872
84873 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84874
84875         * MODULES.html.sh (File system functions): Add stat-time.
84876         * modules/stat-time: New file.
84877         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84878         is now done in a different way, by the stat-time module.
84879         * modules/utimecmp (Depends-on): Add stat-time.
84880
84881 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84882
84883         * m4/st_mtim.m4: Remove.  Superseded by...
84884         * m4/stat-time.m4: New file.
84885         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84886         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84887
84888 2005-09-15  Derek Price  <derek@ximbiot.com>
84889
84890         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84891
84892 2005-09-15  Derek Price  <derek@ximbiot.com>
84893
84894         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84895         * lib/regex_internal.c: Ditto, using this...
84896         (__GNUC_PREREQ): ...new macro.
84897         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84898         using...
84899         (__GNUC_PREREQ): ...this new macro.
84900
84901         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84902
84903 2005-09-15  Derek Price  <derek@ximbiot.com>
84904             Paul Eggert  <eggert@cs.ucla.edu>
84905
84906         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84907         changes, consolidating in...
84908         * lib/regex_internal.h: ...this file.
84909
84910 2005-09-13  Jim Meyering  <jim@meyering.net>
84911
84912         * lib/canon-host.c: Filter through gnu indent and reword comments
84913         slightly.
84914         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84915
84916 2005-09-13  Derek Price  <derek@ximbiot.com>
84917
84918         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84919         failure.
84920         Reported by Jim Meyering  <jim@meyering.net>.
84921
84922 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84923
84924         * lib/base64.c: Typo.
84925         (base64_encode): Put b64str in initialized data section.
84926
84927 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84928
84929         Merge glibc and coreutils changes into gnulib, plus a few
84930         extra fixes.
84931         * lib/md5.c: Use #error rather than a string.
84932         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84933         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84934         (__attribute__): Define to empty for non recent-GCC.
84935         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84936         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84937         Renamed from their non-__ counterparts, with new macros replacing
84938         them if not _LIBC.  Add __THROW attribute.
84939         (rol): Remove.
84940         (struct md5_ctx): Align buffer if using GCC.
84941         * lib/sha1.h (struct sha1_ctx): Likewise.
84942         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84943         The old name was backwards.
84944         (NOTSWAP): Remove; not used.
84945         (rol): New macro, moved here from md5.h.
84946         (sha1_process_block): Remove a FIXME that doesn't make sense.
84947
84948 2005-09-12  Derek Price  <derek@ximbiot.com>
84949
84950         Return usable errors from canon-host.
84951         * lib/canon-host.h: New file.
84952         * lib/canon-host.c (canon_host): Wrap...
84953         (canon_host_r): ...this new function, which now relies exclusively on
84954         getaddrinfo.
84955         (ch_strerror): New function.
84956         (last_cherror): New global.
84957         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84958         interface.
84959         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84960         void *.
84961         (freeaddrinfo): Free ai->ai_canonname when set.
84962
84963 2005-09-12  Derek Price  <derek@ximbiot.com>
84964
84965         Make canon-host require getaddrinfo.
84966         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84967         AC_LIBSOURCE canon-host.h.  Call...
84968         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84969         gl_GETADDRINFO.
84970         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84971
84972 2005-09-12  Derek Price  <derek@ximbiot.com>
84973
84974         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84975         LGPL.
84976         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84977
84978 2005-09-12  Derek Price  <derek@ximbiot.com>
84979
84980         * lib/gai_strerror.c: Include config.h when available.  Include
84981         getaddrinfo.h before other headers to test interface.
84982         Reported by Larry Jones <lawrence.jones@ugs.com>.
84983
84984 2005-09-12  Derek Price  <derek@ximbiot.com>
84985             Paul Eggert  <eggert@cs.ucla.edu>
84986
84987         * modules/glob (Files): Add glob-libc.h.
84988
84989 2005-09-12  Derek Price  <derek@ximbiot.com>
84990             Paul Eggert  <eggert@cs.ucla.edu>
84991
84992         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84993         glob_.h, glob-libc.h.
84994         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84995
84996 2005-09-12  Derek Price  <derek@ximbiot.com>
84997             Paul Eggert  <eggert@cs.ucla.edu>
84998
84999         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85000         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85001         protecting things that should be done only in gnulib contexts.
85002         * lib/glob_.h: New file, containing only the glob things needed for
85003         gnulib.
85004         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85005         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85006         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85007         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85008         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85009         and to respect the namespace rules better.
85010
85011 2005-09-08  Simon Josefsson  <jas@extundo.com>
85012
85013         * modules/socklen: New file.
85014
85015 2005-09-08  Simon Josefsson  <jas@extundo.com>
85016
85017         * m4/socklen.m4: New file.
85018
85019 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85020
85021         * modules/utimens (Files): Add m4/utimbuf.m4, since
85022         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85023         Reported by Sergey Poznyakoff.
85024
85025 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85026
85027         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85028         definitions, since that's the preferred style in glibc.
85029         Fix a minor spacing issue, and update copyright notice to match
85030         glibc's.
85031
85032 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85033
85034         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85035
85036 2005-09-06  Simon Josefsson  <jas@extundo.com>
85037
85038         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85039         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85040
85041 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85042
85043         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85044         warning.
85045
85046 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85047
85048         * config/srclist.txt: Add glibc bug 1302.
85049
85050 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85051
85052         Change bitset word type from unsigned int to unsigned long int,
85053         as this has better performance on typical 64-bit hosts.
85054         Port bitset code to hosts with unusual word sizes.
85055         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85056         (build_collating_symbol):
85057         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85058         argument is a bitset.  This is merely a style issue, but it makes
85059         it clearer that an entire array is expected.
85060         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85061         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85062         Port to the case where bitset_word is not the same as unsigned int.
85063         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85064         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85065         Likewise.
85066         * lib/regexec.c (check_dst_limits_calc_pos_1,
85067         check_subexp_matching_top):
85068         (build_trtable, group_nodes_into_DFAstates):
85069         Likewise.
85070         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85071         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85072         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85073         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85074         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85075         * lib/regcomp.c (optimize_subexps, lower_subexp):
85076         Work even if bitset_word has holes in its bitwise representation.
85077         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85078         * lib/regexec.c (check_dst_limits_calc_pos_1,
85079         check_subexp_matching_top):
85080         Likewise.
85081         * lib/regex_internal.c (re_string_reconstruct):
85082         Don't assume UCHAR_MAX == 255.
85083         * lib/regex_internal.h (bitset_set_all): Likewise.
85084         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85085         All uses changed.
85086         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85087         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85088         All uses changed.
85089         (BITSET_WORD_MAX): New macro.
85090         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85091         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85092         (bitset_empty, bitset_copy):
85093         Prefer sizeof (bitset) to multiplying it out ourselves.
85094         (bitset_not_merge): Remove; unused.
85095         (bitset_contain): Return bool, not unsigned int with one bit on.
85096         All callers changed.
85097         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85098         alignment than re_node_set; do this by defining a new internal
85099         type struct dests_alloc and using it to allocate memory.
85100
85101 2005-09-05  Bruno Haible  <bruno@clisp.org>
85102
85103         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85104         links.
85105
85106 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85107
85108         * modules/size_max (Makefile.am): Add size_max.h
85109
85110 2005-09-04  Derek Price  <derek@ximbiot.com>
85111
85112         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85113
85114 2005-09-03  Simon Josefsson  <jas@extundo.com>
85115
85116         * gnulib-tool: Fix typo.
85117
85118 2005-09-03  Simon Josefsson  <jas@extundo.com>
85119
85120         * config/srclist.txt: Add glibc bug 1293.
85121
85122 2005-09-03  Derek Price  <derek@ximbiot.com>
85123
85124         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85125         From Larry Jones <lawrence.jones@ugs.com>.
85126
85127 2005-09-02  Simon Josefsson  <jas@extundo.com>
85128
85129         * modules/socklen: New file.
85130
85131 2005-09-02  Simon Josefsson  <jas@extundo.com>
85132
85133         * modules/havelib: New module.
85134
85135         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85136         Use havelib.
85137
85138 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85139
85140         Check for arithmetic overflow when calculating sizes, to prevent
85141         some buffer-overflow issues.  These patches are conservative, in the
85142         sense that when I couldn't determine whether an overflow was possible,
85143         I inserted a run-time check.
85144         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85145         macros.
85146         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85147         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85148         (re_xnrealloc, re_x2nrealloc): New inline functions.
85149         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85150         parse_bracket_exp):
85151         (build_equiv_class, build_charclass): Check for arithmetic overflow
85152         in size expression calculations.
85153         * lib/regex_internal.c (re_string_realloc_buffers):
85154         (build_wcs_upper_buffer, re_node_set_add_intersect):
85155         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85156         (re_dfa_add_node, register_state): Likewise.
85157         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85158         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85159         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85160         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85161
85162 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85163
85164         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85165         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85166
85167 2005-09-02  Bruno Haible  <bruno@clisp.org>
85168
85169         Support for lib vs. lib64 distinction on biarch platforms.
85170         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85171         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85172         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85173
85174 2005-09-02  Bruno Haible  <bruno@clisp.org>
85175
85176         * gnulib-tool (import): In the other first-use case, provide defaults
85177         as well.
85178
85179 2005-09-02  Bruno Haible  <bruno@clisp.org>
85180
85181         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85182         patches not yet found in the latest gettext release.
85183
85184 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85185
85186         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85187         to avoid a collision with bits/local_lim.h in glibc.
85188         All uses changed.  Problem reported by Dmitry V. Levin in
85189         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85190
85191         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85192         bugs in int versus size_t comparisons.
85193         (re_string_context_at): Fix bug where the code assumed that
85194         Idx is signed.
85195
85196         Use bool where appropriate.
85197         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85198         All callers changed.
85199         (calc_eclosure_iter): Likewise, for ROOT arg.
85200         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85201         (build_charclass_op): Likewise, for NON_MATCH arg.
85202         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85203         (re_string_construct_common): Likewise, for ICASE arg.
85204         * lib/regexec.c (re_search_2_stub, re_search_stub):
85205         Likewise, for RET_LEN arg.
85206         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85207         (set_regs): Likewise, for FL_BACKTRACK arg.
85208         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85209         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85210         (calc_eclosure_iter, parse_bracket_exp):
85211         Use bool for internal variables that are booleans.
85212         * lib/regexec.c (re_search_internal, check_matching,
85213         proceed_next_node):
85214         (set_regs, build_sifted_states, sift_states_bkref):
85215         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85216         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85217         (find_collation_sequence_value):
85218         Likewise.
85219         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85220         (re_node_set_compare):
85221         Return bool, not int. All callers changed.
85222         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85223         (build_trtable, check_node_accept): Likewise.
85224         * lib/regex_internal.h: Include stdbool.h.
85225
85226         Fix bugs uncovered when converting to bool.
85227         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85228         failure instead of charging ahead blindly.
85229         * lib/regex_internal.c (register_state): Likewise.
85230         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85231         for freeing internal storage.
85232         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85233         bitset pieces used as boolean, to avoid undefined behavior
85234         on hosts that do int overflow checking.
85235
85236 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85237
85238         * config/srclist.txt: Add glibc bugs 1285-1287.
85239
85240 2005-09-01  Jim Meyering  <jim@meyering.net>
85241
85242         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85243         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85244         Require gl_STAT_MACROS, too.
85245
85246 2005-09-01  Bruno Haible  <bruno@clisp.org>
85247
85248         * gnulib-tool (import): In the first-use case, provide defaults.
85249
85250 2005-09-01  Bruno Haible  <bruno@clisp.org>
85251
85252         * gnulib-tool (func_import): Remove the .tmp files.
85253
85254 2005-09-01  Bruno Haible  <bruno@clisp.org>
85255
85256         * gnulib-tool (func_import): Fix handling of symbolic links.
85257
85258 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85259
85260         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85261         old glibc regex code mishandles strings longer than 2**31 bytes.
85262         This patch fixes this when the regex code is used in gnulib
85263         (i.e., outside glibc).
85264
85265         This patch should not affect the use of the regex code inside
85266         glibc.  No doubt this problem also needs to be handled for glibc
85267         as well, but the result will be an incompatible change to the
85268         glibc ABI, and the old ABI will have to be supported too.  That
85269         can be the the subject for another patch.
85270
85271         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85272         governing whether the rest of this patch is active.  By default,
85273         the macro is disabled and the patch has no effect.
85274         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85275         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85276         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85277         (re_match_2, re_set_registers): Use the new types.
85278         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85279         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85280         New macros.
85281         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85282         (re_string_context_at, bin_tree_t, re_dfastate_t):
85283         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85284         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85285         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85286         (re_string_char_size_at, re_string_wchar_at):
85287         (re_string_elem_size_at):
85288         Use the new types and macros to port to 64-bit hosts.
85289         Use unsigned types for internal values, so that the code
85290         mostly works even for arrays larger than SSIZE_MAX.
85291         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85292         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85293         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85294         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85295         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85296         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85297         (calc_inveclosure, parse_dup_op, build_range_exp):
85298         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85299         (fetch_number, create_token_tree, mark_opt_subexp):
85300         Likewise.
85301         * lib/regex_internal.c (re_string_construct_common,
85302         create_ci_newstate):
85303         (create_cd_newstate, re_string_allocate, re_string_construct):
85304         (re_string_realloc_buffers, build_wcs_upper_buffer):
85305         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85306         (re_string_reconstruct, re_string_peek_byte_case):
85307         (re_string_fetch_byte_case, re_string_context_at):
85308         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85309         (re_node_set_init_copy, re_node_set_add_intersect):
85310         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85311         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85312         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85313         (re_acquire_state, re_acquire_state_context, register_state):
85314         Likewise.
85315         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85316         search_cur_bkref_entry):
85317         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85318         (re_search_internal, re_search_2_stub, re_search_stub)
85319         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85320         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85321         (update_cur_sifted_state, check_dst_limits):
85322         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85323         (check_subexp_limits, sift_states_bkref, merge_state_array):
85324         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85325         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85326         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85327         (expand_bkref_cache, check_node_accept_bytes):
85328         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85329         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85330         (acquire_init_state_context, check_halt_node_context):
85331         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85332         (sift_states_backward, clean_state_log_if_needed):
85333         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85334         (find_recover_state, transit_state_sb, transit_state_mb):
85335         (transit_state_bkref, build_trtable, match_ctx_clean):
85336         Likewise.
85337         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85338         to work around an assumption that REG_MISSING is negative.
85339
85340         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85341         (seek_collating_symbol_entry) [defined _LIBC]:
85342         (lookup_collation_sequence_value) [defined _LIBC]:
85343         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85344         Use prototypes rather than old-style function definitions.
85345         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85346         (transit_state_sb) [0]:
85347         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85348
85349         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85350         rm_eo.
85351
85352         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85353         (optimize_subexps, lower_subexp):
85354         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85355         since the signed shift might overflow.  Use 1u<<31 instead.
85356         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85357         Likewise.
85358         * lib/regexec.c (check_dst_limits_calc_pos_1,
85359         check_subexp_matching_top): Likewise.
85360
85361         * lib/regcomp.c (optimize_subexps, lower_subexp):
85362         Use CHAR_BIT rather than 8, for clarity.
85363         * lib/regexec.c (check_dst_limits_calc_pos_1):
85364         (check_subexp_matching_top): Likewise.
85365         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85366         have to worry about portability issues when shifting it left.
85367         Remove no-longer-needed test for table_size > 0.
85368         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85369         in a word, as the resulting behavior is undefined.
85370         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85371         in one case, a <= should have been an <, and in another case the
85372         whole test was missing.
85373         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85374         the standard name CHAR_BIT.
85375         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85376         this is not true on one's complement and signed-magnitude hosts.
85377
85378         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85379         next_last_offset.
85380         (struct re_dfa_t): Remove unused member states_alloc.
85381         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85382
85383 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85384
85385         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85386         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85387         and large-file glibc and in 32-bit large-file Solaris.
85388
85389 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85390
85391         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85392         lengths fit in regoff_t; this isn't true if regoff_t is the same
85393         width as size_t.
85394         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85395         (= START + RANGE) instead of RANGE.  This avoids overflow
85396         problems when regoff_t is the same width as size_t.
85397         All callers changed.
85398         (re_search_2_stub): Check for overflow when adding the
85399         sizes of the two strings.
85400         (re_search_stub): Check for overflow when adding START
85401         to RANGE; if it occurs, substitute the extreme value.
85402
85403 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85404
85405         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85406
85407 2005-08-31  Jim Meyering  <jim@meyering.net>
85408
85409         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85410         a pointer-to-const.
85411         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85412         (register_state): Likewise.
85413         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85414         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85415         (group_nodes_into_DFAstates): Likewise.
85416
85417 2005-08-31  Jim Meyering  <jim@meyering.net>
85418
85419         * check-module: Add a FIXME comment.
85420
85421 2005-08-31  Eric Blake  <ebb9@byu.net>
85422
85423         * modules/unistd-safer (Files): Add unistd--.h.
85424         * modules/stdio-safer (Files): Add stdio--.h.
85425
85426 2005-08-31  Derek Price  <derek@ximbiot.com>
85427
85428         * lib/getdelim.c (getdelim): Return EOF on EOF.
85429         Reported by Larry Jones <lawrence.jones@ugs.com>.
85430
85431 2005-08-31  Bruno Haible  <bruno@clisp.org>
85432
85433         Avoid unnecessary diffs in the generated lib/Makefile.am.
85434         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85435         the generated files.
85436         (func_import): Don't set cmd.
85437
85438 2005-08-31  Bruno Haible  <bruno@clisp.org>
85439
85440         * lib/strstr.c: Include <stddef.h>, for NULL.
85441         * lib/strcasestr.c: Likewise.
85442         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85443
85444 2005-08-31  Bruno Haible  <bruno@clisp.org>
85445
85446         * gnulib-tool: New option --macro-prefix.
85447         (func_import): Use macro_prefix.
85448         (import): Handle option --macro-prefix.
85449
85450 2005-08-31  Bruno Haible  <bruno@clisp.org>
85451
85452         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85453         Also use new variables cached_lgpl, cached_libtool.
85454
85455 2005-08-31  Bruno Haible  <bruno@clisp.org>
85456
85457         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85458         always instantiating them.
85459
85460 2005-08-31  Bruno Haible  <bruno@clisp.org>
85461
85462         * gnulib-tool (func_import): Read the previous cached settings
85463         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85464         earlier added by gnulib but are now dropped. Warn when a gnulib file
85465         overwrites a non-gnulib file.
85466
85467 2005-08-31  Bruno Haible  <bruno@clisp.org>
85468
85469         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85470         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85471         projects that don't keep autogenerated files in CVS. Put into
85472         actioncmd only the specified modules, not the transitive closure.
85473
85474 2005-08-31  Bruno Haible  <bruno@clisp.org>
85475
85476         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85477         Create directories that shall be filled.
85478         (import): Don't look for gl_* macros in configure.ac. Recurse across
85479         all directories containing a gnulib-cache.m4 files, if meaningful.
85480
85481 2005-08-31  Bruno Haible  <bruno@clisp.org>
85482
85483         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85484         (import): Set seen_libtool when we see gl_LIBTOOL.
85485
85486 2005-08-31  Bruno Haible  <bruno@clisp.org>
85487
85488         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85489         declaration macro definitions from generated gnulib.m4.
85490
85491 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85492
85493         * lib/iconvme.h: Add prototype for iconv_alloc.
85494
85495 2005-08-29  Simon Josefsson  <jas@extundo.com>
85496
85497         * lib/iconvme.c: Fix errno.
85498
85499 2005-08-29  Bruno Haible  <bruno@clisp.org>
85500
85501         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85502         that it works when the directory contains spaces.
85503
85504 2005-08-29  Bruno Haible  <bruno@clisp.org>
85505
85506         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85507
85508 2005-08-29  Bruno Haible  <bruno@clisp.org>
85509
85510         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85511         Emit more advice.
85512
85513 2005-08-29  Bruno Haible  <bruno@clisp.org>
85514         and Stepan Kasal  <kasal@ucw.cz>
85515
85516         * check-module: If more parameters are given, check each of them
85517         separately; add more exceptions, as noted by Jim Meyering.
85518         (check_module): New procedure.
85519         (%exempt_header): Now contains all exceptions.
85520
85521 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85522
85523         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85524
85525 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85526
85527         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85528
85529 2005-08-28  Bruno Haible  <bruno@clisp.org>
85530
85531         * m4/gnulib-tool.m4: New file.
85532
85533 2005-08-27  Jim Meyering  <jim@meyering.net>
85534
85535         * modules/unistd-safer (Files): Add pipe-safer.c.
85536         * modules/fcntl-safer (Files): Add creat-safer.c.
85537
85538 2005-08-27  Jim Meyering  <jim@meyering.net>
85539
85540         * m4/stdlib-safer.m4: New file.  From coreutils.
85541         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85542         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85543         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85544         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85545         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85546
85547 2005-08-27  Jim Meyering  <jim@meyering.net>
85548
85549         * lib/fopen-safer.c: Merge minor changes from coreutils.
85550         * lib/dup-safer.c: Likewise.
85551         * lib/fd-safer.c: Likewise.
85552
85553         Merge from coreutils.
85554         * lib/stdio--.h: New file.
85555         * lib/stdlib--.h: New file.
85556         * lib/mkstemp-safer.c: New file.
85557
85558         GNU tar needs these.
85559         * lib/pipe-safer.c: New file.
85560         * lib/creat-safer.c: New file.
85561         * lib/fcntl--.h (creat): Define to creat_safer.
85562         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85563         * lib/unistd--.h (pipe): Define to pipe_safer.
85564         * lib/unistd-safer.h: Declare pipe_safer.
85565
85566 2005-08-26  Simon Josefsson  <jas@extundo.com>
85567
85568         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85569         Haible <bruno@clisp.org>.
85570
85571 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85572
85573         * lib/regex_internal.h: Remove all references to
85574         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85575         or better.
85576         (bitset_not, bitset_merge, bitset_not_merge):
85577         (bitset_mask, re_string_allocate, re_string_construct):
85578         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85579         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85580         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85581         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85582         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85583         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85584         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85585         (re_acquire_state_context):
85586         Remove unnecessary forward decls.
85587         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85588         Put __attribute at function definition,
85589         now that the function decl has been removed.
85590         * lib/regex_internal.c (re_string_peek_byte_case):
85591         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85592         Likewise.
85593
85594 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85595
85596         * m4/regex.m4: Add AC_PREREQ(2.50).
85597         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85598
85599 2005-08-25  Simon Josefsson  <jas@extundo.com>
85600
85601         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85602         __fsetlocking.
85603
85604 2005-08-25  Simon Josefsson  <jas@extundo.com>
85605
85606         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85607         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85608         GLIBC specific code.
85609
85610 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85611
85612         Make regex safe for g++.  This fixes one real bug (an "err"
85613         that should have been "*err").  g++ problem reported by
85614         Sam Steingold.
85615         * lib/regex_internal.h (re_calloc): New macro, consistent with
85616         re_malloc etc.  All callers of calloc changed to use re_calloc.
85617         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85618         not int.  All callers changed.
85619         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85620         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85621         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85622         (find_recover_state): Change "err" to "*err"; this fixes what
85623         appears to be a real bug.
85624         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85625         versus int.
85626
85627 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85628
85629         * modules/regex (Depends-on): Add malloc, since the code
85630         assumes that !malloc(0) means failure.
85631
85632 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85633
85634         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85635
85636         alloca modernization/simplification for regex.
85637         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85638         needs to be at the start of the file, and can be moved into
85639         regex_internal.h and simplified.
85640         * lib/regex_internal.h: Include <alloca.h>.
85641         (__libc_use_alloca) [!defined _LIBC]: New macro.
85642         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85643         now works outside glibc.
85644
85645 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85646
85647         * config/srclist.txt: Add glibc bugs 1241, 1245.
85648
85649 2005-08-25  Jim Meyering  <jim@meyering.net>
85650
85651         * lib/open-safer.c: Include <config.h>.
85652         Otherwise, we'd lose LARGEFILE support in any file using
85653         e.g. "fcntl--.h"
85654
85655 2005-08-25  Bruno Haible  <bruno@clisp.org>
85656
85657         * m4/minmax.m4: Require autoconf 2.52.
85658         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85659         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85660         alternatives of translit over the alphabet.
85661         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85662
85663 2005-08-24  Simon Josefsson  <jas@extundo.com>
85664
85665         * tests/test-getpass.c: New file.
85666
85667 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85668
85669         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85670         for GNU regex features.
85671
85672 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85673
85674         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85675         * lib/regex.h (regerror): Likewise.
85676
85677         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85678         requires this.  (The code never needed it.)
85679
85680         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85681         All uses of recently-renamed identifiers changed to use the new,
85682         POSIX-compliant names.  The code will build and run just fine
85683         without these changes, but it's better to eat our own dog food
85684         and use the standard-conforming names.
85685
85686         * lib/regex.h: Fix a multitude of POSIX name space violations.
85687         These changes have an effect only for programs that define
85688         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85689         do not change anything for programs compiled in the normal way.
85690         Also, there is no effect on the ABI.
85691
85692         (_REGEX_SOURCE): New macro.
85693         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85694         defined and _GNU_SOURCE is not; this fixes a name space violation.
85695
85696         Rename the following macros to obey POSIX requirements.
85697         The old names are still visible as macros if _REGEX_SOURCE is defined.
85698         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85699         RE_BACKSLASH_ESCAPE_IN_LISTS.
85700         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85701         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85702         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85703         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85704         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85705         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85706         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85707         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85708         (REG_INTERVALS): renamed from RE_INTERVALS.
85709         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85710         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85711         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85712         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85713         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85714         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85715         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85716         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85717         RE_UNMATCHED_RIGHT_PAREN_ORD.
85718         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85719         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85720         (REG_DEBUG): renamed from RE_DEBUG.
85721         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85722         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85723         unusual, since we can't clash with the POSIX REG_ICASE.
85724         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85725         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85726         (REG_NO_SUB): renamed from RE_NO_SUB.
85727         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85728         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85729         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85730         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85731         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85732         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85733         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85734         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85735         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85736         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85737         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85738         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85739         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85740         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85741         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85742         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85743         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85744         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85745         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85746         (REG_FIXED): Renamed from REGS_FIXED.
85747         (REG_NREGS): Renamed from RE_NREGS.
85748
85749         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85750         of other REG_* macros, since POSIX says the user is allowed to
85751         #undef these macros selectively.
85752
85753         (reg_errcode_t): Update comment stating what other tables need
85754         to be consistent.
85755
85756         Rename the following enum values to obey POSIX requirements.
85757         The old names are still visible as macros.
85758         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85759         is not defined, since GNU is supposed to be a superset of POSIX as
85760         much as possible, and since we want reg_errcode_t to be a signed
85761         type for implementation consistency.
85762         (_REG_NOERROR): Renamed from REG_NOERROR.
85763         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85764         (_REG_BADPAT): Renamed from REG_BADPAT.
85765         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85766         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85767         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85768         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85769         (_REG_EBRACK): Renamed from REG_EBRACK.
85770         (_REG_EPAREN): Renamed from REG_EPAREN.
85771         (_REG_EBRACE): Renamed from REG_EBRACE.
85772         (_REG_BADBR): Renamed from REG_BADBR.
85773         (_REG_ERANGE): Renamed from REG_ERANGE.
85774         (_REG_ESPACE): Renamed from REG_ESPACE.
85775         (_REG_BADRPT): Renamed from REG_BADRPT.
85776         (_REG_EEND): Renamed from REG_EEND.
85777         (_REG_ESIZE): Renamed from REG_ESIZE.
85778         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85779         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85780         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85781         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85782         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85783
85784         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85785         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85786         changed.  But support the old name if the new one is not defined
85787         and if _REGEX_SOURCE.
85788
85789         Change the following member names in struct re_pattern_buffer.
85790         The old names are still supported if !_REGEX_SOURCE.
85791         The new names are always supported, regardless of _REGEX_SOURCE.
85792         (re_buffer): Renamed from buffer.
85793         (re_allocated): Renamed from allocated.
85794         (re_used): Renamed from used.
85795         (re_syntax): Renamed from syntax.
85796         (re_fastmap): Renamed from fastmap.
85797         (re_translate): Renamed from translate.
85798         (re_can_be_null): Renamed from can_be_null.
85799         (re_regs_allocated): Renamed from regs_allocated.
85800         (re_fastmap_accurate): Renamed from fastmap_accurate.
85801         (re_no_sub): Renamed from no_sub.
85802         (re_not_bol): Renamed from not_bol.
85803         (re_not_eol): Renamed from not_eol.
85804         (re_newline_anchor): Renamed from newline_anchor.
85805
85806         Change the following member names in struct re_registers.
85807         The old names are still supported if !_REGEX_SOURCE.
85808         The new names are always supported, regardless of _REGEX_SOURCE.
85809         (rm_num_regs): Renamed from num_regs.
85810         (rm_start): Renamed from start.
85811         (rm_end): Renamed from end.
85812
85813         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85814         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85815         Prepend __ to parameter names.
85816
85817         Undo yesterday's changes.
85818
85819 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85820
85821         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85822         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85823         lib/regex.c.
85824
85825 2005-08-24  Jim Meyering  <jim@meyering.net>
85826
85827         Sync from coreutils.
85828         * m4/fcntl-safer.m4: New file.
85829
85830         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85831         and object files for this module.
85832
85833 2005-08-24  Jim Meyering  <jim@meyering.net>
85834
85835         Sync from coreutils.
85836         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85837
85838 2005-08-24  Jim Meyering  <jim@meyering.net>
85839
85840         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85841         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85842
85843 2005-08-24  Jim Meyering  <jim@meyering.net>
85844
85845         * modules/fcntl-safer: New module.
85846         * modules/fts (Depends-on): Add fcntl-safer.
85847         * MODULES.html.sh (File descriptor based Input/Output):
85848         Add fcntl-safer.
85849
85850 2005-08-24  Bruno Haible  <bruno@clisp.org>
85851
85852         Support for unit test modules.
85853         * modules/README: Mention tests modules.
85854         * modules/TEMPLATE-TESTS: New file.
85855         * gnulib-tool: New options --extract-tests-module, --with-tests and
85856         --tests-base (unused for the moment).
85857         (testsbase, inctests): New variables.
85858         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85859         (func_verify_module): Exclude TEMPLATE-TESTS.
85860         (func_verify_nontests_module, func_verify_tests_module): New functions.
85861         (func_get_dependencies): Add implicit dependency for tests modules.
85862         (func_get_tests_module): New function.
85863         (func_modules_transitive_closure): When --with-tests was specified,
85864         include the unit tests as well, unless explicitly avoided.
85865         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85866         (func_emit_tests_Makefile_am): New function.
85867         (func_create_testdir): When --with-tests was specified, emit a
85868         tests/ directory.
85869         * MODULES.html.sh (Future developments): Update.
85870
85871 2005-08-24  Bruno Haible  <bruno@clisp.org>
85872
85873         * modules/tls-tests: New file.
85874         * tests/test-tls.c: New file, from GNU gettext.
85875
85876 2005-08-24  Bruno Haible  <bruno@clisp.org>
85877
85878         * modules/lock-tests: New file.
85879         * tests/test-lock.c: New file, from GNU gettext.
85880
85881 2005-08-24  Bruno Haible  <bruno@clisp.org>
85882
85883         * lib/lock.h: Add multiple inclusion guard.
85884         * lib/tls.h: Add multiple inclusion guard.
85885
85886 2005-08-24  Bruno Haible  <bruno@clisp.org>
85887
85888         * gnulib-tool: Add support for the --aux-dir option to
85889         --create-testdir, --create-megatestdir, --test, --megatest.
85890         (func_create_testdir, func_create_megatestdir): Optionally emit a
85891         AC_CONFIG_AUX_DIR directive.
85892         (create-testdir, create-megatestdir, test, megatest): Provide a
85893         default value for $auxdir.
85894
85895 2005-08-24  Bruno Haible  <bruno@clisp.org>
85896
85897         * gnulib-tool (import): Use compound statement instead of subshell
85898         where possible.
85899
85900 2005-08-24  Bruno Haible  <bruno@clisp.org>
85901
85902         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85903
85904 2005-08-24  Bruno Haible  <bruno@clisp.org>
85905
85906         * gnulib-tool (func_version): Update.
85907
85908 2005-08-24  Bruno Haible  <bruno@clisp.org>
85909
85910         * gnulib-tool (func_import, func_create_testdir,
85911         func_create_megatestdir): Quote all autoconf macro arguments.
85912
85913 2005-08-24  Bruno Haible  <bruno@clisp.org>
85914
85915         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85916         option --force, because --force causes the aclocal.m4 of each
85917         subdirectory to be newer than the corresponding config.h.in.
85918
85919 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85920
85921         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85922         All contents moved to gl_REGEX.
85923         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85924         assume that it does.
85925
85926 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85927
85928         * lib/regex.h (REG_NOSYS)
85929         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85930         Define, since POSIX requires it as of 2001.
85931         (_REG_ENOSYS)
85932         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85933         New private symbol, used to keep the enum signed in all cases.
85934         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85935         Youngman in
85936         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85937
85938         * lib/regex_internal.c (re_string_skip_chars, register_state):
85939         (calc_state_hash):
85940         Remove forward decls; no longer needed now that we use prototypes.
85941         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85942         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85943         (clean_state_log_if_needed): Likewise.
85944
85945 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85946
85947         * config/srclist.txt: Add glibc bugs 1231-1233.
85948
85949 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85950
85951         Fix problems reported by Sam Steingold in
85952         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85953         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85954         assumed that reg_errcode_t is a signed type, which is not
85955         necessarily true if _XOPEN_SOURCE is not defined.
85956         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85957         since some compilers warn about it otherwise.
85958
85959 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85960
85961         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85962         (init_word_char, create_initial_state, duplicate_node_closure):
85963         (fetch_token, peek_token_bracket, build_range_exp):
85964         (build_collating_symbol): Remove forward decls; no longer needed
85965         now that we use prototypes.
85966
85967         * lib/regcomp.c:
85968         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85969         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85970         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85971         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85972         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85973         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85974         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85975         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85976         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85977         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85978         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85979         (build_charclass, build_charclass_op, fetch_number, create_tree):
85980         (create_token_tree, mark_opt_subexp, duplicate_tree):
85981         Use prototypes rather than old-style definitions.
85982
85983         * lib/regex_internal.c:
85984         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85985         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85986         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85987         (re_string_reconstruct, re_string_peek_byte_case):
85988         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85989         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85990         (re_node_set_init_copy, re_node_set_add_intersect):
85991         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85992         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85993         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85994         (re_acquire_state, re_acquire_state_context, register_state):
85995         (create_ci_newstate, create_cd_newstate, free_state):
85996         Likewise.
85997         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85998         re_search_2):
85999         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86000         (re_search_internal, prune_impossible_nodes):
86001         (acquire_init_state_context, check_matching, static):
86002         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86003         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86004         (update_regs, sift_states_backward, build_sifted_states):
86005         (clean_state_log_if_needed, merge_state_array):
86006         (update_cur_sifted_state, add_epsilon_src_nodes):
86007         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86008         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86009         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86010         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86011         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86012         (check_arrival, check_arrival_add_next_nodes):
86013         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86014         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86015         (check_node_accept_bytes, check_node_accept, extend_buffers):
86016         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86017         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86018         (sift_ctx_init):
86019         Likewise.
86020
86021         * lib/regex_internal.h:
86022         (re_string_allocate, re_string_construct, re_string_reconstruct):
86023         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86024         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86025         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86026         (re_string_context_at, re_string_peek_byte_case):
86027         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86028         is defined, since we now use prototypes always.
86029
86030         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86031         C89 or better.  All uses removed.
86032
86033 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86034
86035         * config/srclist.txt: Add glibc bugs 1220-1227.
86036
86037 2005-08-20  Jim Meyering  <jim@meyering.net>
86038
86039         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86040         of unused local, dfa.
86041
86042 2005-08-20  Bruno Haible  <bruno@clisp.org>
86043
86044         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86045
86046 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86047
86048         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86049         (re_node_set_insert_last, re_dfa_add_node):
86050         Rename local variables to avoid GCC shadowing warnings.
86051
86052 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86053
86054         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86055         [defined lint]: Suppress bogus uninitialized-variable warnings.
86056
86057         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86058         and let the caller return REG_ESPACE if out of space.  This
86059         removes an uninitialied-variable warning with GCC 4.0.1, and also
86060         avoids taking the address of a local variable.  All callers
86061         changed.
86062
86063 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86064
86065         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86066         $LIBCSRC/posix/regexec.c.
86067         Add glibc bug 1217 for regcomp.c.
86068
86069 2005-08-19  Jim Meyering  <jim@meyering.net>
86070
86071         * lib/regexec.c (proceed_next_node): Redo local variables to
86072         avoid GCC shadowing warnings.
86073
86074 2005-08-18  Bruno Haible  <bruno@clisp.org>
86075
86076         * lib/strstr.c (strstr): Fix return value in multibyte case.
86077         * lib/strcasestr.c (strcasestr): Likewise.
86078
86079 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86080
86081         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86082
86083 2005-08-17  Jim Meyering  <jim@meyering.net>
86084
86085         Make the %s format (seconds since the epoch) work for a negative
86086         number and when used with a zero-padded field width, e.g. %015s.
86087
86088         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86089         label so that it precedes the code to set `digits'.  Otherwise,
86090         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86091         print `00-22'.  Now, it prints `-0022', as it should.
86092
86093 2005-08-17  Bruno Haible  <bruno@clisp.org>
86094
86095         * modules/strstr (Files): Add m4/mbrtowc.m4.
86096         (Depends-on): Add mbuiter.
86097
86098 2005-08-17  Bruno Haible  <bruno@clisp.org>
86099
86100         * modules/strcasestr: New file.
86101         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86102         strcasestr.
86103
86104 2005-08-17  Bruno Haible  <bruno@clisp.org>
86105
86106         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86107
86108 2005-08-17  Bruno Haible  <bruno@clisp.org>
86109
86110         * modules/mbuiter: New file.
86111         * MODULES.html.sh (Extended multibyte and wide character utilities):
86112         Add mbuiter.
86113
86114 2005-08-17  Bruno Haible  <bruno@clisp.org>
86115
86116         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86117         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86118
86119 2005-08-17  Bruno Haible  <bruno@clisp.org>
86120
86121         * m4/strcasestr.m4: New file.
86122
86123 2005-08-17  Bruno Haible  <bruno@clisp.org>
86124
86125         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86126         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86127
86128 2005-08-17  Bruno Haible  <bruno@clisp.org>
86129
86130         * lib/strcasestr.h: New file.
86131         * lib/strcasestr.c: New file.
86132
86133 2005-08-17  Bruno Haible  <bruno@clisp.org>
86134
86135         * lib/strcasecmp.c: Use mbuiter.h.
86136
86137 2005-08-17  Bruno Haible  <bruno@clisp.org>
86138
86139         * lib/mbuiter.h: New file.
86140
86141 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86142
86143         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86144         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86145         and gl_GETOPT are both invoked via different paths (as happens
86146         with GNU tar CVS because it uses both argp and getopt), the former
86147         wins.
86148
86149 2005-08-16  Bruno Haible  <bruno@clisp.org>
86150
86151         * modules/tls: New file.
86152         * MODULES.html.sh (Multithreading): Add tls.
86153
86154 2005-08-16  Bruno Haible  <bruno@clisp.org>
86155
86156         * modules/strnlen1: New file.
86157         * MODULES.html.sh (String handling): Add strnlen1.
86158
86159 2005-08-16  Bruno Haible  <bruno@clisp.org>
86160
86161         * modules/strcase (Files): Add m4/mbrtowc.m4.
86162         (Depends-on): Add strnlen1, mbchar.
86163
86164 2005-08-16  Bruno Haible  <bruno@clisp.org>
86165
86166         * modules/mbiter: New file.
86167         * MODULES.html.sh (Extended multibyte and wide character utilities):
86168         Add mbiter.
86169
86170 2005-08-16  Bruno Haible  <bruno@clisp.org>
86171
86172         * modules/mbfile: New file.
86173         * MODULES.html.sh (Extended multibyte and wide character utilities):
86174         Add mbfile.
86175
86176 2005-08-16  Bruno Haible  <bruno@clisp.org>
86177
86178         * modules/mbchar: New file.
86179         * MODULES.html.sh (Extended multibyte and wide character utilities):
86180         New section.
86181
86182 2005-08-16  Bruno Haible  <bruno@clisp.org>
86183
86184         * m4/tls.m4: New file, from GNU gettext.
86185
86186 2005-08-16  Bruno Haible  <bruno@clisp.org>
86187
86188         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86189         always.
86190         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86191
86192 2005-08-16  Bruno Haible  <bruno@clisp.org>
86193
86194         * m4/mbiter.m4: New file.
86195
86196 2005-08-16  Bruno Haible  <bruno@clisp.org>
86197
86198         * m4/mbfile.m4: New file.
86199
86200 2005-08-16  Bruno Haible  <bruno@clisp.org>
86201
86202         * m4/mbchar.m4: New file.
86203
86204 2005-08-16  Bruno Haible  <bruno@clisp.org>
86205
86206         * lib/tls.h: New file, from GNU gettext.
86207         * lib/tls.c: New file, from GNU gettext.
86208
86209 2005-08-16  Bruno Haible  <bruno@clisp.org>
86210
86211         * lib/strnlen1.h: New file.
86212         * lib/strnlen1.c: New file.
86213
86214 2005-08-16  Bruno Haible  <bruno@clisp.org>
86215
86216         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86217         (mbi_init): Update.
86218         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86219         NUL byte, not after it.
86220
86221 2005-08-16  Bruno Haible  <bruno@clisp.org>
86222
86223         * lib/strcase.h (strcasecmp): Add note in comments.
86224         * lib/strncasecmp.c: Use code from strcasecmp.c.
86225         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86226         (strcasecmp): Work correctly in multibyte locales.
86227
86228 2005-08-16  Bruno Haible  <bruno@clisp.org>
86229
86230         * lib/mbiter.h: New file.
86231
86232 2005-08-16  Bruno Haible  <bruno@clisp.org>
86233
86234         * lib/mbfile.h: New file.
86235
86236 2005-08-16  Bruno Haible  <bruno@clisp.org>
86237
86238         * lib/mbchar.h: New file.
86239         * lib/mbchar.c: New file.
86240
86241 2005-08-16  Bruno Haible  <bruno@clisp.org>
86242
86243         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86244         the valid ones. Makes the comparison operations transitive:
86245         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86246         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86247
86248 2005-08-15  Simon Josefsson  <jas@extundo.com>
86249
86250         * modules/ssize_t (License): Change to 'unlimited'.
86251
86252         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86253
86254 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86255
86256         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86257         Add comments for each pending glibc patch.
86258
86259 2005-08-15  Bruno Haible  <bruno@clisp.org>
86260
86261         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86262         __cplusplus is defined.
86263
86264 2005-08-14  Jim Meyering  <jim@meyering.net>
86265
86266         Sync from coreutils.
86267
86268         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86269         Use the hash-table-based cycle-detection code not just when
86270         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86271         Reported by James Youngman in
86272         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86273         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86274         FTS_TIGHT_CYCLE_CHECK.
86275         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86276         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86277         once again.
86278         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86279         * lib/fts.c (fd_safer): Remove decl.
86280         Include fcntl--.h rather than unistd-safer.h
86281         (fts_safe_changedir): Don't call fd_safer; no longer needed
86282         now that we include fcntl--.h.
86283
86284 2005-08-12  Simon Josefsson  <jas@extundo.com>
86285
86286         * modules/getndelim2: Use ssize_t module.
86287         * modules/getnline: Likewise.
86288         * modules/safe-read: Likewise.
86289         * modules/xreadlink: Likewise.
86290
86291         * modules/ssize_t: New file.
86292
86293 2005-08-12  Simon Josefsson  <jas@extundo.com>
86294
86295         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86296
86297 2005-08-12  Simon Josefsson  <jas@extundo.com>
86298
86299         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86300         ssize_t.
86301
86302 2005-08-12  Simon Josefsson  <jas@extundo.com>
86303
86304         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86305         readline, getdelim and check_version.
86306         (Support for systems lacking ISO C 99: Sizes of integer types):
86307         Add size_max.
86308
86309 2005-08-12  Bruno Haible  <bruno@clisp.org>
86310
86311         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86312
86313 2005-08-11  Simon Josefsson  <jas@extundo.com>
86314
86315         * modules/readline: New file.
86316
86317         * modules/strnlen (Files): Add strnlen.h.
86318
86319 2005-08-11  Simon Josefsson  <jas@extundo.com>
86320
86321         * m4/readline.m4: New file.
86322
86323 2005-08-11  Simon Josefsson  <jas@extundo.com>
86324
86325         * lib/readline.h, readline.c: New file.
86326
86327 2005-08-11  Simon Josefsson  <jas@extundo.com>
86328
86329         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86330         gl_AVOID.
86331
86332 2005-08-11  Bruno Haible  <bruno@clisp.org>
86333
86334         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86335
86336 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86337
86338         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86339
86340 2005-08-10  Simon Josefsson  <jas@extundo.com>
86341
86342         * tests/test-iconvme.c: New file.
86343
86344 2005-08-10  Simon Josefsson  <jas@extundo.com>
86345
86346         * m4/strnlen.m4: New file.
86347
86348         * m4/strndup.m4: Don't check for strnlen declaration, done in
86349         strnlen.m4.
86350
86351 2005-08-10  Simon Josefsson  <jas@extundo.com>
86352
86353         * lib/strndup.c: Use strnlen.h.
86354
86355         * lib/strnlen.h: New file.
86356
86357 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86358
86359         * README: Typos.
86360
86361 2005-08-02  Simon Josefsson  <jas@extundo.com>
86362
86363         * modules/readline: New file.
86364
86365 2005-08-02  Simon Josefsson  <jas@extundo.com>
86366
86367         * modules/getdelim: New file.
86368
86369         * modules/getline: Rewrite, don't use getndelim2.
86370
86371 2005-08-02  Simon Josefsson  <jas@extundo.com>
86372
86373         * m4/getline.m4: Separate out getdelim stuff into separate module.
86374
86375         * m4/getdelim.m4: New file.
86376
86377 2005-08-02  Simon Josefsson  <jas@extundo.com>
86378
86379         * lib/getline.h, getline.c: Rewrite.
86380
86381         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86382
86383 2005-07-31  Bruno Haible  <bruno@clisp.org>
86384
86385         * lib/lock.h (gl_lock_initializer): New macro.
86386         (gl_lock_define_initialized): Use it.
86387         (gl_rwlock_initializer): New macro.
86388         (gl_rwlock_define_initialized): Use it.
86389         (gl_recursive_lock_initializer): New macro.
86390         (gl_recursive_lock_define_initialized): Use it.
86391
86392 2005-07-30  Karl Berry  <karl@gnu.org>
86393
86394         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86395         Report from Ben Pfaff, regarding getopt.
86396
86397 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86398
86399         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86400         normal way.
86401         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86402         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86403         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86404         (gl_GETOPT): Use the new macros.  Most of the implementation
86405         is moved to the new macros.  This is for programs like Emacs
86406         that don't want all the functionality of gl_GETOPT.
86407
86408 2005-07-26  Bruno Haible  <bruno@clisp.org>
86409
86410         * m4/lock.m4: Update from GNU gettext.
86411
86412 2005-07-26  Bruno Haible  <bruno@clisp.org>
86413
86414         * lib/lock.h: Update from GNU gettext.
86415         * lib/lock.c: Update from GNU gettext.
86416
86417 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86418
86419         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86420         obsolescent AC_TRY_RUN.  Include the default includes files, for
86421         'exit'.
86422
86423 2005-07-24  Bruno Haible  <bruno@clisp.org>
86424
86425         * modules/visibility: New file.
86426         * MODULES.html.sh (Misc): Add visibility.
86427
86428 2005-07-24  Bruno Haible  <bruno@clisp.org>
86429
86430         * m4/visibility.m4: New file.
86431
86432 2005-07-24  Bruno Haible  <bruno@clisp.org>
86433
86434         * doc/visibility.texi: New file.
86435
86436 2005-07-22  Bruno Haible  <bruno@clisp.org>
86437
86438         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86439         $(ALLOCA_H), redundant through BUILT_SOURCES.
86440         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86441         redundant through BUILT_SOURCES.
86442         * modules/byteswap (Makefile.am): Remove explicit dependency on
86443         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86444         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86445         $(FNMATCH_H), redundant through BUILT_SOURCES.
86446         * modules/getopt (Makefile.am): Remove explicit dependency on
86447         $(GETOPT_H), redundant through BUILT_SOURCES.
86448         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86449         redundant through BUILT_SOURCES.
86450         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86451         redundant through BUILT_SOURCES.
86452         * modules/stdbool (Makefile.am): Remove explicit dependency on
86453         $(STDBOOL_H), redundant through BUILT_SOURCES.
86454         * modules/stdint (Makefile.am): Remove explicit dependency on
86455         $(STDINT_H), redundant through BUILT_SOURCES.
86456         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86457         Remove explicit dependency on $(SYSEXITS_H).
86458         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86459
86460 2005-07-18  Simon Josefsson  <jas@extundo.com>
86461
86462         * lib/check-version.c (check_version): Accept identical versions too.
86463
86464 2005-07-18  Bruno Haible  <bruno@clisp.org>
86465
86466         * modules/lock: New file.
86467         * MODULES.html.sh (Multithreading): New section.
86468
86469 2005-07-18  Bruno Haible  <bruno@clisp.org>
86470
86471         * m4/lock.m4: New file, from GNU gettext.
86472
86473 2005-07-18  Bruno Haible  <bruno@clisp.org>
86474
86475         * lib/lock.h: New file, from GNU gettext.
86476         * lib/lock.c: New file, from GNU gettext.
86477
86478 2005-07-18  Bruno Haible  <bruno@clisp.org>
86479
86480         * lib/lock.h (gl_once_t): New type.
86481         (gl_once_define, gl_once): New macros.
86482         * lib/lock.c (fresh_once): New variable.
86483         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86484         functions.
86485
86486 2005-07-16  Simon Josefsson  <jas@extundo.com>
86487
86488         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86489         workaround, suggested by Bruno.
86490
86491 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86492
86493         * modules/xalloc (Depends-on): Add xalloc-die.
86494         * modules/xvasprintf (Depends-on): Add xalloc-die.
86495
86496 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86497
86498         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86499         with a minor change.
86500
86501 2005-07-15  Bruno Haible  <bruno@clisp.org>
86502
86503         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86504         When using lib/poll.c, define poll as rpl_poll.
86505
86506 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86507
86508         * modules/argp (Depends-on): Remove unlocked-io.
86509
86510 2005-07-14  Derek Price  <derek@ximbiot.com>
86511
86512         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86513         for glob symlink bug.
86514
86515 2005-07-14  Bruno Haible  <bruno@clisp.org>
86516
86517         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86518         Instead, test for *_unlocked function declarations directly.
86519
86520 2005-07-11  Simon Josefsson  <jas@extundo.com>
86521
86522         * modules/size_max: New file.
86523
86524         * modules/xsize: Depend on size_max module for size_max.m4.
86525
86526 2005-07-11  Simon Josefsson  <jas@extundo.com>
86527
86528         * lib/size_max.h: New file.
86529
86530 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86531
86532         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86533         copyright symbol and the year.
86534         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86535         (version_etc_va): Use parameterized copyright notice.
86536         Reword to conform to the current GNU coding standards.
86537
86538 2005-07-11  Karl Berry  <karl@gnu.org>
86539
86540         * doc/gnulib.texi (Quoting): new node.
86541         (Initial import): more info, from Patrice.
86542
86543 2005-07-11  Bruno Haible  <bruno@clisp.org>
86544
86545         * gnulib-tool (func_usage): Document option --avoid.
86546         (Command line options): Handle --avoid.
86547         (func_acceptable): New function.
86548         (func_modules_transitive_closure): Use it.
86549
86550 2005-07-11  Bruno Haible  <bruno@clisp.org>
86551
86552         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86553         Reported by Jim Meyering.
86554
86555 2005-07-10  Bruno Haible  <bruno@clisp.org>
86556
86557         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86558         Needed when size_t is smaller than 'unsigned int'.
86559         Reported by Paul Eggert.
86560
86561 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86562
86563         * modules/argp (Depends-on): Add unlocked-io
86564
86565 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86566
86567         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86568         block of defines.
86569
86570 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86571
86572         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86573         fix now.
86574
86575 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86576         and Paul Eggert  <eggert@cs.ucla.edu>
86577
86578         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86579         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86580
86581 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86582
86583         * modules/regex (Files): Add lib/regex_internal.c,
86584         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86585         (Depends-on): Add extensions.
86586         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86587
86588 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86589
86590         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86591         pathconf.
86592         * m4/same.m4 (gl_SAME): Likewise.
86593         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86594
86595         * m4/regex.m4: Adjust to new libc regex implementation.
86596         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86597         all the .c and .h parts of (the new) regex.
86598         Quote the m4 stuff better.
86599         Check for RE_ICASE bug of old gnulib.
86600         Check for REG_STARTEND of recent libc.
86601         Rename local variables from jm_* to gl_*.
86602         Quote operand of "test -f".
86603         Say "recent enough" version of libc, not "version 2".
86604         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86605         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86606         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86607         Remove check for btowc, isascii.
86608         Require AM_LANGINFO_CODESET.
86609
86610 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86611
86612         * lib/regex.c, regex.h: Sync from libc.
86613         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86614         * lib/regexec.c:
86615         New files, synced from libc, except that regex_internal.h
86616         currently has a small porting fix.
86617
86618 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86619
86620         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86621         regex_internal.c, regexec.c.
86622         Add regex_internal.h too, but as a comment, since the libc version
86623         is currently broken in gnulib mode.
86624
86625 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86626
86627         Support programs like Emacs that use gnulib but not gettext.
86628         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86629         * modules/gettext-h: New file.
86630         * modules/gettext (Files): Remove lib/gettext.h.
86631         (Depends-on): Add gettext-h.
86632         (Makefile.am): Remove lib_SOURCES.
86633         * modules/argmatch, modules/c-stack, modules/closeout:
86634         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86635         * modules/execute, modules/file-type, modules/getaddrinfo:
86636         * modules/getopt, modules/human, modules/javacomp:
86637         * modules/javaexec, modules/mkdir-p, modules/obstack:
86638         * modules/openat, modules/pagealign_alloc, modules/pipe:
86639         * modules/quotearg, modules/regex, modules/rpmatch:
86640         * modules/unicodeio, modules/userspec, modules/version-etc:
86641         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86642         * modules/xsetenv:
86643         Depend on gettext-h, not gettext.
86644
86645 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86646
86647         * gnulib-tool (func_import): Add support for 'public domain' license.
86648         * modules/alloca, modules/atexit, modules/memmove:
86649         Now public domain, not GPL.
86650         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86651         * modules/realloc, modules/strerror, modules/strtod:
86652         Now LGPL, not GPL.
86653
86654 2005-07-05  Bruno Haible  <bruno@clisp.org>
86655
86656         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86657         autoconf CVS. Needed for mingw.
86658
86659 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86660
86661         Remove the dependency of the strftime module on the tzset module.
86662         * modules/strftime (Depends-on): Remove dependency on tzset.
86663
86664 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86665
86666         Remove the dependency of the strftime module on the tzset module.
86667         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86668         gl_FUNC_TZSET_CLOBBER.
86669
86670 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86671
86672         Remove the dependency of the strftime module on the tzset module.
86673         * lib/strftime.c (my_strftime)
86674         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86675         Copy the input structure, to work around some of the bug with
86676         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86677         Solaris releases, you should also use the tzset module, but we won't
86678         require it as a dependency any more since we don't want LGPLed code
86679         to depend on GPLed code.
86680
86681 2005-07-02  Jim Meyering  <jim@meyering.net>
86682
86683         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86684         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86685         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86686         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86687
86688 2005-07-02  Jim Meyering  <jim@meyering.net>
86689
86690         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86691
86692 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86693
86694         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86695         declares only 'struct timespec;' (!).
86696
86697 2005-07-01  Jim Meyering  <jim@meyering.net>
86698
86699         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86700         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86701         * lib/save-cwd.c, tempname.c:
86702         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86703         and don't include <sys/file.h>).
86704
86705 2005-06-29  Jim Meyering  <jim@meyering.net>
86706
86707         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86708         type name.  Use the variable name instead.
86709         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86710         Likewise.
86711
86712 2005-06-28  Simon Josefsson  <jas@extundo.com>
86713
86714         * modules/check-version (Files): Add check-version.m4.
86715
86716 2005-06-28  Simon Josefsson  <jas@extundo.com>
86717
86718         * m4/check-version.m4: New file, suggested by Jim Meyering
86719         <jim@meyering.net>.
86720
86721 2005-06-28  Simon Josefsson  <jas@extundo.com>
86722
86723         * lib/check-version.h, lib/check-version.c: New files.
86724
86725 2005-06-28  Simon Josefsson  <jas@extundo.com>
86726
86727         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86728         collision with global variable.  Better indentation.  Don't
86729         increment buffer pointer beyond buffer end.  Based on comments
86730         from Paul Eggert <eggert@cs.ucla.edu>.
86731
86732         * lib/base64.h: Indent.
86733
86734 2005-06-28  Simon Josefsson  <jas@extundo.com>
86735
86736         * doc/gnulib.texi (Library version handling): New section.
86737
86738 2005-06-28  Jim Meyering  <jim@meyering.net>
86739
86740         * check-module (find_included_lib_files): Hard-code another
86741         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86742         but modules/fts-lgpl (correctly) does not list those files.
86743
86744         * modules/canonicalize (Files): Add lib/pathmax.h.
86745
86746 2005-06-25  Simon Josefsson  <jas@extundo.com>
86747
86748         * modules/check-version: New file.
86749
86750 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86751
86752         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86753         initializer of struct addrinfo, as an indication that we don't
86754         care how many members the structure has.
86755
86756 2005-06-24  Derek Price  <derek@ximbiot.com>
86757         and Bruno Haible  <bruno@clisp.org>
86758
86759         Remove stat module & update lstat.
86760         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86761         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86762         * m4/stat.m4: Remove this file.
86763
86764 2005-06-24  Derek Price  <derek@ximbiot.com>
86765         and Bruno Haible  <bruno@clisp.org>
86766
86767         Remove stat module & update lstat.
86768         * lib/stat.c: Remove this file...
86769         (slash_aware_lstat): ...moving this content and its support...
86770         * lib/lstat.c (rpl_lstat): ...into here.
86771         * lib/lstat.h: New file.
86772
86773 2005-06-24  Derek Price  <derek@ximbiot.com>
86774         and Bruno Haible  <bruno@clisp.org>
86775
86776         Remove stat module & update lstat.
86777         * config/srclist.txt (libc sources): Remove stat.
86778
86779 2005-06-24  Derek Price  <derek@ximbiot.com>
86780         and Bruno Haible  <bruno@clisp.org>
86781
86782         Remove stat module & update lstat.
86783         * MODULES.html.sh (stat): Remove.
86784         * MODULES.html: Regenerated.
86785         * modules/lstat (Description): Correct function name.
86786         (Files): Add "lstat.h".
86787         (Depends-on): Remove stat, add xalloc, stat-macros.
86788         * modules/stat: Remove this file.
86789         (Include): Add "lstat.h", remove <sys/stat.h>.
86790
86791 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86792
86793         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86794         (ranged_convert): Don't save conversion in a temporary struct.
86795         This causes a warning with GCC 4.0.0, and anyway in the typical
86796         case it's not worth the extra 100 bytes or so of code.
86797         (ranged_convert, __mktime_internal): When calling a function via a
86798         pointer P, use P () rather than (*P) (), as we now assume C89 or
86799         better.
86800
86801 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86802
86803         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86804         "who -r" failed to give output.  Problem reported by Tim Waugh.
86805
86806         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86807         (xcalloc): Use it to avoid needless tests.
86808         Problem reported by Jim Meyering.
86809
86810 2005-06-20  Derek Price  <derek@ximbiot.com>
86811
86812         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86813         unnecessary for Autoconfs > 2.59c.
86814
86815 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86816
86817         * lib/argp.h (__option_is_short): Check upper limit of
86818         __key. Isprint() requires its argument to have the value
86819         of an unsigned char or EOF.
86820
86821 2005-06-16  Jim Meyering  <jim@meyering.net>
86822
86823         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86824         when either N or S is zero.
86825
86826 2005-06-16  Derek Price  <derek@ximbiot.com>
86827
86828         * m4/bison.m4: Declare YACC & YFLAGS precious.
86829
86830 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86831
86832         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86833         multibyte string or pattern, fall back on unibyte matching.
86834         Problem reported by James Youngman.
86835
86836 2005-06-08  Bruno Haible  <bruno@clisp.org>
86837
86838         * modules/csharpcomp: New file.
86839         * MODULES.html.sh (C#): Add csharpcomp.
86840
86841 2005-06-08  Bruno Haible  <bruno@clisp.org>
86842
86843         * m4/csharpcomp.m4: New file, from GNU gettext.
86844
86845 2005-06-08  Bruno Haible  <bruno@clisp.org>
86846
86847         * lib/csharpcomp.h: New file, from GNU gettext.
86848         * lib/csharpcomp.c: New file, from GNU gettext.
86849         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86850
86851 2005-06-08  Bruno Haible  <bruno@clisp.org>
86852
86853         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86854         warning on mingw.
86855
86856 2005-06-07  Derek Price  <derek@ximbiot.com>
86857
86858         Sync from CVS.
86859         * lib/glob_.h: Indent nested #ifdef.
86860
86861 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86862
86863         Sync from coreutils.
86864         Use "file name" when talking about file names, instead of "filename"
86865         or "path", as per the GNU coding standards.
86866         * lib/mkdir-p.c: Renamed from makepath.c.
86867         (make_dir_parents): Renamed from make_path.  All callers changed.
86868         * lib/mkdir-p.h: Likewise.  All includers changed.
86869         * lib/filenamecat.c: Renamed from path-concat.c.
86870         (file_name_concat): Renamed from path_concat.  All callers changed.
86871         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86872         * lib/filenamecat.h: Likewise.  All includers changed.
86873         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86874         in comments or local variable names.
86875         * lib/basename.c: Likewise.
86876         * lib/canonicalize.c, canonicalize.h: Likewise.
86877         * lib/dirname.c, dirname.h: Likewise.
86878         * lib/euidaccess.c: Likewise.
86879         * lib/exclude.c: Likewise
86880         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86881         * lib/fsusage.c, fsuage.h: Likewise.
86882         * lib/fts.c, fts_.h: Likewise.
86883         * lib/getcwd.c: Likewise.
86884         * lib/getloadavg.c: Likewise.
86885         * lib/mkstemp.c: Likewise.
86886         * lib/mountlist.c, mountlist.h: Likewise.
86887         * lib/openat.c, openat.h: Likewise.
86888         * lib/readlink-stub.c: Likewise.
86889         * lib/readutmp.c, readutmp.h: Likewise.
86890         * lib/rename.c: Likewise.
86891         * lib/rmdir.c: Likewise.
86892         * lib/same.c: Likewise.
86893         * lib/savedir.c: Likewise.
86894         * lib/stripslash.c: Likewise.
86895         * lib/tempname.c: Likewise.
86896         * lib/xreadlink.c: Likewise.
86897         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86898         All uses changed.
86899         * lib/exclude.h: Likewise.
86900
86901         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86902         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86903         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86904         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86905         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86906         files have been getting away with it for years (MORE/BSD 4.3
86907         is extinct now).
86908         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86909         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86910
86911         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86912         Define to 256, not 255, as per modern POSIX.
86913
86914 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86915
86916         Sync from coreutils.
86917         Use "file name" when talking about file names, instead of "filename"
86918         or "path", as per the GNU coding standards.
86919         * MODULES.html.sh: mkdir-p renamed from makepath.
86920         filenamecat renamed from path-concat.
86921         * modules/filenamecat: Renamed from modules/path-concat.
86922         (Files): filenamecat.h and filenamecat.c renamed from
86923         path-concat.h and path-concat.c.
86924         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86925         (Include): filenamecat.h, not path-concat.h.
86926         * modules/mkdir-p: Renamed from modules/makepath.
86927         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86928         makepath.c.
86929         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86930         (Include): mkdir-p.h, not makepath.h.
86931
86932 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86933
86934         Sync from coreutils.
86935         * m4/mkdir-p.m4: Renamed from makepath.m4.
86936         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86937         Rename files from makepath.c to mkdir-p.c, and from
86938         makepath.h to mkdir-p.h.
86939         * m4/filenamecat.m4: Renamed from path-concat.m4.
86940         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86941         Rename files from path-concat.c to filenamecat.c,
86942         and from path-concat.h to filenamecat.h.
86943         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86944         "file name" in local variables or comments.
86945         * m4/rename.m4: Likewise.
86946
86947 2005-06-01  Bruno Haible  <bruno@clisp.org>
86948
86949         * modules/csharpexec: New file.
86950         * MODULES.html.sh (C#): New section.
86951
86952 2005-06-01  Bruno Haible  <bruno@clisp.org>
86953
86954         * m4/csharp.m4: New file, from GNU gettext.
86955         * m4/csharpexec.m4: New file, from GNU gettext.
86956
86957 2005-06-01  Bruno Haible  <bruno@clisp.org>
86958
86959         * lib/csharpexec.h: New file, from GNU gettext.
86960         * lib/csharpexec.c: New file, from GNU gettext.
86961         * lib/csharpexec.sh.in: New file, from GNU gettext.
86962
86963 2005-05-31  Derek Price  <derek@ximbiot.com>
86964             Paul Eggert  <eggert@cs.ucla.edu>
86965
86966         Sync from cvs.
86967         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86968
86969 2005-05-31  Derek Price  <derek@ximbiot.com>
86970             Paul Eggert  <eggert@cs.ucla.edu>
86971
86972         Sync from cvs.
86973         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86974
86975 2005-05-29  Derek Price  <derek@ximbiot.com>
86976
86977         * config/srclist.txt (glob_.h, glob.c): Add these files.
86978
86979 2005-05-29  Derek Price  <derek@ximbiot.com>
86980
86981         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86982         * modules/glob: New file.
86983         * modules/getlogin_r: Add link to POSIX spec in description.
86984
86985 2005-05-29  Derek Price  <derek@ximbiot.com>
86986             Paul Eggert  <eggert@cs.ucla.edu>
86987
86988         * m4/glob.m4: New file.
86989
86990 2005-05-29  Derek Price  <derek@ximbiot.com>
86991             Paul Eggert  <eggert@cs.ucla.edu>
86992
86993         * lib/glob_.h, lib/glob.c: New files.
86994
86995 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86996
86997         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86998         * modules/fts-lgpl (Depends-on): Remove gettext.
86999
87000 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87001
87002         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87003         and don't require gt_INTTYPES_PRI.
87004
87005 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87006
87007         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87008
87009         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87010         the configuration hassle isn't worth it.
87011         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87012         (LONGEST_MODIFIER, PRIuMAX): Remove.
87013
87014 2005-05-27  Bruno Haible  <bruno@clisp.org>
87015
87016         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87017
87018 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87019
87020         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87021         _POSIX_PTHREAD_SEMANTICS for Solaris.
87022
87023 2005-05-25  Derek Price  <derek@ximbiot.com>
87024
87025         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87026
87027 2005-05-25  Derek Price  <derek@ximbiot.com>
87028             Paul Eggert  <eggert@cs.ucla.edu>
87029
87030         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87031         * lib/getlogin_r.c, getlogin_r.h: New files.
87032
87033 2005-05-25  Bruno Haible  <bruno@clisp.org>
87034             Derek Price  <derek@ximbiot.com>
87035
87036         * lib/getlogin_r.h: Simplify API documentation.
87037
87038 2005-05-23  Derek Price  <derek@ximbiot.com>
87039
87040         * modules/minmax (Files): Add m4/minmax.m4.
87041         (configure.ac): Add gl_MINMAX.
87042
87043 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87044
87045         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87046         so that unistd-safer.h (GPL'ed code) need not be included.
87047
87048 2005-05-22  Bruno Haible  <bruno@clisp.org>
87049
87050         * m4/minmax.m4: New file.
87051         Based on a patch by Derek Price <derek@ximbiot.com>.
87052
87053 2005-05-22  Bruno Haible  <bruno@clisp.org>
87054
87055         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87056         (INT64_MIN): Fix definition.
87057         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87058
87059         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87060         NEED_SIGNED_INT_TYPES.
87061
87062         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87063         HAVE_SYSTEM_INTTYPES.
87064
87065 2005-05-22  Bruno Haible  <bruno@clisp.org>
87066
87067         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87068         Also include <sys/param.h> if it defines MIN, MAX.
87069         Based on a patch by Derek Price <derek@ximbiot.com>.
87070
87071 2005-05-21  Jim Meyering  <jim@meyering.net>
87072
87073         * modules/fts (Files): Add m4/inttypes-pri.m4.
87074         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87075
87076 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87077
87078         New fts module.
87079         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87080         (setup_dir, free_dir): New functions.
87081         (enter_dir, leave_dir): Define trivial
87082         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87083         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87084         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87085         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87086         Move to fts-cycle.c.
87087         (fts_open): Use setup_dir.
87088         (fts_close): Use free_dir.
87089         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87090         This adds a label and some gotos, but the alternatives were messier.
87091         Check for memory allocation failure when entering a dir.
87092         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87093         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87094         (FTS): New member fts_cycle, that is a union that contains the
87095         old active_dir_ht and cycle_state.  All uses changed to mention
87096         fts_cycle.ht and fts_cycle.state.
87097         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87098         fts.c, with the following changes:
87099         (setup_dir, free_dir): New functions.
87100         (enter_dir): Now returns bool.  Return true if successful, false
87101         if memory exhausted.  All callers changed.
87102         Do not bother partly cleaning up on
87103         memory allocation failure; that is free_dir's job.
87104         However, free ad if hash_insert fails, to avoid memory leak.
87105         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87106         fts->fts_options to see which union member to use.
87107
87108 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87109
87110         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87111         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87112
87113 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87114
87115         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87116
87117 2005-05-20  Jim Meyering  <jim@meyering.net>
87118
87119         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87120         Now a macro, to pacify GCC.
87121
87122 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87123
87124         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87125         of -1.
87126
87127 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87128
87129         * lib/chown.c (rpl_chown): Return -1 on failure.
87130
87131 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87132
87133         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87134         Don't check for stddef.h.
87135         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87136         don't use its results.
87137         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87138         since we include them unconditionally.  Don't require
87139         AM_STDBOOL_H, since stdbool is a prerequisite.
87140         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87141         since we assume C89 or better.
87142         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87143         as we don't use their results.
87144         Don't check for fchdir, memmove, memset, strrchr, as we use
87145         them unconditionally.
87146         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87147         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87148
87149 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87150
87151         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87152         Include <stddef.h> unconditionally, since we assume C89 now.
87153         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87154         * lib/fts.c: Include fts_.h first, to check interface.
87155         Do not include intprops.h; no longer needed.
87156         Include cycle-check.h and hash.h, since fts_.h no longer does.
87157         Remove unnecessary casts of closedir to void.
87158         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87159         decide whether to decrement nlinks.
87160         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87161         (FTS): Use struct hash_table * instead of Hash_table, so that
87162         we no longer need to include hash.h here.
87163
87164 2005-05-18  Jim Meyering  <jim@meyering.net>
87165
87166         * modules/dirfd (License): Change to LGPL.  Most of the code
87167         is already in the public domain.
87168
87169 2005-05-18  Jim Meyering  <jim@meyering.net>
87170
87171         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87172         Reported by Yoann Vandoorselaere.
87173
87174 2005-05-17  Jim Meyering  <jim@meyering.net>
87175
87176         * m4/fts.m4: New file, from coreutils.
87177
87178 2005-05-17  Jim Meyering  <jim@meyering.net>
87179
87180         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87181
87182 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87183
87184         Sync from coreutils.
87185         * m4/unlinkdir.m4: New file.
87186
87187 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87188
87189         Sync from coreutils.
87190         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87191         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87192         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87193         White space changes only.
87194         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87195         special.
87196         * lib/yesno.c: Include getline.h, not ctype.h.
87197         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87198         Use getline to remove arbitrary restriction on response length.
87199
87200 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87201
87202         * config/srclist-update: Spell out "Street" in FSF postal
87203         mail address; this is the style the FSF seems to prefer.
87204
87205         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87206         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87207         this updates FSF postal mail address.
87208
87209         Sync from coreutils.
87210         * modules/unlinkdir: New file.
87211         * modules/yesno (Depends-on): Add getline.
87212         * MODULES.html.sh (File system functions): Add unlinkdir.
87213
87214 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87215
87216         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87217         lib/strsep.h:
87218         Change the initial comment to refer to GPL, not LGPL.
87219         gnulib-tool will change it to LGPL as needed.
87220
87221         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87222         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87223         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87224         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87225         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87226         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87227         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87228         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87229         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87230         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87231         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87232         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87233         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87234         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87235         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87236         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87237         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87238         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87239         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87240         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87241         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87242         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87243         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87244         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87245         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87246         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87247         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87248         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87249         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87250         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87251         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87252         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87253         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87254         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87255         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87256         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87257         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87258         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87259         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87260         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87261         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87262         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87263         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87264         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87265         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87266         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87267         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87268         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87269         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87270         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87271         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87272         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87273         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87274         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87275         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87276         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87277         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87278         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87279         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87280         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87281         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87282         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87283         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87284         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87285         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87286         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87287         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87288         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87289         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87290         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87291         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87292         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87293         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87294         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87295         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87296         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87297         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87298         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87299         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87300         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87301         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87302         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87303         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87304         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87305         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87306         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87307         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87308         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87309         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87310         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87311         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87312         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87313         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87314         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87315         lib/yesno.c, lib/yesno.h:
87316         Update FSF postal mail address.
87317
87318 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87319
87320         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87321         tests/test-memmem.c, tests/test-stpncpy.c:
87322         Update FSF postal mail address.
87323
87324 2005-05-13  Bruno Haible  <bruno@clisp.org>
87325
87326         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87327         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87328         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87329         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87330         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87331         Add support for 64-bit integers in the MSVC compiler.
87332
87333 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87334
87335         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87336
87337 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87338
87339         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87340
87341 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87342
87343         * doc/getdate.texi (General date syntax): Don't say that date
87344         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87345         Problem reported by Nic Ferrier.
87346
87347 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87348
87349         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87350         specified in ai_socktype. Fix invalid ai_protocol
87351         check. ai_protocol is usually set to 0 or depending on
87352         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87353         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87354         ai_socktype / ai_protocol in the returned addrinfo structure.
87355
87356 2005-05-10  Simon Josefsson  <jas@extundo.com>
87357
87358         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87359         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87360
87361 2005-05-10  Karl Berry  <karl@gnu.org>
87362
87363         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87364         (from http://www.gnu.org/licenses).
87365         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87366         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87367         fdl.texi suffices.
87368
87369 2005-05-10  Karl Berry  <karl@gnu.org>
87370
87371         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87372         (COPYING.DOC): remove.
87373
87374         * config/srclist-update: new FSF address.
87375
87376 2005-05-10  Derek Price  <derek@ximbiot.com>
87377
87378         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87379         possible.
87380
87381 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87382             Bruno Haible  <bruno@clisp.org>
87383
87384         * modules/inet_ntop: New file.
87385         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87386         inet_ntop.
87387
87388 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87389             Bruno Haible  <bruno@clisp.org>
87390
87391         * m4/inet_ntop.m4: New file.
87392
87393 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87394             Bruno Haible  <bruno@clisp.org>
87395
87396         * lib/inet_ntop.h: New file.
87397         * lib/inet_ntop.c: New file, from glibc with modifications.
87398
87399 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87400
87401         * modules/time_r (License): Change to LGPL.
87402         * modules/extensions (License): Change to LGPL.  Actually,
87403         the license is more permissive than that, but currently gnulib-tool
87404         doesn't know how to handle more-permissive licenses.
87405
87406         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87407         Problem reported by Dave Love.
87408
87409 2005-05-08  Jim Meyering  <jim@meyering.net>
87410
87411         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87412         blank.
87413
87414 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87415
87416         * modules/argmatch (Depends-on): Add stdbool.
87417         * modules/backupfile (Depends-on): Likewise.
87418         * modules/chdir-long (Depends-on): Likewise.
87419         * modules/closeout (Depends-on): Likewise.
87420         * modules/cycle-check (Depends-on): Likewise.
87421         * modules/dirname (Depends-on): Likewise.
87422         * modules/fnmatch (Depends-on): Likewise.
87423         * modules/fsusage (Depends-on): Likewise.
87424         * modules/fwriteerror (Depends-on): Likewise.
87425         * modules/getcwd (Depends-on): Likewise.
87426         * modules/getloadavg (Depends-on): Likewise.
87427         * modules/hard-locale (Depends-on): Likewise.
87428         * modules/makepath (Depends-on): Likewise.
87429         * modules/mountlist (Depends-on): Likewise.
87430         * modules/nanosleep (Depends-on): Likewise.
87431         * modules/posixtm (Depends-on): Likewise.
87432         * modules/quotearg (Depends-on): Likewise.
87433         * modules/readtokens (Depends-on): Likewise.
87434         * modules/readtokens0 (Depends-on): Likewise.
87435         * modules/readutmp (Depends-on): Likewise.
87436         * modules/save-cwd (Depends-on): Likewise.
87437         * modules/strftime (Depends-on): Likewise.
87438         * modules/userspec (Depends-on): Likewise.
87439         * modules/utimecmp (Depends-on): Likewise.
87440         * modules/xgetcwd (Depends-on): Likewise.
87441         * modules/xnanosleep (Depends-on): Likewise.
87442         * modules/xstrtod (Depends-on): Likewise.
87443         * modules/yesno (Depends-on): Likewise.
87444
87445 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87446
87447         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87448         needless checks.
87449
87450 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87451
87452         Merge from coreutils.  Among other things,
87453         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87454         * lib/fd-safer.c: New file.
87455         * lib/fcntl-safer.h, open-safer.c: Remove.
87456         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87457         * lib/dup-safer.c: Include unistd-safer.h first.
87458         Don't include errno.h.
87459         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87460         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87461         * lib/file-type.c: Rely on file-type.h change.
87462         * lib/getloadavg.c: Include unistd-safer.h.
87463         (getloadavg): Use safer open.
87464         * lib/getusershell.c: Include "stdio-safer.h".
87465         (getusershell): Use safer fopen.
87466         * lib/long-options.c (long_options): Use NULL rather than 0.
87467         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87468         'free'.
87469         * lib/modechange.c: Likewise.
87470         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87471         (MODE_DONE): New constant.
87472         (struct mode_change): Remove 'next' member.
87473         (make_node_op_equals): New function; like the old one of the
87474         same name, except it allocates an array.
87475         (mode_compile, mode_create_from_ref): Use it.
87476         (mode_compile): Allocate result as an array, not a linked list.
87477         Parse octal string ourself, so that we catch mistakes like "+0".
87478         (mode_adjust): Arg is an array, not a linked list.
87479         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87480         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87481         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87482         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87483         Remove.  This is now stat-macros.h's job.
87484         (talloc): Remove.  All callers replaced by xalloc, so that
87485         our invokers don't have to worry about reporting memory failures.
87486         (make_node_op_equals): Remove.
87487         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87488         New constants.
87489         (struct mode_change): Moved here from modechange.h.
87490         (mode_append_entry): Remove.
87491         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87492         apps to have incorrect behavior.  Use simpler algorithm for head
87493         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87494         Detect more invalid usages rather than having somewhat-random behavior.
87495         Don't insert an "a=" action, as that leads to incorrect behavior.
87496         (mode_compile, mode_create_from_ref): Return NULL on error instead
87497         of an enum, since now there's only one way to have an error.  All
87498         callers changed.
87499         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87500         at the correct time.  Simplify calculation of "+u" and its ilk.
87501         Don't mishandle "+X".
87502         (mode_free): Remove "register" and localize decls.
87503         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87504         (struct mode_change): Move to modechange.c; callers don't
87505         need to see this stuff.
87506         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87507         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87508         (mode_change, mode_adjust): Reflect the new signatures noted above.
87509         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87510         that might redefine system include files.
87511         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87512         (my_usleep): Use NULL rather than (void *) 0.
87513         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87514         Use siginterrupt to specify that system calls should be interrupted.
87515         (rpl_nanosleep): Move initialization of suspended closer to call of
87516         my_usleep.
87517         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87518         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87519         (desirable_utmp_entry): New function.
87520         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87521         using x2nrealloc, to simplify logic.
87522         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87523         size calculation.  Do not assume utmp file is a regular file.
87524         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87525         (READ_UTMP_CHECK_PIDS): New constant.
87526         * lib/save-cwd.c: Include unistd-safer.h.
87527         (save_cwd): Use fd_safer.
87528         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87529         [!_LIBC] Include "stat-macros.h" instead.
87530         * lib/unistd-safer.h (fd_safer): New decl.
87531
87532 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87533
87534         * modules/getloadavg (Depends-on): Add unistd-safer.
87535         * modules/getusershell (Depends-on): Add stdio-safer.
87536         * modules/lstat (Depends-on): Remove xalloc.
87537         * modules/mkstemp (Depends-on): Add stat-macros.
87538         * modules/modechange (Depends-on): Remove xstrtol.
87539         Add stat-macros, xalloc.
87540         * modules/save-cwd (Depends-on): Add unistd-safer.
87541         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87542         * modules/unistd-safer (Files): Add lib/fd-safer.c
87543         (Makefile.am): Remove lib_SOURCES.
87544
87545         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87546         Remove fcntl-safer; unistd-safer supersedes it.
87547
87548 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87549
87550         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87551         AC_HEADER_STAT.
87552         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87553         (gl_PREREQ_CHOWN): Remove.
87554         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87555         it.  Don't require AC_HEADER_STAT.
87556         (gl_PREREQ_LSTAT): Remove.
87557         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87558         Don't require AC_HEADER_STAT.
87559         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87560         (gl_PREREQ_RMDIR): Remove.
87561         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87562         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87563         the stat-macros module a prerequisite.
87564         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87565         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87566         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87567         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87568         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87569         variable names.
87570         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87571         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87572         variable prefixes.
87573         * m4/fcntl-safer.m4: Remove.
87574         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87575         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87576         Invoke gl_PREREQ_FD_SAFER.
87577         (gl_PREREQ_FD_SAFER): New macro.
87578         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87579         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87580         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87581         Remove duplicate call to AC_LIBOBJ(readutmp).
87582         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87583
87584         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87585         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87586
87587 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87588
87589         * MODULES.html.sh (Misc): Add byteswap.
87590
87591 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87592
87593         * modules/getcwd (Depends-on): Add extensions.
87594         * modules/openat (Depends-on): Likewise.
87595
87596 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87597
87598         * modules/byteswap: New file.
87599
87600 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87601
87602         * m4/byteswap.m4: New file.
87603
87604 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87605
87606         * lib/byteswap_.h: New file.
87607
87608 2005-04-25  Karl Berry  <karl@gnu.org>
87609
87610         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87611
87612 2005-04-25  Albert Chin  <china@thewrittenword.com>
87613
87614         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87615         Toolkit C bug.
87616
87617 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87618
87619         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87620         (func_ln_if_changed): Remove forcibly for no error message
87621         in case file does not exist.
87622
87623 2005-04-19  Simon Josefsson  <jas@extundo.com>
87624
87625         * gnulib-tool (Options): Make --symlink mean --symbolic.
87626
87627 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87628
87629         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87630
87631 2005-04-16  Simon Josefsson  <jas@extundo.com>
87632
87633         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87634
87635 2005-04-15  Simon Josefsson  <jas@extundo.com>
87636
87637         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87638
87639 2005-04-15  Simon Josefsson  <jas@extundo.com>
87640
87641         * gnulib-tool: Rename --symlink to --symbolic.
87642
87643 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87644
87645         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87646         symbolic links to files instead of copying/moving.  Add --aux-dir,
87647         specifying directory relative --dir where auxiliary build tools
87648         are placed.
87649
87650 2005-04-14  Bruno Haible  <bruno@clisp.org>
87651
87652         * modules/allocsa (License): Change to LGPL.
87653         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87654
87655 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87656
87657         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87658         that "UTC +1 second" continues to work.  Problem reported
87659         by Dmitry V. Levin.
87660         (relunit_snumber): New rule.
87661         (relunit): Use it.
87662
87663 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87664
87665         * lib/getdate.y (universal_time_zone_table): New constant.
87666         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87667         universal_time_zone_table.
87668         (lookup_zone): Prefer universal_time_zone_table to
87669         local_time_zone_table, so that "GMT" time stamps are allowed in
87670         London during the summer.  Problem reported by Ian Abbott.
87671
87672 2005-04-12  Jim Meyering  <jim@meyering.net>
87673
87674         * lib/human.c (humblock): Set *options even when returning due to
87675         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87676         warning from gcc-4.
87677
87678 2005-04-09  Jim Meyering  <jim@meyering.net>
87679
87680         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87681         -Wuninitialized: initialize tm0.tm_year.
87682
87683 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87684
87685         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87686         count, since there's no maximum.  All uses changed.
87687         Add member dsts_seen.
87688         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87689         not being INT_MAX.
87690         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87691         Use pc_rels_seen to decide whether a date is absolute.
87692
87693         * lib/getdate.y (number): Don't overwrite year.
87694         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87695         check.
87696
87697 2005-04-02  Simon Josefsson  <jas@extundo.com>
87698
87699         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87700         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87701
87702 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87703
87704         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87705         where no absolute path name can be longer than PATH_MAX.
87706
87707 2005-03-27  Jim Meyering  <jim@meyering.net>
87708
87709         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87710
87711 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87712
87713         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87714         "one's complement" -> "ones' complement" in comment, as per Knuth.
87715         "value of type" -> "type or expression" in comment.
87716         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87717
87718 2005-03-26  Jim Meyering  <jim@meyering.net>
87719
87720         Comment nits.
87721         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87722         Correct typos: s/or/of/.
87723
87724 2005-03-26  Jim Meyering  <jim@meyering.net>
87725
87726         * modules/check-include-files: Move to ../ and rename to...
87727         * check-module: ...this.
87728
87729 2005-03-25  Jim Meyering  <jim@meyering.net>
87730
87731         * modules/xvasprintf (Files): Add xalloc.h.
87732
87733 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87734
87735         * modules/gettext (Files): config/config.rpath ->
87736         build-aux/config.rpath
87737         * modules/iconv (Files): Likewise.
87738         Problem reported by Oskar Liljeblad.
87739
87740 2005-03-23  Jim Meyering  <jim@meyering.net>
87741
87742         * modules/check-include-files: New script to check for
87743         missing dependencies, multiple includes, etc.
87744
87745         * modules/c-strtold (Depends-on): Add xalloc.
87746         * modules/c-strtod (Depends-on): Add xalloc.
87747         * modules/hash (Depends-on): Add xalloc.
87748         (Files): Remove lib/xalloc.h.
87749
87750         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87751         * modules/userspec (Files): Add lib/inttostr.h.
87752
87753 2005-03-23  Jim Meyering  <jim@meyering.net>
87754
87755         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87756
87757 2005-03-22  Jim Meyering  <jim@meyering.net>
87758
87759         * modules/stat-macros: New module.
87760         * modules/canonicalize, modules/euidaccess, modules/file-type,
87761         * modules/filemode, modules/lchown, modules/makepath,
87762         * modules/rmdir, modules/stat: Depend on new stat-macros module
87763         rather than listing lib/stat-macros.h manually.
87764         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87765
87766 2005-03-22  Jim Meyering  <jim@meyering.net>
87767
87768         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87769
87770 2005-03-22  Bruno Haible  <bruno@clisp.org>
87771
87772         * config/srclist.txt: Replace target directory 'config' with
87773         'build-aux'.
87774         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87775         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87776         ../build-aux/.
87777
87778 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87779
87780         * modules/chdir-long (Depends-on): Add mempcpy.
87781
87782         * modules/acl, modules/backupfile, modules/c-strtod,
87783         modules/c-strtold, modules/canon-host, modules/canonicalize,
87784         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87785         modules/exclude, modules/exitfail, modules/file-type,
87786         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87787         modules/getdate, modules/getline, modules/getpagesize,
87788         modules/getpass, modules/getugroups, modules/group-member,
87789         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87790         modules/inttostr, modules/long-options, modules/makepath,
87791         modules/md5, modules/memcasecmp, modules/memcoll,
87792         modules/modechange, modules/mountlist, modules/path-concat,
87793         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87794         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87795         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87796         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87797         modules/strftime, modules/strndup, modules/strverscmp,
87798         modules/timespec, modules/unlocked-io, modules/userspec,
87799         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87800         modules/yesno:
87801         Remove lib_SOURCES line from Makefile.am section, as this is now
87802         done automatically by the corresponding Autoconf macro.
87803
87804 2005-03-21  Jim Meyering  <jim@meyering.net>
87805
87806         Changes imported from coreutils.
87807
87808         * lib/cycle-check.c: Don't include xalloc.h.
87809
87810         * lib/path-concat.c: Don't include assert.h.
87811         (path_concat): Remove assertion that would have triggered
87812         for ABASE starting with more than one slash.
87813         Reported by Andreas Schwab.
87814
87815         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87816         properly when ABASE is an absolute file name.
87817         Correct the description of this function.
87818         Include <assert.h>.
87819         Add an assertion and a test driver.
87820         This fixes a bug introduced on 2004-07-02.
87821         Andreas Schwab reported the resulting failure of cp --parents:
87822         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87823
87824 2005-03-21  Jim Meyering  <jim@meyering.net>
87825
87826         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87827         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87828
87829 2005-03-21  Jim Meyering  <jim@meyering.net>
87830         and  Paul Eggert  <eggert@cs.ucla.edu>
87831
87832         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87833         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87834         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87835         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87836         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87837         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87838         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87839         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87840         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87841         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87842         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87843         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87844         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87845         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87846         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87847         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87848         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87849         for these modules.
87850
87851 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87852
87853         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87854         (which shouldn't happen), generate nothing instead of returning 0
87855         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87856
87857 2005-03-16  Bruno Haible  <bruno@clisp.org>
87858
87859         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87860         HAVE_LONGLONG_64BIT.
87861
87862 2005-03-16  Bruno Haible  <bruno@clisp.org>
87863
87864         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87865         HAVE_LONGLONG_64BIT.
87866
87867 2005-03-16  Bruno Haible  <bruno@clisp.org>
87868
87869         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87870         HAVE_LONGLONG_64BIT.
87871
87872 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87873
87874         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87875         reliably distinguish strftime failure from empty output on POSIX
87876         hosts.
87877
87878 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87879
87880         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87881         (iconv_string): Don't guess a size-zero buffer, as that might cause
87882         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87883         result would be 'too large', where 'too large' is (heuristically)
87884         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87885         overflow concerns.  This will prevent some unwanted malloc failures
87886         when the inputs are very large.
87887
87888 2005-03-15  Karl Berry  <karl@gnu.org>
87889
87890         * config/srclist.txt (config.rpath): from gettext.
87891         * config/config.rpath: update.
87892
87893 2005-03-15  Bruno Haible  <bruno@clisp.org>
87894
87895         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87896         to 'negate'.
87897
87898         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87899         variable.
87900
87901         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87902         results.
87903
87904 2005-03-14  Simon Josefsson  <jas@extundo.com>
87905
87906         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87907         <fx@gnu.org>.
87908
87909 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87910
87911         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87912         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87913         intprops.h.
87914         * lib/strtol.c: Likewise.
87915
87916 2005-03-14  Jim Meyering  <jim@meyering.net>
87917
87918         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87919         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87920         to be nonzero so that we (and caller) can detect the difference
87921         between a valid zero-length expansion and an error return, even
87922         when the underlying strftime fails before writing anything into
87923         that location.
87924
87925 2005-03-14  Bruno Haible  <bruno@clisp.org>
87926
87927         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87928         Update from GNU gettext 0.14.3.
87929
87930 2005-03-10  Jim Meyering  <jim@meyering.net>
87931
87932         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87933
87934 2005-03-10  Jim Meyering  <jim@meyering.net>
87935
87936         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87937         so that this module works on systems without fchdir.
87938
87939 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87940
87941         Factor int-properties macros into a single file, except for
87942         glibc-related files.
87943         * lib/intprops.h: New file.
87944         * lib/getloadavg.c: Include it instead of limits.h.
87945         (INT_STRLEN_BOUND): Remove.
87946         * lib/human.c: Include intprops.h.
87947         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87948         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87949         302/1000.
87950         * lib/inttostr.h: Include intprops.h instead of limits.h.
87951         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87952         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87953         for consistency with intprops.h.
87954         (time_t_is_integer, twos_complement_arithmetic): Use them.
87955         * lib/sig2str.h: Include <signal.h>, intprops.h.
87956         (INT_STRLEN_BOUND): Remove.
87957         * lib/strftime.c (TYPE_SIGNED): Remove.
87958         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87959         * lib/strtol.c: Adjust comments to match intprops.h.
87960         * lib/userspec.c: Include intprops.h.
87961         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87962         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87963         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87964         instead of rolling our own expressions.
87965         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87966
87967         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87968         instead of int.
87969         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87970         the right thing even if adding 1900 would overflow.  Similarly
87971         for tm_mon + 1 and tm_yday + 1.
87972         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87973         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87974         (DO_SIGNED_NUMBER): New macro.
87975         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87976
87977 2005-03-07  Bruno Haible  <bruno@clisp.org>
87978
87979         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87980
87981 2005-03-07  Bruno Haible  <bruno@clisp.org>
87982
87983         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87984
87985 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87986
87987         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87988         (func_import): Only replace files via --import when they have actually
87989         changed.
87990
87991 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87992
87993         * m4/mmap-anon.m4: New file.
87994         * m4/pagealign_alloc.m4: New file.
87995
87996 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87997             Bruno Haible  <bruno@clisp.org>
87998
87999         * modules/pagealign_alloc: New file.
88000         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88001
88002 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88003             Bruno Haible  <bruno@clisp.org>
88004
88005         * lib/pagealign_alloc.h: New file.
88006         * lib/pagealign_alloc.c: New file.
88007
88008 2005-03-03  Bruno Haible  <bruno@clisp.org>
88009
88010         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88011         Use an all-permissive copyright notice, recommended by RMS.
88012
88013 2005-03-02  Bruno Haible  <bruno@clisp.org>
88014
88015         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88016         of AIX, the replacement has to be done only after <string.h> is
88017         included, therefore not in config.h. stpncpy.h does the replacement,
88018         and stpncpy.c uses it.
88019
88020 2005-03-02  Bruno Haible  <bruno@clisp.org>
88021
88022         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88023         stpncpy.c uses it.
88024
88025 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88026
88027         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88028         The workaround isn't strictly needed for POSIX conformance, and
88029         it's too much of a pain to configure and maintain.  We'll ask
88030         people to fix their kernels instead.
88031         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88032         (NANOSLEEP_BUG_WORKAROUND): Remove.
88033         (xnanosleep): Remove the workaround.
88034
88035 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88036
88037         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88038         Reported by Derek Price.
88039         (Include): Add "timespec.h".
88040
88041         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88042
88043 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88044
88045         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88046         to detect nanosleep bug.
88047
88048 2005-03-01  Bruno Haible  <bruno@clisp.org>
88049
88050         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88051
88052 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88053
88054         * modules/gethrxtime: New file.
88055         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88056         (Depends-on): Add gethrxtime.
88057         (configure.ac): Add gl_XNANOSLEEP.
88058         (Makefile.am): Remove lib_SOURCES line.
88059
88060 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88061
88062         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88063         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88064
88065 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88066
88067         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88068         * lib/timespec.h (gettime): Return void, since it always
88069         succeeds now.  All uses changed.
88070         * lib/gettime.c (gettime): Likewise.
88071         [HAVE_NANOTIME]: Prefer nanotime.
88072         Assume gettimeofday succeeds, as POSIX requires.
88073         Assime time () succeeds, since other code already does.
88074         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88075         (timespec_subtract): Remove.
88076         (NANOSLEEP_BUG_WORKAROUND): New constant.
88077         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88078         things considerably.  Use it only on GNU/Linux hosts, since the
88079         workaround shouldn't be needed elsewhere.
88080
88081 2005-02-24  Bruno Haible  <bruno@clisp.org>
88082
88083         * modules/gettext (Files): Add m4/glibc2.m4.
88084
88085 2005-02-24  Bruno Haible  <bruno@clisp.org>
88086
88087         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88088         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88089         * m4/progtest.m4:
88090         Update from GNU gettext 0.14.2.
88091         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88092
88093 2005-02-24  Bruno Haible  <bruno@clisp.org>
88094
88095         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88096         * lib/config.charset: Update from GNU gettext 0.14.2.
88097
88098 2005-02-24  Bruno Haible  <bruno@clisp.org>
88099
88100         * lib/gettext.h: Update from GNU gettext 0.14.2.
88101
88102 2005-02-23  Simon Josefsson  <jas@extundo.com>
88103
88104         * m4/iconvme.m4: New file.
88105
88106 2005-02-23  Jim Meyering  <jim@meyering.net>
88107
88108         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88109         change.
88110         Thanks to Bruno Haible for catching it.
88111
88112 2005-02-22  Simon Josefsson  <jas@extundo.com>
88113
88114         * modules/iconvme: New file.
88115
88116         * MODULES.html.sh: Add iconvme.
88117
88118 2005-02-22  Simon Josefsson  <jas@extundo.com>
88119
88120         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88121
88122 2005-02-22  Simon Josefsson  <jas@extundo.com>
88123
88124         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88125
88126 2005-02-22  Jim Meyering  <jim@meyering.net>
88127
88128         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88129         s/ifndef/ifdef/.
88130
88131 2005-02-20  Neil Conway  <neilc@samurai.com>
88132
88133         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88134         returned by OSX/Darwin if the specified buffer is not large
88135         enough for the hostname.
88136
88137 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88138
88139         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88140         pass it to _help, otherwise the latter coredumps trying to
88141         dereference state.root_argp.
88142
88143 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88144
88145         * modules/chdir-long (Depends-on): Add memrchr.
88146         * modules/memrchr (Files): Add lib/memrchr.h.
88147         (Include): "memrchr.h".
88148
88149 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88150
88151         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88152
88153 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88154
88155         * lib/memrchr.h: New file.
88156         * lib/chdir-long.c: Include it.
88157         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88158         Don't bother including stddef.h.
88159
88160 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88161
88162         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88163         inclusion.
88164         Include <sys/types.h>, for dev_t.
88165         (ME_DUMMY, ME_REMOTE): Move from here....
88166         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88167         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88168         Dmitry V. Levin.
88169         Include mountlist.h first, to test the interface.
88170
88171 2005-01-29  Bruno Haible  <bruno@clisp.org>
88172
88173         * lib/progname.c (program_name): Initialize.
88174         Needed when linking statically on MacOS X.
88175
88176 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88177
88178         Sync from coreutils.
88179         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88180         (Depends-on): Add c-strtod.
88181         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88182
88183 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88184
88185         Sync from coreutils.
88186         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88187
88188         Remove files that are specific to coreutils.
88189         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88190
88191 2005-01-28  Bruno Haible  <bruno@clisp.org>
88192
88193         * modules/javacomp: New file.
88194         * MODULES.html.sh (Java): Add javacomp.
88195
88196 2005-01-28  Bruno Haible  <bruno@clisp.org>
88197
88198         * m4/javacomp.m4: New file, from GNU gettext.
88199
88200 2005-01-28  Bruno Haible  <bruno@clisp.org>
88201
88202         * lib/javacomp.sh.in: New file, from GNU gettext.
88203         * lib/javacomp.h: New file, from GNU gettext.
88204         * lib/javacomp.c: New file, from GNU gettext.
88205
88206 2005-01-26  Simon Josefsson  <jas@extundo.com>
88207
88208         * lib/gai_strerror.c: Use GPL in header.
88209
88210 2005-01-26  Bruno Haible  <bruno@clisp.org>
88211
88212         * modules/javaexec: New file.
88213         * MODULES.html.sh (Java): Add javaexec.
88214
88215 2005-01-26  Bruno Haible  <bruno@clisp.org>
88216
88217         * m4/javaexec.m4: New file, from GNU gettext.
88218
88219 2005-01-26  Bruno Haible  <bruno@clisp.org>
88220
88221         * lib/javaexec.sh.in: New file, from GNU gettext.
88222         * lib/javaexec.h: New file, from GNU gettext.
88223         * lib/javaexec.c: New file, from GNU gettext.
88224
88225 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88226
88227         * modules/lchown (Depends-on): Remove lchown.h
88228
88229 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88230
88231         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88232         must be defined if the header file was not found, in order
88233         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88234
88235 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88236
88237         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88238         initializers for struct pentry_state.
88239         (__argp_error): Check return value of __asprintf
88240         (__argp_failure): Translate error message
88241
88242         * lib/argp-parse.c: Removed braces around the expansion of N_()
88243
88244 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88245
88246         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88247         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88248         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88249         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88250         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88251         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88252         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88253         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88254         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88255         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88256         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88257         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88258         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88259         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88260         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88261         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88262         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88263         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88264         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88265         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88266         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88267         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88268         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88269         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88270         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88271         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88272         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88273         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88274         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88275         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88276         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88277         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88278         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88279         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88280         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88281         Use an all-permissive copyright notice, recommended by RMS.
88282
88283 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88284
88285         * modules/chdir-long (Depends-on): Remove mempcpy.
88286
88287 2005-01-21  Jim Meyering  <jim@meyering.net>
88288
88289         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88290         same value as for Solaris 9.
88291
88292         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88293         component length.  This included changing the parameter to be
88294         of type `char *' rather than `char const *'.
88295         * lib/chdir-long.h (chdir_long): Update prototype.
88296
88297         * lib/openat.c (fdopendir, fstatat): New functions.
88298         * lib/openat.h: Include headers required for use of DIR and struct
88299         stat.
88300         [AT_SYMLINK_NOFOLLOW]: Define.
88301         (fdopendir, fstatat): Add prototypes.
88302
88303 2005-01-21  Bruno Haible  <bruno@clisp.org>
88304
88305         * modules/classpath: New file.
88306         * MODULES.html.sh (Java): Add classpath.
88307
88308 2005-01-21  Bruno Haible  <bruno@clisp.org>
88309
88310         * lib/classpath.h: New file, from GNU gettext.
88311         * lib/classpath.c: New file, from GNU gettext.
88312
88313 2005-01-20  Simon Josefsson  <jas@extundo.com>
88314
88315         * modules/version-etc-fsf: New file.
88316
88317 2005-01-20  Simon Josefsson  <jas@extundo.com>
88318
88319         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88320         * lib/version-etc.c: Remove version_etc_copyright.
88321         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88322         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88323
88324 2005-01-20  Simon Josefsson  <jas@extundo.com>
88325
88326         * lib/base64.h (isbase64): Add.
88327
88328         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88329         using a unsigned prototype, don't inline.
88330         (base64_decode): Use it.
88331
88332 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88333
88334         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88335         it.
88336
88337 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88338
88339         * lib/save-cwd.c (save_cwd): Remove code to support the case
88340         where fchdir is missing or flaky.
88341
88342 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88343
88344         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88345
88346 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88347
88348         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88349         AC_LIBSOURCES now does this.
88350         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88351         with new ullong_max module.
88352
88353 2005-01-19  Bruno Haible  <bruno@clisp.org>
88354
88355         * modules/sh-quote: New file.
88356         * MODULES.html.sh (Executing programs): Add sh-quote.
88357
88358 2005-01-19  Bruno Haible  <bruno@clisp.org>
88359
88360         * lib/sh-quote.h: New file, from GNU gettext.
88361         * lib/sh-quote.c: New file, from GNU gettext.
88362
88363 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88364
88365         Merge from coreutils.
88366         * m4/ullong_max.m4: New file.
88367         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88368         (gl_MACROS): Assume localeconv exists.
88369
88370 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88371
88372         Merge changes from coreutils, as described below in several
88373         changelogs dated today.
88374
88375         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88376         (O_DIRECTORY): Remove; not needed here, since "." must be
88377         a directory.  All uses removed.
88378         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88379         universal on Suns, and we also need to test for IRIX.
88380         Revamp code to use 'if' rather than '#if'.
88381         Avoid unnecessary comparison of cwd->desc to 0.
88382
88383         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88384         for known valid error numbers rather than observed invalid ones.
88385
88386 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88387
88388         * modules/ullong_max: New file.
88389
88390         * modules/chdir-long, modules/openat: New files.
88391         * modules/save-cwd (Depends-on): Depend on chdir-long.
88392         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88393
88394 2005-01-18  Jim Meyering  <jim@meyering.net>
88395
88396         Merge from coreutils.
88397         * m4/chdir-long.m4, m4/openat.m4: New files.
88398         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88399         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88400         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88401         is sane and DOES follow symlinks.  Besides, testing 20 different
88402         systems found no broken chown implementations.
88403         Prompted by a change in rsync's copy of this macro.
88404         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88405
88406         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88407
88408         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88409         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88410         NULL-means-set-to-current-time semantics.
88411         Remove temporary file immediately, rather than waiting
88412         for configure's at-exit trap code to do it.
88413
88414 2005-01-18  Jim Meyering  <jim@meyering.net>
88415
88416         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88417
88418         * lib/utimens.c (futimens): Account for the fact that futimes
88419         can also fail with errno == ENOSYS or errno == ENOENT.
88420         Patch from Dmitry V. Levin.
88421
88422         Change the name of the robust chdir function from chdir to chdir_long.
88423         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88424         (restore_cwd): Use chdir_long, not chdir.
88425         * lib/chdir-long.c: Renamed from chdir.c.
88426         * lib/chdir-long.h: Renamed from chdir.h.
88427         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88428         Hurd.
88429
88430 2005-01-18  Bruno Haible  <bruno@clisp.org>
88431
88432         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88433         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88434         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88435         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88436         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88437         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88438         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88439         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88440         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88441         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88442         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88443         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88444         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88445         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88446         Use an all-permissive copyright notice, recommended by RMS.
88447
88448 2005-01-18  Bob Proulx  <bob@proulx.com>
88449
88450         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88451         simplify offsetof() macro construct to avoid compile failure with
88452         native HP-UX 11.0 ANSI C compiler.
88453
88454 2005-01-17  Bruno Haible  <bruno@clisp.org>
88455
88456         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88457         redundant because stpncpy.m4 takes care of it.
88458
88459 2005-01-17  Bruno Haible  <bruno@clisp.org>
88460
88461         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88462
88463 2005-01-17  Bruno Haible  <bruno@clisp.org>
88464
88465         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88466         used.
88467
88468 2005-01-17  Bruno Haible  <bruno@clisp.org>
88469
88470         * lib/fwriteerror.h (fwriteerror): Change specification to include
88471         fclose.
88472         * lib/fwriteerror.c: Include <stdbool.h>.
88473         (fwriteerror): At the end, close the file stream. Record whether
88474         stdout was already closed.
88475
88476 2005-01-17  Bruno Haible  <bruno@clisp.org>
88477
88478         * lib/execute.c (environ): Declare if needed.
88479         * lib/pipe.c (environ): Likewise.
88480         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88481
88482 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88483
88484         * modules/argp: Depend on vsnprintf
88485
88486 2005-01-10  Jim Meyering  <jim@meyering.net>
88487
88488         * modules/closeout (Depends-on): Add atexit.
88489
88490 2005-01-06  Bruno Haible  <bruno@clisp.org>
88491
88492         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88493
88494 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88495
88496         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88497         definitions to be after all include files, to avoid collisions.
88498         Problem reported by Bob Proulx.
88499
88500 2005-01-04  Jim Meyering  <jim@meyering.net>
88501
88502         Changes imported from coreutils.
88503         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88504         as the mkstemp template, use a temporary directory and an
88505         8.3-friendly template to avoid trouble on systems like DJGPP.
88506         Reported by Juan M. Guerrero via Stepan Kasal.
88507         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88508         close. Remove the temporary directory right away, rather than waiting
88509         for configure's at-exit trap code to do it.
88510         Suggestion from Stepan Kasal.
88511
88512 2005-01-01  Simon Josefsson  <jas@extundo.com>
88513
88514         * gnulib-tool: Print #include directives when --import'ing.
88515
88516 2004-12-28  Simon Josefsson  <jas@extundo.com>
88517
88518         * tests/test-base64.c: Include required header files.  Remove
88519         unused variables.
88520
88521 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88522
88523         * modules/error (Depends-on): Remove gettext.
88524
88525 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88526
88527         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88528         not needed.  This removes a dependency on the gettext module.
88529         [defined _LIBC]: Do not include <libintl.h>; not needed.
88530
88531 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88532
88533         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88534         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88535
88536 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88537
88538         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88539         HAVE_DECL_STRTOLD.
88540
88541 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88542
88543         * modules/getdate (Depends-on): Remove alloca-opt.
88544
88545 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88546
88547         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88548
88549 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88550
88551         * lib/argp-parse.c: Include <stddef.h>.
88552         (alignof, alignto): New macros.
88553         (parser_init): Don't assume that void * is aligned sufficiently
88554         for struct option.
88555
88556         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88557         need to extend the stack.
88558         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88559         large.
88560
88561 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88562
88563         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88564
88565 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88566
88567         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88568         (2004-10-24) change.  Apparently this was a false alarm.
88569
88570         * modules/getdate: Depend on alloca-opt, not alloca.
88571
88572 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88573
88574         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88575         Remove now-obsolete comment about AIX.
88576         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88577         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88578         (YYMAXDEPTH): New macro.
88579
88580 2004-12-18  Simon Josefsson  <jas@extundo.com>
88581
88582         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88583
88584 2004-12-18  Bruno Haible  <bruno@clisp.org>
88585
88586         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88587
88588 2004-12-18  Bruno Haible  <bruno@clisp.org>
88589
88590         * lib/fatal-signal.c (fatal_signals): Make non-const.
88591         (init_fatal_signals): New function.
88592         (uninstall_handlers, install_handlers): Ignore signals that were set to
88593         SIG_IGN.
88594         (at_fatal_signal): Call init_fatal_signals.
88595         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88596         SIG_IGN.
88597         Reported by Paul Eggert.
88598
88599 2004-12-18  Bruno Haible  <bruno@clisp.org>
88600
88601         * doc/alloca.texi: New file.
88602         * doc/alloca-opt.texi: New file.
88603
88604 2004-12-17  Jim Meyering  <jim@meyering.net>
88605
88606         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88607         Otherwise, install-sh could exit with improper exit status when
88608         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88609
88610 2004-12-16  Simon Josefsson  <jas@extundo.com>
88611
88612         * tests/test-base64.c: Add license.
88613
88614 2004-12-15  Stepan Kasal  <address@hidden>
88615
88616         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88617
88618 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88619
88620         * modules/getcwd (Files): Add m4/d-ino.m4.
88621         Suggested by Mark D. Baushke.
88622
88623 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88624
88625         * lib/getdate.y (textint): New member "negative".
88626         (time_zone_hhmm): New function.
88627         Expect 14 shift-reduce conflicts, not 13.
88628         (o_colon_minutes): New rule.
88629         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88630         (yylex): Set the "negative" member of signed numbers.
88631
88632 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88633
88634         * doc/getdate.texi (Time of day items, Time zone items):
88635         Describe new formats +00:00, UTC+00:00.
88636
88637 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88638
88639         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88640         spurious "-l"s.  Problem reported by Stepan Kasal.
88641
88642 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88643
88644         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88645         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88646
88647 2004-12-04  Simon Josefsson  <jas@extundo.com>
88648
88649         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88650         Vandoorselaere <yoann@prelude-ids.org>.
88651
88652 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88653
88654         Changes imported from coreutils.
88655         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88656         exist.
88657         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88658
88659 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88660
88661         Changes imported from coreutils.
88662         * lib/hard-locale.c: Assume <locale.h> exists.
88663         Include "strdup.h".
88664         (GLIBC_VERSION): New macro.
88665         (hard_locale): Assume setlocale exists.
88666         Rewrite to avoid #ifdef.
88667         Use strdup rather than malloc + strcpy.
88668         * lib/human.c: Assume <locale.h> exists.
88669         (human_readable): Assume localeconv exists.
88670
88671 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88672
88673         * modules/hard-locale (Depends-on): Add strdup.
88674
88675 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88676
88677         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88678         convert T2, not T.  (Imported from libc.)
88679
88680 2004-11-30  Simon Josefsson  <jas@extundo.com>
88681
88682         * modules/restrict (License): Change to LGPL.
88683
88684 2004-11-30  Simon Josefsson  <jas@extundo.com>
88685
88686         * m4/restrict.m4: Add copyright and copying conditions.
88687
88688 2004-11-30  Simon Josefsson  <jas@extundo.com>
88689
88690         * m4/base64.m4: New file.
88691
88692 2004-11-30  Simon Josefsson  <jas@extundo.com>
88693
88694         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88695         base64.
88696
88697         * tests/test-base64.c: New file.
88698
88699         * modules/base64: New file.
88700
88701 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88702
88703         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88704         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88705
88706         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88707
88708 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88709
88710         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88711         (__getcwd.c): Don't restore errno; glibc doesn't.
88712         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88713         first, falling back to our code only if its results look suspicious.
88714         Ensure that the resulting buffer is only as large as necessary.
88715
88716         * lib/readutmp.c: Include readutmp.h first.
88717         Include <errno.h>, since readutmp.h no longer does that.
88718         * lib/readutmp.h: Don't include <errno.h>,
88719         <sys/param.h>, <time.h>; not needed to establish interface.
88720         (errno): Remove decl.
88721         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88722         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88723         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88724
88725 2004-11-28  Simon Josefsson  <jas@extundo.com>
88726
88727         * lib/base64.h, base64.c: New file.
88728
88729 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88730
88731         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88732
88733 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88734
88735         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88736         (Depends-on): Remove pathmax, same.  Add mempcpy.
88737         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88738         (Makefile.am): Append getcwd.h to lib_SOURCES.
88739         (Include): Add getcwd.h.
88740         (Maintainer): Change from Jim Meyering to "all, glibc",
88741         since getdate now uses intended-for-glibc code.
88742         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88743         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88744
88745 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88746
88747         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88748         HP's ANSI C compiler.
88749         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88750         Declaring int functions causes warnings on some modern systems and
88751         shouldn't be needed to compile on ancient ones.
88752         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88753         defined.
88754
88755         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88756         with the following changes.
88757         (__set_errno): Parenthesize properly.
88758         Include <stdbool.h>.
88759         (MIN, MAX, MATCHING_INO): New macros.
88760         (__getcwd): Define with prototype, not K&R form.
88761         Use heuristics to allocate default buffer on stack if possible.
88762         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88763         behavior, and to avoid the PATH_MAX limit when computing
88764         ../../../../...
88765         Use MATCHING_INO to compare inode number to file.
88766         Check for arithmetic overflow in size calculations.
88767         Fix bug in reallocation of dot array that caused getcwd to fail
88768         on directories nested deeper than 75.
88769         Be more careful about saving errno on error.
88770         Do not use realloc; use only free+malloc, as this is a bit
88771         more flexible and avoids a needless copy operation.
88772         Do not inspect st_dev and st_ino for symbolic links; POSIX
88773         doesn't specify the latter.
88774         Check for closedir errors.
88775         Avoid needless casts.
88776         Use "#ifdef weak_alias" around weak_alias, to be like other
88777         glibc code.
88778         The following changes to getcwd.c have effect only when used in
88779         gnulib; they have no effect inside glibc proper.
88780         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88781         as alloca isn't used.
88782         (alloca, __alloca): Likewise.
88783         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88784         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88785         unconditionally, as gnulib assumes C89 or better.
88786         Do not include <sys/param.h>.
88787         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88788         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88789         better.
88790         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88791         Include <dirent.h> in a way that is compatible with modern Autoconf.
88792         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88793         New macros, if not already defined.
88794         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88795         Use "_LIBC", not "defined _LIBC", for consistency.
88796         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88797         a mempcpy module.
88798         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88799         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88800         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88801         credit only to Jim Meyering and adjust the copyright dates.
88802         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88803         <stdlib.h>, <unistd.h>, "pathmax.h".
88804         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88805         (INITIAL_BUFFER_SIZE): Remove.
88806         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88807
88808 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88809
88810         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88811         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88812         Use the _ONCE methods, for efficiency.
88813         Check for fcntl.h.  In test program, include <errno.h>
88814         and <fcntl.h> if available.  Remove old K&R cruft from
88815         test program.  Check for common errors in GNU/Linux,
88816         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88817         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88818         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88819         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88820         name accordingly.
88821         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88822         accommodate new getcwd.c.
88823         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88824         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88825         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88826         that's all we need now.
88827
88828 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88829
88830         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88831         argp-parse.c depends on getopt internals, that means we should
88832         always use our getopt, to be on the safe side.
88833         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88834         order not to spoil the result of an eventual previous invocation
88835         of gl_GETOPT_SUBSTITUTE.
88836
88837 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88838
88839         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88840         redefinition warnings. To avoid them, include the defines
88841         in `#if !defined __need_getopt ... #endif'. The only place
88842         where __getopt_argv_const is used is in definitions
88843         of getopt_long and getopt_long_only below, which are as well
88844         protected by `#ifndef __need_getopt'.
88845         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88846         __need_getopt after including <stdio.h> and <unistd.h> These
88847         headers might have defined it.
88848
88849 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88850
88851         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88852
88853 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88854
88855         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88856         (futimens): New function, which uses futimes if available.
88857         (futimens, utimens): Support timespec==NULL, with same semantics
88858         as utime and utimens.
88859         * lib/utimens.h (futimens): New decl.
88860
88861 2004-11-23  Jim Meyering  <jim@meyering.net>
88862
88863         * lib/getopt_.h: Remove trailing blanks.
88864
88865 2004-11-23  Jim Meyering  <jim@meyering.net>
88866
88867         * lib/__fpending.c: Add comment.
88868
88869 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88870
88871         * modules/canonicalize (Depends-on): Add xreadlink.
88872         Problem reported by James Youngman.
88873
88874 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88875
88876         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88877         New macros.
88878         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88879         optopt): Use them instead of invoking ## directly; otherwise, the
88880         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88881
88882 2004-11-19  Bruno Haible  <bruno@clisp.org>
88883
88884         * lib/strtok_r.c: Move comments from here...
88885         * lib/strtok_r.h: ... to here.
88886
88887 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88888
88889         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88890         implementations that mishandle size_t overflow.
88891
88892 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88893
88894         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88895         might fail.  Problem reported by Yoann Vandoorselaere.
88896         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88897         implementations that mishandle size_t overflow.
88898
88899 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88900
88901         * modules/canon-host (Depends-on): Add strdup.
88902
88903 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88904
88905         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88906
88907 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88908
88909         * lib/canon-host.c: Include "strdup.h".
88910         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88911         Use strdup instead of malloc/strcpy to duplicate strings.
88912
88913         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88914         (human_space_before_unit): New constant.
88915         * lib/human.c (human_readable): Support it.
88916
88917         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88918         (xgetcwd): Set errno correctly when failing.
88919         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88920         the failure is actually due to a PATH_MAX problem.
88921
88922         Further getopt changes to make it more likely that glibc will
88923         buy the changes back.
88924         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88925         (getopt): Use it, so to preserve glibc semantic
88926         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88927         when compiling for libc.
88928         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88929         (getopt_long, getopt_long_only): Use it.
88930
88931         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88932         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88933         (getopt): Argv is now char * const *, as per standard.
88934         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88935         not char *__getopt_argv_const *.
88936         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88937         _getopt_long_only_r): Likewise.
88938         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88939         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88940         _getopt_long_r, _getopt_long_only_r): Likewise.
88941         * lib/getopt_.h (__getopt_argv_const): Remove.
88942         (getopt): Argv is now char * const *, as per standard.
88943
88944         * lib/getdate.y (tORDINAL): New token.
88945         (day, relunit): Allow it for relative times.
88946         (relative_time_table): Use tORDINAL for ordinals.
88947
88948 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88949
88950         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88951         Document that "second" isn't allowed as an ordinal number.
88952
88953 2004-11-16  Jim Meyering  <jim@meyering.net>
88954
88955         * modules/closeout (Depends-on): Add fpending.
88956
88957 2004-11-15  Jim Meyering  <jim@meyering.net>
88958
88959         * lib/closeout.c: Include "__fpending.h" once again.
88960         Include <stdbool.h>.
88961         (close_stdout): Don't fail just because stdout was closed initially,
88962         since some programs don't write to stdout in the normal course of
88963         operation (other than --version and --help), and we don't want this
88964         function to make e.g. `touch file >&-' fail.
88965         But do fail if it was closed and someone has tried to write to it.
88966         E.g., `printf foo >&-' must fail.
88967
88968 2004-11-13  Jim Meyering  <jim@meyering.net>
88969
88970         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88971
88972 2004-11-12  Simon Josefsson  <jas@extundo.com>
88973
88974         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88975         small doc fix is still pending.
88976
88977 2004-11-11  Simon Josefsson  <jas@extundo.com>
88978
88979         * modules/strtok_r: New file.
88980
88981         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88982         strtok_r.
88983
88984 2004-11-11  Simon Josefsson  <jas@extundo.com>
88985
88986         * m4/strtok_r.m4: New file.
88987
88988         * m4/getopt.m4: Replace opterr.
88989
88990 2004-11-11  Simon Josefsson  <jas@extundo.com>
88991
88992         * lib/strtok_r.h, strtok_r.c: New file.
88993
88994 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88995
88996         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88997         of replacing opterr, getopt, etc.  This should handle the
88998         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88999
89000 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89001
89002         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89003         we can stop lying to compilers about the constness of argv when we
89004         are compiled outside glibc.
89005         (getopt, getopt_long, getopt_long_only): Use it.
89006         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89007         _getopt_internal, getopt): Likewise.
89008         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89009         _getopt_long_only_r): Likewise.
89010         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89011         _getopt_long_r, _getopt_long_only_r): Likewise.
89012
89013         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89014         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89015         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89016         the other external symbols.
89017         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89018         declaration, since the above renaming now works around collisions.
89019
89020 2004-11-11  Jim Meyering  <jim@meyering.net>
89021
89022         * lib/linebreak.c: Remove trailing blanks.
89023         * lib/alloca_.h: Likewise.
89024         * lib/acosl.c: Likewise.
89025         * lib/euidaccess.c: Likewise.
89026         * lib/allocsa.h: Likewise.
89027
89028 2004-11-10  Simon Josefsson  <jas@extundo.com>
89029
89030         * m4/getaddrinfo.m4: New file.
89031
89032 2004-11-10  Simon Josefsson  <jas@extundo.com>
89033
89034         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89035
89036 2004-11-10  Simon Josefsson  <jas@extundo.com>
89037
89038         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89039         getaddrinfo.
89040
89041         * modules/getaddrinfo: New file.
89042
89043 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89044
89045         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89046
89047 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89048
89049         * lib/mktime.c (SHR): New macro, which is a portable
89050         substitute for >> that should work even on Crays.
89051         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89052         Problem reported by Mark D. Baushke in
89053         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89054         * lib/getdate.y (SHR): Likewise.
89055         (tm_diff): Use it.
89056         * lib/strftime.c (SHR): Likewise.
89057         (tm_diff): Use it.
89058         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89059         quote_these_too, so that right shifts are well defined.  All uses
89060         changed.
89061
89062 2004-11-10  Jim Meyering  <jim@meyering.net>
89063
89064         Ensure that no close failure goes unreported.
89065         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89066         return early when it seems there's nothing to flush.
89067         Don't include __fpending.h.
89068
89069 2004-11-10  Jim Meyering  <jim@meyering.net>
89070
89071         * modules/closeout (Depends-on): Remove fpending.
89072
89073 2004-11-10  Jim Meyering  <jim@meyering.net>
89074
89075         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89076
89077 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89078
89079         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89080         gl_FUNC_STRFTIME.
89081         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89082         and AC_REQUIRE when possible, to avoid duplicate checks.
89083         Check for <wchar.h>.
89084
89085 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89086
89087         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89088
89089 2004-11-09  Bruno Haible  <bruno@clisp.org>
89090
89091         * m4/sockpfaf.m4: New file.
89092
89093 2004-11-05  Bruno Haible  <bruno@clisp.org>
89094
89095         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89096         Reported by Mark D. Baushke <mdb@cvshome.org>.
89097
89098 2004-11-04  Bruno Haible  <bruno@clisp.org>
89099
89100         2004-09-11  Bruno Haible  <bruno@clisp.org>
89101                 * allocsa.valgrind: New file.
89102         2004-02-06  Bruno Haible  <bruno@clisp.org>
89103                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89104                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89105                 Reported by Christopher Seip <chris.seip@hp.com>.
89106
89107 2004-11-04  Bruno Haible  <bruno@clisp.org>
89108
89109         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89110         (Makefile.am): Distribute it.
89111
89112 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89113
89114         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89115         with errno == ERANGE if the buffer is too small.
89116         Problem reported by Mark D. Baushke.
89117
89118 2004-11-03  Albert Chin  <china@thewrittenword.com>
89119             Paul Eggert  <eggert@cs.ucla.edu>
89120
89121         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89122         equivalent, substitute $ac_type for equivalent type rather than
89123         blindly using uint32_t *always* which won't work if uint32_t is not
89124         available.  Define _UINT32_T to work around typedef of uint32_t if
89125         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89126         2.5.1.
89127
89128 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89129
89130         * m4/jm-macros.m4: Sync from coreutils.
89131         (gl_MACROS): Check for mbrlen, for pathchk.
89132         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89133
89134 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89135
89136         * lib/xreadlink.c (MAXSIZE): New macro.
89137         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89138         size does not exceed MAXSIZE.  Avoid cast.
89139         As suggested by Mark D. Baushke in
89140         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89141         if readlink fails with buffer size just under MAXSIZE, try again
89142         with MAXSIZE.
89143
89144 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89145
89146         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89147
89148 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89149         and  Paul Eggert  <eggert@cs.ucla.edu>
89150
89151         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89152         (get_date): Overparenthesize to avoid GCC warning.
89153
89154 2004-11-02  Bruno Haible  <bruno@clisp.org>
89155
89156         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89157         returns void.
89158
89159 2004-11-02  Bruno Haible  <bruno@clisp.org>
89160
89161         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89162         function returns void.
89163
89164 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89165
89166         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89167         fflush_unlocked, flockfile, funlockfile, funlockfile,
89168         fputs_unlocked, putc_unlocked.
89169
89170 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89171
89172         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89173         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89174         already declared.
89175
89176 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89177
89178         * modules/getdate (Files): Add doc/getdate.texi.
89179         (Depends-on): Add setenv, xalloc.
89180
89181 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89182
89183         * lib/getdate.y: Add support for TZ="foo" within a date string.
89184         Fix some bugs near time_t boundaries.  Reject dates with
89185         out-of-range components, e.g., "Sept 31".
89186         Include <stdlib.h>, "setenv.h", "xalloc.h".
89187         (ISDIGIT_LOCALE): Remove; unused.
89188         Note that the TZ and time functions used here are not reentrant.
89189         (mktime_ok, get_tz): New functions.
89190         (TZBUFSIZE): New constant.
89191         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89192         This requires that we sometimes generate our own TZ="XXX..." setting.
89193
89194 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89195
89196         * doc/getdate.texi: New file, from coreutils with modifications for
89197         the new TZ parsing.
89198
89199 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89200
89201         * lib/mktime.c (not_equal_tm): Remove redundant check.
89202
89203 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89204
89205         * modules/regex (lib_SOURCES): Add regex.c.
89206         Reported by James Youngman in
89207         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89208
89209 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89210
89211         * lib/getdate.y: Use Bison 1.875 features, and some minor
89212         code cleanups.  This change does not affect semantics.
89213         Don't include <stdlib.h>; no longer needed.
89214         Don't include unlocked-io.h; only the "#if TEST" code uses
89215         stdio, and performance isn't crucial there.
89216         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89217         Bison 1.875 features as described below.
89218         All uses of "PC." replaced by "pc->".
89219         (YYSTYPE): Add a forward declaration.
89220         (yylex, yyerror): Use full prototypes in forward decls.
89221         Use "%pure-parser" rather than obsolescent "%pure_parser".
89222         Use %parse-param and %lex-param instead of obsolescent
89223         YYPARSE_PARAM and YYLEX_PARAM.
89224         (meridian_table, month_and_day_table, time_units_table,
89225         relative_time_table, time_zone_table, military_table,
89226         lookup_zone, lookup_word, get_date):
89227         Use NULL instead of 0 where appropriate.
89228         (to_hour): Avoid abort (), to avoid a dependency on
89229         stdlib.h.
89230         (yyerror, yylex): Now accepts parser_control * arg.
89231         (main) [TEST]: Use '\0' rather than 0 for char.
89232
89233 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89234
89235         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89236
89237 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89238
89239         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89240         It's now the caller's responsibility to handle the case where
89241         !HAVE_GETPAGESIZE && !defined getpagesize.
89242
89243         * lib/mktime.c (leapyear): Arg is long int, not int.
89244
89245 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89246
89247         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89248
89249 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89250
89251         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89252         missing.  Problem reported by James Youngman.
89253
89254 2004-10-16  Simon Josefsson  <jas@extundo.com>
89255
89256         * gnulib-tool: Fix comments.  Fix parse problem.
89257         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89258
89259 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89260
89261         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89262         implementation of getopt_long.  Problem reported by Alexander Taler in:
89263         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89264
89265 2004-10-15  Bruno Haible  <bruno@clisp.org>
89266
89267         * gnulib-tool: Untabify. Initialize supplied_libname.
89268         (func_usage): More homogenous output.
89269         (func_modules_transitive_closure, func_modules_to_filelist,
89270         func_emit_lib_Makefile_am): New functions.
89271         (func_import): New function, extracted from big case statement. Use
89272         func_get_license, func_modules_transitive_closure,
89273         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89274         opt_lgpl. Don't use test -a, as it's not portable.
89275         (func_create_testdir): Use func_modules_transitive_closure,
89276         func_modules_to_filelist, func_emit_lib_Makefile_am.
89277
89278 2004-10-15  Bruno Haible  <bruno@clisp.org>
89279
89280         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89281
89282 2004-10-15  Bruno Haible  <bruno@clisp.org>
89283
89284         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89285         the portions belonging to each module.
89286         Suggested by Derek Robert Price <derek@ximbiot.com>.
89287
89288 2004-10-12  Simon Josefsson  <jas@extundo.com>
89289
89290         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89291         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89292         to real functions.
89293
89294 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89295
89296         * modules/vsnprintf: New file.
89297
89298 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89299
89300         * m4/vsnprintf.m4: New file.
89301
89302 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89303
89304         * lib/vsnprintf.h: New file.
89305         * lib/vsnprintf.c: New file.
89306
89307 2004-10-11  Bruno Haible  <bruno@clisp.org>
89308
89309         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89310         vsnprintf.
89311
89312 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89313
89314         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89315
89316 2004-10-07  Bruno Haible  <bruno@clisp.org>
89317
89318         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89319         fits into the provided buffer.
89320
89321 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89322
89323         * lib/diacrit.c, diacrit.h: Add GPL notice.
89324
89325         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89326         notice.
89327         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89328         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89329         This avoids a potential constant-folding bug.
89330
89331 2004-10-05  Bruno Haible  <bruno@clisp.org>
89332
89333         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89334         for the declaration of strsep.
89335
89336 2004-10-05  Bruno Haible  <bruno@clisp.org>
89337
89338         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89339
89340 2004-10-04  Simon Josefsson  <jas@extundo.com>
89341
89342         * modules/memmem: New file.
89343         * tests/test-memmem.c: New file.
89344         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89345
89346 2004-10-04  Simon Josefsson  <jas@extundo.com>
89347
89348         * m4/memmem.m4: New file.
89349
89350 2004-10-04  Simon Josefsson  <jas@extundo.com>
89351
89352         * lib/memmem.h: New file.
89353         * lib/memmem.c: New file, taken from glibc.
89354
89355 2004-10-04  Simon Josefsson  <jas@extundo.com>
89356
89357         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89358         '#ifdef USE_UNLOCKED_IO'.
89359
89360 2004-10-04  Simon Josefsson  <jas@extundo.com>
89361
89362         * config/srclist.txt: Add memmem from glibc.
89363
89364 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89365
89366         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89367
89368         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89369         modules/exclude, modules/getdate, modules/getline,
89370         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89371         modules/getusershell, modules/linebuffer, modules/md5,
89372         modules/mountlist, modules/posixtm, modules/readtokens,
89373         modules/readutmp, modules/regex, modules/sha1,
89374         modules/version-etc, modules/yesno:
89375         Remove dependency on unlocked-io.
89376
89377 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89378
89379         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89380
89381         * m4/unlocked-io.m4: Add copyright notice.
89382         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89383
89384 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89385
89386         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89387         * lib/xmalloc.c (xmemdup): Likewise.
89388         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89389         XFREE): Remove these long-obsolescent macros.
89390         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89391         * lib/xstrdup.c: Remove.
89392
89393         * lib/regex.c (re_comp): Cast gettext return value to char *,
89394         Problem reported by Martin Neitzel via Mark D. Baushke.
89395
89396 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89397
89398         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89399         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89400         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89401         regex.c, sha1.c, version-etc.c, yesno.c:
89402         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89403         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89404         the includer's responsibility.
89405
89406         Sync from coreutils.
89407
89408         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89409         points to the start of a string, as the C Standard says the
89410         resulting behavior is undefined.
89411
89412         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89413         simple -> simple_backups, numbered_existing ->
89414         numbered_existing_backups, numbered -> numbered_backups
89415         to avoid shadowing problems.  All uses changed.
89416         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89417         * lib/backupfile.c (check_extension, numbered_backup):
89418         Rename locals to avoid shadowing 'basename'.
89419         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89420         once.
89421
89422         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89423         * lib/.cvsignore: Add getopt.h.
89424
89425 2004-10-04  Bruno Haible  <bruno@clisp.org>
89426
89427         * modules/README: New file.
89428         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89429         not a module.
89430
89431 2004-10-02  Jim Meyering  <jim@meyering.net>
89432
89433         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89434
89435 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89436
89437         * modules/strsep: New file.
89438
89439 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89440
89441         * m4/strsep.m4: New file.
89442
89443 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89444
89445         * lib/strsep.h: New file.
89446         * lib/strsep.c: New file.
89447
89448 2004-10-01  Simon Josefsson  <jas@extundo.com>
89449
89450         * lib/snprintf.c (snprintf): Handle size==0.
89451
89452 2004-10-01  Simon Josefsson  <jas@extundo.com>
89453             Bruno Haible  <bruno@clisp.org>
89454
89455         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89456         (snprintf): Declare 'args'.
89457
89458 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89459
89460         * lib/snprintf.c: Remove comments as to why each header is needed.
89461
89462 2004-10-01  Bruno Haible  <bruno@clisp.org>
89463
89464         * MODULES.html.sh: Add strsep.
89465
89466 2004-09-30  Simon Josefsson  <jas@extundo.com>
89467
89468         * modules/snprintf: New file.
89469
89470 2004-09-30  Simon Josefsson  <jas@extundo.com>
89471
89472         * m4/snprintf.m4: New file.
89473
89474 2004-09-30  Simon Josefsson  <jas@extundo.com>
89475
89476         * lib/snprintf.h, lib/snprintf.c: New files.
89477
89478 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89479
89480         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89481         (hol_entry_help): Never translate an empty string.
89482         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89483         * lib/argp.h (OPTION_NO_TRANS): New option.
89484
89485 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89486
89487         * modules/argp (Maintainer): Replace Simon Josefsson
89488         by Sergey Poznyakoff.
89489
89490 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89491
89492         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89493         changes merged back into glibc.
89494
89495 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89496
89497         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89498
89499 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89500
89501         * lib/xvasprintf.c: Include xalloc.h.
89502         (xvasprintf): Use xalloc_die, not xmalloc_die.
89503
89504 2004-09-29  Bruno Haible  <bruno@clisp.org>
89505
89506         * modules/alloca-opt: New file, derived from modules/alloca.
89507         * modules/allocsa: Depend on alloca-opt instead of alloca.
89508         * modules/setenv: Likewise.
89509         * modules/vasnprintf: Likewise.
89510         * MODULES.html.sh: Add alloca-opt.
89511
89512 2004-09-28  Simon Josefsson  <jas@extundo.com>
89513
89514         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89515         LGPL, and to replace license template from GPL to LGPL.
89516
89517 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89518
89519         * modules/dummy: Change license to LGPL.
89520
89521 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89522
89523         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89524
89525 2004-09-24  Simon Josefsson  <jas@extundo.com>
89526
89527         * modules/minmax (License): Change from GPL to LGPL.
89528
89529 2004-09-23  Simon Josefsson  <jas@extundo.com>
89530
89531         * gnulib-tool (--import): Typo.
89532
89533 2004-09-23  Simon Josefsson  <jas@extundo.com>
89534
89535         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89536
89537 2004-09-22  Bruno Haible  <bruno@clisp.org>
89538
89539         * modules/*: Add 'License' field.
89540         * gnulib-tool: Accept --extract-license option.
89541         (func_get_license): New function.
89542
89543 2004-09-21  Bruno Haible  <bruno@clisp.org>
89544
89545         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89546         Reported by Simon Josefsson.
89547
89548 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89549
89550         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89551         gl_AC_TYPE_LONG_LONG.
89552
89553 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89554
89555         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89556
89557 2004-09-18  Simon Josefsson  <jas@extundo.com>
89558         and  Paul Eggert  <eggert@cs.ucla.edu>
89559
89560         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89561         calls with autoreconf.  Define GL_LIB.
89562
89563 2004-09-14  Karl Berry  <karl@gnu.org>
89564
89565         * config/srclist.txt: unsync setenv.c, sigh.
89566
89567 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89568
89569         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89570         Problem reported by Bruno Haible in:
89571         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89572
89573 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89574
89575         * config/srclist.txt: Comment out argp-pvh.c.
89576
89577 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89578
89579         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89580         in case some system header has #define'd it.  Problem reported by
89581         Soeren D. Schulze in
89582         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89583
89584 2004-09-09  Karl Berry  <karl@gnu.org>
89585
89586         * regex.[ch]: delete from the root.  These were supposed to be
89587                 synced with emacs cvs, but this has not happened for about
89588                 a year, and anyway nothing else uses emacs regex.[ch].
89589                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89590                 lib/regex[.ch] is untouched.
89591
89592 2004-09-09  Bruno Haible  <bruno@clisp.org>
89593
89594         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89595
89596 2004-09-09  Bruno Haible  <bruno@clisp.org>
89597
89598         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89599         modifications.
89600         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89601
89602 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89603
89604         * modules/xvasprintf: New file.
89605         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89606
89607 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89608
89609         * lib/xvasprintf.h: New file.
89610         * lib/xvasprintf.c: New file.
89611         * lib/xasprintf.c: New file.
89612
89613 2004-09-08  Bruno Haible  <bruno@clisp.org>
89614
89615         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89616
89617 2004-09-08  Bruno Haible  <bruno@clisp.org>
89618
89619         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89620         length is > INT_MAX.
89621         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89622         more.
89623
89624 2004-09-08  Bruno Haible  <bruno@clisp.org>
89625
89626         * lib/stdint_.h: New file, taken from GNU clisp.
89627
89628 2004-09-08  Bruno Haible  <bruno@clisp.org>
89629             Oskar Liljeblad  <oskar@osk.mine.nu>
89630
89631         * modules/stdint: New file.
89632         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89633
89634 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89635
89636         Import from coreutils.
89637         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89638         strings on unbounded length.  alloca's performance benefits aren't
89639         that important here.
89640         (V_STRDUP): Remove.
89641         (parse_with_separator): New function, with most of the internals
89642         of the old parse_user_spec.  Allow user to omit both user and group,
89643         for compatibility with FreeBSD.
89644         Clone only the user name, not the entire spec.
89645         Do not set *uid, *gid unless entirely successful.
89646         Avoid memory leak in some failing cases.
89647         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89648         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89649         (parse_user_spec): Rewrite to use parse_with_separator.
89650
89651 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89652
89653         * modules/userspec: Don't depend on alloca.
89654
89655 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89656
89657         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89658
89659 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89660
89661         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89662         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89663         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89664
89665 2004-08-16  Simon Josefsson  <jas@extundo.com>
89666
89667         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89668         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89669         Add --dry-run for --import.
89670         Let user provided command line parameters override configure.ac
89671         settings.
89672
89673 2004-08-12  Simon Josefsson  <jas@extundo.com>
89674
89675         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89676         as discussed with Paul Eggert in threads rooted at
89677         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89678         and
89679         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89680         Before, the test was empty, and relied on ELIDE_CODE in source
89681         code.)
89682         (gl_PREREQ_GETOPT): New macro.
89683         (gl_GETOPT): Use them.
89684
89685 2004-08-12  Simon Josefsson  <jas@extundo.com>
89686
89687         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89688         * lib/getopt_.h: Renamed from getopt.h.
89689
89690 2004-08-12  Simon Josefsson  <jas@extundo.com>
89691
89692         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89693         Change default library name from libfoo to libgnu.
89694         Now, if you have a configure.ac that says:
89695                 gl_SOURCE_BASE(gl)
89696                 gl_M4_BASE(gl/m4)
89697                 gl_MODULES(error getopt etcetera)
89698                 gl_INIT
89699         you can import all you need by running:
89700                 ../gnulib/gnulib-tool --import
89701
89702         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89703         (Makefile.am): Rewrite, use logic from argz.
89704         (Include): Use <getopt.h> instead of "getopt.h".
89705
89706 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89707
89708         * modules/argp (Files): Add m4/unlocked-io.m4.
89709         (Depends-on): Add extensions.
89710
89711 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89712
89713         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89714         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89715         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89716         Check for program_invocation_name, program_invocation_short_name,
89717         flockfile, funlockfile, features.h, _getopt_long_only_r.
89718
89719 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89720
89721         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89722         its complicated substitute.
89723         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89724         and program_invocation_name.
89725         (__argp_basename) [!_LIBC]: Remove; the only use was
89726         replaced by its body.
89727         (__argp_short_program_name): Change condition from
89728         !defined __argp_short_program_name to
89729         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89730         to match argp-namefrob.h.
89731         (__argp_failure): Don't assume strerror_r returns char *.
89732         * lib/argp-parse.c (N_): Define unconditionally.
89733         (argp_default_options): Fill out initializers with 0 to avoid
89734         gcc warnings.
89735
89736 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89737
89738         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89739         getopt1.c.
89740
89741 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89742
89743         Merge from coreutils.
89744
89745         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89746
89747         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89748         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89749
89750 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89751
89752         Merge from coreutils.
89753
89754         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89755         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89756         for Reliant Unix 5.43.
89757
89758         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89759         (union fooround): Use uintmax_t, not long int.
89760         The rest is a merge from libc:
89761         [defined _LIBC]: Include <shlib-compat.h>.
89762         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89763
89764         * lib/settime.c (settime): Recode to avoid warning with
89765         Sun Forte C 6U2.
89766
89767         * lib/strverscmp.c: Convert to UTF-8.
89768
89769 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89770
89771         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89772         m4/uintmax_t.m4.
89773
89774 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89775
89776         * modules/xalloc-die: New file.
89777         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89778
89779         * modules/md5 (Files): Add m4/uint32_t.m4.
89780         * modules/sha1: Renamed from modules/sha.
89781         (Files):
89782         Rename lib/sha.h to lib/sha1.h.
89783         Rename lib/sha.c to lib/sha1.c.
89784         Rename m4/sha.m4 to m4/sha1.m4.
89785         (lib_SOURCES): Likewise.
89786         (configure.ac): Rename gl_SHA to gl_SHA1.
89787         (Include): sha.h -> sha1.h.
89788
89789 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89790
89791         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89792         * m4/sha1.m4: Renamed from sha.m4.
89793         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89794
89795 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89796
89797         * lib/obstack.h (obstack_empty_p):
89798         Don't assume that chunk->contents is suitably aligned.
89799         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89800         Likewise. Problem reported by Benno in
89801         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89802
89803         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89804         readable.  This could be improved further but it'd take some work.
89805
89806 2004-08-08  Simon Josefsson  <jas@extundo.com>
89807
89808         * modules/xgethostname (Depends-on): Remove exit and error (not
89809         used).
89810
89811         * modules/getpass-gnu: Add getpass.h.
89812         (Depends-on): Add stdbool.
89813         * modules/getpass: Add getpass.h.
89814
89815 2004-08-08  Simon Josefsson  <jas@extundo.com>
89816
89817         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89818         Check getpass declaration.
89819
89820 2004-08-08  Simon Josefsson  <jas@extundo.com>
89821
89822         * lib/xgethostname.c: Don't include error.h (not used).
89823
89824         * lib/getpass.h: Add.
89825         * lib/getpass.c: Include getpass.h first.
89826
89827 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89828
89829         * lib/xalloc-die.c: New file.
89830         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89831         All uses removed.
89832         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89833         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89834         xalloc-die.c.
89835         (_, N_, xalloc_die): Move to xalloc-die.c.
89836         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89837         so that we needn't mess with xalloc_msg_memory_exhausted.
89838
89839         * lib/sha1.h: Renamed from sha.h.
89840         (SHA1_H): Renamed from _SHA_H.
89841         (sha1_ctx): Renamed from sha_ctx.
89842         (sha1_init_ctx): Renamed from sha_init_ctx.
89843         (sha1_process_block): Renamed from sha_process_block.
89844         (sha1_process_bytes): Renamed from sha_process_bytes.
89845         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89846         (sha1_read_ctx): Renamed from sha_read_ctx.
89847         (sha1_stream): Renamed from sha_stream.
89848         (sha1_buffer): Renamed from sha_buffer.
89849         * lib/sha1.c: Likewise; renamed from sha.c.
89850         Do not include <sys/types.h>.
89851         Include <stddef.h> rather than <stdlib.h>.
89852
89853 2004-08-08  Bruno Haible  <bruno@clisp.org>
89854
89855         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89856         FILESYSTEM_PREFIX_LEN.
89857         * lib/progreloc.c: Likewise.
89858         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89859
89860 2004-08-06  Simon Josefsson  <jas@extundo.com>
89861
89862         * modules/progname (Depends-on): Don't depend on stdbool.
89863
89864 2004-08-06  Simon Josefsson  <jas@extundo.com>
89865
89866         * modules/getsubopt: New file.
89867         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89868         getsubopt.
89869
89870 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89871
89872         More merge from coreutils.
89873
89874         * m4/utimens.m4, m4/utimecmp.m4: New files.
89875         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89876         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89877         prereq.m4, sha.m4: Import changes from coreutils.
89878
89879 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89880
89881         More merge from coreutils.
89882         * modules/raise, modules/readtokens0, modules/utimens:
89883         * modules/utimecmp, module/xnanosleep: New files.
89884         * modules/strftime: Add lib/strftime.h.
89885         Change include from <time.h> to "strftime.h".
89886         * modules/yesno: Add lib/yesno.h.
89887         * modules/backupfile: Remove lib/addext.c.
89888         * modules/euidaccess: Add stat-macros.h.
89889         * modules/canonicalize, modules/euidaccess,
89890         modules/filemode, modules/lchown, modules/makepath,
89891         modules/rmdir, modules/stat: Likewise.
89892
89893 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89894
89895         Merge from tar.
89896         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89897         SIZE_MAX is a valid preprocessor constant.
89898         (__argp_basename): Change from "#ifndef _LIBC"
89899         to "#ifndef __argp_short_program_name", so that
89900         we don't compile these functions for tar.
89901
89902         More merges from coreutils.
89903         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89904         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89905         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89906         * lib/addext.c: Remove; no longer needed.
89907         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89908         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89909         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89910         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89911         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89912         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89913         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89914         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89915         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89916         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89917         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89918         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89919         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89920         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89921         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89922         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89923         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89924         Import changes from coreutils.
89925
89926 2004-08-05  Simon Josefsson  <jas@extundo.com>
89927
89928         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89929
89930 2004-08-05  Simon Josefsson  <jas@extundo.com>
89931
89932         * m4/getsubopt.m4: New file.
89933
89934 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89935
89936         Merge from coreutils.
89937
89938         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89939         * m4/getcwd-path-max.m4: New files.
89940
89941         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89942         FILESYSTEM_PREFIX_LEN ->
89943         FILE_SYSTEM_PREFIX_LEN.
89944         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89945         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89946         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89947         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89948
89949         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89950         prerequisite modules now handle the DOS stuff.
89951         Don't check for unistd.h.
89952
89953 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89954
89955         Merge from coreutils.
89956
89957         * lib/.gdb-history: Remove; this doesn't belong here.
89958
89959         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89960         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89961         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89962         * lib/getcwd.c: New files.
89963
89964         * lib/dirname.h: Include <stdbool.h>.
89965         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89966         for consistency with POSIX terminology.  All uses changed.
89967         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89968         (strip_trailing_slashes): Use bool for booleans.
89969         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89970
89971         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89972         sometimes returns a positive errno value even when it succeeds.
89973         (print_errno_message) [!LIBC]: Fall back on strerror if
89974         __strerror_r fails.
89975
89976         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89977         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89978         (longest_relative_suffix): New function.
89979         (path_concat): Use it.  Assume first argument is not NULL.
89980         Port to DOS.  Omit redundant separators.
89981         Report an error instead of returning NULL.
89982         Use mempcpy instead of memcpy.
89983         (xpath_concat): Remove: not declared or used.
89984
89985         * lib/same.h: Include <stdbool.h>
89986         (same_name): Return bool, not int.
89987         * lib/same.c (same_name): Likewise.
89988         (errno): Don't declare; we assume C89 or better now.
89989
89990         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89991         if not already defined.
89992
89993         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89994         * lib/dup-safer.c (errno): Likewise.
89995
89996 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89997
89998         Merge from coreutils.
89999         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90000         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90001         * modules/path-concat: Don't depend on strdup.
90002
90003 2004-08-03  Simon Josefsson  <jas@extundo.com>
90004
90005         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90006         * lib/progname.h: Don't include stdbool.h.
90007
90008 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90009
90010         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90011         * MODULES.html.sh (func_all_modules): Remove fatal.
90012
90013 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90014
90015         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90016
90017 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90018
90019         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90020         working.
90021
90022 2004-08-02  Simon Josefsson  <jas@extundo.com>
90023
90024         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90025         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90026         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90027
90028 2004-08-01  Simon Josefsson  <jas@extundo.com>
90029
90030         * lib/xgetdomainname.c: Include stdlib.h, for free().
90031
90032 2004-07-19  Bruno Haible  <bruno@clisp.org>
90033
90034         * MODULES.html.sh (func_all_modules): Add dummy.
90035
90036 2004-07-16  Simon Josefsson  <jas@extundo.com>
90037
90038         * modules/dummy: New file.
90039
90040 2004-07-16  Simon Josefsson  <jas@extundo.com>
90041
90042         * lib/dummy.c: New file.
90043
90044 2004-07-16  Bruno Haible  <bruno@clisp.org>
90045
90046         * lib/backupfile.h: Add extern "C" for C++.
90047         * lib/closeout.h: Likewise.
90048         * lib/copy-file.h: Likewise.
90049         * lib/findprog.h: Likewise.
90050         * lib/full-write.h: Likewise.
90051         * lib/pathname.h: Likewise.
90052         * lib/progname.h: Likewise.
90053         * lib/stpcpy.h: Likewise.
90054         * lib/stpncpy.h: Likewise.
90055         * lib/strcase.h: Likewise.
90056         * lib/strstr.h: Likewise.
90057         * lib/xalloc.h: Likewise.
90058
90059         * lib/mbswidth.h: Add extern "C" for C++.
90060         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90061
90062 2004-07-13  Robert Millan  <robertmh@gnu.org>
90063
90064         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90065
90066 2004-07-09  Simon Josefsson  <jas@extundo.com>
90067
90068         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90069         failed without this.)
90070
90071 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90072
90073         * modules/chown (Files): Add lib/fchown-stub.c, since
90074         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90075
90076 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90077
90078         * lib/fchown-stub.c: New file.
90079
90080 2004-06-24  Jim Meyering  <jim@meyering.net>
90081
90082         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90083
90084 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90085
90086         * modules/argz: Omit "#include".
90087
90088         * MODULES.html.sh (func_all_modules): Add calloc, to match
90089         2004-06-01 addition of calloc module.
90090
90091 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90092
90093         * m4/argz.m4: New file, which is autoupdated from libtool.
90094
90095 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90096
90097         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90098         libtool.
90099
90100 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90101
90102         * config/srclist-update: Don't insist on "USA." before the
90103         close-comment, as libtool omits the period and puts the */ on a
90104         separate line.
90105         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90106         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90107
90108 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90109
90110         * modules/argz: New file.
90111         * MODULES.html.sh (func_all_modules): Add argz.
90112
90113 2004-06-12  Jim Meyering  <jim@meyering.net>
90114         and  Paul Eggert  <eggert@cs.ucla.edu>
90115
90116         * modules/hash (Files): Add lib/xalloc.h.
90117         * modules/pipe (Depends-on): Add wait-process.
90118         * modules/stat (Depends-on): Add xalloc.
90119         * modules/userspec (Files): Add lib/userspec.h.
90120         * modules/xstrto
90121
90122         Upgrade from gettext-0.13.
90123         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90124         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90125         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90126
90127 2004-06-10  Jim Meyering  <jim@meyering.net>
90128
90129         * lib/calloc.c: New file.
90130
90131 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90132
90133         * lib/getdate.y (yylex): Allow space between sign and number.
90134         Problem reported by Dan Jacobson.
90135
90136 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90137
90138         Merge from coreutils CVS.
90139
90140         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90141         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90142         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90143         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90144         xstrtol.m4: Fix copyright date and/or serial number.
90145
90146         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90147         See if we need an fchown replacement.
90148         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90149         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90150         and use the replacement function if we detect either defect.
90151
90152         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90153         gl_UTIMECMP.
90154
90155 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90156         and  Jim Meyering  <jim@meyering.net>
90157
90158         Merge from coreutils CVS.
90159
90160         * lib/stat-macros.h: New file, with contents from file-type.h
90161         and coreutils' system.h.
90162         * lib/file-type.c: Include "stat-macros.h".
90163         * lib/file-type.h (file_type): Move all macro definitions to new file,
90164         stat-macros.h.
90165
90166         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90167         Wrap old code with this conditional.
90168         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90169         function that does not dereference symlinks.
90170         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90171
90172         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90173         dependency problems.
90174         (xreadlink): Accept new arg SIZE, for efficiency.
90175         All decls and uses changed.
90176         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90177
90178         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90179         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90180
90181         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90182         sysexits.h.
90183
90184 2004-06-01  Jim Meyering  <jim@meyering.net>
90185
90186         * m4/calloc.m4: New file.
90187
90188 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90189
90190         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90191         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90192         Also, fix a typo in a diagnostic.
90193
90194 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90195
90196         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90197         or AC_FUNC_REALLOC.
90198
90199 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90200
90201         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90202         macros to be defined.
90203         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90204         the allocator returns NULL because the requested size is zero.
90205
90206 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90207
90208         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90209         var.  Add comment explaining why libc still defines it.  This
90210         merges the following patch from glibc:
90211         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90212
90213 2004-05-20  Andreas Schwab  <schwab@suse.de>
90214
90215         * m4/free.m4: Replace free if it not known to work, not the other
90216         way round.
90217
90218 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90219
90220         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90221         present in glibc since revision 1.1 of this file.
90222         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90223         obstack_alignment_mask, obstack_alloc, obstack_base,
90224         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90225         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90226         obstack_grow0, obstack_init, obstack_int_grow,
90227         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90228         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90229         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90230         nonexistent functions.
90231
90232 2004-05-18  Karl Berry  <karl@gnu.org>
90233
90234         * config/srclist.txt: break link for vasnprintf.c.
90235
90236 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90237
90238         Port obstack to the AS/400, where pointers are 16 bytes wide and
90239         you cannot cast an integer to a valid pointer.  This patch is
90240         currently waiting to be integrated into glibc; see
90241         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90242
90243         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90244         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90245         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90246         (struct obstack): temp member is now a union of a pointer and
90247         an integer, instead of an integer.  All integer uses changed.
90248         This does not affect the physical layout of struct obstack,
90249         except on hosts (like the AS/400) where the size or alignment of
90250         void * is greater than that of ptrdiff_t.
90251         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90252         __STDC__)]: Store temporary in pointer member of union, not
90253         integer member.
90254         * lib/obstack.c: Include <stddef.h>, for offsetof.
90255         (struct fooalign): Remove; it doesn't need a name.
90256         (union fooround): Change double to long double, and add void *.
90257         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90258         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90259         not a macro.  Hence the values are always int; so remove all
90260         casts-to-int in uses.
90261
90262 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90263
90264         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90265         we can get this patch merged into glibc.
90266
90267 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90268             Paul Eggert  <eggert@cs.ucla.edu>
90269
90270         * m4/argp: Depend on alloca.
90271
90272 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90273             Paul Eggert  <eggert@cs.ucla.edu>
90274
90275         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90276         freecoding.
90277
90278 2004-05-17  Bruno Haible  <bruno@clisp.org>
90279
90280         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90281         precision that consists of a '.' followed by an empty digit string.
90282         Patch by Tor Lillqvist <tml@iki.fi>.
90283
90284 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90285
90286         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90287         for backward compatibility with older code.  We need our own
90288         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90289         it under some other name, and our alloca.h will define it.
90290
90291 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90292             Derek Price  <derek@ximbiot.com>
90293
90294         * lib/alloca.c: Include <alloca.h>, to get our interface.
90295         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90296         include <alloca.h> first.  Use C89 prototype for alloca; this
90297         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90298         Use #elif for simplicity, since we can assume C89 now.
90299         Don't try to source the system alloca.h since it will not be found
90300         and to prevent recursively including its replacement.
90301         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90302         * lib/regex.c: Likewise.
90303
90304 2004-05-16  Derek Price  <derek@ximbiot.com>
90305             Paul Eggert  <eggert@cs.ucla.edu>
90306
90307         getline cleanup.  This changes the getndelim2 API: both order of
90308         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90309         no delimiter).
90310
90311         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90312         interface does that.
90313         (getline): Always use getdelim, so that we don't have two
90314         copies of this code.
90315         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90316         if available.
90317         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90318         (GETNDELIM2_MAXIMUM): New macro.
90319         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90320         instead of the old practice of delim2==0.  All callers changed.
90321         Return -1 on overflow, instead of returning junk.
90322         Do not set *linesize unless allocation succeeds.
90323         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90324         that we include sys/types.h.
90325         * lib/getnline.h: Likewise.
90326         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90327         (getndelim2): Reorder arguments.
90328         * lib/getnline.c (getnline, getndelim):
90329         Don't discard the NMAX argument.
90330         (getnline): Invoke getndelim, to avoid code duplication.
90331         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90332         of (size_t) -1 by callers of the getnline family.
90333
90334 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90335
90336         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90337         Check for gettimeofday.
90338         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90339         Check for settimeofday, stime.
90340
90341 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90342
90343         * lib/nanosleep.c (suspended): Change its type from int to
90344         sig_atomic_t volatile.
90345         (first_call): Make it private to rpl_nanosleep, and have it
90346         be zero initially as that's a bit faster.
90347         (my_usleep): Round up fractional times instead of truncating them,
90348         as this is the usual meaning for 'sleep'.
90349
90350         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90351         doesn't work.
90352         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90353         (ENOSYS): Define if not defined.
90354         (settime): Fall back on stime if it exists and settimeofday fails.
90355         But don't bother with fallbacks if a method fails with errno == EPERM.
90356
90357 2004-05-11  Jim Meyering  <jim@meyering.net>
90358
90359         Prior to this change, the save_cwd caller required read access to the
90360         current directory on most systems (ones with the fchdir function).
90361
90362         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90363         fails, try write-only, and finally, resort to using xgetcwd.
90364
90365 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90366
90367         * lib/obstack.c, obstack.h: Import changes from libc.
90368
90369 2004-04-28  Bruno Haible  <bruno@clisp.org>
90370
90371         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90372         also implicitly appends .exe to executables.
90373         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90374         accepts Windows pathnames.
90375         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90376         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90377         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90378         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90379         Reported by Derek Robert Price <derek@ximbiot.com>.
90380
90381 2004-04-21  Karl Berry  <karl@gnu.org>
90382
90383         * config/srclist.txt (localcharset.c): break sync.
90384
90385 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90386
90387         * m4/host-os.m4: Add a copyright notice.
90388
90389 2004-04-20  Jim Meyering  <jim@meyering.net>
90390
90391         Change UTILS_ to gl_ in AC_DEFINE'd names.
90392         Change utils_- and jm_-prefixed variables, too.
90393         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90394         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90395         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90396
90397         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90398         Don't emit trailing blanks.
90399         Also rename jm_-prefixed variables to have gl_ prefix.
90400
90401         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90402         Also rename jm_-prefixed variables to have gl_ prefix.
90403
90404         * m4/jm-macros.m4: Reflect the renamings.
90405         * m4/prereq.m4: Likewise.
90406
90407 2004-04-20  Jim Meyering  <jim@meyering.net>
90408
90409         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90410         memory.
90411
90412 2004-04-20  Jim Meyering  <jim@meyering.net>
90413             Bruno Haible  <bruno@clisp.org>
90414
90415         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90416         memory when realloc fails.
90417
90418 2004-04-19  Jim Meyering  <jim@meyering.net>
90419
90420         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90421         now that readutmp.c may call `free (0)'.
90422
90423 2004-04-19  Bruno Haible  <bruno@clisp.org>
90424
90425         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90426         * m4/inttypes_h.m4: Likewise.
90427         * m4/stdint_h.m4: Likewise.
90428         * m4/intmax_t.m4: Likewise.
90429         * m4/uintmax_t.m4: Likewise.
90430
90431 2004-04-18  Jim Meyering  <jim@meyering.net>
90432
90433         * m4/prereq.m4: Don't forbid jm_ prefix.
90434
90435         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90436         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90437         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90438         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90439         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90440         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90441         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90442         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90443         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90444         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90445         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90446         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90447         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90448         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90449         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90450         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90451         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90452         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90453         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90454
90455 2004-04-18  Jim Meyering  <jim@meyering.net>
90456
90457         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90458         failure, don't leak memory and do call END_UTMP_ENT.
90459
90460 2004-04-16  Jim Meyering  <jim@meyering.net>
90461
90462         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90463         coreutils' stat program.
90464         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90465
90466 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90467
90468         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90469         C89.
90470         (CHAR_BIT): Remove, since we assume C89.
90471         Include <stdint.h> if available, as per current Autoconf CVS advice.
90472
90473 2004-03-31  Jim Meyering  <jim@meyering.net>
90474
90475         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90476         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90477         * m4/xalloc.m4: Likewise.
90478
90479 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90480
90481         Merge from coreutils.
90482
90483         * m4/inttostr.m4: New file.
90484         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90485         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90486         Require gl_CLOCK_TIME.
90487         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90488
90489 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90490
90491         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90492         not bool, to be more consistent with Unix conventions.
90493         Suggested by Bruno Haible.
90494
90495         Merge from coreutils.
90496
90497         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90498         * lib/umaxtostr.c: New files.
90499
90500         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90501         the usual <time.h> dance.
90502         (get_date): Change signature to support fractional time stamps.
90503         All callers changed.
90504         * lib/getdate.y: Include "getdate.h" first, as we can now
90505         assume C89 and don't need to worry about 'const'.
90506         Similarly, include "unlocked-io.h" near start, not in middle.
90507         Include <limits.h>.
90508         (textint.value): Use long int rather than int.
90509         (textint.digits): Use size_t rather than int.
90510         (BILLION, LOG10_BILLION): New constants.
90511         (parser_control): New member rel_ns.  Members day_ordinal,
90512         time_zone, month, day, hour, minutes, rel_year, rel_month,
90513         rel_day, rel_hour, rel_minutes, rel_seconds
90514         are now long int, not int.  Member seconds is now struct timespec,
90515         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90516         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90517         not int.
90518         (%union.intval): Now long int, not int.
90519         New member timespec.
90520         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90521         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90522         (spec): Now is a timespec or an item list.
90523         (timespec, items): New nonterminals.
90524         (time, rel, relunit, number, get_date):
90525         Add support for fractional seconds.
90526         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90527         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90528         (to_hour): First arg is now long int, not int.
90529         (to_year): Returns long int, not int.
90530         Don't treat year -70 like 70.
90531         (tm_diff): Returns long int, not int.
90532         (lookup_word): Use bool instead of int when appropriate.
90533         (yylex): Use size_t for count, not int.
90534         Detect overflow when parsing large integer constants.
90535         Add support for fractions.
90536         (get_date): Make pointers 'const' if possible.
90537         Use more-portable code to detect integer overflow.
90538         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90539         Don't use ctime; it's not reliable if the year has >4 digits.
90540
90541         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90542         This is for compatibility with BSD.
90543
90544         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90545         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90546         From coreutils' system.h.
90547
90548         * lib/userspec.c: Don't include "posixver.h".
90549         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90550         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90551         compatible extension.  Simplify code by removing a boolean int
90552         that was always nonzero if a string was nonnull.
90553
90554 2004-03-30  Jim Meyering  <jim@meyering.net>
90555
90556         Merge from coreutils.
90557
90558         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90559         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90560         on some systems one must include <grp.h> before it.
90561         Reported by Christian Krackowizer.
90562
90563 2004-03-30  Jim Meyering  <jim@meyering.net>
90564
90565         Merge from coreutils.
90566
90567         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90568
90569         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90570         an empty input stream.
90571
90572         * lib/readtokens.c: Include <stdbool.h>.
90573         (readtoken): Use `size_t' rather than int/long.
90574         All callers adjusted.
90575         Use `bool' rather than `int' where appropriate.
90576         Use memset rather than an explicit loop.
90577         Use x2nrealloc rather than xrealloc.
90578         Allow the use of `\0' as a delimiter.
90579         (readtokens): Likewise.
90580         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90581
90582 2004-03-30  Jim Meyering  <jim@meyering.net>
90583
90584         * m4/realloc.m4: Remove file, since now it does no more than
90585         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90586         the `configure.ac' section of module/realloc.
90587         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90588
90589 2004-03-30  Bruno Haible  <bruno@clisp.org>
90590
90591         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90592         nonnull.
90593
90594 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90595
90596         Merge changes to getloadavg.c from coreutils and Emacs.
90597
90598         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90599         Define to an expression, not to the empty string.
90600         Include cloexec.h and xalloc.h.
90601         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90602         Use set_cloexec_flag rather than rolling our own.
90603         * lib/cloexec.c, lib/cloexec.h: New files.
90604
90605 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90606
90607         * m4/cloexec.m4: New file.
90608
90609 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90610
90611         * lib/getopt.h: Sync with libc CVS.
90612
90613 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90614             Bruno Haible  <bruno@clisp.org>
90615
90616         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90617         mbswidth.
90618
90619 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90620             Bruno Haible  <bruno@clisp.org>
90621
90622         * lib/mbswidth.h: Include <wchar.h> only if
90623         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90624         <wchar.h>.
90625         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90626
90627 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90628
90629         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90630         Sync with libc CVS.
90631         * lib/getopt_int.h: New file, also synced from libc.
90632
90633 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90634
90635         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90636         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90637         Bring back getopt.c, getopt.h, getopt1.c.
90638
90639 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90640
90641         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90642         All uses changed.  Check for sa_sigaction member; this fixes
90643         a bug first reported by Jason Andrade in
90644         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90645
90646 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90647
90648         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90649         '#if' expressions.  Unlike the code it replaces, it does not
90650         depend on (defined _SC_PAGESIZE).  However, it does depend on
90651         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90652         first reported by Jason Andrade in
90653         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90654
90655 2004-02-25  Simon Josefsson  <jas@extundo.com>
90656
90657         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90658
90659 2004-02-25  Simon Josefsson  <jas@extundo.com>
90660
90661         * lib/strdup.h: New file.
90662         * lib/strdup.c: Include it.
90663         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90664         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90665
90666 2004-02-23  Karl Berry  <karl@gnu.org>
90667
90668         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90669         (from fencepost.gnu.org:/gd/gnuorg).
90670
90671 2004-02-23  Karl Berry  <karl@gnu.org>
90672
90673         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90674         * config/srclist.txt: add maintain/standards documents.
90675
90676 2004-02-18  Bruno Haible  <bruno@clisp.org>
90677
90678         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90679         Reported by Derek Robert Price <derek@ximbiot.com>.
90680
90681 2004-02-16  Karl Berry  <karl@gnu.org>
90682
90683         * config/mkinstalldirs, install-sh: update from automake.
90684
90685 2004-02-06  Karl Berry  <karl@gnu.org>
90686
90687         * m4/po.m4: update from gettext 0.14.1.
90688
90689 2004-02-06  Karl Berry  <karl@gnu.org>
90690
90691         * lib/config.charset: update from gettext 0.14.1.
90692
90693 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90694
90695         Add comments and code, prompted by suggestions from Bruno Haible
90696         for sh-quote.
90697         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90698         describing the enum quoting_style values.
90699         * lib/quotearg.c (quotearg_alloc): New function.
90700         (quotearg_buffer_restyled): Treat lone { and } as special.
90701         Treat = as special.  Work around bug with older shells
90702         that "see" a '\' that is really the 2nd byte of a multibyte char.
90703         Quote empty string with shell_quoting_style.
90704
90705 2004-02-03  Bruno Haible  <bruno@clisp.org>
90706
90707         * m4/pipe.m4: New file, from GNU gettext.
90708
90709 2004-02-03  Bruno Haible  <bruno@clisp.org>
90710
90711         * lib/pipe.h: New file, from GNU gettext.
90712         * lib/pipe.c: New file, from GNU gettext.
90713
90714 2004-01-27  Bruno Haible  <bruno@clisp.org>
90715
90716         * m4/execute.m4: New file, from GNU gettext.
90717
90718 2004-01-27  Bruno Haible  <bruno@clisp.org>
90719
90720         * lib/execute.h: New file, from GNU gettext.
90721         * lib/execute.c: New file, from GNU gettext.
90722         * lib/w32spawn.h: New file, from GNU gettext.
90723
90724 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90725
90726         Merge from diffutils.
90727
90728         * lib/file-type.c (file_type): Add typed memory objects.
90729         * lib/file-type.h (S_TYPEISTMO): New macro.
90730
90731         * lib/c-stack.h (c_stack_action): Remove argv argument.
90732         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90733         (die): Don't calculate message unless segv_action returns.
90734         (get_stack_location, min_address_from_argv, max_address_from_argv,
90735         volatile stack_base, volatile_stack_size): Remove.
90736         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90737         that every segmentation violation is a stack overflow.  (Ouch!)
90738         See Debian bug 136249 (still outstanding) for more info about why
90739         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90740
90741 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90742
90743         Exit-status fix from coreutils.
90744
90745         Use exit_failure consistently in place of EXIT_FAILURE,
90746         so that program exit statuses are consistent on failure.
90747
90748         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90749         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90750         * lib/argmatch.h: Comment fix to match the above.
90751         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90752         Now a macro referring to exit_failure, instead of a separate
90753         variable.  Include "exitfail.h" to get it.
90754         * lib/xstrtol.h: Include "exitfail.h".
90755         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90756
90757         * lib/long-options.c (parse_long_options): Use prototype
90758         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90759         for clarity.
90760
90761 2004-01-21  Jim Meyering  <jim@meyering.net>
90762
90763         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90764         so as not to conflict with a different-sized __mktime_internal
90765         function in GNU libc.
90766         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90767         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90768
90769 2004-01-20  Karl Berry  <karl@gnu.org>
90770
90771         * config/config.guess: update from config.
90772
90773         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90774
90775 2004-01-20  Bruno Haible  <bruno@clisp.org>
90776
90777         Safer stack allocation.
90778         * lib/setenv.c: Include allocsa.h.
90779         (alloca): Remove fallback definition.
90780         (freea): Remove macro.
90781         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90782         instead of freea.
90783
90784 2004-01-20  Bruno Haible  <bruno@clisp.org>
90785
90786         * m4/eealloc.m4: New file, from GNU gettext.
90787
90788 2004-01-20  Bruno Haible  <bruno@clisp.org>
90789
90790         * m4/allocsa.m4: New file, from GNU gettext.
90791
90792 2004-01-20  Bruno Haible  <bruno@clisp.org>
90793
90794         * lib/xallocsa.h: New file, from GNU gettext.
90795         * lib/xallocsa.c: New file, from GNU gettext.
90796
90797 2004-01-20  Bruno Haible  <bruno@clisp.org>
90798
90799         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90800
90801 2004-01-20  Bruno Haible  <bruno@clisp.org>
90802
90803         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90804         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90805         specially.
90806
90807 2004-01-20  Bruno Haible  <bruno@clisp.org>
90808
90809         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90810         patch.
90811
90812 2004-01-20  Bruno Haible  <bruno@clisp.org>
90813
90814         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90815
90816 2004-01-20  Bruno Haible  <bruno@clisp.org>
90817
90818         * lib/eealloc.h: New file.
90819
90820 2004-01-20  Bruno Haible  <bruno@clisp.org>
90821
90822         * lib/binary-io.h: Avoid warnings on Cygwin.
90823
90824 2004-01-20  Bruno Haible  <bruno@clisp.org>
90825
90826         * lib/allocsa.h: New file, from GNU gettext.
90827         * lib/allocsa.c: New file, from GNU gettext.
90828
90829 2004-01-18  Karl Berry  <karl@gnu.org>
90830
90831         * doc/gpl.texi, doc/lgpl.texi: new files.
90832
90833 2004-01-18  Karl Berry  <karl@gnu.org>
90834
90835         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90836         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90837
90838 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90839
90840         Merge from coreutils.
90841
90842         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90843         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90844         (gl_DEFAULT_POSIX2_VERSION): Move
90845         the documentation from 'configure' into 'config.hin',
90846         so that 'configure --help' isn't burdened by it and
90847         we don't have to worry about its formatting there.
90848         Reword the documentation so that it's more succinct
90849         and can be run together into a single paragraph.
90850         * m4/same.m4 (gl_SAME): Check for pathconf.
90851
90852 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90853
90854         Merge from coreutils.
90855
90856         * lib/posixver.c: Include posixver.h.
90857
90858         * lib/same.c: Include <stdbool.h>, <limits.h>.
90859         (_POSIX_NAME_MAX): Define if not defined.
90860         (MIN): New macro.
90861         (same_name): If file names are silently truncated, report
90862         that the file names are the same if they are the same after
90863         the silent truncation.
90864
90865         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90866         conversion function.
90867         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90868         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90869         longer needed.
90870
90871 2004-01-15  Jim Meyering  <jim@meyering.net>
90872
90873         Merge from coreutils.
90874
90875         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90876         if no library is required.
90877         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90878         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90879         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90880         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90881         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90882         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90883         value, $ac_cv_search_crypt, if it's "none required".
90884         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90885         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90886         not gl_FUNC_GETLOADAVG.
90887         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90888         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90889
90890 2004-01-15  Jim Meyering  <jim@meyering.net>
90891
90892         Merge from coreutils.
90893
90894         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90895         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90896         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90897
90898         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90899         optional configure-time default.
90900
90901         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90902
90903         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90904
90905 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90906
90907         Merge from coreutils.
90908
90909         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90910         value, $ac_cv_search_nanosleep, if it's "none required".
90911
90912 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90913
90914         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90915         with like-named macro in fnmatch.c.
90916         (EXT): Use an internal constant instead.
90917
90918         Merge fnmatch patches from glibc.
90919         * lib/fnmatch.c (mbsinit): Remove define.
90920         Add libc_hidden_ver (__fnmatch, fnmatch).
90921         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90922         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90923
90924 2004-01-14  Karl Berry  <karl@gnu.org>
90925
90926         * config/install-sh: update from automake.
90927
90928 2004-01-13  Karl Berry  <karl@gnu.org>
90929
90930         * config/install-sh: update from automake.
90931
90932 2004-01-09  Karl Berry  <karl@gnu.org>
90933
90934         * config/install-sh: update from automake.
90935
90936 2004-01-05  Karl Berry  <karl@gnu.org>
90937
90938         * config/config.{sub,guess}: update from config.
90939
90940 2003-12-31  Karl Berry  <karl@gnu.org>
90941
90942         * config/depcomp: update from automake.
90943
90944 2003-12-14  Karl Berry  <karl@gnu.org>
90945
90946         * lib/config.charset: update from gettext-runtime.
90947
90948 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90949
90950         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90951         Bug reported by Alfred M. Szmidt.
90952
90953 2003-12-03  Bruno Haible  <bruno@clisp.org>
90954
90955         * m4/gettext.m4: Upgrade from gettext-0.13.
90956         * m4/po.m4: Upgrade from gettext-0.13.
90957         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90958         * m4/intmax.m4: New file, from gettext-0.13.
90959         * m4/printf-posix.m4: New file, from gettext-0.13.
90960
90961 2003-11-29  Karl Berry  <karl@gnu.org>
90962
90963         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90964
90965 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90966             Bruno Haible  <bruno@clisp.org>
90967
90968         * lib/printf-parse.h: Don't include sys/types.h.
90969         (ARG_NONE): New macro.
90970         (char_directive): Change type of *arg_index fields to size_t.
90971         * lib/printf-parse.c: Don't include sys/types.h.
90972         (SSIZE_MAX): Remove macro.
90973         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90974         Remove unnecessary overflow check.
90975         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90976         fields.
90977
90978 2003-11-25  Bruno Haible  <bruno@clisp.org>
90979
90980         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90981
90982 2003-11-25  Bruno Haible  <bruno@clisp.org>
90983
90984         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90985         gt_TYPE_SSIZE_T.
90986
90987 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90988
90989         * modules/alloca: Remove dependency on xalloc.
90990
90991 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90992
90993         * lib/alloca.c: Remove dependency on xalloc module.
90994         (xalloc_die): Remove.
90995         (memory_full) [!defined emacs]: New macro.
90996         [!defined emacs]: Don't include xalloc.h.
90997         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90998         address arithmetic overflows.  Change datatypes a bit to avoid
90999         unnecessary casts.
91000
91001 2003-11-22  Jim Meyering  <jim@meyering.net>
91002
91003         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91004         s/size/size_t/.
91005
91006 2003-11-21  Karl Berry  <karl@gnu.org>
91007
91008         * config/config.{sub,guess}: update from config.
91009
91010 2003-11-18  Karl Berry  <karl@gnu.org>
91011
91012         * config/config.{sub,guess}: update from config.
91013
91014         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91015
91016 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91017
91018         * README: Mention that S+T cannot overflow if S is the size of
91019         an existing object and T is sufficiently small.
91020
91021 2003-11-17  Jim Meyering  <jim@meyering.net>
91022
91023         On systems without utime and without a utimes function capable of
91024         dealing with a NULL struct utimbuf* argument, this utime replacement
91025         could -- in unusual circumstances -- leak a file descriptor.
91026         * lib/utime.c: Include <unistd.h> and <errno.h>.
91027         (utime_null): Be sure to close `fd' and to preserve errno.
91028         Reported by Geoff Collyer via Arnold Robbins.
91029
91030 2003-11-17  Bruno Haible  <bruno@clisp.org>
91031
91032         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91033         (Depends-on): Add xsize.
91034
91035 2003-11-17  Bruno Haible  <bruno@clisp.org>
91036
91037         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91038
91039 2003-11-17  Bruno Haible  <bruno@clisp.org>
91040
91041         * lib/vasnprintf.c (alloca): Remove fallback definition.
91042         (freea): Remove definition.
91043         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91044         Reported by Paul Eggert.
91045
91046 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91047             Bruno Haible  <bruno@clisp.org>
91048
91049         Protect against address arithmetic overflow.
91050         * lib/printf-args.h: Include stddef.h.
91051         (arguments): Change type of field 'count' to size_t.
91052         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91053         'unsigned int' where appropriate.
91054         * lib/printf-parse.h: Include sys/types.h.
91055         (char_directive): Change type of *arg_index fields to ssize_t.
91056         (char_directives): Change type of fields 'count', max_*_length to
91057         size_t.
91058         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91059         (SSIZE_MAX): Define fallback value.
91060         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91061         instead of 'int' where appropriate. Check a_allocated, d_allocated
91062         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91063         * lib/vasnprintf.c: Include xsize.h.
91064         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91065         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91066         overflow. Avoid wraparound when converting a width or precision from
91067         decimal to binary.
91068
91069 2003-11-16  Bruno Haible  <bruno@clisp.org>
91070
91071         Update from GNU gettext.
91072         * lib/printf-parse.c: Generalize to it can be compiled for wide
91073         strings.
91074         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91075         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91076         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91077         SNPRINTF): New macros.
91078         Don't include <alloca.h> if the file is used inside libintl.
91079         (local_wcslen): New function, for Solaris 2.5.1.
91080         (VASNPRINTF): Use it instead of wcslen.
91081
91082 2003-11-16  Bruno Haible  <bruno@clisp.org>
91083
91084         * lib/xsize.h (xmax): New function.
91085         (xsum, xsum3, xsum4): Declare as "pure" functions.
91086
91087 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91088
91089         * modules/xalloc (Files): Undo latest change, since xalloc.h
91090         no longer needs SIZE_MAX or PTRDIFF_MAX.
91091
91092 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91093
91094         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91095         gl_PTRDIFF_MAX.
91096
91097 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91098
91099         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91100         "return", to pacify some unknown compiler.  Problem reported
91101         by Joerg Schilling.
91102
91103 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91104
91105         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91106         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91107         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91108         heuristic is just as accurate as far as we know, and it removes a
91109         dependency on size_max.m4 and ptrdiff_max.m4.
91110
91111 2003-11-11  Bruno Haible  <bruno@clisp.org>
91112
91113         * modules/xsize (Files): Add m4/size_max.m4.
91114         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91115
91116 2003-11-11  Bruno Haible  <bruno@clisp.org>
91117
91118         * m4/size_max.m4: New file.
91119         * m4/ptrdiff_max.m4: New file.
91120         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91121         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91122         (gl_XALLOC): Invoke it.
91123
91124 2003-11-11  Bruno Haible  <bruno@clisp.org>
91125
91126         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91127         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91128         defined.
91129
91130 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91131
91132         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91133         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91134         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91135         From Bruno Haible.
91136         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91137         not (size_t) -1, since it's defined here.
91138
91139 2003-11-09  Karl Berry  <karl@gnu.org>
91140
91141         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91142
91143 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91144
91145         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91146         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91147         Reject sizes of exactly SIZE_MAX bytes.
91148         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91149         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91150
91151 2003-11-05  Bruno Haible  <bruno@clisp.org>
91152
91153         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91154         SIZE_MAX defined in <limits.h> on Solaris.
91155
91156 2003-11-04  Jim Meyering  <jim@meyering.net>
91157
91158         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91159         variable names, rather than @VAR@.
91160         * modules/poll: Likewise.
91161
91162 2003-11-04  Bruno Haible  <bruno@clisp.org>
91163
91164         * modules/xsize: New file.
91165         * modules/linebreak: Depend on xsize.
91166         * MODULES.html.sh (func_all_modules): Add xsize.
91167
91168 2003-11-04  Bruno Haible  <bruno@clisp.org>
91169
91170         * m4/xsize.m4: New file.
91171
91172 2003-11-04  Bruno Haible  <bruno@clisp.org>
91173
91174         * lib/xsize.h: New file.
91175         * lib/linebreak.c: Include xsize.h.
91176         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91177         argument for overflow.
91178         Suggested by Paul Eggert.
91179
91180 2003-11-03  Karl Berry  <karl@gnu.org>
91181
91182         * config/config.{guess,sub}: update from config.
91183
91184 2003-11-03  Jim Meyering  <jim@meyering.net>
91185
91186         * modules/userspec (lib_SOURCES): Add userspec.h.
91187         (Include): Add "userspec.h".
91188         Improve description.
91189
91190 2003-11-03  Jim Meyering  <jim@meyering.net>
91191
91192         * lib/userspec.c: Include "userspec.h".
91193         * lib/userspec.h: New file.
91194
91195 2003-11-03  Bruno Haible  <bruno@clisp.org>
91196
91197         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91198
91199 2003-11-03  Bruno Haible  <bruno@clisp.org>
91200
91201         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91202         available, to avoid (extremely rare) race condition.
91203         Suggested by Paul Eggert.
91204
91205 2003-11-02  Karl Berry  <karl@gnu.org>
91206
91207         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91208
91209 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91210
91211         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91212         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91213         (read_filesystem_list): Set and use me_type_malloced.
91214         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91215         whatever the type happens to be), for brevity and consistency.
91216         Check for size calculation overflow on Alphas running OSF/1.
91217
91218 2003-10-31  Jim Meyering  <jim@meyering.net>
91219
91220         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91221
91222         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91223
91224 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91225             Bruno Haible  <bruno@clisp.org>
91226
91227         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91228         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91229
91230 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91231
91232         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91233         netbsd*-gnu*.  Suggested by Robert Millan.
91234
91235 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91236
91237         * modules/group-member: Depend on stdbool.
91238
91239 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91240
91241         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91242
91243 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91244
91245         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91246         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91247         after the 'gnu' in these cases.  This fixes some bugs in the
91248         previous change, and is based on suggestions by Robert Millan.
91249
91250 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91251
91252         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91253         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91254         no longer needed.
91255         * lib/quotearg.c (quotearg_n_options): Use it.
91256         * lib/group-member.c: Include <stdbool.h>.
91257         (free_group_info): Arg is now const *; don't free arg.
91258         (get_group_info): Now returns bool and accepts struct group_info *,
91259         rather than returning a malloc'ed struct group_info *.
91260         All uses changed.  Check for overflow in internal size calculation.
91261
91262         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91263         rather than xmalloc/xrealloc.
91264         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91265         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91266         conformance bug: the old code used a pointer after freeing the
91267         storage that it addressed.
91268         * lib/hash.c (hash_initialize): Simplify the code by using
91269         xalloc_oversized rather than doing it by hand.
91270         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91271         the buffer preserved.  Use free and xmalloc instead.
91272         * lib/quotearg.c (quotearg_n_options): Likewise.
91273         Use a simpler test for size overflow.  Don't use xalloc_oversized
91274         because unsigned int might be wider than size_t (!); this suggests
91275         that we should switch from unsigned int to size_t for slot numbers.
91276
91277 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91278
91279         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91280         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91281         NetBSD kernels.  Requested by Richard Stallman.
91282
91283 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91284
91285         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91286         to allocate the returned structure.  Do not allocate a subarray,
91287         as x2nrealloc will do that.
91288         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91289         instead of xnrealloc.
91290         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91291
91292 2003-10-27  Bruno Haible  <bruno@clisp.org>
91293
91294         * lib/stdbool_.h: Better support for BeOS.
91295
91296 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91297
91298         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91299         now uses inline.
91300
91301 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91302
91303         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91304         callers that want to do their own size-overflow checking.  Include
91305         <stdbool.h>, since xalloc_oversized returns bool.
91306         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91307         to use xalloc_oversized.
91308
91309         Add two functions x2realloc, x2nrealloc, for programs that grow
91310         arrays dynamically by doubling their sizes.
91311         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91312         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91313         New functions.
91314
91315         Port to C99 semantics for 'inline' of external functions.
91316         Bug reported by Bruno Haible.
91317         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91318         with the old contents of xnmalloc.
91319         (xnmalloc, xmalloc): Use it.
91320         (xnrealloc_inline): New static inline function,
91321         with the old contents of xnrealloc.
91322         (xnrealloc, xrealloc): Use it.
91323
91324         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91325         that.
91326
91327 2003-10-26  Karl Berry  <karl@gnu.org>
91328
91329         * config/srclist.txt (COPYING.DOC): no longer available from
91330         /gd/gnuorg; don't know where the ultimate source is.
91331
91332 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91333
91334         Fix several address-calculation bugs in the hash modules,
91335         plus some minor code cleanup.
91336
91337         * lib/hash.h: Include <stdbool.h>, for bool.
91338         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91339         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91340         hash_get_n_entries, hash_get_max_bucket_length,
91341         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91342         hash_rehash): Use size_t rather than unsigned.
91343         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91344         hash_get_n_buckets_used, hash_get_n_entries,
91345         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91346         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91347         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91348         Likewise.
91349         (SIZE_MAX): Define if not defined.
91350         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91351         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91352         hash_print):
91353         Use const * when possible.
91354         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91355         (check_tuning): Fix bug: if tuning parameters were very close to
91356         0 or 1, rounding errors could have caused subscript violations.
91357         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91358         (hash_initialize): Add 'fail:' label
91359         to free table and return NULL, and use it to simplify code.
91360         Use calloc rather than clearing the storage ourself.
91361         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91362         buffer size calculations.
91363         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91364         Include <stddef.h>, for size_t.
91365         * lib/hash-pjw.c (hash_pjw): Likewise.
91366         Switch to method described by Bruno Haible.
91367         Include <limits.h>, for CHAR_BIT.
91368         (SIZE_BITS): New macro.
91369
91370 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91371
91372         * m4/getline.m4 (AM_FUNC_GETLINE):
91373         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91374         hosts.  Problem reported by Derek Robert Price in
91375         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91376         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91377         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91378
91379 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91380
91381         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91382         ceiling the allocation at NMAX bytes rather than silently
91383         discarding input bytes before NMAX is reached.  This makes
91384         a difference only if NMAX exceeds SIZE_MAX / 2.
91385
91386         * lib/obstack.c: Merge from glibc.
91387         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91388         Add libc_hidden_def (_obstack_newchunk).
91389         (_obstack_free) [! defined _LIBC]: Remove.
91390         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91391         a clone of the function body.
91392         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91393         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91394
91395         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91396         glibc.
91397         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91398         arg to memcpy.
91399
91400         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91401         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91402         Don't use lvalue casts, as GCC plans to remove support for them
91403         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91404         was also present in the non-GCC version, indicating that this
91405         code had always been buggy and had never been widely used.
91406         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91407         Use the fast variant of each macro, rather than copying the
91408         definiens of the fast variant; that way, we'll be more likely to
91409         catch future bugs in the fast variants.
91410
91411 2003-10-20  Bruno Haible  <bruno@clisp.org>
91412
91413         * modules/wait-process: New file.
91414         * MODULES.html.sh (func_all_modules): Add wait-process.
91415
91416 2003-10-20  Bruno Haible  <bruno@clisp.org>
91417
91418         * m4/wait-process.m4: New file.
91419
91420 2003-10-20  Bruno Haible  <bruno@clisp.org>
91421
91422         * lib/wait-process.h: New file, from GNU gettext.
91423         * lib/wait-process.c: New file, from GNU gettext.
91424
91425 2003-10-19  Jim Meyering  <jim@meyering.net>
91426
91427         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91428         HPUX 10.20.
91429
91430 2003-10-18  Karl Berry  <karl@gnu.org>
91431
91432         * config/config.guess: update from config.
91433
91434 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91435
91436         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91437         (getgroups): First arg is int, not size_t.
91438         Don't let 'free' mangle errno.
91439
91440 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91441
91442         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91443
91444 2003-10-16  Karl Berry  <karl@gnu.org>
91445
91446         * config/config.{guess,sub}: update from config.
91447
91448 2003-10-16  Jim Meyering  <jim@meyering.net>
91449
91450         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91451         memcpy.
91452
91453 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91454
91455         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91456         (SIZE_MAX): Remove.
91457         (new_exclude, add_exclude_file): Initial size no longer needs to
91458         be a power of 2.
91459         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91460         our own address arithmetic overflow checking.
91461
91462         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91463         (fnmatch): Do not alloca more than 2000 wide characters;
91464         instead, use malloc for large buffers.
91465         Check for address arithmetic overflow, and return -1
91466         with errno set to ENOMEM in that case.
91467         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91468         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91469         instead, return -1.  Check for address arithmetic overflow.
91470
91471 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91472
91473         Handle invalid suffixes and overflow independently, so that
91474         callers can treat them independently as needed.  Fix some bugs in
91475         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91476         suffix for a human-readable blocksize.  The major caller-visible
91477         change is the addition of a new
91478         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91479         that both overflow and suffix chars were found.
91480
91481         * lib/human.c (humblock): Don't check separately for invalid suffix
91482         char; that is xstrtoumax's job (now that its bug is fixed).
91483         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91484         INTMAX_MAX]: New macros.
91485         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91486         TYPE_MAXIMUM): New macros.
91487         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91488         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91489         if overflow occurs, as it's what __strtol does and it's more useful
91490         in practice.
91491         (__xstrtol): If __strtol reports some error other than ERANGE,
91492         reflect it to the caller as LONGINT_INVALID.  If it reports
91493         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91494         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91495         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91496         value.
91497         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91498         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91499         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91500         [defined UINTMAX_MAX]: New macros.
91501
91502 2003-10-14  Bruno Haible  <bruno@clisp.org>
91503
91504         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91505
91506 2003-10-14  Bruno Haible  <bruno@clisp.org>
91507
91508         * m4/sig_atomic_t: New file, from GNU gettext.
91509         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91510
91511 2003-10-14  Bruno Haible  <bruno@clisp.org>
91512
91513         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91514         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91515         Also use volatile where needed.
91516
91517 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91518
91519         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91520         Change maintainer from Bruno Haible to 'all'.
91521
91522 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91523
91524         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91525
91526 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91527
91528         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91529         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91530         and define in terms of the other primitives.
91531         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91532         (SIZE_MAX): Define if not already defined.
91533         (array_size_overflow): New function.
91534         (xalloc_die): Abort instead of exiting if 'error' returns.
91535         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91536         (xmalloc, xrealloc): Use them.
91537         (xcalloc): Check for address arithmetic overflow.
91538         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91539         a bit faster than strcpy.
91540
91541 2003-10-10  Simon Josefsson  <jas@extundo.com>
91542
91543         * modules/argp (Depends-on): Add restrict and strcase.
91544
91545 2003-10-10  Simon Josefsson  <jas@extundo.com>
91546
91547         * m4/argp.m4: Add AC_C_INLINE.
91548
91549 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91550
91551         Merge getpass from libc, plus a few fixes.
91552
91553         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91554         Include <stdbool.h>.
91555         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91556         __fsetlocking to empty.
91557         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91558         do include <bits/libc-lock.h>.
91559         Do not include <fcntl.h>; not needed.
91560         [_LIBC]: Include <wchar.h>.
91561         (NOTCANCEL_MODE): New macro.
91562         (flockfile, funlockfile) [_LIBC]: New macros.
91563         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91564         [!_LIBC]: New macros.
91565         (call_fclose): New function.
91566         (getpass): Use it.  Save tty stream separately; this simplifies the
91567         code and makes it more reliable if stdin happens to equal stdout.
91568         Invoke __fsetlocking on tty.
91569         Handle thread cancellation if needed.
91570         Namespace cleanup (use __tcgetattr, __getline).
91571         Use bool for Booleans.
91572         [USE_IN_LIBIO]: Handle wide streams.
91573         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91574         stream might go where.
91575
91576         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91577         doesn't have to include <stdio.h> before us.
91578         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91579         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91580         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91581         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91582         if not declared, so that we can use getpass.c code from libc without
91583         rewriting it.
91584         (flockfile, ftrylockfile, funlockfile): New macros.
91585
91586 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91587
91588         * modules/getpass: Depend on stdbool.
91589
91590 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91591
91592         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91593
91594 2003-10-07  Karl Berry  <karl@gnu.org>
91595
91596         * config/config.{guess,sub}: update from config.
91597
91598 2003-10-06  Jim Meyering  <jim@meyering.net>
91599             Bruno Haible  <bruno@clisp.org>
91600
91601         This lets translators provide better translations for the
91602         "Written by ..." part of --version output.
91603         * lib/version-etc.h: Include stdarg.h.
91604         (version_etc_copyright): Declare as readonly.
91605         (version_etc): Make this function variadic with a NULL-terminated list
91606         of author name strings.
91607         (version_etc_va): New declaration.
91608         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91609         (version_etc_copyright): Declare as readonly.
91610         (version_etc_va): New function. Provide a different translatable string
91611         for each possible number of authors < 10. Abbreviate when there are 10
91612         authors or more.
91613         (version_etc): Make this function variadic. Call version_etc_va.
91614         Suggestion from Gary V. Vaughan.
91615
91616         * lib/long-options.h (parse_long_options): Change prototype: the
91617         authors string is moved to the end and becomes variadic.
91618         * lib/long-options.c: Include stdarg.h.
91619         (parse_long_options): Make this function variadic, too.
91620         Call version_etc_va, not version_etc.
91621
91622 2003-10-06  Bruno Haible  <bruno@clisp.org>
91623
91624         * modules/version-etc-2: Remove file.
91625         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91626
91627 2003-10-06  Bruno Haible  <bruno@clisp.org>
91628
91629         * modules/fatal-signal: New file.
91630         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91631
91632 2003-10-06  Bruno Haible  <bruno@clisp.org>
91633
91634         * m4/fatal-signal.m4: New file.
91635         * m4/signalblocking.m4: New file, from GNU gettext.
91636
91637 2003-10-06  Bruno Haible  <bruno@clisp.org>
91638
91639         * lib/version-etc-2.h: Remove file.
91640         * lib/version-etc-2.c: Remove file.
91641
91642 2003-10-06  Bruno Haible  <bruno@clisp.org>
91643
91644         * lib/fatal-signal.h: New file, from GNU gettext.
91645         * lib/fatal-signal.c: New file, from GNU gettext.
91646
91647 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91648
91649         * README: Rework advice for preventing empty .o files.
91650         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91651         not <sys/types.h>.
91652
91653 2003-10-04  Karl Berry  <karl@gnu.org>
91654
91655         * lib/argp*: update from libc.
91656
91657 2003-10-04  Karl Berry  <karl@gnu.org>
91658
91659         * config/config.{guess,sub}: update from config.
91660
91661 2003-10-02  Bruno Haible  <bruno@clisp.org>
91662
91663         * modules/lchown (Include): Add lchown.h.
91664         * modules/time_r (Include): Use "..." syntax.
91665         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91666
91667 2003-10-01  Simon Josefsson  <jas@extundo.com>
91668
91669         * MODULES.html.sh (func_all_modules): Move gethostname from section
91670         'based on' to section 'lacking' POSIX:2001.
91671
91672 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91673
91674         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91675         to output mode on the same stream.
91676
91677 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91678
91679         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91680         Fix arg typo in previous patch.
91681
91682 2003-09-28  Jim Meyering  <jim@meyering.net>
91683
91684         * lib/error.c: Correct cpp indentation.
91685
91686 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91687
91688         * modules/free: New file.
91689
91690 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91691
91692         * m4/free.m4: New file.
91693
91694 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91695
91696         * lib/minmax.h (MIN, MAX)
91697         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91698         Omit the special code that used __typeof__, since we worry that
91699         it could be more trouble than it's worth.  See:
91700         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91701         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91702
91703         * lib/free.c: New file.
91704
91705 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91706
91707         Trivial fixes to Makefile.am parts of module listings.
91708         * modules/strstr: Append strstr.h to lib_SOURCES.
91709         * modules/strcase: Likewise, for strcase.h.
91710
91711 2003-09-27  Karl Berry  <karl@gnu.org>
91712
91713         * config/mkinstalldirs: update from automake.
91714
91715 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91716
91717         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91718         (error_tail): Do not loop, reallocating temporary buffer, since
91719         the output cannot contain more wide characters than the input
91720         contains bytes, the size must be big enough already.  This avoids
91721         one potential size overflow calculation.  Check for size overflow
91722         when calculating temporary buffer size.  Free temporary buffer
91723         when done, if it was allocated with malloc; this plugs a memory
91724         leak.  Remove casts from void * to pointers, that are no longer
91725         needed now that we're assuming C89 or better.
91726
91727         Merge error changes from glibc.
91728
91729         * lib/error.c, error.h: Update copyright notice header to match glibc.
91730         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91731         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91732         Disable cancellation while printing error.
91733         * lib/error.h: Prepend __ to parameter names.
91734
91735 2003-09-26  Jim Meyering  <jim@meyering.net>
91736
91737         * lib/error.c (error_tail): Move some declarations
91738         into inner scope where the local variables are used.
91739
91740 2003-09-26  Bruno Haible  <bruno@clisp.org>
91741
91742         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91743         stpncpy().
91744         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91745
91746 2003-09-26  Bruno Haible  <bruno@clisp.org>
91747
91748         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91749         (stpncpy): Define as alias for gnu_stpncpy.
91750         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91751
91752 2003-09-25  Simon Josefsson  <jas@extundo.com>
91753
91754         * lib/xgetdomainname.h: New file.
91755         * lib/xgetdomainname.c: New file.
91756
91757 2003-09-25  Simon Josefsson  <jas@extundo.com>
91758             Bruno Haible  <bruno@clisp.org>
91759
91760         * modules/getdomainname: New file.
91761         * modules/xgetdomainname: New file.
91762         * MODULES.html.sh (func_all_modules): Add getdomainname,
91763         xgetdomainname.
91764
91765 2003-09-25  Simon Josefsson  <jas@extundo.com>
91766             Bruno Haible  <bruno@clisp.org>
91767
91768         * m4/getdomainname.m4: New file.
91769
91770 2003-09-25  Simon Josefsson  <jas@extundo.com>
91771             Bruno Haible  <bruno@clisp.org>
91772
91773         * lib/getdomainname.h: New file.
91774         * lib/getdomainname.c: New file.
91775
91776 2003-09-25  Karl Berry  <karl@gnu.org>
91777
91778         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91779
91780 2003-09-25  Karl Berry  <karl@gnu.org>
91781
91782         * config/install-sh: update from automake.
91783
91784 2003-09-25  Bruno Haible  <bruno@clisp.org>
91785
91786         * modules/version-etc-2: New file, from modules/version-etc with
91787         modifications.
91788         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91789
91790 2003-09-25  Bruno Haible  <bruno@clisp.org>
91791
91792         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91793         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91794
91795 2003-09-24  Simon Josefsson  <jas@extundo.com>
91796
91797         * modules/xgethostname: Add xgethostname.h.
91798
91799 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91800
91801         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91802         the buffer associated with the argument.  Bug reported by
91803         Simon Josefsson.
91804
91805 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91806
91807         * README: Document assumptions that 'int' is at least 32 bits
91808         wide, that integer arithmetic is 2's complement without overflow,
91809         that there are no holes in integer values, that adding sizes of
91810         two nonoverlapping objects can't overflow, and that all-bits-zero
91811         yields scalar zero.  Fix spelling and capitalization typos.
91812
91813 2003-09-19  Karl Berry  <karl@gnu.org>
91814
91815         * lib/argp.h: update from libc.
91816
91817 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91818
91819         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91820         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91821         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91822
91823 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91824
91825         * gnulib-tool: Use "test -h", not "test -L", for portability
91826         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91827         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91828         (sed_extract_prog): Issue s commands one-by-one, rather than
91829         using \| in one s command.
91830
91831 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91832
91833         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91834         input error, instead of returning NULL the next time we are called
91835         (and therefore losing track of errno).
91836
91837 2003-09-16  Bruno Haible  <bruno@clisp.org>
91838
91839         * gnulib-tool (func_create_testdir): Warn about duplicated
91840         dependencies.
91841
91842 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91843
91844         * modules/argmatch, modules/fatal, modules/obstack,
91845         modules/xalloc, modules/xgethostname: Sort dependencies by
91846         importance, not alphabetically.
91847
91848 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91849
91850         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91851         fails, so that the caller gets the proper errno.
91852
91853         * lib/readutmp.c (read_utmp): Likewise.
91854         Check for fstat error.  Close stream and free storage
91855         when failing.
91856
91857 2003-09-14  Karl Berry  <karl@gnu.org>
91858
91859         * config/srclist.txt (strdup.c): disable for c89 changes.
91860
91861 2003-09-14  Jim Meyering  <jim@meyering.net>
91862
91863         * lib/getloadavg.c: Correct cpp indentation.
91864         * lib/strdup.c: Likewise.
91865         * lib/vasnprintf.c: Likewise.
91866
91867 2003-09-14  Bruno Haible  <bruno@clisp.org>
91868
91869         * modules/fwriteerror: New file.
91870         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91871
91872 2003-09-14  Bruno Haible  <bruno@clisp.org>
91873
91874         * lib/fwriteerror.h: New file.
91875         * lib/fwriteerror.c: New file.
91876
91877 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91878
91879         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91880         modules/xgethostname, modules/xalloc: Depend on exit.
91881
91882 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91883
91884         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91885
91886         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91887         and AC_MINIX, too, so that their extensions are available.
91888
91889         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91890         This macro has been superseded by gl_BACKUPFILE.
91891
91892         More patches to assume C89 or better.
91893
91894         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91895
91896         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91897         unconditionally.
91898         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91899         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91900         Include <string.h>, <stdlib.h> unconditionally.
91901         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91902         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91903         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91904         headers or for string.h.
91905         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91906         or strtoul.
91907
91908         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91909         headers.
91910         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91911         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91912         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91913         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91914         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91915         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91916         memcpy, memset.
91917         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91918         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91919         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91920         strtol.
91921         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91922         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91923         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91924         strtoul.
91925
91926 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91927
91928         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91929         * lib/obstack.c [!defined _LIBC]: Likewise.
91930         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91931         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91932         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91933
91934         More changes to assume C89 or better.
91935
91936         * lib/error.c (error_tail): Assume vprintf.
91937
91938         * lib/argmatch.c (getenv): Remove decl.
91939         * lib/progreloc.c (get_full_program_name): Define via prototype.
91940         * lib/setenv.c (clearenv): Likewise.
91941         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91942         needed.
91943         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91944         (malloc, memcpy): Remove decls.
91945         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91946         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91947         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91948         (memcpy): Remove macro.
91949         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91950         (__P): Remove.  All uses removed.
91951         (PTR): Remove.  All uses changed to void *.
91952         (CHAR_BIT, NULL): Remove.
91953         (spaces, zeros, memset_space, memset_zero)
91954         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91955         Remove.
91956         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91957         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91958         Define with prototype.
91959         Remove now-unnecessary prototype decl.
91960         (extra_args_spec): Assume ANSI C.  All uses changed.
91961         (extra_args_spec_iso): Remove.
91962         (my_strftime, emacs_strftimeu): Define via prototype.
91963         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91964         unconditionally.
91965         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91966         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91967         (strtoul, strtol): Remove decls.
91968         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91969         LONG_MAX): Remove.
91970         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91971         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91972         (LOCALE_PARAM_PROTO): New macro.
91973         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91974         (INTERNAL (strtol), strtol): Define with a prototype.
91975         (PARAMS): Remove.  All uses removed.
91976         * lib/tempname.c: Include <string.h> unconditionally.
91977         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91978         * lib/xgethostname.c (main): Define with a prototype.
91979         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91980         Include <stdlib.h> unconditionally.
91981         (calloc, malloc, realloc, free): Remove decls.
91982         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91983         Include <stdlib.h> unconditionally.  Sort include file names.
91984         (strtod): Remove.
91985         (xstrtod): Define with a prototype.
91986         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91987         (strtol, strtoul): Remove decls.
91988
91989 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91990
91991         More patches to assume C89 or better.
91992         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91993         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91994         string.h, memchr, STDC_HEADERS.
91995
91996 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91997
91998         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91999         Include <stdlib.h>, <string.h> unconditionally.
92000         Remove now-unnecessary cast to char *.
92001         * lib/strnlen.c: Include <string.h> unconditionally.
92002         * lib/yesno.c (yesno): Define with a prototype.
92003
92004 2003-09-11  Bruno Haible  <bruno@clisp.org>
92005
92006         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92007
92008 2003-09-10  Jim Meyering  <jim@meyering.net>
92009
92010         * lib/error.c: Correct indentation of cpp directives.
92011
92012 2003-09-10  Bruno Haible  <bruno@clisp.org>
92013
92014         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92015         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92016         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92017         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92018         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92019         <stdlib.h> and <string.h> checks.
92020         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92021         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92022
92023 2003-09-10  Bruno Haible  <bruno@clisp.org>
92024
92025         * lib/strcspn.c: Include <string.h> unconditionally.
92026         * lib/strpbrk.c: Include <string.h> unconditionally.
92027         * lib/strstr.c: Include <string.h> unconditionally.
92028         * lib/unicodeio.c: Include <string.h> unconditionally.
92029         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92030         * lib/unsetenv.c: Likewise.
92031         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92032         * lib/yesno.c: Include <stdlib.h> unconditionally.
92033         (rpmatch): Add prototype.
92034
92035 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92036
92037         More patches to assume C89 or better.
92038         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92039         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92040         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92041         or for string.h.
92042         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92043         stdlib.h.
92044         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92045         C headers.
92046         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92047         string.h.
92048         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92049         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92050         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92051         or for string.h.
92052         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92053         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92054         C headers.
92055         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92056         memcpy.
92057         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92058         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92059         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92060         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92061         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92062         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92063         string.h, free.
92064         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92065         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92066         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92067         C headers, or for string.h.
92068         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92069         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92070         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92071         headers, memory.h, stdlib.h, string.h, strings.h.
92072         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92073         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92074         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92075         strchr.
92076         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92077         headers, memory.h, string.h.
92078         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92079         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92080         free.
92081         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92082         headers.
92083         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92084         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92085         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92086         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92087         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92088
92089 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92090
92091         More K&R removal.
92092
92093         * lib/acosl.c (main): Use a prototype.
92094         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92095         tanl.c: Likewise.
92096
92097         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92098
92099         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92100         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92101         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92102         with a prototype.
92103         * lib/getopt.c (const): Remove macro.
92104         Include <string.h> unconditionally.
92105         (my_index): Remove; all uses changed to strchr.
92106         (strlen): Remove decl.
92107         (exchange): Remove forward decl; no longer needed.
92108         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92109         Define with prototype.
92110         * lib/getopt1.c (const): Remove macro.
92111         (getopt_long, getopt_long_only, main): Define with prototype.
92112
92113         * lib/getugroups.c: Include <string.h> unconditionally.
92114
92115         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92116         (getusershell, setusershell, endusershell, readname, main):
92117         Define with prototypes.
92118
92119         * lib/group-member.c: Include group-member.h first.
92120         Include <stdlib.h> unconditionally.
92121
92122         * lib/hard-locale.c: Include hard-locale.h first.
92123         Include <stdlib.h>, <string.h> unconditionally.
92124
92125         * lib/hash.c (free, malloc): Remove decls.
92126         Include <stdlib.h> unconditionally.
92127
92128         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92129         (getenv): Do not declare.
92130
92131         * lib/idcache.c: Include <string.h> unconditionally.
92132
92133         * lib/long-options.c: Include long-options.h first, to test interface.
92134         Include <stdlib.h> unconditionally.
92135
92136         * lib/makepath.c: Include makepath.h first, to test interface.
92137         Include <stdlib.h> and <string.h> unconditionally.
92138
92139         * lib/linebuffer.c: Include <stdlib.h>.
92140         (free): Remove decl.
92141
92142         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92143         stddef.h. rpl_malloc returns void *, not char *.
92144         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92145         prototype.
92146
92147         * lib/md5.h: Include <limits.h> unconditionally.
92148         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92149         (__P): Remove; all uses removed.
92150         * lib/md5.c: Include "md5.h" first.
92151         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92152         md5_buffer, md5_process_bytes, md5_process_block):
92153         Define with prototypes.
92154         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92155         * lib/sha.c: Include "sha.h" first.
92156         Include <stdlib.h>, <string.h> unconditionally.
92157
92158         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92159         * lib/memcmp.c (__ptr_t): Likewise.
92160         * lib/memrchr.c (__ptr_t): Likewise.
92161         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92162         Include <string.h> unconditionally.
92163         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92164         * lib/memchr.c: Include <stdlib.h> unconditionally.
92165         * lib/memchr.c (LONG_MAX): Remove.
92166         * lib/memrchr.c (LONG_MAX): Likewise.
92167         * lib/memchr.c (__memchr): Define via a prototype.
92168         * lib/memrchr.c (__memrchr): Likewise.
92169         * lib/memcmp.c (__P): Remove, and remove all uses.
92170         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92171         Remove forward decls; no longer needed.
92172         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92173         Use types required by C89 in prototype.
92174
92175         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92176         * lib/savedir.c: Likewise.
92177         * lib/mkdir.c (free): Remove decl.
92178         * lib/rmdir.c (rmdir): Define with a prototype.
92179         * lib/savedir.c: Include savedir.h first, to test interface.
92180
92181         * lib/mktime.c (STDC_HEADERS): Remove.
92182         Include <stdlib.h>, <string.h> unconditionally.
92183
92184         * lib/modechange.c: Include <stdlib.h> unconditionally.
92185         (malloc): Remove decl.
92186
92187         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92188         (free): Remove decl.
92189
92190         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92191         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92192         (This type really should be intptr_t, but that's a C99ism.)
92193         (_obstack_memcpy): Remove: all uses changed to memcpy.
92194         Include <string.h> unconditionally.
92195         (struct obstack): Assume __STDC__ for types of members
92196         chunkfun, freefun, extra_arg.
92197         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92198         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92199         obstack_begin, obstack_specify_allocation,
92200         obstack_specify_allocation_with_arg, obstack_chunkfun,
92201         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92202         Remove unprototyped decls and the macros that use them.
92203         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92204         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92205         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92206         (defined __STDC__ && __STDC__)]:
92207         Remove nonprototyped code.
92208         Include <stdlib.h> unconditionally.
92209         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92210         _obstack_allocated_p, _obstack_free, obstack_free,
92211         _obstack_memory_used, print_and_abort):
92212         Define using prototypes.
92213         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92214         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92215         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92216         obstack_next_free, obstack_object_size, obstack_room) [0]:
92217         Remove unused, unprototyped code.
92218
92219         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92220
92221         * lib/physmem.c (physmem_total, physmem_available, main): Define
92222         with prototypes.
92223
92224         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92225         (main): Define with a prototype.
92226
92227         * lib/posixver.c (getenv): Remove decl.
92228
92229         * lib/putenv.c (malloc): Returns void *, not char *.
92230         Include <string.h> unconditionally.
92231         (strchr, memcpy, NULL): Do not define.
92232
92233         * lib/readtokens.c: Include readtokens.h first, to test interface.
92234         Include <stdlib.h>, <string.h> unconditionally.
92235         (init_tokenbuffer): Define with a prototype.
92236
92237         * lib/regex.c (PARAMS): Remove.  All uses removed.
92238         All uses of _RE_ARGS removed, too.
92239         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92240         unconditionally.
92241         (bzero): Assume memset exists.
92242         (memcmp, memcpy, NULL): Remove.
92243         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92244         char, or assignments to local vars of type signed char.
92245         (init_syntax_once, PREFIX(extract_number_and_incr),
92246         PREFIX(print_partial_compiled_pattern),
92247         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92248         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92249         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92250         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92251         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92252         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92253         wcs_compile_range, byte_compile_range, truncate_wchar,
92254         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92255         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92256         count_mbs_length, wcs_re_match_2_internal,
92257         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92258         PREFIX(alt_match_null_string_p),
92259         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92260         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92261         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92262         now-unnecessary declaration, if any.
92263         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92264         regcomp, regexec):
92265         Remove now-unnecessary casts among pointer types.
92266         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92267
92268         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92269         (free): Remove decl.
92270
92271         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92272
92273         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92274         (free): Remove decl.
92275
92276         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92277         * lib/xgetcwd.c: Likewise.
92278
92279         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92280         (free): Remove decl.
92281
92282         * lib/strchrnul.c (strchrnul): Define with a prototype.
92283         Fix bug: c_in was not converted to char before searching.
92284
92285         The following changes are not K&R related:
92286
92287         * lib/group-member.h: Include <sys/types.h>, so that this file is
92288         self-contained.
92289         * lib/makepath.h: Likewise.
92290
92291         * lib/getusershell.c (readname, default_index, line_size, readname):
92292         Use size_t, not int, for sizes.
92293         (readname): If the size overflows, report an error instead of
92294         looping forever.
92295
92296 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92297
92298         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92299         libc.
92300
92301 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92302
92303         * README: New section: portability guidelines.
92304
92305 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92306
92307         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92308         C89 spec.
92309
92310 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92311
92312         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92313
92314 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92315
92316         Assume C89 or better; remove K&R cruft.
92317         A few of these changes were first proposed by Derek Robert Price
92318         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92319
92320         * lib/addext.c: Include <string.h> unconditionally.
92321         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92322         Don't declare getenv or malloc.
92323
92324         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92325         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92326         (NULL): Remove.
92327         (find_stack_direction, alloca): Use prototypes.
92328
92329         * lib/atexit.c (atexit): Define using a prototype.
92330
92331         * lib/basename.c, dirname.c, stripslash.c:
92332         Include <string.h> unconditionally.
92333
92334         * lib/bcopy.c: Include <stddef.h>.
92335         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92336
92337         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92338
92339         * lib/error.h (error, error_at_line, error_print_progname)
92340         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92341         * lib/error.c: Include error.h first, to check interface.
92342         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92343         (VA_START): Remove; all uses changeed to va_start.
92344         (exit, strerror): Remove decls.
92345         (error_print_progname): Prototype uncondionally.
92346         Don't include <errno.h>; no longer needed.
92347         (private_strerror): Remove.
92348         (error_tail): Always define.
92349         (error, error_at_line): Assume C89 or better; always use prototypes.
92350         * lib/fatal.c: Include "fatal.h" first, to test interface.
92351         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92352         (VA_START): Remove; all uses changed to va_start.
92353         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92354         this case.
92355         (exit): Remove decl.
92356         (fatal): Prototype unconditionally.  Assume va_start works.
92357         Abort at end, to pacify gcc.
92358
92359         * lib/euidaccess.c (main): Define with a prototype.
92360
92361         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92362
92363         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92364
92365         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92366         prototypes.
92367         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92368         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92369         (getenv): Remove decl.
92370         (fnmatch): Define using a prototype.
92371         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92372         (FCT): Define using a prototype.
92373
92374         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92375
92376         * lib/gethostname.c: Include <stddef.h>.
92377         (gethostname): Define with prototype.  Length is size_t, not int.
92378
92379 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92380
92381         Assume C89 or better; remove K&R cruft.
92382         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92383         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92384         string.h, getenv, malloc.
92385         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92386         headers.
92387         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92388         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92389         do not check for strerror.
92390         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92391         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92392         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92393         do not check for doprnt or vprintf.
92394         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92395         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92396
92397 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92398
92399         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92400         getversion.c should have been removed then, but was accidentally
92401         preserved.
92402
92403         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92404         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92405
92406 2003-09-08  Karl Berry  <karl@gnu.org>
92407
92408         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92409                 config, forget about prep.
92410
92411         * config/depcomp, missing: update from automake.
92412
92413 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92414
92415         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92416         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92417
92418 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92419
92420         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92421         copy_tm_result.  Bug reported by Simon Josefsson in
92422         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92423
92424 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92425
92426         * m4/time_r.m4: New file.
92427         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92428         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92429         is. Check for timegm declaration.
92430         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92431         Do not check for gmtime_r.
92432         Replace mktime if __mktime_internal does not exist and if mktime
92433         hasn't been replaced already.
92434
92435 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92436
92437         * lib/time_r.c, lib/time_r.h: New files.
92438
92439         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92440         __localtime_r.
92441         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92442         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92443
92444         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92445         __gmtime_r.
92446         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92447         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92448         Include <time_r.h>.
92449
92450         * lib/timegm.c: Switch to glibc implementation, with the following
92451         changes:
92452         [defined HAVE_CONFIG_H]: Include <config.h>.
92453         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92454         (__mktime_internal) [!defined _LIBC]: New decl.
92455         (__gmtime_r) [!defined _LIBC]: New macro and function.
92456         (timegm): Use a prototype, since gnulib assumes C89.
92457         Do not bother declaring tmp to be const, as it's not really usefu.
92458         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92459         (timegm): Declare only if HAVE_DECL_TIMEGM.
92460
92461 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92462
92463         * MODULES.html.sh (func_all_modules): Add time_r.
92464         * modules/time_r: New file.
92465         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92466         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92467
92468 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92469
92470         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92471         Bug reported by Lute Kamstra in
92472         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92473
92474         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92475         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92476         course with correspondingly smaller numbers for tomorrow and
92477         yesterday.  From Tadayoshi Funaba.  Originally installed into
92478         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92479         coreutils merge?).
92480
92481 2003-08-31  Simon Josefsson  <jas@extundo.com>
92482
92483         * modules/timegm: New file.
92484         * MODULES.html.sh (func_all_modules): Add timegm.
92485
92486 2003-08-31  Simon Josefsson  <jas@extundo.com>
92487
92488         * m4/timegm.m4: New file.
92489
92490 2003-08-31  Simon Josefsson  <jas@extundo.com>
92491
92492         * lib/timegm.h: New file.
92493         * lib/timegm.c: New file.  Based on
92494         wget-1.8.2/src/http.c:mktime_from_utc.
92495
92496 2003-08-31  Karl Berry  <karl@gnu.org>
92497
92498         * lib/argp.h: update from libc.
92499
92500 2003-08-28  Bruno Haible  <bruno@clisp.org>
92501
92502         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92503         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92504         followed by '#define fnmatch fnmatch_posix' gives an error.
92505
92506 2003-08-28  Bruno Haible  <bruno@clisp.org>
92507
92508         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92509         warning on QNX, which defines O_BINARY to 000000.
92510
92511 2003-08-27  Jim Meyering  <jim@meyering.net>
92512
92513         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92514         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92515         would fail after 32.  Reported by Danny Levinson.  Details here:
92516         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92517
92518 2003-08-24  Bruno Haible  <bruno@clisp.org>
92519
92520         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92521         MSVC7 <stdio.h> is included later.
92522
92523 2003-08-22  Simon Josefsson  <jas@extundo.com>
92524
92525         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92526
92527 2003-08-20  Karl Berry  <karl@gnu.org>
92528
92529         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92530
92531 2003-08-20  Bruno Haible  <bruno@clisp.org>
92532
92533         * modules/progname: New file.
92534         * MODULES.html.sh (func_all_modules): Add progname.
92535
92536 2003-08-20  Bruno Haible  <bruno@clisp.org>
92537
92538         * lib/progname.h: New file, from GNU gettext.
92539         * lib/progname.c: New file, from GNU gettext.
92540         * lib/progreloc.c: New file, from GNU gettext.
92541
92542 2003-08-19  Jim Meyering  <jim@meyering.net>
92543
92544         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92545         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92546
92547 2003-08-19  Bruno Haible  <bruno@clisp.org>
92548
92549         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92550         more.
92551
92552 2003-08-19  Bruno Haible  <bruno@clisp.org>
92553
92554         * lib/xstrdup.c: Assume <string.h> exists.
92555
92556 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92557
92558         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92559         in makefile rules.
92560
92561 2003-08-18  Jim Meyering  <jim@meyering.net>
92562
92563         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92564         * m4/lib-ld.m4: Likewise.
92565
92566 2003-08-18  Jim Meyering  <jim@meyering.net>
92567
92568         * lib/setenv.h: Indent nested cpp directive.
92569         * lib/vasnprintf.c: Remove trailing blanks.
92570
92571 2003-08-17  Simon Josefsson  <jas@extundo.com>
92572
92573         * modules/xstrndup: New file.
92574         * MODULES.html.sh (func_all_modules): Add xstrndup.
92575
92576 2003-08-17  Simon Josefsson  <jas@extundo.com>
92577
92578         * modules/argp: Fix autoconf macro name. Add more dependencies.
92579
92580 2003-08-17  Simon Josefsson  <jas@extundo.com>
92581
92582         * m4/xstrndup.m4: New file.
92583
92584 2003-08-17  Simon Josefsson  <jas@extundo.com>
92585
92586         * m4/argp.m4: New file.
92587
92588 2003-08-17  Simon Josefsson  <jas@extundo.com>
92589             Bruno Haible  <bruno@clisp.org>
92590
92591         * lib/xstrndup.h: New file.
92592         * lib/xstrndup.c: New file.
92593
92594 2003-08-17  Bruno Haible  <bruno@clisp.org>
92595
92596         * modules/strndup (Files, Include): Add lib/strndup.h.
92597
92598 2003-08-17  Bruno Haible  <bruno@clisp.org>
92599
92600         * modules/euidaccess (Files): Add lib/euidaccess.h.
92601
92602 2003-08-17  Bruno Haible  <bruno@clisp.org>
92603
92604         * lib/strndup.h: New file.
92605
92606 2003-08-17  Bruno Haible  <bruno@clisp.org>
92607
92608         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92609         like AC_GNU_SOURCE.
92610         * modules/extensions (configure.ac): Comment out the invocation of
92611         gl_USE_SYSTEM_EXTENSIONS.
92612
92613 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92614
92615         Merges from coreutils, etc.
92616         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92617         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92618         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92619         fixing a typo.
92620         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92621         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92622
92623 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92624
92625         Document merge from coreutils.
92626         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92627         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92628         * modules/utime: Add m4/utimes-null.m4.
92629
92630 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92631
92632         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92633         space, undoing this 2003-08-12 change:
92634         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92635
92636 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92637
92638         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92639         strtoul.c from libc, undoing this 2003-08-12 change:
92640         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92641
92642 2003-08-16  Jim Meyering  <jim@meyering.net>
92643
92644         Merges from coreutils.
92645         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92646         prefix.  Adjust cache variables similarly.  Create 500 rather than
92647         just 300 files, to exercise bug on Darwin6.5, too.
92648         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92649         $missing_dir.
92650         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92651         AM_SYS_POSIX_TERMIOS.
92652         Reported by mkc@mathdogs.com.
92653         Also change use of $am_cv_sys_posix_termios
92654         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92655         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92656         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92657         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92658         in /proc/mounts until it finds one with matching device number.  This
92659         is unnecessary when the FILE argument *is* a mount point.  No stat call
92660         is necessary in that case.  So, disable the statvfs-testing code on
92661         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92662         as RedHat bug# 84846.
92663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92664         to 1MB, so as not to render systems with no stack size limit (e.g.,
92665         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92666         Include <unistd.h>.  On some systems,
92667         it is required for the definition of _SC_PAGESIZE.
92668
92669 2003-08-16  Jim Meyering  <jim@meyering.net>
92670
92671         Merge from coreutils.
92672         * lib/xstrtoimax.c: #else #if -> #elif.
92673         * lib/xstrtoumax.c: Likewise.
92674
92675 2003-08-16  Jim Meyering  <jim@meyering.net>
92676
92677         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92678         * m4/utimes.m4: Removed.
92679         * m4/utimes-null.m4: Renamed from utimes.m4.
92680
92681         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92682         to 1MB, so as not to render systems with no stack size limit (e.g.,
92683         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92684         Include <unistd.h>.  On some systems,
92685         it is required for the definition of _SC_PAGESIZE.
92686
92687 2003-08-16  Jim Meyering  <jim@meyering.net>
92688         and Paul Eggert  <eggert@cs.ucla.edu>
92689
92690         Merges from coreutils, etc.
92691
92692         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92693         using the latest version from cvs.  This avoids problems with #line
92694         directives using a vendor (Sun) compiler.
92695         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92696         Don't set GETGROUPS_LIB here; now it's
92697         done via getgroups.m4's wrapper function.
92698         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92699         rather than just in sh-util/configure.in, so that the
92700         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92701         same.
92702         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92703         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92704         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92705         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92706         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92707         Remove code that is now done by the newly-required macros.
92708         Append $(EXEEXT) to DF_PROG.
92709         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92710         Do not invoke or require the following here,
92711         since prereq.m4 or some gnulib .m4 now does this for us:
92712         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92713         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92714         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92715         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92716         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92717         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92718         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92719         AC_FUNC_OBSTACK.
92720         Do not replace the following functions, as this is now the job
92721         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92722         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92723         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92724         atexit getpass, strdup, getpagesize.
92725         Replace 'raise'.
92726         Do not check for the following functions, as this is now the job
92727         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92728         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92729         setregid.
92730         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92731         Check for sys/sysctl.h.
92732         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92733         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92734         of checking for ssize_t ourselves.
92735
92736         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92737         Require every macro that gnulib/modules/* suggests for us.
92738         (jm_PREREQ_ADDEXT): New macro.
92739         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92740         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92741
92742         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92743         (gl_PHYSMEM): Use it.
92744         Also check for `table' function.
92745         Check for new headers and functions.
92746         Add check for sys/sysmp.h.
92747         With suggestions from Kaveh Ghazi.
92748         Ignore headers that are present but cannot be compiled.  This
92749         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92750         C 5.4.
92751
92752 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92753
92754         Document merge from coreutils.
92755         * modules/userspec: Depend on posixver.
92756         * modules/strftime: Depend on tzset.
92757
92758 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92759
92760         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92761         rather than tab, after '#' in shell-script copyright notices.
92762         Suggested by Bruno Haible.
92763
92764 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92765
92766         * config/srclist-update: Use three spaces, rather than tab, after '#'
92767         in shell-script copyright notices.  Suggested by Bruno Haible.
92768         Remove unnecessary parenthesization in regular expression.
92769
92770 2003-08-15  Jim Meyering  <jim@meyering.net>
92771
92772         Merge from coreutils.
92773         * lib/xgethostname.c: Include <stdlib.h>.
92774         (xghostname): Don't exit for anything other than memory-related
92775         failure; just return NULL.
92776         * lib/userspec.c: Include "posixver.h".
92777         (parse_user_spec): Accept `.' as a separator only
92778         in pre-POSIX-200112 mode.
92779         * lib/strtoimax.c: Use #elif rather than #else #if.
92780         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92781         Remove function, now that we can rely on a working tzset function.
92782         [!_LIBC]: Ensure that the required autoconf test has been run.
92783         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92784         Use underlying_strftime for %r.
92785         * lib/sha.c: Merge in some clean-up and optimization changes from
92786         glibc.
92787         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92788         Ensure that it is a multiple of 64.
92789         Rearrange loop exit tests so as to avoid performing an
92790         additional fread after encountering an error or EOF.
92791         * lib/realloc.c: Update copyright date.
92792
92793 2003-08-15  Jim Meyering  <jim@meyering.net>
92794         and Paul Eggert  <eggert@twinsun.com>
92795
92796         Merge from coreutils.
92797         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92798         member but strut utmpx does not.  Needed for AIX 4.3.3.
92799         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92800
92801 2003-08-15  Jim Meyering  <jim@meyering.net>
92802         and Paul Eggert  <eggert@cs.ucla.edu>
92803
92804         Merges from coreutils, etc.
92805         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92806         Require gl_FUNC_TZSET_CLOBBER.
92807         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92808         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92809         members.
92810
92811 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92812
92813         Help the merge from coreutils.
92814         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92815         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92816         * m4/tzset.m4: Use it too.
92817
92818 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92819
92820         * modules/tzset: New file.
92821
92822 2003-08-14  Jim Meyering  <jim@meyering.net>
92823
92824         Merges from coreutils.
92825         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92826         variable names, rather than @FNMATCH_H@.
92827         * modules/alloca: Likewise for $(ALLOCA_H).
92828
92829         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92830         the three copies of the literal target, `fnmatch.h'.
92831         * modules/alloca (alloca.h): Likewise.
92832
92833 2003-08-14  Jim Meyering  <jim@meyering.net>
92834
92835         Merge from coreutils.
92836         * m4/tzset.m4: New file.
92837         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92838         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92839         otherwise, AIX 5.1 systems would end up using the latter.
92840         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92841         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92842         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92843         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92844
92845 2003-08-14  Jim Meyering  <jim@meyering.net>
92846
92847         Merge from coreutils.
92848         * lib/obstack.h: Whitespace changes.
92849         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92850         and xcalloc return values.
92851         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92852         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92853         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92854         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92855         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92856         error from mntctl.
92857         Use mntctl's return value to drive the entry-processing loop, since
92858         we can't rely on the value of the vmt_length member in the last
92859         entry.  On some systems doing so could result in exhausting
92860         virtual memory.  Based in part on a patch from Mike Jetzer.
92861
92862 2003-08-14  Jim Meyering  <jim@meyering.net>
92863         and Paul Eggert  <eggert@twinsun.com>
92864
92865         Merges from coreutils, plus other fixes.
92866         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92867         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92868         for credits and details.  Thanks to Kaveh Ghazi for helping
92869         to keep these files in sync.
92870         (ARRAY_SIZE): Define it.
92871         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92872         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92873         (memcasecmp): Don't assume size_t fits in unsigned int.
92874         Remove casts and duplicate code.
92875         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92876         (memcpy): Remove definition.
92877         Merge in some clean-up and optimization changes from glibc.
92878         [BLOCKSIZE]: Move definition to top of file.
92879         Ensure that it is a multiple of 64.
92880         Rearrange loop exit tests so as to avoid performing an
92881         additional fread after encountering an error or EOF.
92882         * lib/md5.h (md5_uintptr): Define.
92883         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92884         return to the initial working directory.  Preserve errno
92885         for caller.
92886         * lib/idcache.c: Include "xalloc.h".
92887         (xmalloc, xrealloc): Remove decls.
92888         (getuser): Remove casts no longer required in C89.
92889         * lib/human.c: Include stdio.h, for sprintf.
92890         * lib/group-member.c: Include "xalloc.h".
92891         (xmalloc, xrealloc): Remove decls.
92892         (get_group_info): Remove casts no longer required in C89.
92893         * lib/getusershell.c (readname): Remove casts no longer required in
92894         C89.
92895         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92896         * lib/getline.c: Whitespace fix, from coreutils.
92897
92898 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92899
92900         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92901         Check for isascii.
92902
92903         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92904         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92905         Undo previous (whitespace-only) change.
92906
92907 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92908
92909         * lib/exclude.c: Include <ctype.h>
92910         (IN_CTYPE_DOMAIN): New macro.
92911         (is_space): New fn.
92912         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92913         and empty lines.
92914
92915         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92916         Undo previous (whitespace-only) change.
92917
92918 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92919
92920         * config/srclist-update: Change update back to the old behavior,
92921         leaving whitespace alone.  Use one 'sed' command rather than a
92922         pipeline.
92923         (fixlicense): Now a variable, not a function.
92924         (remove_trailing_blanks): Remove.
92925         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92926         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92927         Undo previous (whitespace-only) change.
92928
92929 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92930
92931         Merge from coreutils.
92932         * modules/euidaccess: Add lib_SOURCES, include for new
92933         file euidaccess.h
92934
92935 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92936
92937         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92938         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92939         Normalize leading white space and remove trailing white space.
92940
92941         Merge from coreutils
92942         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92943
92944         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92945         0.12.1.  These files are now being upgraded automatically by
92946         ../config/srclist-update.
92947
92948 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92949
92950         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92951         Normalize leading white space and remove trailing white space.
92952         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92953         notice, as per ../config/srclist-update.
92954
92955         Merge from coreutils.
92956         * lib/euidaccess.h: New file.
92957         * lib/euidaccess.c: Include it.
92958         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92959         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92960         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92961
92962 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92963
92964         * config/srclist-update: Add copyright notice.
92965         (remove_id_lines, remove_trailing_blanks): New constants.
92966         (fixfile): Use them to normalize spacing a bit in copied files.
92967         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92968         Normalize leading white space and remove trailing white space.
92969
92970         * config/texinfo.tex: Sync with texinfo.
92971
92972         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92973         strtoul.c from libc, to merge coreutils whitespace changes.
92974
92975         * config/srclist.txt: Get the following m4 files from gettext:
92976         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92977         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92978         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92979         wint_t.m4.
92980
92981 2003-08-12  Karl Berry  <karl@gnu.org>
92982
92983         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92984         been made.
92985
92986 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92987
92988         * modules/gnu-source, m4/gnu-source.m4:
92989         Remove; we're assuming Autoconf 2.54 or later now.
92990         Suggested by Bruno Haible.
92991         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92992
92993 2003-08-11  Bruno Haible  <bruno@clisp.org>
92994
92995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92996
92997 2003-08-11  Bruno Haible  <bruno@clisp.org>
92998
92999         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93000         (vasnprintf): Use it instead of wcslen.
93001
93002 2003-08-11  Bruno Haible  <bruno@clisp.org>
93003
93004         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93005         value to ensure that _Bool promotes to int. Use #define for _Bool when
93006         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93007
93008 2003-08-10  Karl Berry  <karl@gnu.org>
93009
93010         * lib/regex.h: update from libc (whitespace fix).
93011
93012 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93013
93014         Merge some files from coreutils.  These changes were
93015         originally made by Jim Meyering.
93016         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93017         many older Unixes require this.
93018         * lib/alloca.c (alloca): Remove cast to argument of free;
93019         no longer needed in C89.
93020         * lib/alloca_.h, regex.h: Fix white space to match
93021         what GNU indent does.
93022
93023 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93024
93025         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93026         apparently Emacs's Unicode mode got confused before my 2003-08-05
93027         checkin.
93028
93029 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93030
93031         * m4/extensions.m4: New file.
93032         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93033         Require gl_USE_SYSTEM_EXTENSIONS.
93034         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93035         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93036
93037 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93038
93039         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93040         * modules/extensions, modules/gnu-source: New files.
93041         * modules/timespec, modules/unlocked-io: Depend on extensions.
93042
93043 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93044
93045         * modules/restrict: New file.
93046         * MODULES.html.sh (func_all_modules): Add restrict.
93047         * modules/regex: Depend on restrict.
93048
93049 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93050
93051         * m4/restrict.m4: New file.
93052         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93053
93054 2003-08-07  Bruno Haible  <bruno@clisp.org>
93055
93056         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93057         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93058
93059 2003-08-07  Bruno Haible  <bruno@clisp.org>
93060
93061         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93062         makes the module 'getndelim2' compatible with the module 'getline'.
93063
93064 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93065
93066         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93067         byte with "\201" to avoid glitches when editing that source file
93068         with multi-gnome-terminal.
93069
93070 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93071
93072         * lib/bumpalloc.h: Remove.
93073
93074 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93075
93076         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93077         * modules/bumpalloc: Remove.
93078
93079 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93080
93081         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93082         GNU coding style.
93083
93084         Merge from coreutils.
93085         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93086         1. From glibc.
93087         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93088         from Karl Berry, implemented by Jim Meyering.
93089         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93090         from Dmitry V. Levin.
93091         Remove anachronistic cast of xrealloc.
93092         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93093         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93094         type. Otherwise, it wouldn't compile with at least /bin/cc on
93095         ymp-cray-unicos9.0.2.X.
93096         Combine two mostly-identical uses of alloca into one.
93097         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93098
93099 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93100
93101         [From Emacs.]
93102
93103         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93104         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93105         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93106         obsolete NLIST_NAME_UNION.
93107         [__GNU__]: Undef BSD and FSCALE.
93108         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93109
93110 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93111
93112         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93113         an enum type, so that it's guaranteed to promote to int.  See:
93114         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93115
93116 2003-08-03  Karl Berry  <karl@gnu.org>
93117
93118         * config/depcomp: update from automake.
93119
93120 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93121
93122         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93123         (strerror): Don't assume that a printable int fits in 14 bytes.
93124
93125 2003-07-31  Bruno Haible  <bruno@clisp.org>
93126
93127         * modules/getpass-gnu: New file.
93128         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93129
93130 2003-07-31  Bruno Haible  <bruno@clisp.org>
93131
93132         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93133
93134 2003-07-24  Karl Berry  <karl@gnu.org>
93135
93136         * config/missing: update from automake.
93137
93138 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93139             Bruno Haible  <bruno@clisp.org>
93140
93141         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93142         * lib/getline.c (getline, getdelim): Likewise.
93143         Remove _GNU_SOURCE define; now it's defined in config.h through
93144         m4/getline.m4.
93145
93146 2003-07-23  Karl Berry  <karl@gnu.org>
93147
93148         * config/config.sub: update from prep.
93149
93150 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93151
93152         * modules/xalloc (Depends-on): Add exitfail.
93153         * modules/xmemcoll: Likewise.
93154
93155 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93156
93157         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93158         over-parenthesization in macros.
93159
93160         Sync with coreutils.
93161
93162         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93163         required by C99.
93164
93165         Use `exit_failure' for xalloc and xmemcoll instead of their own
93166         private exit-failure variables.
93167         * lib/xalloc.h (xalloc_exit_failure): Remove.
93168         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93169         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93170         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93171         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93172         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93173
93174 2003-07-20  Jim Meyering  <jim@meyering.net>
93175
93176         * modules/closeout (Depends-on): Add exitfail.
93177         Suggestion from Bruno Haible.
93178
93179 2003-07-19  Karl Berry  <karl@gnu.org>
93180
93181         * config/config.sub: update from prep.
93182
93183 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93184
93185         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93186         Remove.
93187         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93188         to test that it can stand by itself.  Include "exitfail.h".
93189         Clients should set exit_failure instead.
93190         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93191
93192 2003-07-18  Bruno Haible  <bruno@clisp.org>
93193
93194         * modules/getndelim2: New file.
93195         * modules/getline: Share files with module getndelim2.
93196         * modules/getnline: Depend on getndelim2 instead of sharing files with
93197         it. Add getnline.c to lib_SOURCES.
93198         * MODULES.html.sh (func_all_modules): Add getndelim2.
93199
93200 2003-07-18  Bruno Haible  <bruno@clisp.org>
93201
93202         * m4/getndelim2.m4: New file.
93203         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93204         invoke gl_PREREQ_GETNDELIM2.
93205         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93206         gl_PREREQ_GETNDELIM2.
93207         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93208         gl_GETNDELIM2.
93209
93210 2003-07-18  Bruno Haible  <bruno@clisp.org>
93211
93212         * lib/getndelim2.h: New file.
93213         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93214         getndelim2.h.
93215         (getndelim2): Make non-static. Change return type to ssize_t.
93216         * lib/getline.h: Change argument names.
93217         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93218         * lib/getnline.c: Include getndelim2.h.
93219
93220 2003-07-18  Andreas Schwab  <schwab@suse.de>
93221
93222         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93223
93224 2003-07-17  Karl Berry  <karl@gnu.org>
93225
93226         * config/config.sub: update from prep.
93227
93228 2003-07-17  Bruno Haible  <bruno@clisp.org>
93229
93230         * modules/getnline: New file.
93231         * modules/getline: Add lib/getndelim2.c to source file list.
93232         * MODULES.html.sh (func_all_modules): Add getnline.
93233
93234 2003-07-17  Bruno Haible  <bruno@clisp.org>
93235
93236         * m4/getnline.m4: New file.
93237
93238 2003-07-17  Bruno Haible  <bruno@clisp.org>
93239
93240         * m4/Makefile.am.in: Remove file.
93241         * m4/Makefile.am: Remove file.
93242         * m4/Makefile.in: Remove file.
93243
93244 2003-07-17  Bruno Haible  <bruno@clisp.org>
93245
93246         * lib/getnline.h: New file.
93247         * lib/getnline.c: New file.
93248         * lib/getndelim2.c: New file, extracted from getline.c.
93249         (getndelim2): Renamed from getdelim2, with added nmax argument.
93250         * lib/getline.c: Include getndelim2.c.
93251         (getdelim2): Moved out to getndelim2.c.
93252         (getline, getdelim): Update.
93253
93254 2003-07-17  Bruno Haible  <bruno@clisp.org>
93255
93256         * lib/Makefile.am: Remove file.
93257         * lib/Makefile.in: Remove file.
93258
93259 2003-07-17  Bruno Haible  <bruno@clisp.org>
93260
93261         * configure.in: Remove file.
93262         * Makefile.in: Remove file.
93263
93264 2003-07-17  Bruno Haible  <bruno@clisp.org>
93265
93266         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93267
93268 2003-07-16  Karl Berry  <karl@gnu.org>
93269
93270         * config/srclist-update: was running fixlicense twice, which caused
93271                 texinfo.tex to be nullified for some reason.  Simplify,
93272                 $gplsrc is no longer needed as far as I can see?
93273
93274 2003-07-16  Jim Meyering  <jim@meyering.net>
93275
93276         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93277
93278 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93279
93280         * config/srclist.txt: Get the following files from gettext-runtime/intl
93281         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93282         ref-del.sin.  From Bruno Haible.
93283         * config/srclist-update (fixfile): Change grep pattern again, since the
93284         previous fix didn't work (there was another trailing $).  Use
93285         '[$]' to escape the $s.
93286
93287 2003-07-15  Karl Berry  <karl@gnu.org>
93288
93289         * lib/vasnprintf.c: update from gettext.
93290
93291 2003-07-15  Karl Berry  <karl@gnu.org>
93292
93293         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93294         gets expanded when surrounded by '$'.
93295
93296 2003-07-15  Jim Meyering  <jim@meyering.net>
93297
93298         * modules/save-cwd: Don't depend on error.  From Derek Price.
93299
93300 2003-07-15  Jim Meyering  <jim@meyering.net>
93301
93302         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93303
93304 2003-07-14  Simon Josefsson  <jas@extundo.com>
93305
93306         * modules/mempcpy: New file.
93307         * MODULES.html.sh (func_all_modules): Add mempcpy.
93308
93309 2003-07-14  Simon Josefsson  <jas@extundo.com>
93310
93311         * m4/mempcpy.m4: New file.
93312
93313 2003-07-14  Simon Josefsson  <jas@extundo.com>
93314
93315         * lib/mempcpy.h: New file.
93316         * lib/mempcpy.c: New file.
93317
93318 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93319
93320         * modules/getdate, modules/posixtm: Depend on mktime.
93321
93322 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93323
93324         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93325         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93326         unicodeio.c, unicodeio.h, unlocked-io.h:
93327         Switch from LGPL to GPL.
93328
93329 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93330
93331         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93332         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93333         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93334         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93335         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93336         updated automatically by ../config/srclist-update.  This changes
93337         their license from LPGL to GPL.
93338
93339 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93340
93341         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93342         assumed to refer to the root of the most recent stable gettext version.
93343         * config/srclistvars.sh: Add defaults for eggert.
93344         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93345         Match "This program" as well as "The program".  This is needed
93346         for gettext.
93347
93348 2003-07-14  Jim Meyering  <jim@meyering.net>
93349
93350         Don't emit diagnostics.  Let callers do that.
93351         * lib/save-cwd.c: Don't include "error.h".
93352         (save_cwd): Don't call error.  Ensure that errno is valid
93353         when returning nonzero.
93354
93355         * lib/save-cwd.h (restore_cwd): Update prototype.
93356         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93357         Simplify.  Don't call error upon failure.  Let callers do that.
93358         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93359         when auditing is enabled.  But don't bother updating the #if.
93360
93361 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93362
93363         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93364         it breaks C++ compilation.
93365         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93366
93367 2003-07-10  Simon Josefsson  <jas@extundo.com>
93368
93369         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93370
93371 2003-07-10  Jim Meyering  <jim@meyering.net>
93372
93373         * m4/clock_time.m4: Remove trailing blank.
93374         * m4/intmax_t.m4: Likewise.
93375
93376 2003-07-10  Jim Meyering  <jim@meyering.net>
93377
93378         * lib/vasnprintf.c: Remove trailing blanks.
93379         Make cpp indentation consistent.
93380
93381 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93382
93383         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93384         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93385         Switch from LGPL to GPL.
93386
93387 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93388
93389         * config/srclist.txt: Sort sublists.  Add
93390         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93391         that differ from gnulib for one reason or another; we'd like this list
93392         to be smaller but for now let's document what we have.
93393
93394 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93395
93396         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93397         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93398         and sweeter "eval x=$x".
93399         * config/srclist.txt: Get lib/argp* from glibc.
93400
93401 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93402
93403         * lib/mktime.c: Fix some boundary cases and remove need for floating
93404         point.
93405
93406         Issue a compile-time diagnostic if time_t is floating point, or if
93407         two's complement arithmetic is not in effect, or if arithmetic
93408         right shift does not propagate the sign.  These assumptions were
93409         all in the original code but they weren't checked.
93410
93411         (TIME_T_MIDPOINT, verify): New macros.
93412         (__isleap): Remove; it has integer overflow problems.
93413         (leapyear): New function, without those problems.
93414         (ydhms_tm_diff): Remove; splitting into two parts.
93415         (ydhms_diff): New function, containing the arithmetic part of
93416         the old ydhms_tm_diff function.  Issue a compile-time
93417         diagnostic if we are not using C99 integer division.
93418         Avoid casts when possible.
93419         (guess_time_tm): New function, containing the checking part of
93420         the old ydhms_tm_diff function.  Return the new value, rather than
93421         the difference between it and the old.  Accept a new argument T
93422         so that *T specifies the old value.  Check for overflow in the result.
93423
93424         (__mktime_internal): Use a time_t offset, not a long int offset.
93425         This undoes the 2003-06-04 change, which is no longer needed now
93426         that we have better overflow checking.
93427         (localtime_offset): Likewise.
93428
93429         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93430         and long are 64-bit but int is only 32-bit.
93431         (ydhms_diff): Use long int to store year1 and yday1.
93432         Issue a compile-time diagnostic if long int is not wide enough.
93433
93434         (__mktime_internal): Use long int to store adjusted year and yday.
93435         Use plain C rather than preprocessor commands, if that doesn't
93436         affect efficiency.
93437         Check for overflow (and try to repair) after each probe
93438         rather than checking only at the very end.  This avoids some bugs
93439         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93440         does not equal GMT offset at maximum time).
93441         Use integer to check for overflow rather than floating point; this
93442         is more portable to non-IEEE hosts, and is a tad faster.
93443         When we detect that we are oscillating between two values,
93444         don't check whether tm_isdst has the requested value, since
93445         we already know the answer.  When tm_isdst has the wrong value,
93446         use a different heuristic to find the right one, based on the
93447         extreme values actually observed in practice in tz2003a,
93448         rather than the (overly optimistic) "previous 3 calendar quarters".
93449
93450         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93451         "T const" to accommodate glibc style.
93452         (check_result): Use less-confusing report format.  "long" -> "long int.
93453         (main): Likewise.
93454         Don't loop if the iteration overflows time_t.
93455         Allow a negative step in the iteration.
93456
93457 2003-07-06  Karl Berry  <karl@gnu.org>
93458
93459         * config/depcomp: update from automake.
93460         * config/config.sub: update from prep.
93461
93462 2003-07-03  Karl Berry  <karl@gnu.org>
93463
93464         * config/config.guess: update from prep.
93465
93466 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93467
93468         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93469         xreadlink.c now includes it unconditionally.
93470
93471 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93472
93473         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93474         having it depend on HAVE_SYS_TYPES_H.
93475
93476 2003-07-01  Bruno Haible  <bruno@clisp.org>
93477
93478         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93479         <sys/types.h> should be sufficient.
93480         Reported by Paul Eggert.
93481
93482 2003-06-26  Karl Berry  <karl@gnu.org>
93483
93484         * config/depcomp: update from automake.
93485
93486 2003-06-26  Bruno Haible  <bruno@clisp.org>
93487
93488         * modules/human: Depend on module stdbool.
93489
93490 2003-06-25  Bruno Haible  <bruno@clisp.org>
93491
93492         * modules/readlink: New file.
93493         * modules/xreadlink: Depend on it.
93494         * MODULES.html.sh (func_all_modules): Add readlink.
93495
93496 2003-06-25  Bruno Haible  <bruno@clisp.org>
93497
93498         * m4/readlink.m4: New file.
93499
93500 2003-06-25  Bruno Haible  <bruno@clisp.org>
93501
93502         * lib/readlink.c: New file.
93503
93504 2003-06-22  Karl Berry  <karl@gnu.org>
93505
93506         * config/srclist.txt: update mkinstalldirs from automake.
93507         * config/mkinstalldirs: update.
93508
93509 2003-06-22  Bruno Haible  <bruno@clisp.org>
93510
93511         Portability to mingw32.
93512         * m4/ssize_t.m4: New file, from GNU gettext.
93513         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93514         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93515
93516 2003-06-22  Bruno Haible  <bruno@clisp.org>
93517
93518         * modules/safe-read: Add m4/ssize_t.m4.
93519         * modules/xreadlink: Add m4/ssize_t.m4.
93520
93521 2003-06-20  Bruno Haible  <bruno@clisp.org>
93522
93523         Assume C89, so PARAMS isn't needed.
93524         * lib/unicodeio.h (PARAMS): Remove.
93525         * lib/unicodeio.c: Don't use PARAMS.
93526
93527 2003-06-18  Karl Berry  <karl@gnu.org>
93528
93529         * config/config.{guess,sub}: update from prep.
93530
93531 2003-06-18  Jim Meyering  <jim@meyering.net>
93532
93533         Merge changes from coreutils.
93534         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93535         Remove explicit declarations of xmalloc and realloc.
93536         Include xalloc.h.
93537         (read_utmp): Remove anachronistic cast of xmalloc.
93538
93539 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93540
93541         Assume C89, so PARAMS isn't needed.
93542         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93543         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93544         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93545         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93546         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93547         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93548         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93549         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93550         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93551         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93552         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93553         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93554         no longer needed. Anyway, config.h should always be included before any
93555         other file.
93556
93557 2003-06-11  Simon Josefsson  <jas@extundo.com>
93558
93559         * modules/sysexits: New file.
93560         * MODULES.html.sh (func_all_modules): Add sysexits.
93561
93562 2003-06-11  Simon Josefsson  <jas@extundo.com>
93563
93564         * lib/sysexit_.h: New file.
93565
93566 2003-06-11  Derek Price  <derek@ximbiot.com>
93567
93568         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93569         necessary.
93570
93571 2003-06-11  Bruno Haible  <bruno@clisp.org>
93572
93573         * m4/sysexits.m4: New file.
93574
93575 2003-06-10  Simon Josefsson  <jas@extundo.com>
93576
93577         * lib/argp.h: New file, from glibc.
93578         * lib/argp-ba.c: New file, from glibc.
93579         * lib/argp-eexst.c: New file, from glibc.
93580         * lib/argp-fmtstream.c: New file, from glibc.
93581         * lib/argp-fmtstream.h: New file, from glibc.
93582         * lib/argp-fs-xinl.c: New file, from glibc.
93583         * lib/argp-help.c: New file, from glibc.
93584         * lib/argp-namefrob.h: New file, from glibc.
93585         * lib/argp-parse.c: New file, from glibc.
93586         * lib/argp-pv.c: New file, from glibc.
93587         * lib/argp-pvh.c: New file, from glibc.
93588         * lib/argp-xinl.c: New file, from glibc.
93589
93590 2003-06-10  Simon Josefsson  <jas@extundo.com>
93591
93592         * modules/strchrnul: New file.
93593
93594 2003-06-10  Simon Josefsson  <jas@extundo.com>
93595
93596         * modules/argp: New file.
93597
93598 2003-06-10  Simon Josefsson  <jas@extundo.com>
93599
93600         * m4/strchrnul.m4: New file.
93601
93602 2003-06-10  Simon Josefsson  <jas@extundo.com>
93603
93604         * lib/strchrnul.h: New file.
93605         * lib/strchrnul.c: New file.
93606
93607 2003-06-10  Bruno Haible  <bruno@clisp.org>
93608
93609         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93610
93611 2003-06-07  Karl Berry  <karl@gnu.org>
93612
93613         * config/config.{guess,sub}: update from prep.
93614
93615 2003-06-07  Jim Meyering  <jim@meyering.net>
93616
93617         * modules/strtod: Use $(...) notation, not @...@ for
93618         AC_REPLACE'd variables.
93619         * modules/localcharset: Likewise.
93620
93621 2003-06-07  Jim Meyering  <jim@meyering.net>
93622
93623         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93624         in place of my name in the copyright comment.
93625         Remove definition and uses of __P.
93626
93627         From coreutils.
93628         * lib/stat.c: Don't declare xmalloc explicitly.
93629         Instead, include "xalloc.h".
93630         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93631         xrealloc, and xcalloc return values.
93632         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93633         Improve comment.
93634         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93635
93636 2003-06-07  Bruno Haible  <bruno@clisp.org>
93637
93638         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93639         avoid AC_CONFIG_LINKS.
93640         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93641         fnmatch.h, to avoid AC_CONFIG_LINKS.
93642         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93643
93644 2003-06-07  Bruno Haible  <bruno@clisp.org>
93645
93646         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93647         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93648         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93649         directory.
93650         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93651         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93652         directory.
93653
93654 2003-06-06  Jim Meyering  <jim@meyering.net>
93655
93656         Merge from coreutils.
93657         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93658         Consolidate declarations and initializations of *_base* locals.
93659
93660         Merge from coreutils.
93661         This avoids a core dump on systems without GNU putenv,
93662         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93663         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93664         (unsetenv): New static function, from GNU libc.
93665         (rpl_putenv): Use it.
93666
93667         * lib/modechange.c: Remove trailing blanks.
93668
93669         Merge from coreutils.
93670         * lib/fsusage.c: Remove declaration of statfs.
93671         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93672
93673         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93674
93675 2003-06-06  Jim Meyering  <jim@meyering.net>
93676
93677         * lib/stdbool_.h: Renamed from stdbool.h.in.
93678
93679 2003-06-06  Jim Meyering  <jim@meyering.net>
93680             Bruno Haible  <bruno@clisp.org>
93681
93682         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93683         Adjust Makefile.am snippet not to redirect directly to target.
93684         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93685
93686 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93687
93688         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93689         mismatch, look in future quarters as well as past.  This fixes a
93690         bug when processing fall-backwards gaps immediately after a long
93691         period of daylight-saving time.
93692
93693         * lib/mktime.c: Assume freestanding C89 or better.
93694         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93695         (__P): Remove; not used.
93696         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93697         (mktime, not_equal_tm, print_tm, check_result,
93698         main): Use prototypes.  Use const * where appropriate.
93699         (main): Fix typo in testing code that uncovered by above changes.
93700         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93701
93702 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93703
93704         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93705         locale.h, localeconv.  This merges changes from coreutils.
93706
93707         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93708         It can be removed after the next Autoconf is released.
93709         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93710         needed.
93711
93712 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93713
93714         * lib/mktime.c: Fix Debian bug 177940
93715         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93716         (localtime_offset): Now long int, not time_t, because we want it
93717         to be guaranteed to be signed.  All uses changed.
93718         (__mktime_internal): If overflow would occur when adding offset,
93719         don't add it.
93720
93721         Merge 'human' changes from coreutils.  Rewrite to support
93722         locale-specific notations like thousands separators.
93723         * lib/human.c: Simplify authorship notice.
93724         Include human.h immediately after config.h.
93725         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93726         <limits.h>: Do not include, since human.h does.
93727         (SIZE_MAX, UINTMAX_MAX): New macros.
93728         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93729         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93730         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93731         (power_letter): Renamed from suffixes.
93732         (generate_suffix_backwards): Remove.
93733         (adjust_value): Now takes int style (because of human.h changes)
93734         and long double value (for greater precision on some platforms).
93735         (group_number): New function.
93736         (human_readable): Use it.  Use integer options, not enum.
93737         Put the options before the sizes in the arg list.
93738         Support all the new options.
93739         The old human_readable function has been removed;
93740         use inttostr.h instead.
93741         (human_readable, default_block_size, humblock):
93742         Use uintmax_t, not int, for block sizes.
93743         (human_readable_inexact, block_size_types): Remove.
93744         (block_size_opts): New constant.
93745         (human_options): Renamed from human_block_size, with new signature
93746         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93747         * lib/human.h: Add copyright and authorship notice.
93748         Include <limits.h> and <stdbool.h> unconditionally.
93749         (PARAMS): Remove.  All uses removed.
93750         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93751         (enum human_inexact_style): Remove tag; now a nameless enum.
93752         (human_floor, human_ceiling, human_round_to_even): Now have
93753         values 2, 0, 1 rather than -1, 1, 0.
93754         (human_group_digits, human_suppress_point_zero, human_autoscale,
93755         human_base_1024, human_SI, human_B): New constants.
93756         (human_readable_inexact, human_block_size): Remove.
93757         (human_readable): Size args are now uintmax_t, not int.
93758         (human_options): New decl.
93759
93760         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93761         unnecessary now that we assume C89 or better.  This change
93762         imported from coreutils.
93763
93764         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93765         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93766         in the 2003-05-30 sync from glibc.
93767
93768         .h files should stand alone, but we shouldn't include <sys/types.h>
93769         if we can get away with just <stddef.h>.
93770
93771         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93772         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93773         rather than <sys/types.h>, as we merely need size_t.
93774         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93775         to get size_t.
93776         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93777         Include <stdio.h>, to get FILE.
93778         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93779         memcasecmp.h has included <stddef.h> and all we need is size_t.
93780         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93781         our interface, instead of including <sys/types.h>
93782
93783 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93784
93785         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93786         now, as glibc mktime is buggy on non-glibc systems.
93787
93788 2003-06-03  Karl Berry  <karl@gnu.org>
93789
93790         * config/config.sub: update from prep.
93791
93792 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93793
93794         [from coreutils]
93795         Fix some minor time-related bugs with POSIX time arguments.
93796         Some valid time stamps were being rejected (notably -1, and
93797         time stamps before 1900 on 64-bit hosts).  And some invalid
93798         time stamps were being accepted, e.g. September 31.
93799
93800         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93801         that we can return (time_t) -1 successfully.
93802         * lib/posixtm.c: Likewise.
93803         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93804         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93805         (t): Remove static var.
93806         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93807         of static var.  All uses changed.
93808         (year): Do not reject years before 1900; they can occur with
93809         64-bit time_t.
93810         (posix_time_parse): Do not check for out-of-range components;
93811         that is now the caller's responsibility, since our checks were
93812         only approximations.
93813         (posixtime): Use mktime to check for out-of-range components,
93814         since it knows them exactly.
93815         If mktime returns (time_t) -1, check whether an error actually occurred
93816         by invoking localtime on -1.
93817         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93818         posixtime failures better.
93819         Improve the test data (in comments only).
93820
93821 2003-06-02  Karl Berry  <karl@gnu.org>
93822
93823         * config/mkinstalldirs (version): new variable.
93824         (--version): new option.
93825         (usage): improve message.
93826
93827 2003-05-30  Karl Berry  <karl@gnu.org>
93828
93829         * lib/mktime.c: update from libc.
93830
93831 2003-05-30  Bruno Haible  <bruno@clisp.org>
93832
93833         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93834         * config/config.rpath: Upgrade to gettext-0.12.1.
93835
93836 2003-05-30  Bruno Haible  <bruno@clisp.org>
93837
93838         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93839         * m4/nls.m4: New file, from gettext-0.12.1.
93840         * m4/po.m4: New file, from gettext-0.12.1.
93841         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93842
93843 2003-05-30  Bruno Haible  <bruno@clisp.org>
93844
93845         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93846         * lib/localcharset.h: Likewise.
93847         * lib/localcharset.c: Likewise.
93848
93849 2003-05-29  Karl Berry  <karl@gnu.org>
93850
93851         * config/config.rpath: update from gettext.
93852
93853 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93854
93855         Assume the headers required for C89 freestanding compilers.
93856         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93857         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93858         * m4/human.m4 (gl_HUMAN): Likewise.
93859         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93860         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93861         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93862         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93863         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93864         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93865
93866 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93867
93868         Assume the headers required for C89 freestanding compilers.
93869         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93870         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93871         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93872         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93873         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93874         define, since <limits.h> is guaranteed to do that.
93875         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93876         * lib/exclude.c: Include <stdbool.h> unconditionally.
93877         * lib/tempname.c: Include <stddef.h> unconditionally.
93878         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93879         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93880         <stddef.h> does that.
93881         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93882         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93883         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93884         needed.
93885         * lib/xstrtol.c: Likewise.
93886         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93887         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93888
93889         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93890         warnings on some platforms.
93891
93892         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93893         arbitrarily.
93894
93895 2003-05-26  Jim Meyering  <jim@meyering.net>
93896
93897         Merge in a change from coreutils:
93898         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93899         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93900         that condition, rather than `-1' which is slightly misleading.
93901         Change the name of the cache variable to have the gl_ prefix.
93902         Prompted by a patch from Richard Dawe for DJGPP.
93903
93904 2003-05-24  Karl Berry  <karl@gnu.org>
93905
93906         * config/config.guess: update from prep.
93907
93908 2003-05-22  Karl Berry  <karl@gnu.org>
93909
93910         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93911
93912 2003-05-20  Karl Berry  <karl@gnu.org>
93913
93914         * config/config.guess: update from prep.
93915
93916 2003-05-18  Karl Berry  <karl@gnu.org>
93917
93918         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93919         might actually be set by the user.
93920
93921         * config/depcomp, install-sh, mdate-sh: update from automake.
93922
93923 2003-05-17  Bruno Haible  <bruno@clisp.org>
93924
93925         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93926         invalid expansion for AC_EGREP_CPP.
93927         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93928         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93929         Suggested by Akim Demaille <akim@epita.fr> in
93930         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93931
93932 2003-05-12  Jim Meyering  <jim@meyering.net>
93933
93934         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93935         the space-padded-by-default conversion specifiers, %e, %k, %l.
93936
93937 2003-05-12  Bruno Haible  <bruno@clisp.org>
93938
93939         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93940         the string is longer than 4 KB.
93941
93942 2003-05-11  Karl Berry  <karl@gnu.org>
93943
93944         * config/config.{guess,sub}: update from prep.
93945
93946 2003-05-09  Bruno Haible  <bruno@clisp.org>
93947
93948         * modules/error: Add m4/strerror_r.m4 to file list.
93949
93950 2003-05-03  Bruno Haible  <bruno@clisp.org>
93951
93952         Upgrade to Unicode-4.0.
93953         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93954         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93955         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93956         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93957         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93958         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93959         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93960         Change width of U+E0100..U+E01EF from 1 to 0.
93961
93962 2003-04-25  Jim Meyering  <jim@meyering.net>
93963
93964         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93965         of type size_t, not int.
93966
93967 2003-04-25  Bruno Haible  <bruno@clisp.org>
93968
93969         * lib/copy-file.c: Include <stddef.h>, for size_t.
93970
93971 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93972
93973         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93974         code which expansion is under static control.  Patch imported from
93975         Akim Demaille's patch to Bison; see
93976         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93977
93978 2003-04-14  Bruno Haible  <bruno@clisp.org>
93979
93980         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93981
93982 2003-04-11  Jim Meyering  <jim@meyering.net>
93983
93984         Merge changes from Coreutils.
93985
93986         2003-03-22  Jim Meyering  <jim@meyering.net>
93987
93988         * lib/strftime.c (widen): Cast alloca return value to proper type.
93989
93990         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93991
93992         From GNU libc.
93993         * lib/strftime.c (my_strftime): Handle very large width
93994         specifications for numeric values correctly.  Improve checks for
93995         overflow.
93996
93997         2003-01-19  Jim Meyering  <jim@meyering.net>
93998
93999         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94000         definitions.
94001         (nl_get_alt_digit) [! defined my_strftime]: Define.
94002         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94003         _nl_get_alt_digit and _nl_get_walt_digit.
94004
94005         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94006         libc. These changes have no effect outside of _LIBC.
94007
94008 2003-04-10  Bruno Haible  <bruno@clisp.org>
94009
94010         * modules/findprog: New file.
94011         * MODULES.html.sh (func_all_modules): Add it.
94012
94013 2003-04-10  Bruno Haible  <bruno@clisp.org>
94014
94015         * m4/findprog.m4: New file.
94016         * m4/eaccess.m4: New file.
94017
94018 2003-04-10  Bruno Haible  <bruno@clisp.org>
94019
94020         * lib/findprog.h: New file, from GNU gettext.
94021         * lib/findprog.c: New file, from GNU gettext.
94022
94023 2003-04-05  Jim Meyering  <jim@meyering.net>
94024
94025         Merge changes from Coreutils.
94026
94027         * lib/exclude.h (PARAMS): Remove definition and uses.
94028         * lib/exclude.c: Remove uses of `PARAMS'.
94029
94030         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94031         Add test-cases for DOS filenames. Declare program_name.
94032         (main): Set up program_name.  Patch by Rich Dawe.
94033
94034         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94035         error from mntctl.
94036         Use mntctl's return value to drive the entry-processing loop, since
94037         we can't rely on the value of the vmt_length member in the last
94038         entry.  On some systems doing so could result in exhausting
94039         virtual memory.  Based in part on a patch from Mike Jetzer.
94040
94041 2003-04-04  Bruno Haible  <bruno@clisp.org>
94042
94043         * modules/linebreak: New file.
94044         * MODULES.html.sh (func_all_modules): Add it.
94045
94046 2003-04-04  Bruno Haible  <bruno@clisp.org>
94047
94048         * m4/linebreak.m4: New file.
94049
94050 2003-04-04  Bruno Haible  <bruno@clisp.org>
94051
94052         * lib/linebreak.h: New file, from GNU gettext.
94053         * lib/linebreak.c: New file, from GNU gettext with slight
94054         modifications.
94055         * lib/lbrkprop.h: New file, from GNU gettext.
94056
94057 2003-04-03  Bruno Haible  <bruno@clisp.org>
94058
94059         * modules/utf8-ucs4: New file.
94060         * modules/utf16-ucs4: New file.
94061         * modules/ucs4-utf8: New file.
94062         * modules/ucs4-utf16: New file.
94063         * MODULES.html.sh (func_all_modules): Add them.
94064
94065 2003-04-03  Bruno Haible  <bruno@clisp.org>
94066
94067         * m4/utf-ucs4.m4: New file.
94068         * m4/ucs4-utf.m4: New file.
94069
94070 2003-04-03  Bruno Haible  <bruno@clisp.org>
94071
94072         * lib/utf8-ucs4.h: New file, from GNU gettext.
94073         * lib/utf16-ucs4.h: New file, from GNU gettext.
94074         * lib/ucs4-utf8.h: New file, from GNU gettext.
94075         * lib/ucs4-utf16.h: New file, from GNU gettext.
94076
94077 2003-04-02  Bruno Haible  <bruno@clisp.org>
94078
94079         * modules/binary-io: New file.
94080         * MODULES.html.sh (func_all_modules): Add it.
94081
94082 2003-04-02  Bruno Haible  <bruno@clisp.org>
94083
94084         * lib/binary-io.h: New file, from GNU gettext.
94085
94086 2003-04-01  Bruno Haible  <bruno@clisp.org>
94087
94088         * modules/pathname: New file.
94089         * MODULES.html.sh (func_all_modules): Add it.
94090
94091 2003-04-01  Bruno Haible  <bruno@clisp.org>
94092
94093         * lib/pathname.h: New file, from GNU gettext.
94094         * lib/concatpath.c: New file, from GNU gettext.
94095
94096 2003-03-30  Bruno Haible  <bruno@clisp.org>
94097
94098         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94099
94100 2003-03-30  Bruno Haible  <bruno@clisp.org>
94101
94102         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94103         function chown() doesn't exist.
94104
94105 2003-03-28  Bruno Haible  <bruno@clisp.org>
94106
94107         * modules/copy-file: New file.
94108         * MODULES.html.sh (func_all_modules): Add it.
94109
94110 2003-03-28  Bruno Haible  <bruno@clisp.org>
94111
94112         * m4/copy-file.m4: New file.
94113
94114 2003-03-28  Bruno Haible  <bruno@clisp.org>
94115
94116         * lib/copy-file.h: New file, from GNU gettext.
94117         * lib/copy-file.c: New file, from GNU gettext.
94118
94119 2003-03-18  Jim Meyering  <jim@meyering.net>
94120
94121         * lib/quote.c (quote_n): Fix typo in comment.
94122
94123 2003-03-18  Bruno Haible  <bruno@clisp.org>
94124
94125         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94126         checking.
94127         * m4/onceonly_2_57.m4: Likewise.
94128
94129 2003-03-17  Bruno Haible  <bruno@clisp.org>
94130
94131         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94132         (m4_quote): Remove macro.
94133         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94134
94135 2003-03-14  Jim Meyering  <jim@meyering.net>
94136
94137         Merge changes from Coreutils.
94138         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94139         to be const, in order to avoid warnings.
94140         (obstack_room): Likewise.
94141         (obstack_empty_p): Likewise.
94142
94143 2003-03-14  Bruno Haible  <bruno@clisp.org>
94144
94145         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94146         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94147
94148 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94149
94150         Merge changes from Bison.
94151         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94152         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94153         when compiling Bison 1.875's `bitset bset = obstack_alloc
94154         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94155         * lib/hash.c: Include <stdbool.h> unconditionally.
94156
94157 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94158
94159         * m4/onceonly.m4 (m4_quote): New macro.
94160         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94161         Quote AC_FOREACH variable-expansions properly.
94162
94163 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94164
94165         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94166
94167 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94168
94169         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94170         Reported by Bruce Becker; see:
94171         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94172
94173 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94174             Bruno Haible  <bruno@clisp.org>
94175
94176         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94177         Reported by John Hughes, see
94178         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94179
94180 2003-02-20  Bruno Haible  <bruno@clisp.org>
94181
94182         * MODULES.html.sh (func_all_modules): Add poll.
94183
94184 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94185
94186         * modules/poll: New file.
94187
94188 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94189
94190         * lib/poll_.h: New file.
94191         * lib/poll.c: New file.
94192
94193 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94194
94195         * m4/poll.m4: New file.
94196
94197 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94198
94199         * modules/mathl: New file.
94200
94201 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94202
94203         * lib/mathl.h: New file.
94204         * lib/acosl.c: New file.
94205         * lib/asinl.c: New file.
94206         * lib/atanl.c: New file.
94207         * lib/ceill.c: New file.
94208         * lib/cosl.c: New file.
94209         * lib/expl.c: New file.
94210         * lib/floorl.c: New file.
94211         * lib/frexpl.c: New file.
94212         * lib/ldexpl.c: New file.
94213         * lib/logl.c: New file.
94214         * lib/sincosl.c: New file.
94215         * lib/sinl.c: New file.
94216         * lib/sqrtl.c: New file.
94217         * lib/tanl.c: New file.
94218         * lib/trigl.c: New file.
94219         * lib/trigl.h: New file.
94220
94221 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94222
94223         * m4/mathl.m4: New file.
94224
94225 2003-02-18  Bruno Haible  <bruno@clisp.org>
94226
94227         * MODULES.html.sh (func_all_modules): Add mathl.
94228
94229 2003-02-17  Bruno Haible  <bruno@clisp.org>
94230
94231         * modules/mkdtemp: New module.
94232         * MODULES.html.sh (func_all_modules): Add it.
94233
94234 2003-02-17  Bruno Haible  <bruno@clisp.org>
94235
94236         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94237
94238 2003-02-17  Bruno Haible  <bruno@clisp.org>
94239
94240         * lib/mkdtemp.h: New file, from GNU gettext.
94241         * lib/mkdtemp.c: New file, from GNU gettext.
94242
94243 2003-02-02  Jim Meyering  <jim@meyering.net>
94244
94245         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94246         e.g. glibc-2.2.93.
94247
94248 2003-01-31  Bruno Haible  <bruno@clisp.org>
94249
94250         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94251         'rpl_rename'.
94252         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94253         'rpl_strnlen'.
94254         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94255         'rpl_strtod'.
94256         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94257         'rpl_utime'.
94258
94259 2003-01-31  Bruno Haible  <bruno@clisp.org>
94260
94261         * lib/rename.c: #undef rename before defining rpl_rename.
94262         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94263
94264 2003-01-30  Bruno Haible  <bruno@clisp.org>
94265
94266         * modules/vasnprintf, modules/vasprintf: New modules.
94267         * MODULES.html.sh (func_all_modules): Add them.
94268
94269 2003-01-30  Bruno Haible  <bruno@clisp.org>
94270
94271         * m4/signed.m4: New file, from GNU gettext.
94272         * m4/longdouble.m4: New file, from GNU gettext.
94273         * m4/wchar_t.m4: New file, from GNU gettext.
94274         * m4/wint_t.m4: New file, from GNU gettext.
94275         * m4/vasnprintf.m4: New file.
94276         * m4/vasprintf.m4: New file.
94277
94278 2003-01-30  Bruno Haible  <bruno@clisp.org>
94279
94280         * lib/printf-args.h: New file, from GNU gettext.
94281         * lib/printf-args.c: New file, from GNU gettext.
94282         * lib/printf-parse.h: New file, from GNU gettext.
94283         * lib/printf-parse.c: New file, from GNU gettext.
94284         * lib/vasnprintf.h: New file, from GNU gettext.
94285         * lib/vasnprintf.c: New file, from GNU gettext.
94286         * lib/asnprintf.c: New file, from GNU gettext.
94287         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94288         * lib/vasprintf.c: New file, from GNU gettext.
94289         * lib/asprintf.c: New file, from GNU gettext.
94290
94291 2003-01-29  Bruno Haible  <bruno@clisp.org>
94292
94293         * modules/stpncpy: New module.
94294         * MODULES.html.sh (func_all_modules): Add it.
94295
94296 2003-01-29  Bruno Haible  <bruno@clisp.org>
94297
94298         * m4/stpncpy.m4: New file.
94299
94300 2003-01-29  Bruno Haible  <bruno@clisp.org>
94301
94302         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94303         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94304
94305 2003-01-28  Bruno Haible  <bruno@clisp.org>
94306
94307         * modules/c-ctype: New module.
94308         * MODULES.html.sh (func_all_modules): Add it.
94309
94310 2003-01-28  Bruno Haible  <bruno@clisp.org>
94311
94312         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94313         Paul Eggert.
94314         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94315         Paul Eggert.
94316
94317 2003-01-27  Bruno Haible  <bruno@clisp.org>
94318
94319         * modules/xsetenv: New module.
94320         * MODULES.html.sh (func_all_modules): Add it.
94321
94322 2003-01-27  Bruno Haible  <bruno@clisp.org>
94323
94324         * lib/xsetenv.h: New file, from GNU gettext.
94325         * lib/xsetenv.c: New file, from GNU gettext.
94326
94327 2003-01-23  Jim Meyering  <jim@meyering.net>
94328
94329         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94330         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94331
94332 2003-01-23  Bruno Haible  <bruno@clisp.org>
94333
94334         * modules/minmax: New module.
94335         * MODULES.html.sh (func_all_modules): Add it.
94336
94337 2003-01-23  Bruno Haible  <bruno@clisp.org>
94338
94339         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94340         Eggert.
94341
94342 2003-01-22  Bruno Haible  <bruno@clisp.org>
94343
94344         * modules/exit: New module.
94345         * MODULES.html.sh (func_all_modules): Add it.
94346
94347 2003-01-22  Bruno Haible  <bruno@clisp.org>
94348
94349         * lib/exit.h: New file, from GNU gettext.
94350
94351 2003-01-19  Bruno Haible  <bruno@clisp.org>
94352
94353         * gnulib-tool: Recognize option --extract-maintainer.
94354         (func_get_maintainer): New function.
94355         * modules/*: Add Maintainer entry.
94356
94357 2003-01-16  Jim Meyering  <jim@meyering.net>
94358
94359         * m4/regex.m4: The `regex' struct is both input and output.
94360         Initialize it before each use.  Patch by Tim Waugh.
94361
94362 2003-01-16  Bruno Haible  <bruno@clisp.org>
94363
94364         * MODULES.html.sh: Add a table of contents. Add the module name as
94365         leftmost column. Add hyperlinks.
94366
94367 2003-01-15  Bruno Haible  <bruno@clisp.org>
94368
94369         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94370
94371 2003-01-15  Bruno Haible  <bruno@clisp.org>
94372
94373         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94374         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94375         suffix.
94376
94377 2003-01-15  Bruno Haible  <bruno@clisp.org>
94378
94379         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94380
94381 2003-01-15  Bruno Haible  <bruno@clisp.org>
94382
94383         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94384         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94385
94386 2003-01-14  Jim Meyering  <jim@meyering.net>
94387
94388         * lib/same.c (same_name): Tweak a comment.
94389
94390 2003-01-14  Bruno Haible  <bruno@clisp.org>
94391
94392         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94393         when a string comparison is sufficient.
94394
94395 2003-01-14  Bruno Haible  <bruno@clisp.org>
94396
94397         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94398         'unsigned int'.
94399
94400 2003-01-14  Bruno Haible  <bruno@clisp.org>
94401
94402         * lib/hash-pjw.c: Add comment about low quality of this function.
94403
94404 2003-01-13  Bruno Haible  <bruno@clisp.org>
94405
94406         * modules/stpcpy: Distribute lib/stpcpy.h.
94407         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94408
94409 2003-01-13  Bruno Haible  <bruno@clisp.org>
94410
94411         * modules/*: Add a description.
94412         * modules/strpbrk: Fix Makefile.am snippet.
94413         * modules/strtoimax: Fix dependencies.
94414         * modules/strtoumax: Likewise.
94415
94416 2003-01-13  Bruno Haible  <bruno@clisp.org>
94417
94418         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94419         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94420         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94421
94422 2003-01-13  Bruno Haible  <bruno@clisp.org>
94423
94424         * gnulib-tool (func_create_testdir): Store config/* files in the main
94425         directory.
94426         * config.rpath: Move to ...
94427         * config/config.rpath: ... here.
94428         * modules/gettext: Contains config/config.rpath, not config.rpath.
94429         * modules/iconv: Likewise.
94430
94431 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94432
94433         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94434         to avoid collisions with libcurses and libreadline.
94435
94436         * m4/getstr.m4: Remove.
94437         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94438
94439 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94440
94441         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94442         to avoid collisions with libcurses and libreadline.
94443
94444         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94445         * lib/getstr.h, getstr.c: Remove.
94446         * lib/getline.c: Include "getline.h", to check interface.
94447         Move body of old getstr.c here: this defines MIN_CHUNK and
94448         declares getdelim2, which is renamed from getstr.
94449         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94450
94451         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94452         All uses changed.
94453         * lib/linebuffer.h: Likewise.
94454         (readline): Remove backward-compatibility macro.
94455
94456 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94457
94458         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94459         to avoid collisions with libcurses and libreadline.
94460         * getstr: Remove.
94461         * MODULES.html.sh: Remove getstr.
94462         * modules/getline: Depend on unlocked-io, not getstr.
94463
94464 2003-01-12  Jim Meyering  <jim@meyering.net>
94465
94466         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94467
94468 2003-01-10  Bruno Haible  <bruno@clisp.org>
94469
94470         * modules/alloca: Change Makefile.am requirements. Simplify Include
94471         requirements. Add lib/alloca_.h to file list.
94472
94473 2003-01-10  Bruno Haible  <bruno@clisp.org>
94474
94475         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94476
94477 2003-01-10  Bruno Haible  <bruno@clisp.org>
94478
94479         * lib/alloca_.h: New file.
94480         * lib/getdate.y: Unconditionally include alloca.h.
94481         * lib/makepath.c: Likewise.
94482         * lib/setenv.c: Likewise.
94483         * lib/userspec.c: Likewise.
94484
94485 2003-01-09  Karl Berry  <karl@gnu.org>
94486
94487         * MODULES.html.sh: include `dirname $0` in PATH, to find
94488         gnulib-tool.
94489
94490 2003-01-09  Bruno Haible  <bruno@clisp.org>
94491
94492         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94493         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94494
94495 2003-01-09  Bruno Haible  <bruno@clisp.org>
94496
94497         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94498
94499 2003-01-09  Bruno Haible  <bruno@clisp.org>
94500
94501         * lib/stdbool.h.in: New file.
94502
94503 2003-01-09  Bruno Haible  <bruno@clisp.org>
94504
94505         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94506         * MODULES.html.sh: Likewise.
94507
94508 2003-01-08  Jim Meyering  <jim@meyering.net>
94509
94510         * lib/full-write.c: Undefine and define-away `const' after inclusion
94511         of errno.h, not before.  Suggestion from Bruno Haible.
94512
94513 2003-01-08  Bruno Haible  <bruno@clisp.org>
94514
94515         * modules/full-read: Depend on full-write.
94516
94517 2003-01-08  Bruno Haible  <bruno@clisp.org>
94518
94519         * lib/safe-read.c: Include specification header first, to ensure its
94520         selfcontainedness.
94521         * lib/full-write.c: Likewise.
94522
94523 2003-01-07  Jim Meyering  <jim@meyering.net>
94524
94525         * lib/full-write.c: Rework so that it may serve to define full_read,
94526         too.
94527         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94528
94529 2003-01-07  Bruno Haible  <bruno@clisp.org>
94530
94531         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94532         <inttypes.h>.
94533         * lib/xstrtol.h: Likewise.
94534         * lib/xstrtoimax.c: Likewise.
94535         * lib/xstrtoumax.c: Likewise.
94536         * lib/human.h: Likewise.
94537
94538         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94539         on systems that have <inttypes.h> but not <stdint.h>.
94540
94541 2003-01-07  Bruno Haible  <bruno@clisp.org>
94542
94543         * MODULES.html.sh: Add copyright notice.
94544         (missed_files): Omit CVS directory entries.
94545         (func_module): Make it work with sed-3.02.
94546         * MODULES.txt: Remove file.
94547
94548 2003-01-06  Jim Meyering  <jim@meyering.net>
94549
94550         * lib/version-etc.c: Update year in translatable copyright string.
94551
94552 2003-01-03  Karl Berry  <karl@gnu.org>
94553
94554         * config/config.{guess,sub}: update from prep.
94555
94556 2003-01-02  Karl Berry  <karl@gnu.org>
94557
94558         * doc/COPYING.DOC: belatedly updated to 1.2.
94559
94560 2003-01-01  Karl Berry  <karl@gnu.org>
94561
94562         * gnulib-tool (func_verify_module): report module name $module in
94563         error message, not $1.
94564         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94565         be created, only if it doesn't exist.
94566         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94567
94568 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94569
94570         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94571
94572 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94573
94574         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94575         memcmp if strcoll doesn't work.
94576
94577 2002-12-31  Bruno Haible  <bruno@clisp.org>
94578
94579         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94580         nonempty.
94581
94582 2002-12-31  Bruno Haible  <bruno@clisp.org>
94583
94584         * lib/memcoll.c (STRCOLL): New macro.
94585         (memcoll): Use it.
94586
94587 2002-12-31  Bruno Haible  <bruno@clisp.org>
94588
94589         * lib/localcharset.h: New file.
94590         * lib/localcharset.c: Include it.
94591         * lib/unicodeio.c: Likewise.
94592
94593 2002-12-31  Bruno Haible  <bruno@clisp.org>
94594
94595         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94596         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94597
94598 2002-12-31  Bruno Haible  <bruno@clisp.org>
94599
94600         * lib/getline.h: Include <stddef.h>, for size_t.
94601
94602         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94603         * lib/unicodeio.c: Don't include <stddef.h>.
94604
94605 2002-12-31  Bruno Haible  <bruno@clisp.org>
94606
94607         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94608         HAVE_TM_ZONE.
94609
94610 2002-12-24  Karl Berry  <karl@gnu.org>
94611
94612         * config/config.guess: update from prep.
94613
94614 2002-12-24  Bruno Haible  <bruno@clisp.org>
94615
94616         General infrasructure.
94617         * m4/README: Rewritten.
94618         * m4/onceonly.m4: New file.
94619         * m4/onceonly_2_57.m4: New file.
94620
94621         Module atexit.
94622         * m4/atexit.m4: New file.
94623
94624         Module strtod.
94625         * m4/strtod.m4: New file.
94626
94627         Module strtol.
94628         * m4/strtol.m4: New file.
94629
94630         Module strtoul.
94631         * m4/strtoul.m4: New file.
94632
94633         Module memchr.
94634         * m4/memchr.m4: New file.
94635
94636         Module memcmp.
94637         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94638         (jm_FUNC_MEMCMP): Invoke it.
94639
94640         Module memcpy.
94641         * m4/memcpy.m4: New file.
94642
94643         Module memmove.
94644         * m4/memmove.m4: New file.
94645
94646         Module memset.
94647         * m4/memset.m4: New file.
94648
94649         Module strcspn.
94650         * m4/strcspn.m4: New file.
94651
94652         Module strpbrk.
94653         * m4/strpbrk.m4: New file.
94654
94655         Module strstr.
94656         * m4/strstr.m4: New file.
94657
94658         Module strerror.
94659         * m4/strerror.m4: New file.
94660
94661         Module mktime.
94662         * m4/mktime.m4: Renamed from jm-mktime.m4.
94663         (gl_PREREQ_MKTIME): New macro.
94664         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94665
94666         Module malloc.
94667         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94668         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94669         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94670
94671         Module realloc.
94672         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94673         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94674         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94675
94676         Module strftime.
94677         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94678         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94679         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94680         gl_TM_GMTOFF.
94681         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94682
94683         Module xalloc.
94684         * m4/xalloc.m4: New file.
94685
94686         Module alloca.
94687         * m4/alloca.m4: New file.
94688
94689         Module putenv.
94690         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94691         (jm_FUNC_PUTENV): Invoke it.
94692
94693         Module setenv.
94694         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94695         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94696         when invoked twice.
94697         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94698         gt_FUNC_SETENV.
94699
94700         Module memrchr.
94701         * m4/memrchr.m4: New file.
94702
94703         Module stpcpy.
94704         * m4/stpcpy.m4: New file.
94705
94706         Module strcase.
94707         * m4/strcase.m4: New file.
94708
94709         Module strdup.
94710         * m4/strdup.m4: New file.
94711
94712         Module strnlen.
94713         * m4/strnlen.m4: New file.
94714
94715         Module strndup.
94716         * m4/strndup.m4: New file.
94717
94718         Module xstrtod.
94719         * m4/xstrtod.m4: New file.
94720
94721         Module xstrtol.
94722         * m4/xstrtol.m4: New file.
94723
94724         Module getdate.
94725         * m4/getdate.m4: New file.
94726
94727         Module unlocked-io.
94728         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94729         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94730         * m4/jm-glibc-io.m4n: Remove file.
94731
94732         Module long-options.
94733         * m4/long-options.m4: New file.
94734
94735         Module md5.
94736         * m4/md5.m4: New file.
94737
94738         Module sha.
94739         * m4/sha.m4: New file.
94740
94741         Module getstr.
94742         * m4/getstr.m4: New file.
94743
94744         Module getline.
94745         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94746         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94747         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94748         simply getline. Infoke gl_PREREQ_GETLINE.
94749
94750         Module obstack.
94751         * m4/obstack.m4: New file.
94752
94753         Module hash.
94754         * m4/hash.m4: New file.
94755
94756         Module readtokens.
94757         * m4/readtokens.m4: New file.
94758
94759         Module strverscmp.
94760         * m4/strverscmp.m4: New file.
94761
94762         Module stdbool.
94763         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94764         OSF/1.
94765
94766         Module strtoll.
94767         * m4/strtoll.m4: New file.
94768
94769         Module strtoull.
94770         * m4/strtoull.m4: New file.
94771
94772         Module strtoimax.
94773         * m4/strtoimax.m4: New file.
94774
94775         Module strtoumax.
94776         * m4/strtoumax.m4: New file.
94777
94778         Module xstrtoimax.
94779         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94780         jm_AC_PREREQ_XSTRTOIMAX.
94781         Moved the strtol prerequisites to strtol.m4.
94782         Moved the strtoll prerequisites to strtoll.m4.
94783         Moved the strtoimax prerequisites to strtoimax.m4.
94784
94785         Module xstrtoumax.
94786         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94787         jm_AC_PREREQ_XSTRTOUMAX.
94788         Moved the strtoul prerequisites to strtoul.m4.
94789         Moved the strtoull prerequisites to strtoull.m4.
94790         Moved the strtoumax prerequisites to strtoumax.m4.
94791
94792         Module chown.
94793         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94794         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94795
94796         Module dup2.
94797         * m4/dup2.m4: New file.
94798
94799         Module ftruncate.
94800         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94801         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94802
94803         Module getgroups.
94804         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94805         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94806
94807         Module gettimeofday.
94808         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94809         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94810         gl_PREREQ_GETTIMEOFDAY.
94811
94812         Module mkdir.
94813         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94814         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94815
94816         Module mkstemp.
94817         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94818         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94819         jm_AC_TYPE_UINTMAX_T.
94820         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94821
94822         Module stat.
94823         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94824         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94825
94826         Module lstat.
94827         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94828         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94829
94830         Module timespec.
94831         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94832         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94833         * m4/st_mtim.m4: Indentation.
94834
94835         Module nanosleep.
94836         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94837         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94838         gl_PREREQ_NANOSLEEP.
94839
94840         Module regex.
94841         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94842         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94843         (gl_REGEX): New macro.
94844
94845         Module rename.
94846         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94847         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94848
94849         Module rmdir.
94850         * m4/rmdir.m4: New file.
94851
94852         Module utime.
94853         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94854         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94855         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94856
94857         Module dirname.
94858         * m4/dirname.m4: New file.
94859
94860         Module getopt.
94861         * m4/getopt.m4: New file.
94862
94863         Module unistd-safer.
94864         * m4/unistd-safer.m4: New file.
94865
94866         Module fnmatch.
94867         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94868         declaration.
94869         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94870         (gl_FUNC_FNMATCH_POSIX): New macro.
94871         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94872         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94873         simply fnmatch.
94874
94875         Module exclude.
94876         * m4/exclude.m4: New file.
94877
94878         Module human.
94879         * m4/human.m4: New file.
94880
94881         Module acl.
94882         * m4/acl.m4: Nop.
94883
94884         Module backupfile.
94885         * m4/backupfile.m4: New file.
94886         * m4/d-ino.m4: Indentation.
94887
94888         Module fsusage.
94889         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94890         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94891         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94892
94893         Module dirfd.
94894         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94895         requirements.
94896
94897         Module euidaccess.
94898         * m4/euidaccess.m4: New file.
94899
94900         Module file-type.
94901         * m4/file-type.m4: New file.
94902
94903         Module fileblocks.
94904         * m4/fileblocks.m4: New file.
94905
94906         Module filemode.
94907         * m4/filemode.m4: New file.
94908
94909         Module isdir.
94910         * m4/isdir.m4: New file.
94911
94912         Module lchown.
94913         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94914         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94915
94916         Module makepath.
94917         * m4/makepath.m4: New file.
94918
94919         Module modechange.
94920         * m4/modechange.m4: New file.
94921
94922         Module mountlist.
94923         * m4/mountlist.m4: New file.
94924         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94925         Indentation.
94926
94927         Module path-concat.
94928         * m4/path-concat.m4: New file.
94929
94930         Module pathmax.
94931         * m4/pathmax.m4: New file.
94932
94933         Module same.
94934         * m4/same.m4: New file.
94935
94936         Module save-cwd.
94937         * m4/save-cwd.m4: New file.
94938
94939         Module savedir.
94940         * m4/savedir.m4: New file.
94941
94942         Module xgetcwd.
94943         * m4/xgetcwd.m4: New file.
94944         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94945
94946         Module xreadlink.
94947         * m4/xreadlink.m4: New file.
94948
94949         Module safe-read.
94950         * m4/safe-read.m4: New file.
94951
94952         Module safe-write.
94953         * m4/safe-write.m4: New file.
94954
94955         Module closeout.
94956         * m4/closeout.m4: New file.
94957
94958         Module stdio-safer.
94959         * m4/stdio-safer.m4: New file.
94960
94961         Module getpass.
94962         * m4/getpass.m4: New file.
94963
94964         Module getugroups.
94965         * m4/getugroups.m4: New file.
94966
94967         Module group-member.
94968         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94969         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94970
94971         Module idcache.
94972         * m4/idcache.m4: New file.
94973
94974         Module userspec.
94975         * m4/userspec.m4: New file.
94976
94977         Module gettime.
94978         * m4/clock_time.m4: New file.
94979         * m4/gettime.m4: New file.
94980
94981         Module settime.
94982         * m4/settime.m4: New file.
94983
94984         Module posixtm.
94985         * m4/posixtm.m4: New file.
94986
94987         Module gethostname.
94988         * m4/gethostname.m4: New file.
94989
94990         Module canon-host.
94991         * m4/canon-host.m4: New file.
94992
94993         Module gettext.
94994         * m4/codeset.m4: New file, from gettext-0.11.5.
94995         * m4/gettext.m4: New file, from gettext-0.11.5.
94996         * m4/glibc21.m4: New file, from gettext-0.11.5.
94997         * m4/iconv.m4: New file, from gettext-0.11.5.
94998         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94999         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95000         * m4/inttypes.m4: New file, from gettext-0.11.5.
95001         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95002         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95003         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95004         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95005         * m4/lib-link.m4: New file, from gettext-0.11.5.
95006         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95007         * m4/progtest.m4: New file, from gettext-0.11.5.
95008         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95009         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95010         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95011
95012         Module localcharset.
95013         * m4/localcharset.m4: New file.
95014
95015         Module hard-locale.
95016         * m4/hard-locale.m4: New file.
95017
95018         Module mbswidth.
95019         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95020         onceonly macros.
95021         * m4/mbrtowc.m4: Add comment.
95022
95023         Module memcasecmp.
95024         * m4/memcasecmp.m4: New file.
95025
95026         Module memcoll.
95027         * m4/memcoll.m4: New file.
95028
95029         Module unicodeio.
95030         * m4/unicodeio.m4: New file.
95031
95032         Module rpmatch.
95033         * m4/rpmatch.m4: New file.
95034
95035         Module yesno.
95036         * m4/yesno.m4: New file.
95037
95038         Module exitfail.
95039         * m4/exitfail.m4: New file.
95040
95041         Module c-stack.
95042         * m4/c-stack.m4 (gl_C_STACK): New macro.
95043         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95044
95045         Module error.
95046         * m4/error.m4 (gl_ERROR): New macro.
95047         (jm_PREREQ_ERROR): Use onceonly macros.
95048
95049         Module fatal.
95050         * m4/fatal.m4: New file.
95051
95052         Module getloadavg.
95053         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95054         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95055
95056         Module getpagesize.
95057         * m4/getpagesize.m4: New file.
95058
95059         Module getusershell.
95060         * m4/getusershell.m4: New file.
95061
95062         Module physmem.
95063         * m4/physmem.m4: New file.
95064
95065         Module posixver.
95066         * m4/posixver.m4: New file.
95067
95068         Module quotearg.
95069         * m4/quotearg.m4: New file.
95070
95071         Module quote.
95072         * m4/quote.m4: New file.
95073
95074         Module readutmp.
95075         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95076
95077         Module sig2str.
95078         * m4/sig2str.m4: New file.
95079
95080         Other.
95081         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95082         ulonglong.m4.
95083         * m4/intmax_t.m4: New file.
95084         * m4/d-type.m4: Indentation.
95085         * m4/jm-macros.m4: Update.
95086         * m4/prereq.m4 (jm_PREREQ): Update.
95087         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95088         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95089         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95090         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95091         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95092         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95093         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95094         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95095         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95096         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95097         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95098         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95099         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95100         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95101         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95102         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95103         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95104         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95105         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95106
95107 2002-12-24  Bruno Haible  <bruno@clisp.org>
95108
95109         * MODULES.txt: Update according to m4/ changes.
95110
95111         Module gettext.
95112         * config.rpath: New file, from gettext-0.11.5.
95113
95114         * modules/*: New module descriptions.
95115         * gnulib-tool: New file.
95116         * MODULES.html.sh: New file.
95117
95118 2002-12-21  Karl Berry  <karl@gnu.org>
95119
95120         * doc/fdl.texi: update to version 1.2.
95121
95122 2002-12-19  Karl Berry  <karl@gnu.org>
95123
95124         * config/config.guess: update from prep.
95125
95126 2002-12-18  Bruno Haible  <bruno@clisp.org>
95127
95128         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95129         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95130
95131 2002-12-17  Bruno Haible  <bruno@clisp.org>
95132
95133         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95134         stdlib.h, string.h.
95135
95136 2002-12-17  Bruno Haible  <bruno@clisp.org>
95137
95138         * lib/canon-host.c (strdup): Remove unused declaration.
95139
95140         * lib/fsusage.c: Include full_read.h.
95141         (get_fs_usage): Use full_read instead of safe_read.
95142
95143         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95144
95145 2002-12-12  Karl Berry  <karl@gnu.org>
95146
95147         * config/config.guess: update from prep.
95148
95149 2002-12-11  Bruno Haible  <bruno@clisp.org>
95150
95151         * m4/setenv.m4: New file, from gettext-0.11.5.
95152
95153 2002-12-11  Bruno Haible  <bruno@clisp.org>
95154
95155         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95156         not unsetenv().
95157         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95158         modifications:
95159
95160         2002-12-11  Bruno Haible  <bruno@clisp.org>
95161
95162                 * setenv.c (alloca): Fall back to malloc.
95163                 (freea): New macro.
95164                 (setenv): Use freea() to free memory allocated with alloca().
95165
95166         2002-11-13  Bruno Haible  <bruno@clisp.org>
95167
95168                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95169                 function declarations.
95170                 * unsetenv.c (unsetenv): Likewise.
95171
95172         2002-03-04  Bruno Haible  <bruno@clisp.org>
95173
95174                 Portability to AIX 4.3.3.
95175                 * unsetenv.c: New file, extracted from setenv.c.
95176                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95177
95178         2001-12-20  Bruno Haible  <bruno@clisp.org>
95179
95180                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95181                 use malloc instead. For SunOS 4.
95182
95183         2001-12-11  Bruno Haible  <bruno@clisp.org>
95184
95185                 * setenv.c: Declare alloca.
95186                 (compar_fn_t): New typedef.
95187                 (KNOWN_VALUE, STORE_VALUE): Use it.
95188
95189         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95190         setenv.h.
95191
95192 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95193
95194         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95195         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95196         Choose values that are less likely to collide with system fnmatch
95197         options.
95198         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95199         defined (e.g., a pure POSIX system).
95200         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95201         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95202
95203 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95204
95205         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95206         a pain in practice to deal with generated m4 files.  This change
95207         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95208
95209         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95210         and jm-glibc-io.m4, as they are no longer a special case.
95211         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95212         kludge and the auto-generation stuff.  Check only whether the
95213         functions are declared, not whether they exist, since older hosts
95214         that don't declare the functions can't use the optimization anyway.
95215
95216 2002-12-06  Jim Meyering  <jim@meyering.net>
95217
95218         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95219
95220         Merge in changes from libc's misc/error.c, in preparation
95221         for the merge of gnulib's changes back into libc.
95222
95223         * lib/error.c (_): Define only if not already defined.
95224         Move definition to follow all #include directives.
95225         Include unlocked-io.h only if !_LIBC.
95226         [_LIBC]: Include <libio/libioP.h>.
95227         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95228         (fflush): Tweak definition to use INTUSE.
95229         (putc): Define.
95230
95231 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95232
95233         * lib/alloca.c [defined emacs]: Include "lisp.h".
95234         (xalloc_die) [defined emacs]: New macro.
95235         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95236         [! defined emacs]: Include <xalloc.h>.
95237         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95238         (pointer): Typedef to POINTER_TYPE *.
95239         (malloc): Remove decl; we now always use xmalloc.
95240         (alloca): Use old-style definition, since Emacs needs this.
95241         Check for arithmetic overflow when computing combined size.
95242
95243 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95244
95245         Do not generate unlocked-io.h automatically, since it's easier to
95246         maintain it by hand.
95247
95248         * lib/unlocked-io.h: New file, from GNU diffutils,
95249         but with proper copyright notice and attribution.
95250         * lib/gen-uio: Remove.
95251         * lib/Makefile.am: Add copyright notice.
95252         (libfetish_a_SOURCES): Add unlocked-io.h.
95253         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95254         (DISTCLEANFILES, io_functions): Remove macros.
95255         (EXTRA_DIST): Remove gen_uio.
95256         (unlocked-io.h): Remove rule.
95257
95258 2002-12-04  Jim Meyering  <jim@meyering.net>
95259
95260         Reflect the fact that stat.c and lstat.c are no longer generated.
95261         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95262         (DISTCLEANFILES): Likewise.
95263         (EXTRA_DIST): Likewise.
95264         (all_local): Don't depend on stat.c or lstat.c.
95265         (stat.c, lstat.c): Remove rules.
95266         (EXTRA_DIST): Remove xstat.in.
95267
95268         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95269         * lib/stat.c: New file.  Contents mostly from xstat.in.
95270         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95271         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95272
95273         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95274         too.
95275         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95276
95277 2002-12-03  Jim Meyering  <jim@meyering.net>
95278
95279         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95280         but not semantics, to minimize the differences between these two files.
95281         (safe_read): Change comment to mention SAFE_READ_ERROR.
95282
95283         * lib/safe-read.c (IS_EINTR): Define.
95284         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95285
95286 2002-12-02  Jim Meyering  <jim@meyering.net>
95287
95288         * lib/safe-read.c (EINTR): Define.
95289         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95290         (INT_MAX): Provide fallback.
95291         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95292
95293         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95294
95295 2002-12-02  Bruno Haible  <bruno@clisp.org>
95296
95297         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95298         Define, taken from safe-read.c.
95299         (INT_MAX): Provide fallback.
95300         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95301         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95302
95303         * lib/safe-read.c (EINTR): Remove definition.
95304         (safe_read): Don't use EINTR if it is absent.
95305
95306 2002-12-01  Jim Meyering  <jim@meyering.net>
95307
95308         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95309         zero.
95310         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95311
95312 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95313
95314         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95315         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95316         with `if (! (value < limit)) abort ();', for readability.
95317
95318 2002-11-26  Karl Berry  <karl@gnu.org>
95319
95320         * lib/strdup.c: copy from libc again, with jim's ok.
95321         * lib/.cppi-disable: re-add strdup.c
95322
95323 2002-11-25  Karl Berry  <karl@gnu.org>
95324
95325         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95326         instead of "strtol.c".
95327
95328 2002-11-25  Karl Berry  <karl@gnu.org>
95329
95330         * config/install-sh: update from automake for variable quoting, $0 in
95331         error msgs, etc.
95332
95333         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95334         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95335         entry.
95336
95337 2002-11-25  Jim Meyering  <jim@meyering.net>
95338
95339         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95340
95341 2002-11-24  Karl Berry  <karl@gnu.org>
95342
95343         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95344         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95345
95346 2002-11-24  Jim Meyering  <jim@meyering.net>
95347
95348         Update from coreutils:
95349
95350         * lib/mktime.c: Merge in changes from libc.
95351
95352         Avoid a link-time failure on some Linux systems.
95353         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95354         (otherwise).
95355         (__mon_yday): Declare with the STATIC attribute.
95356         (__mktime_internal): Likewise.
95357         Based on a report from Greg Schafer.
95358
95359 2002-11-23  Jim Meyering  <jim@meyering.net>
95360
95361         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95362         Use `unsigned', not `int', as type of index.
95363
95364         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95365
95366         * lib/fsusage.c: Remove unneeded parentheses around operands of
95367         `defined'.
95368
95369 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95370
95371         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95372         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95373         so that we can be included first.
95374         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95375         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95376         No need to include stddef.h or sys/types.h any more.
95377         Surround local include files with "", not "<>".
95378         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95379         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95380         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95381         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95382         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95383         (ISPRINT): Remove; no longer needed now that we assume C89.
95384
95385         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95386         Preserve errno.
95387
95388         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95389         quotearg_char): Use SIZE_MAX rather than
95390         (size_t) -1 when we are talking about "infinity".
95391
95392         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95393
95394 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95395
95396         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95397         hint that one should use `if (! x) abort ();' rather than `assert
95398         (x);', and anyway it's one less thing to worry about configuring.
95399         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95400         hash_rehash, hash_insert): Use abort rather than assert.
95401
95402 2002-11-22  Bruno Haible  <bruno@clisp.org>
95403
95404         * lib/safe-read.h: Assume C89. Add comments.
95405         (safe_read): Change return type to size_t.
95406         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95407         byte counts > SSIZE_MAX correctly.
95408         * lib/safe-write.h: New file.
95409         * lib/safe-write.c: New file.
95410         * lib/full-read.h: New file.
95411         * lib/full-read.c: New file.
95412         * lib/full-write.h: Assume C89. Add comments.
95413         * lib/full-write.c: Include safe-write.h.
95414         (full_write): Rewritten to use safe_write.
95415         Suggested by Jim Meyering and Paul Eggert.
95416
95417 2002-11-21  Jim Meyering  <jim@meyering.net>
95418
95419         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95420
95421         Merge in changes from the coreutils.
95422
95423         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95424         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95425         <stdint.h>.
95426         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95427         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95428         int.  Work more efficiently if X is the same width as uintmax_t.
95429         Do not compare X to -1, to avoid bogus compiler warning.
95430         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95431         Don't assume that f_frsize and f_bsize are the same type.
95432
95433         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95434         warning on FreeBSD.
95435
95436         * lib/makepath.c (make_path): Restore umask *before* creating the final
95437         component.
95438         (make_path): Minor reformatting.
95439
95440         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95441         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95442         HAVE_MALLOC/HAVE_REALLOC.
95443
95444         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95445         dummy ones.  At least on GNU/Linux systems, `auto' means something
95446         else.
95447         From Michael Stone.
95448
95449 2002-11-21  Bruno Haible  <bruno@clisp.org>
95450
95451         Remove case insensitive option matching.
95452         * lib/argmatch.h (argcasematch): Remove declaration.
95453         (ARGCASEMATCH): Remove macro.
95454         (__xargmatch_internal): Remove case_sensitive argument.
95455         (XARGMATCH): Update.
95456         (XARGCASEMATCH): Remove macro.
95457         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95458         case_sensitive argument.
95459         (argcasematch): Remove function.
95460         (__xargmatch_internal): Remove case_sensitive argument.
95461         (main): Use XARGMATCH instead of XARGCASEMATCH.
95462
95463         * lib/xmalloc.c: Change compile-time error message. Add comment about
95464         required autoconf version.
95465
95466 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95467
95468         Merge argmatch cleanups from Bison.  Assume C89.
95469
95470         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95471         Include stdlib.h, for EXIT_FAILURE.
95472         Always include <string.h>, since we assume C89.
95473         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95474         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95475         Include <stddef.h> instead, since it's all we need for size_t.
95476         (PARAMS): Remove.  All uses removed.
95477         (ARRAY_CARDINALITY): Do not bother to #undef.
95478         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95479         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95480         Remove unnecessary parentheses.
95481         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95482         Insert necessary parentheses.
95483         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95484         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95485
95486 2002-11-19  Bruno Haible  <bruno@clisp.org>
95487
95488         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95489         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95490
95491         * lib/mbswidth.h (PARAMS): Remove macro.
95492         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95493         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95494
95495         * lib/gcd.h (PARAMS): Remove macro.
95496         (gcd): Use ANSI C function declarations.
95497         * lib/gcd.c (gcd): Likewise.
95498
95499 2002-11-15  Bruno Haible  <bruno@clisp.org>
95500
95501         * lib/strcspn.c: Include <stddef.h>.
95502         (strcspn): Use ANSI C function declaration. Change return type to
95503         size_t. Use NULL.
95504         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95505         (strpbrk): Use NULL.
95506         * lib/strpbrk.h (PARAMS): Remove macro.
95507         (strpbrk): Use ANSI C function declaration.
95508         * lib/strstr.c: Don't include <sys/types.h>.
95509         * lib/strstr.h (PARAMS): Remove macro.
95510         (strstr): Use ANSI C function declarations.
95511
95512 2002-11-14  Karl Berry  <karl@gnu.org>
95513
95514         * config/mkinstalldirs: `do' on separate line, instead of
95515         `for var; do'.
95516
95517 2002-11-06  Bruno Haible  <bruno@clisp.org>
95518
95519         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95520         * lib/gcd.c (gcd): Likewise.
95521
95522 2002-11-05  Bruno Haible  <bruno@clisp.org>
95523
95524         * lib/gcd.h: New file, from gettext-0.11.5.
95525         * lib/gcd.c: New file, from gettext-0.11.5.
95526
95527 2002-11-05  Bruno Haible  <bruno@clisp.org>
95528
95529         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95530         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95531         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95532         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95533
95534         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95535         <libintl.h>.
95536         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95537         <libintl.h>.
95538
95539         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95540         * lib/human.c: Include gettext.h instead of <libintl.h>.
95541         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95542         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95543         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95544         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95545         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95546         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95547         (textdomain): Remove definition.
95548         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95549
95550         * lib/long-options.c: Remove include of <libintl.h> and definition of
95551         _.
95552         * lib/same.c: Remove include of <libintl.h> and definition of _.
95553
95554 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95555
95556         * lib/config.charset: A few additions for Solaris.
95557
95558 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95559
95560         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95561         * lib/localcharset.c (locale_charset): Declare as extern "C".
95562
95563 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95564
95565         * lib/config.charset: msdos in uk_UA uses CP1125.
95566
95567 2002-11-04  Bruno Haible  <bruno@clisp.org>
95568
95569         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95570         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95571         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95572         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95573         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95574
95575 2002-11-04  Bruno Haible  <bruno@clisp.org>
95576
95577         * lib/localcharset.c (locale_charset): Don't return an empty string.
95578
95579 2002-11-04  Bruno Haible  <bruno@clisp.org>
95580
95581         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95582         aliases.
95583
95584 2002-11-04  Bruno Haible  <bruno@clisp.org>
95585
95586         * lib/config.charset: Update for newest glibc. Add canonical names
95587         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95588
95589 2002-11-04  Bruno Haible  <bruno@clisp.org>
95590
95591         * lib/config.charset: Add support for NetBSD.
95592
95593 2002-11-04  Bruno Haible  <bruno@clisp.org>
95594
95595         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95596
95597 2002-11-01  Bruno Haible  <bruno@clisp.org>
95598
95599         * configure.in: Add AC_CONFIG_AUX_DIR call.
95600         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95601         test/Makefile.
95602         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95603
95604 2002-09-28  Karl Berry  <karl@gnu.org>
95605
95606         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95607         installed automake until the next release, since changes have been
95608         made.
95609
95610 2002-09-25  Karl Berry  <karl@gnu.org>
95611
95612         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95613         * lib/getopt*: copy from libc/posix.
95614         * lib/gettext.h: copy from gettext.
95615         * lib/.cppi-disable: add strdup.c, gettext.h.
95616
95617 2002-09-25  Karl Berry  <karl@gnu.org>
95618
95619         * config/srclist.txt: enable gettext.h check.
95620         * config/config.{guess,sub}: update from prep.
95621         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95622                 from automake 1.6.3.
95623         See srclist*.
95624
95625 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95626
95627         * regex.c (PATFETCH): Remove the translating fetch.
95628         (PATFETCH_RAW): Rename to PATFETCH.
95629         (set_image_of_range): New fun.
95630         (SET_RANGE_TABLE_WORK_AREA): Use it.
95631         (regex_compile): Don't translate the pattern chars so eagerly.
95632         Only do it when inserting an `exactn' bytecode or when handling
95633         a char-range.
95634         (mutually_exclusive_p): Avoid empty statement.
95635
95636 2002-07-06  Jim Meyering  <meyering@lucent.com>
95637
95638         * m4/README: Don't mention Makefile.am.in.
95639         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95640
95641 2002-07-01  Jim Meyering  <meyering@lucent.com>
95642
95643         * lib/c-stack.c: Include sys/time.h.
95644         From Volker Borchert.
95645
95646 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95647
95648         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95649
95650 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95651
95652         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95653         New macro.  Use it uniformly instead of
95654         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95655         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95656         reported by Vin Shelton.
95657
95658 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95659
95660         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95661         Do not assume SA_SIGINFO behavior.
95662         Bug reported by Jim Meyering on NetBSD 1.5.2.
95663
95664 2002-06-22  Jim Meyering  <meyering@lucent.com>
95665
95666         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95667         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95668
95669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95670         now that configure.ac uses AC_GNU_SOURCE.
95671         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95672         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95673
95674         Update to latest tools.  Suggestions from Paul Eggert.
95675         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95676         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95677         * m4/fnmatch.m4: Likewise.
95678         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95679         to AC_HEADER_STDBOOL
95680
95681 2002-06-22  Jim Meyering  <meyering@lucent.com>
95682
95683         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95684         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95685
95686 2002-06-22  Jim Meyering  <meyering@lucent.com>
95687
95688         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95689
95690         * lib/exitfail.c, exitfail.h: Likewise.
95691         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95692
95693         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95694         of fnmatch.h.
95695         (EXTRA_DIST): Add fnmatch_loop.c.
95696         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95697
95698         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95699         * lib/fnmatch.c: Update from diffutils-2.8.2.
95700         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95701         * lib/fnmatch.h: Remove file.
95702
95703 2002-06-21  Jim Meyering  <meyering@lucent.com>
95704
95705         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95706         * m4/mbrtowc.m4: Likewise.
95707
95708         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95709         * m4/mbswidth.m4: Reflect name change:
95710         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95711         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95712
95713         * m4/lib-link.m4: Update from gettext-0.11.2.
95714         * m4/gettext.m4: Likewise.
95715
95716         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95717         From Alfred M. Szmidt.
95718
95719 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95720
95721         * lib/file-type.h: Report an error if neither S_ISREG nor
95722         S_IFREG is defined, instead of using a test specific to glibc
95723         2.2.  This should be safe, since POSIX requires S_ISREG and
95724         Unix Version 7 had S_IFREG.  We don't need to check for
95725         <sys/types.h> since we don't use any symbols that it defines.
95726
95727 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95728
95729         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95730         $@-t, so that each temporary file name is unique and valid in the first
95731         8 characters, for operation under DOS.
95732
95733 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95734
95735         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95736
95737 2002-06-15  Jim Meyering  <meyering@lucent.com>
95738
95739         Work even with DJGPP 2.03, which lacks support for symlinks.
95740         From Richard Dawe.
95741         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95742         is defined.
95743         * lib/lchown.c (S_ISLNK): Likewise.
95744
95745 2002-06-15  Jim Meyering  <meyering@lucent.com>
95746
95747         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95748         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95749         have been included before this file.
95750
95751 2002-06-14  Jim Meyering  <meyering@lucent.com>
95752
95753         * lib/file-type.h: Use the version from diffutils-2.8.2.
95754         * lib/file-type.c: Likewise.
95755
95756 2002-06-07  Jim Meyering  <meyering@lucent.com>
95757
95758         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95759         They're needed at least for NetBSD 1.5.2.
95760         ($statxfs_includes): Include those same headers.
95761         ($statxfs_includes): Include sys/vfs.h if available.
95762         ($statxfs_includes): Likewise for sys/statvfs.h.
95763         Check for the following members in both structs statfs and statvfs:
95764         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95765
95766 2002-06-01  Jim Meyering  <meyering@lucent.com>
95767
95768         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95769         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95770
95771 2002-05-28  Jim Meyering  <meyering@lucent.com>
95772
95773         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95774         Reported by Volker Borchert.
95775
95776 2002-05-27  Jim Meyering  <meyering@lucent.com>
95777
95778         Fix a problem seen only on nonconforming systems whereby ls.c's
95779         use of localtime, and then of gettimeofday would cause trouble:
95780         the localtime call used to initialize rpl_gettimeofday's save
95781         mechanism would clobber ls's current local time information so
95782         that in any long listing the first file would always be listed
95783         with date 1970-01-01.  Analysis by Volker Borchert.
95784
95785         * lib/gettimeofday.c (localtime): Undefine.
95786         (rpl_localtime): New function.
95787
95788 2002-05-27  Jim Meyering  <meyering@lucent.com>
95789
95790         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95791         localtime.
95792
95793         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95794         use the replacement function; it wouldn't resolve at link time.
95795         Reported by Volker Borchert.
95796
95797 2002-05-22  Jim Meyering  <meyering@lucent.com>
95798
95799         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95800         file-type.h.
95801         * lib/file-type.h: New file.
95802         * lib/file-type.c (file_type): New file/function.  Extracted from
95803         diffutils.
95804
95805 2002-04-30  Jim Meyering  <meyering@lucent.com>
95806
95807         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95808
95809 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95810
95811         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95812
95813 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95814
95815         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95816         Do not check for alloca.h (no longer used) or stdbool.h (was never
95817         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95818
95819 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95820
95821         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95822
95823 2002-04-29  Jim Meyering  <meyering@lucent.com>
95824
95825         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95826         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95827         Use AC_FUNC_STRNLEN here instead.
95828
95829         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95830         With autoconf-2.53a, it's part of AC_PROG_CC.
95831
95832 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95833
95834         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95835         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95836
95837 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95838
95839         * lib/sig2str.h, lib/sig2str.c: New files.
95840         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95841
95842 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95843
95844         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95845         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95846         of 127, since 64 is the largest conceivable number for ancient
95847         nonstandard hosts.
95848         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95849
95850 2002-04-28  Jim Meyering  <meyering@lucent.com>
95851
95852         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95853
95854 2002-04-24  Jim Meyering  <meyering@lucent.com>
95855
95856         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95857         (jm_PREREQ): Use it.
95858
95859         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95860         mach/mach.h fcntl.h.
95861         Check for this function: setlocale.
95862
95863 2002-04-24  Jim Meyering  <meyering@lucent.com>
95864
95865         * lib/gettext.h: New file, from Gettext.
95866         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95867         (libfetish_a_SOURCES): Add gettext.h.
95868
95869 2002-04-16  Jim Meyering  <meyering@lucent.com>
95870
95871         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95872         ut_pid, ut_id, ut_exit.
95873
95874 2002-04-16  Jim Meyering  <meyering@lucent.com>
95875
95876         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95877         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95878         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95879
95880 2002-04-12  Jim Meyering  <meyering@lucent.com>
95881
95882         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95883         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95884         existence of the getmntinfo function.  Needed for Darwin 5.3.
95885
95886         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95887         This is necessary at least on Darwin 5.3.
95888
95889         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95890         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95891         strnlen.o in the library, and that makes some versions of ranlib
95892         object.
95893
95894 2002-04-12  Jim Meyering  <meyering@lucent.com>
95895
95896         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95897
95898 2002-04-09  Jim Meyering  <meyering@lucent.com>
95899
95900         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95901         to be more precise.  Rather than saying we're checking whether the
95902         function `works', say what we're testing.
95903         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95904         Reported by Bruno Haible.
95905
95906 2002-03-10  Jim Meyering  <meyering@lucent.com>
95907
95908         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95909         Suggestion from Santiago Vila.
95910
95911 2002-03-08  Jim Meyering  <meyering@lucent.com>
95912
95913         * lib/rename.c: Mention that this wrapper is needed also on
95914         mips-dec-ultrix4.4 systems.
95915
95916 2002-03-02  Jim Meyering  <meyering@lucent.com>
95917
95918         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95919         not HAVE_CLOCK_SETTIME.
95920
95921 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95922
95923         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95924         Check for clock_settime.
95925
95926 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95927
95928         * lib/nanosleep.h: Rename to....
95929         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95930
95931         * lib/gettime.c: New file.
95932         * lib/settime.c: New file.
95933         * lib/stime.c: Remove.
95934
95935         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95936         timespec.h.  Remove nanosleep.h.
95937
95938 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95939
95940         * m4/acl.m4: New file.
95941         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95942         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95943
95944 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95945
95946         * lib/acl.c, lib/acl.h: New files.
95947         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95948
95949 2002-02-24  Jim Meyering  <meyering@lucent.com>
95950
95951         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95952         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95953         cause trouble.  Reported by Nelson Beebe.
95954
95955 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95956
95957         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95958         compilers that don't know that xalloc_die never returns.
95959
95960 2002-02-20  Jim Meyering  <meyering@lucent.com>
95961
95962         * lib/getdate.c: Regenerate using bison-1.33.
95963
95964 2002-02-17  Jim Meyering  <meyering@lucent.com>
95965
95966         * config/config.guess (main): Don't use `head -1'; it's no longer
95967         portable. Use `sed 1q' instead.
95968
95969 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95970
95971         * m4/codeset.m4: Upgrade to gettext-0.11.
95972         * m4/gettext.m4: Upgrade to gettext-0.11.
95973         * m4/glibc21.m4: Upgrade to gettext-0.11.
95974         * m4/iconv.m4: Upgrade to gettext-0.11.
95975         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95976         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95977         * m4/lib-ld.m4: New file, from gettext-0.11.
95978         * m4/lib-link.m4: New file, from gettext-0.11.
95979         * m4/lib-prefix.m4: New file, from gettext-0.11.
95980         * m4/progtest.m4: Upgrade to gettext-0.11.
95981
95982 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95983
95984         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95985         (jm_PREREQ): Use it.
95986
95987 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95988
95989         * lib/posixver.c, lib/posixver.h: New files.
95990         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95991
95992 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95993             Bruno Haible  <bruno@clisp.org>
95994
95995         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95996         (fwrite_success_callback): New declaration.
95997         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95998         print_unicode_char. Call failure callback instead of error.
95999         (fwrite_success_callback): New function.
96000         (exit_failure_callback): New function.
96001         (fallback_failure_callback): New function.
96002         (print_unicode_char): Call unicode_to_mb.
96003
96004 2002-01-26  Jim Meyering  <meyering@lucent.com>
96005
96006         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96007         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96008
96009 2002-01-26  Jim Meyering  <meyering@lucent.com>
96010
96011         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96012
96013 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96014
96015         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96016
96017 2002-01-22  Jim Meyering  <meyering@lucent.com>
96018
96019         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96020         Otherwise, some versions of automake would omit the rule that makes
96021         Makefile from Makefile.in.
96022
96023 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96024
96025         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96026         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96027         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96028         (memcoll): Set errno to zero if there is no error.
96029
96030         * lib/quotearg.c (quotearg_buffer_restyled):
96031         Fix bug with quoting buffers containing NUL when backslashing escapes.
96032         This bug was exposed by the other changes in this patch.
96033         (quotearg_n_options): New arg ARGSIZE.
96034         All callers changed.
96035         (quoting_options_from_style): New function.
96036         (quotearg_n_style): Use it.
96037         (quotearg_n_style_mem): New function.
96038
96039         * lib/quotearg.h (quotearg_n_style_mem): New function.
96040
96041 2002-01-19  Jim Meyering  <meyering@lucent.com>
96042
96043         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96044         Remove useless quotes: DF_PROG="df".
96045         * m4/strnlen.m4: New file.
96046
96047 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96048
96049         * lib/backupfile.c (ISDIGIT): Comment fix.
96050         * lib/getdate.y (ISDIGIT): Likewise.
96051         * lib/posixtm.c (ISDIGIT, year): Likewise.
96052         * lib/strverscmp.c (ISDIGIT): Likewise.
96053         * lib/userspec.c (ISDIGIT): Likewise.
96054
96055 2002-01-16  Jim Meyering  <meyering@lucent.com>
96056
96057         * lib/getdate.y: Add three semicolons, each just before a closing
96058         brace. Bison (as of version 1.31) no longer papers over that mistake.
96059
96060 2002-01-05  Jim Meyering  <meyering@lucent.com>
96061
96062         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96063
96064 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96065
96066         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96067         not silently exit merely because the output buffer happens to
96068         have nothing pending.
96069
96070 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96071
96072         See the big note in ../ChangeLog.
96073         * lib/human.c (suffixes): Prefer K to k for 1024.
96074         (generate_suffix_backwards): New function.
96075         (human_readable_inexact): Use it.
96076         * lib/xstrtol.c (__xstrtol): If there is no number but there
96077         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96078         Accept 'K' as well as 'k'.
96079
96080 2001-12-15  Jim Meyering  <meyering@lucent.com>
96081
96082         * lib/regex.h (__restrict_arr): Update from libc.
96083
96084         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96085         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96086         (STREQ): Define.
96087
96088 2001-12-14  Jim Meyering  <meyering@lucent.com>
96089
96090         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96091         Suggestion from Bruno Haible.
96092
96093 2001-12-10  Jim Meyering  <meyering@lucent.com>
96094
96095         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96096         xrealloc, Instead, include "xalloc.h".
96097         (initbuffer): Don't cast xmalloc return value to char*.
96098         (readline): Reword comment.
96099         Don't cast xrealloc return value to char*
96100         Return NULL, not 0.
96101
96102 2001-12-09  Jim Meyering  <meyering@lucent.com>
96103
96104         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96105         about `signed and unsigned type in conditional expression'.
96106         * lib/posixtm.c (posix_time_parse): Likewise.
96107
96108         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96109
96110         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96111         to avoid a pedantic warning.
96112
96113         * lib/getstr.c: Don't include assert.h.
96114         (getstr): Remove warning-evoking assertions.
96115         Return -1 if offset parameter is out of bounds.
96116         Change the type of a local from int to size_t.
96117
96118         * lib/strftime.c (my_strftime_localtime_r): Include this function
96119         definition in the `#if ! HAVE_TM_GMTOFF' block.
96120
96121         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96122         Include xalloc.h instead.
96123
96124 2001-12-02  Jim Meyering  <meyering@lucent.com>
96125
96126         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96127         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96128         included.
96129
96130         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96131         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96132
96133 2001-11-30  Akim Demaille  <akim@epita.fr>
96134
96135         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96136         before being defined.
96137
96138 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96139
96140         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96141         First arg is int, not unsigned.
96142         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96143         (SIZE_MAX, UINT_MAX): New macros.
96144         (quotearg_n_options): Abort if N is negative.
96145         Avoid overflow check on hosts where size_t is 64 bits and int
96146         is 32 bits, as overflow is impossible there.
96147         Fix off-by-one typo that caused unnecessary reallocation.
96148
96149 2001-11-27  Jim Meyering  <meyering@lucent.com>
96150
96151         * lib/tempname.c: Merge with version from libc.
96152         * lib/regex.c: Likewise.
96153
96154         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96155         systems for which STDC_HEADERS is 0, it was not included, resulting in
96156         a warning about an integer-to-pointer conversion problem with getenv.
96157         Reported by Volker Borchert.
96158
96159 2001-11-26  Jim Meyering  <meyering@lucent.com>
96160
96161         * lib/gtod.h: Remove file.
96162         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96163         * lib/gettimeofday.c: Don't include gtod.h.
96164         (GTOD_init): Remove function.
96165         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96166         Suggestion from Volker Borchert.
96167
96168 2001-11-23  Jim Meyering  <meyering@lucent.com>
96169
96170         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96171         it.
96172         * lib/hash.c (struct hash_table): Define it here instead.
96173
96174 2001-11-22  Jim Meyering  <meyering@lucent.com>
96175
96176         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96177
96178 2001-11-20  Jim Meyering  <meyering@lucent.com>
96179
96180         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96181         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96182
96183 2001-11-19  Jim Meyering  <meyering@lucent.com>
96184
96185         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96186         directory.  Use "conftestXXXXXX" as the template.
96187         Suggestion from Paul Eggert.
96188
96189         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96190         immediately, so the test doesn't mistakenly hit the max-open-files
96191         limit.
96192
96193 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96194
96195         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96196         (TEMPORARIES): New macro.
96197         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96198         removes an artificial limitation (e.g. HP-UX 10.20, where
96199         TMP_MAX is 17576).
96200
96201 2001-11-18  Jim Meyering  <meyering@lucent.com>
96202
96203         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96204
96205 2001-11-18  Jim Meyering  <meyering@lucent.com>
96206
96207         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96208         on SunOS 4.
96209
96210         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96211         files will be created before anything else.
96212
96213 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96214
96215         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96216         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96217
96218 2001-11-17  Jim Meyering  <meyering@lucent.com>
96219
96220         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96221         Prompted by a report from Bob Proulx.
96222
96223         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96224         Instead, require UTILS_FUNC_MKSTEMP.
96225
96226 2001-11-17  Jim Meyering  <meyering@lucent.com>
96227
96228         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96229         Now, that's done as part of AC_FUNC_STRTOD.
96230
96231 2001-11-17  Jim Meyering  <meyering@lucent.com>
96232
96233         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96234         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96235         rather than group writable.  Patch by Juan F. Codagnone.
96236
96237         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96238         xrealloc, Instead, include "xalloc.h".
96239
96240         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96241         Remove explicit declarations of xmalloc, xrealloc,
96242         and xstrdup.  Instead, include "xalloc.h".
96243
96244         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96245         unlocked-io.h.
96246         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96247         Likewise.
96248         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96249
96250         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96251         Reported by Padraig Brady.
96252
96253         * lib/mkstemp.c: #undef mkstemp.
96254         Include config.h.
96255         (rpl_mkstemp): Rename from mkstemp.
96256         Protoize.
96257
96258 2001-11-16  Jim Meyering  <meyering@lucent.com>
96259
96260         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96261         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96262         determine the amount of total physical memory, use pstat_getstatic.
96263         HPUX-11 doesn't define _SC_PHYS_PAGES.
96264         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96265         If sysconf couldn't be used to determine the amount of available
96266         physical memory, use both pstat_getstatic and pstat_getdynamic.
96267         Based on a patch from Bob Proulx.
96268
96269 2001-11-10  Jim Meyering  <meyering@lucent.com>
96270
96271         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96272         (jm_PREREQ): Use it.
96273
96274 2001-11-09  Jim Meyering  <meyering@lucent.com>
96275
96276         * m4/jm-macros.m4: Require autoconf-2.52f.
96277         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96278         Use these AC_-prefixed names, not the AM_-prefixed ones.
96279
96280         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96281
96282 2001-11-05  Jim Meyering  <meyering@lucent.com>
96283
96284         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96285
96286 2001-11-04  Jim Meyering  <meyering@lucent.com>
96287
96288         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96289         $DEFS.
96290
96291 2001-11-03  Jim Meyering  <meyering@lucent.com>
96292
96293         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96294         of AC_DEFUN.
96295
96296         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96297         know the name of the variable in the macro definition.
96298
96299 2001-11-03  Jim Meyering  <meyering@lucent.com>
96300
96301         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96302         in argmatch_to_argument call.
96303
96304         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96305         argument.
96306
96307         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96308         e.g., a fault due to an attempt to free a NULL pointer.
96309
96310 2001-11-01  Jim Meyering  <meyering@lucent.com>
96311
96312         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96313         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96314
96315 2001-11-01  Jim Meyering  <meyering@lucent.com>
96316
96317         * lib/dirfd.c, lib/dirfd.h: New files.
96318         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96319
96320         * lib/hash.c (hash_print) [TESTING]: Clean up.
96321
96322 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96323
96324         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96325         to avoid a warning if -Wall.
96326
96327 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96328
96329         * README: New file
96330         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96331         (per RMS's instructions, this is now the canonical source)
96332         * lgpl/, gpl/: New directories.
96333
96334 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96335
96336         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96337
96338 2001-10-21  Jim Meyering  <meyering@lucent.com>
96339
96340         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96341         this code would end up calling gettext even in packages built
96342         with --disable-nls.
96343         * lib/getopt.c (_): Likewise.
96344         * lib/regex.c (_): Likewise.
96345
96346 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96347
96348         * m4/error.m4 (jm_PREREQ_ERROR):
96349         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96350         AC_FUNC_STRERROR_R does that.
96351         Check for strerror declaration.
96352
96353         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96354         are supposed to have them these days.
96355         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96356         Merge changes from latest Autoconf CVS.
96357         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96358         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96359         POSIX decided to standardize on the int flavor of strerror_r.
96360
96361 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96362
96363         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96364         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96365         Use strerror_r that is only a macro, even if it is not a function.
96366         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96367         (private_strerror): Use prototypes, not old-style function definition.
96368         (print_errno_message): New function.
96369         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96370         char*-flavored one.
96371         (error_tail, error, error_at_line): Use it.
96372
96373 2001-10-11  Jim Meyering  <meyering@lucent.com>
96374
96375         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96376         and quote_n (1, ... to avoid clobbering a buffer.
96377
96378 2001-10-05  Jim Meyering  <meyering@lucent.com>
96379
96380         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96381         hash-pjw.h.
96382         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96383         * lib/hash-pjw.h: New file.
96384
96385 2001-09-30  Jim Meyering  <meyering@lucent.com>
96386
96387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96388         `struct fsstat' has the `f_fstypename' member.
96389         Use that to define FS_TYPE, which is now used to make
96390         the getfsstat link test tighter.
96391
96392 2001-09-30  Jim Meyering  <meyering@lucent.com>
96393
96394         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96395         Include <sys/ucred.h>, for Apple Darwin.
96396         Include sys/mount.h and sys/fs_types.h only if available.
96397         (FS_TYPE): Define.
96398         (read_filesystem_list): Use FS_TYPE.
96399
96400 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96401
96402         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96403         a boolean context.
96404
96405 2001-09-29  Jim Meyering  <meyering@lucent.com>
96406
96407         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96408         [one-argument getmntent function]): Include stdio.h before mntent.h.
96409         SunOS 4.1.x needs it for the declaration of `FILE'.
96410         Patch by Volker Borchert.
96411
96412         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96413         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96414         sys/fs_types.h, and make the link-test for getfsstat guard #include
96415         directives with appropriate #if HAVE_*_H tests so that we can
96416         detect getfsstat on Apple Darwin1.3.7 systems.
96417         Reported by Nelson Beebe.
96418         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96419
96420 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96421
96422         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96423         #defines strtoimax.  Also treat the other strto* functions
96424         like strtoimax.
96425
96426         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96427         Check for strtoul and strtoumax,
96428         as those declarations are made even in the signed case.
96429         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96430         Likewise, for strtol and strtoimax.
96431
96432 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96433
96434         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96435         #defines strtoimax.  Also treat the other strto* functions
96436         like strtoimax.
96437
96438         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96439         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96440         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96441
96442 2001-09-26  Jim Meyering  <meyering@lucent.com>
96443
96444         Most macros in unlocked-io.h had the wrong number of arguments.
96445         * lib/gen-uio: New script.
96446         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96447         * lib/unlocked-io.hin: Remove file.
96448         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96449         rather than trying to embed it here.
96450         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96451         Reported by Padraig Brady.
96452
96453 2001-09-25  Volker Borchert  <bt@teknon.de>
96454
96455         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96456         `result'.
96457
96458 2001-09-24  Jim Meyering  <meyering@lucent.com>
96459
96460         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96461
96462 2001-09-23  Jim Meyering  <meyering@lucent.com>
96463
96464         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96465         instead of the mere test for existence of mntent.h.  The latter
96466         would get a false-positive on AIX 3.4 systems.
96467         In the outer getmntent if-block, don't die if neither of the getmntent
96468         tests succeeds.  Instead, just fall through and continue with the
96469         remaining tests.
96470
96471 2001-09-23  Jim Meyering  <meyering@lucent.com>
96472
96473         * lib/mountlist.c: Remove useless parentheses in #if directives.
96474         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96475         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96476
96477 2001-09-22  Jim Meyering  <meyering@lucent.com>
96478
96479         * m4/gettext.m4: New file.  From gettext.
96480         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96481         * m4/progtest.m4: Likewise
96482         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96483         * m4/glibc21.m4: Likewise.
96484
96485         * m4/libintl.m4: Remove.  No longer used.
96486
96487 2001-09-22  Jim Meyering  <meyering@lucent.com>
96488
96489         * lib/localcharset.c: Update from latest gettext.
96490         * lib/config.charset: Likewise.
96491
96492 2001-09-20  Jim Meyering  <meyering@lucent.com>
96493
96494         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96495         strtoimax.
96496         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96497         strtoumax.
96498
96499 2001-09-20  Jim Meyering  <meyering@lucent.com>
96500
96501         * lib/xstrtol.c (strtoimax): Guard declaration with
96502         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96503         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96504         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96505         (strtoumax): Likewise, for completeness (it wasn't necessary).
96506
96507 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96508
96509         * lib/strtoimax.c (HAVE_LONG_LONG):
96510         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96511         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96512         to work around bug in IBM C compiler.
96513
96514 2001-09-17  Jim Meyering  <meyering@lucent.com>
96515
96516         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96517         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96518         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96519         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96520         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96521         whenever the right hand side need not be expanded by the shell.
96522
96523 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96524
96525         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96526         library.  It's not correct, as some older glibcs are buggy.
96527         fnmatch wasn't fixed until glibc 2.2.
96528
96529         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96530         special shell magic here.
96531
96532 2001-09-16  Jim Meyering  <meyering@lucent.com>
96533
96534         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96535         * m4/jm-macros.m4: Require it.
96536
96537 2001-09-16  Jim Meyering  <meyering@lucent.com>
96538
96539         * lib/mkdir.c: New file.
96540
96541 2001-09-15  Jim Meyering  <meyering@lucent.com>
96542
96543         * m4/jm-macros.m4: Check for help2man.
96544
96545 2001-09-11  Jim Meyering  <meyering@lucent.com>
96546
96547         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96548         The body, by Paul Eggert, was moved here from configure.in.
96549         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96550
96551 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96552
96553         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96554         (jm_PREREQ): Use it.
96555
96556 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96557
96558         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96559         Use ssize_t, not int, to store result of readlink.
96560         Check for ssize_t overflow as well as size_t overflow,
96561         as POSIX says the result of readlink is implementation-defined
96562         when ssize_t overflows.
96563         Remove unnecessary cast to char*.
96564         Use free+malloc instead of realloc, as the storage doesn't need
96565         to be preserved and it's clearer and can be more efficient that way.
96566         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96567         * lib/xreadlink.h (xreadlink): Update prototype.
96568
96569 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96570
96571         * lib/xgetcwd.c: Revert some of the previous change; intead,
96572         fix the HAVE_GETCWD_NULL code to behave more like the
96573         !HAVE_GETCWD_NULL code used to.
96574
96575         Include "xalloc.h".
96576         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96577         invoke xalloc_die.
96578
96579 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96580
96581         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96582         sys/param.h, as pathmax.h includes them.
96583
96584 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96585
96586         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96587         (jm_PREREQ_XGETCWD): New macro.
96588
96589         * m4/getcwd.m4: New file.
96590
96591 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96592
96593         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96594         like the HAVE_GETCWD_NULL code.
96595         Include pathmax.h if not HAVE_GETCWD.
96596         Do not include xalloc.h.
96597         (INITIAL_BUFFER_SIZE): New symbol.
96598         Do not use xmalloc / xrealloc, since the caller is responsible for
96599         handling errors.  Preserve errno around `free' during failure.
96600         Do not overrun buffer when using getwd.
96601
96602 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96603
96604         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96605         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96606         getcwd (NULL, 0).
96607
96608 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96609
96610         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96611         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96612         spotted by Jim Meyering.
96613
96614 2001-09-03  Jim Meyering  <meyering@lucent.com>
96615
96616         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96617         failure.
96618
96619 2001-09-02  Jim Meyering  <meyering@lucent.com>
96620
96621         * lib/error.c: Update from GNU libc.
96622
96623 2001-09-01  Jim Meyering  <meyering@lucent.com>
96624
96625         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96626         Used by df.
96627
96628 2001-09-01  Jim Meyering  <meyering@lucent.com>
96629
96630         * lib/xreadlink.c: New file.
96631         * lib/xreadlink.h: New file.
96632         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96633         xreadlink.h.
96634
96635         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96636         doesn't conflict with sparc Solaris 7's definition in
96637         /usr/include/sys/int_types.h.
96638
96639         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96640         files.
96641         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96642         and strncasecmp as r-values.  Unixware didn't have declarations.
96643
96644 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96645
96646         * lib/xstrtol.h: Add copyright notice.
96647         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96648         LONGINT_INVALID_SUFFIX_CHAR.
96649
96650 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96651
96652         * lib/xstrtol.c (strtoimax): New decl.
96653
96654 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96655
96656         * lib/xgetcwd.c: Don't include pathmax.h.
96657         Include stdlib.h and unistd.h if available.
96658         Include xalloc.h.
96659         (xmalloc, xstrdup, free): Remove decls.
96660         (xgetcwd): Don't assume sizes fit in unsigned.
96661         Check for overflow when computing sizes.
96662         Simplify reallocation code.
96663
96664 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96665
96666         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96667         a directory's st_size can have an arbitrary value, so the old
96668         usage could waste an arbitrary amount of memory.  All uses
96669         changed.
96670         * lib/savedir.h: Update prototype.
96671
96672 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96673
96674         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96675
96676         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96677         old strtoimax.c.
96678
96679         Also, make the following further changes to make this file's
96680         configuration more similar to that of strtol.c:
96681         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96682         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96683         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96684         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96685         changed to signed values.
96686
96687         And make the following changes as well:
96688         Fix copyright notice, as 1999 was missing.
96689         (verify): New macro.
96690         (strtoimax): Check sizes at compile-time, not run-time.
96691         Prefer strtol to strtoll if both work.
96692         (main): Remove; it was not that useful and was a pain to maintain.
96693
96694         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96695
96696 2001-08-31  Jim Meyering  <meyering@lucent.com>
96697
96698         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96699         Use an initial, malloc'd, buffer of length 128 rather than
96700         a statically allocated one of length 1024.
96701
96702 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96703
96704         Simplify code, partly by assuming autoconf 2.52 semantics.
96705
96706         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96707
96708         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96709         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96710         All uses removed.
96711         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96712         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96713         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96714         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96715         jm_AC_HEADER_INTTYPES_H.
96716         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96717
96718         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96719
96720         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96721         Quote first arg of AC_DEFUN.
96722         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96723         since they are needed to parse the include file even if we need
96724         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96725         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96726         but with opposite signedness.
96727
96728 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96729
96730         Merge 'exclude' changes from tar 1.13.22.
96731         This fixes one or two unlikely storage allocation overflow bugs,
96732         but doesn't change user-visible behavior otherwise.
96733
96734 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96735
96736         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96737         (jm_PREREQ_EXCLUDE): New macro.
96738
96739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96740
96741         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96742         tm to be declared.
96743
96744 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96745
96746         * lib/hash.c: Remove '2001' from copyright notice.
96747
96748 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96749
96750         * lib/full-write.h: New file.
96751         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96752         * lib/full-write.c: Correct credits, as cccp.c no longer
96753         exists and anyway it was so heavily changed from the old cccp
96754         code as to be unrecognizable.  Include full-write.h.
96755         (full_write): Return size_t, with short writes meaning failure.
96756         All callers changed.  This fixes a bug with large buffers
96757         on 64-bit hosts.
96758         * lib/utime.c: Include full-write.h.
96759
96760 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96761
96762         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96763         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96764         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96765         Include if available.
96766         (<xalloc.h>): Include
96767         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96768         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96769         collide with FNM macros.
96770         (struct patopts): New struct.
96771         (struct exclude): Use it, as exclude patterns now come with options.
96772         (new_exclude): Support above changes.
96773         (new_exclude, add_exclude_file):
96774         Initial size must now be a power of two to simplify overflow checking.
96775         (free_exclude, fnmatch_no_wildcards): New function.
96776         (excluded_filename): No longer requires options arg, as the options
96777         are determined by add_exclude.  Now returns bool, not int.
96778         (excluded_filename, add_exclude):
96779         Add support for the fancy new exclusion options.
96780         (add_exclude, add_exclude_file): Now takes int options arg.
96781         Check for arithmetic overflow when computing sizes.
96782         (add_exclude_file): xrealloc might modify errno, so don't
96783         realloc until after errno might be used.
96784
96785         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96786         New macros.
96787         (free_exclude): New decl.
96788         (add_exclude, add_exclude_file): Now takes int options arg.
96789         (excluded_filename): No longer requires options arg, as the options
96790         are determined by add_exclude.  Now returns bool, not int.
96791
96792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96793
96794         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96795
96796 2001-08-27  Jim Meyering  <meyering@lucent.com>
96797
96798         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96799
96800         * lib/version-etc.c (N_): Remove definition.
96801         Revert most of last change.
96802         Instead, simply don't mark the `Copyright...' string for translation.
96803         Based on advice from Paul Eggert.
96804
96805         * lib/strtoxmax.c: Tweak comment.
96806
96807 2001-08-26  Jim Meyering  <meyering@lucent.com>
96808
96809         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96810
96811         * m4/xstrtoimax.m4: New file.
96812         * m4/xstrtoumax.m4: Add comments explaining why we
96813         AC_REPLACE_FUNCS(strtol).
96814
96815 2001-08-26  Jim Meyering  <meyering@lucent.com>
96816
96817         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96818         of copyright with `%s' so translators don't get an untranslated
96819         message in 2002.
96820         (COPYRIGHT_YEAR): Define.
96821         (version_etc): Use fprintf rather than fputs.
96822         Suggestion from Ulrich Drepper.
96823
96824         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96825
96826         * lib/strtoll.c: New file, from GNU libc.
96827         * lib/xstrtoimax.c: New file.
96828
96829         * lib/xstrtol.h: Add xstrtoimax.
96830         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96831         * lib/strtoimax.c: New file.  Likewise, but first define
96832         STRTOUXMAX_SIGNED.
96833
96834         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96835         ...
96836         * lib/strtoxmax.c: ... then renamed to this.
96837
96838 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96839
96840         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96841         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96842         (jm_AC_TYPE_INTMAX_T): New macro.
96843         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96844
96845         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96846
96847         * m4/longlong.m4: Renamed from ulonglong.m4.
96848         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96849         * m4/uintmax_t.m4: Removed.
96850
96851 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96852
96853         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96854         Port to Solaris 8, where 'sed' requires a space after the 'r'
96855         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96856         Redirect output to $tmp just once.
96857
96858 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96859
96860         * lib/addext.c (<errno.h>): Include.
96861         (errno): Declare if not defined.
96862         (addext): Work correctly when pathconf returns -1 and leaves
96863         errno alone because there is no limit.  Also, work even if
96864         pathconf returns a value greater than SIZE_MAX.
96865
96866 2001-08-12  Jim Meyering  <meyering@lucent.com>
96867
96868         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96869         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96870         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96871         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96872         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96873         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96874         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96875         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96876         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96877         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96878         utime.m4, utimes.m4, xstrtoumax.m4:
96879         Quote the first argument in each use of AC_DEFUN.
96880
96881 2001-08-12  Jim Meyering  <meyering@lucent.com>
96882
96883         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96884         Simply `return getcwd (NULL, 0);'.
96885         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96886         Use 1300 as initial value for length, not PATH_MAX.
96887
96888         * lib/pathmax.h: Clean up cpp syntax.
96889
96890 2001-08-12  Jim Meyering  <meyering@lucent.com>
96891
96892         * lib/gettimeofday.c: New file.
96893         * lib/gtod.h: New file.
96894         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96895
96896 2001-08-05  Jim Meyering  <meyering@lucent.com>
96897
96898         * m4/jm-macros.m4: Require autoconf-2.52.
96899
96900 2001-08-04  Jim Meyering  <meyering@lucent.com>
96901
96902         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96903         stmt, to get in sync with glibc.
96904
96905 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96906
96907         The following changes are from gettext 0.10.39 as maintained by
96908         Bruno Haible.
96909
96910         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96911         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96912         with inverted sense.  All uses changed.
96913
96914         * lib/mbswidth.c: Don't include <limits.h>.
96915         Include <stdlib.h> and <string.h> unconditionally.
96916         (iswcntrl, mbsinit, ISCNTRL): New macros.
96917         (mbsnwidth): Use K&R style function declarations.
96918         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96919         can optimize it when MB_CUR_MAX == 1.
96920         The width of control characters is zero, not 1.
96921
96922 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96923
96924         The following changes are from gettext 0.10.39 as maintained by
96925         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96926
96927         * m4/codeset.m4: Upgrade to serial AM1.
96928         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96929         all uses changed.  Quote first arg of AC_DEFUN.
96930         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96931
96932         * m4/iconv.m4: Upgrade to serial AM2.
96933         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96934         Add --with-libconv-prefix.
96935         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96936         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96937         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96938         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96939         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96940
96941         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96942         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96943         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96944         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96945         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96946         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96947         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96948         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96949         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96950
96951         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96952         string.h any more.
96953
96954         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96955         not the default value.
96956
96957         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96958         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96959         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96960         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96961         Also check for iswcntrl, used for wcwidth fallback.
96962         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96963         to Autoconf 2.13.
96964
96965 2001-08-03  Jim Meyering  <meyering@lucent.com>
96966
96967         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96968         as it was in the original.  Reported by Paul Eggert.
96969
96970 2001-07-16  Jim Meyering  <meyering@lucent.com>
96971
96972         * m4/gettimeofday.m4: New file.
96973         Prompted by a report from Bernhard Baehr.
96974
96975 2001-07-15  Jim Meyering  <meyering@lucent.com>
96976
96977         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96978         stuff. Now it's in ../Makefile.cfg.
96979
96980 2001-07-15  Jim Meyering  <meyering@lucent.com>
96981
96982         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96983         (BUILT_SOURCES): Add unlocked-io.h.
96984         (io_functions): Define.
96985         (unlocked-io.h): New rule.
96986         (DISTCLEANFILES): Add unlocked-io.h.
96987         (all-local): Depend on unlocked-io.h, to ensure it is created.
96988
96989         * lib/unlocked-io.hin: New file
96990
96991         * lib/regex.c: Update from glibc.
96992
96993 2001-07-05  Jim Meyering  <meyering@lucent.com>
96994
96995         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96996         recommendation.
96997         (libfetish_a_SOURCES): Put all .h files here instead.
96998         Remove a thus-exposed (better checks in automake) duplicate and
96999         two unnecessary .h files.
97000
97001 2001-07-04  Jim Meyering  <meyering@lucent.com>
97002
97003         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97004         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97005         distcheck failure.
97006
97007 2001-07-02  Jim Meyering  <meyering@lucent.com>
97008
97009         The following changes were prompted by suggestions from Bruno Haible.
97010
97011         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97012         is now generated.
97013         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97014         definition of EXTRA_DIST.
97015         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97016         ensure that the generated file is created/updated whenever the list
97017         of $(unlocked_functions) is changed.
97018         (jm-glibc-io.m4): New rule.
97019         (unlocked-io.h): New rule -- currently unused.
97020
97021 2001-06-24  Jim Meyering  <meyering@lucent.com>
97022
97023         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97024         unmatched right bracket, rather than kludging it with an extra,
97025         falsely-matching quote in a comment.  Patch by Akim Demaille.
97026
97027 2001-06-11  Jim Meyering  <meyering@lucent.com>
97028
97029         * lib/regex.c: Update from GNU libc.
97030
97031 2001-05-27  Jim Meyering  <meyering@lucent.com>
97032
97033         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97034         Check for ut_type in struct utmp.
97035
97036 2001-05-27  Jim Meyering  <meyering@lucent.com>
97037
97038         * lib/readutmp.h (UT_TYPE): Define.
97039
97040 2001-05-24  Jim Meyering  <meyering@lucent.com>
97041
97042         * lib/argmatch.c: Include "quote.h".
97043         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97044         quote function.  Reported by Göran Uddeborg.
97045
97046 2001-05-22  Jim Meyering  <meyering@lucent.com>
97047
97048         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97049         now that we use the package-supplied version unconditionally.
97050         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97051
97052 2001-05-21  Jim Meyering  <meyering@lucent.com>
97053
97054         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97055         shell syntax errors.
97056
97057 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97058
97059         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97060
97061 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97062
97063         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97064         Don't bother to check library strftime, since
97065         we'll be using our own my_strftime function anyway.
97066         Define my_strftime instead of strftime.
97067
97068 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97069
97070         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97071         which is not yet declared.
97072
97073 2001-05-15  Jim Meyering  <meyering@lucent.com>
97074
97075         * m4/regex.m4: Use proper quoting so brackets appear in the test
97076         program.
97077         Reported by, and with help from, Bruno Haible.
97078
97079 2001-05-13  Jim Meyering  <meyering@lucent.com>
97080
97081         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97082         undefined.
97083
97084 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97085
97086         dirname code cleanup.  base_name now behaves more compatibly
97087         with POSIX basename when given file names that have trailing
97088         slashes, and similarly for dir_name.  Add new primitives
97089         base_len and dir_len.  Put the directory-name-related decls
97090         into dirname.h.
97091
97092         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97093         * lib/backupfile.c (base_name): Likewise.
97094         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97095         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97096         * lib/makepath.c (strip_trailing_slashes): Likewise.
97097         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97098         ISSLASH): Likewise.
97099         * lib/rename.c (strip_trailing_slashes): Likewise.
97100         * lib/same.c (base_name): Likewise.
97101         * lib/stripslash.c (ISSLASH): Likewise.
97102
97103         * lib/addext.c: Include <dirname.h> after size_t is defined.
97104         * lib/backupfile.c: Likewise.
97105
97106         * lib/addext.c (addext): Use base_len to trim redundant
97107         trailing slashes instead of doing it ourselves.
97108         But do not trim the last slash if it is not redundant.
97109
97110         * lib/backupfile.c (find_backup_file_name,
97111         max_backup_version): Use base_len instead of rolling it ourselves.
97112         Handle the case of "" and (on DOS) "C:" correctly.
97113
97114         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97115         needed. Include <string.h>, <dirname.h>.
97116         (base_name): Allow file names ending in slashes, other than names
97117         that are all slashes.  In this case, return the basename followed
97118         by the slashes.  This is more general, and can be used in places
97119         where the original base_name purposely had an assertion failure.
97120         (base_len): New function.
97121
97122         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97123         Do not include <assert.h>; no longer needed.
97124         Include xalloc.h.
97125         (memrchr): Remove decl.
97126         (dir_name_r): Remove.
97127         (dir_len): Renamed from dirlen.  All callers changed.
97128         Rewrite in terms of base_name, for simplicity and consistency.
97129         (dir_name): Never return NULL.  All callers changed.
97130         Do not include <stdlib.h> in test program; no longer needed.
97131         return 0; is fine for test program.
97132
97133         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97134         New macros.
97135         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97136
97137         * lib/path-concat.c (path_concat): Use base_len to compute
97138         base length, not strlen; this means we cannot rely on memcpy
97139         to null-terminate.
97140
97141         * lib/same.c (STREQ): Remove.
97142         (same_name): Handle the case where the basename ends in trailing '/'.
97143
97144         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97145         a slash was stripped.  Do not strip the last slash after a
97146         file system prefix.
97147
97148 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97149
97150         * lib/Makefile.am (libfetish_a_SOURCES):
97151         Add strftime.c, since we now compile it on all hosts.
97152
97153         * lib/strftime.c (my_strftime):
97154         Define to nstrftime if emacs, but only if my_strftime is not defined.
97155         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97156         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97157         Add one more extra argument: a nanoseconds value.
97158         All uses changed.
97159         (ns): New macro.
97160         (my_strftime function): Add %N format.
97161         (emacs_strftimeu): Renamed from emacs_strftime,
97162         with extra ut argument.
97163
97164 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97165
97166         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97167
97168 2001-04-21  Jim Meyering  <meyering@lucent.com>
97169
97170         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97171         doesn't interfere.
97172
97173 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97174
97175         * m4/ftruncate.m4: Check for chsize.
97176         Link with ftruncate.o unconditionally if ftruncate is missing.
97177         This was required when cross-compiling to i586-mingw32msvc.
97178
97179 2001-04-08  Jim Meyering  <meyering@lucent.com>
97180
97181         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97182         recomputed; that's necessary when the offset spans a DST transition.
97183         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97184
97185 2001-04-02  Jim Meyering  <meyering@lucent.com>
97186
97187         * lib/regex.h, regex.c: Update from GNU libc.
97188
97189 2001-03-24  Jim Meyering  <meyering@lucent.com>
97190
97191         * m4/jm-macros.m4: Require autoconf-2.49d.
97192
97193 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97194
97195         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97196
97197 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97198
97199         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97200
97201 2001-03-17  Jim Meyering  <meyering@lucent.com>
97202
97203         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97204         now that the version in autoconf is equivalent.
97205         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97206
97207         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97208         Suggestion from Akim Demaille.
97209
97210         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97211         (jm_PREREQ_TEMPNAME): New function.
97212
97213 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97214
97215         * lib/tempname.c (uint64_t): Define to uintmax_t if
97216         not defined, and if UINT64_MAX is not defined.
97217         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97218         Reported by John David Anglin.
97219
97220 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97221
97222         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97223         resolve alias if codeset is empty.
97224         * lib/config.charset (BeOS): Use wildcard syntax.
97225
97226 2001-03-13  Jim Meyering  <meyering@lucent.com>
97227
97228         * lib/path-concat.c (path_concat)
97229         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97230         concatenating e.g., `C:' and `foo'.
97231         From Bruno Haible.
97232
97233 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97234
97235         * lib/localcharset.c (locale_charset): Don't use
97236         setlocale(LC_CTYPE,NULL). Don't return NULL.
97237         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97238
97239 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97240
97241         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97242         support for DOS/DJGPP.
97243
97244 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97245
97246         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97247         lacks mkstemp.  Compile our own tempname.c if we compile our own
97248         mkstemp.c, as mkstemp relies on tempname.
97249
97250 2001-03-01  Jim Meyering  <meyering@lucent.com>
97251
97252         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97253         AH_VERBATIM really does output its argument verbatim.
97254
97255 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97256
97257         * lib/Makefile.am (libfetish_a_SOURCES):
97258         Add dup-safer.c, fopen-safer.c.
97259         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97260
97261         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97262         * lib/unistd-safer.h: New files.
97263
97264 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97265
97266         The mkstemp replacement is taken from glibc 2.2.2, with some
97267         portability fixes for use outside glibc, as follows:
97268
97269         * lib/tempname.c (struct_stat64): New macro.
97270         (direxists, __gen_tempname): Use it.
97271         This avoids a portability problem with Solaris 8.
97272
97273         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97274         (<stddef.h>, <stdint.h>, <string.h>):
97275         Include only if STDC_HEADERS || _LIBC.
97276         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97277         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97278         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97279         (__set_errno): Define this macro if <errno.h> doesn't.
97280         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97281         Define these macros if <stdio.h> doesn't.
97282         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97283         Define these macros if <sys/stat.h>
97284         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97285         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97286         __xstat64): Define if not _LIBC.
97287         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97288         (__gen_tempname): Invoke gettimeofday only if
97289         HAVE_GETTIMEOFDAY || _LIBC;
97290         otherwise, fall back on plain "time".
97291         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97292
97293         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97294
97295         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97296
97297 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97298
97299         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97300
97301 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97302
97303         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97304         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97305         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97306         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97307
97308 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97309
97310         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97311         Remove workaround macros for hosts that have mbrtowc but not
97312         mbstate_t, as we now insist on proper declarations for both
97313         before using mbrtowc.
97314
97315 2001-02-17  Jim Meyering  <meyering@lucent.com>
97316
97317         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97318         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97319         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97320         UnixWare 7.1.1.
97321
97322         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97323         rather than AC_CACHE_VAL.
97324
97325 2001-02-17  Jim Meyering  <meyering@lucent.com>
97326
97327         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97328         around included file name.
97329
97330         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97331
97332         * lib/strftime.c: Update from GNU libc (the only changes were to
97333         comments).
97334
97335 2001-02-17  Jim Meyering  <meyering@lucent.com>
97336
97337         * lib/regex.c: Update from libc.
97338
97339 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97340
97341         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97342         clash.
97343
97344 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97345
97346         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97347         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97348         Reported by Mark Hounschell via Paul Eggert.
97349
97350 2001-02-07  Jim Meyering  <meyering@lucent.com>
97351
97352         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97353
97354 2001-02-05  Jim Meyering  <meyering@lucent.com>
97355
97356         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97357         it includes the patch required for `large file' support with at least
97358         HP-UX's 10.20 /bin/cc.
97359
97360 2001-02-03  Jim Meyering  <meyering@lucent.com>
97361
97362         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97363         AS_IF, now that it works once again (mysteriously).
97364         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97365
97366 2001-01-30  Jim Meyering  <meyering@lucent.com>
97367
97368         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97369         * m4/chown.m4: Rename conftestchown to conftest.chown.
97370         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97371         s/conftestdir2/conftest.d2/.
97372         * m4/utimes.m4: s/conftestdata/conftest.data/
97373         Inspired by Pavel Roskin's change in autoconf.
97374
97375 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97376
97377         * lib/config.charset: Update for FreeBSD 4.2.
97378
97379 2001-01-27  Jim Meyering  <meyering@lucent.com>
97380
97381         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97382         a use of AS_IF.
97383         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97384
97385 2001-01-26  Jim Meyering  <meyering@lucent.com>
97386
97387         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97388         quotearg.c includes it.
97389
97390 2001-01-26  Jim Meyering  <meyering@lucent.com>
97391
97392         * lib/quotearg.c: Include stddef.h.
97393         * lib/quote.c: Include stddef.h.
97394         Reported by Axel Kittenberger.
97395
97396         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97397         line in double quotes so that it evokes a better diagnostic.
97398         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97399         Reported by Axel Kittenberger.
97400
97401 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97402
97403         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97404         as if it was a `charset'.
97405
97406 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97407
97408         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97409         has const.
97410
97411 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97412
97413         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97414         to avoid a warning.  Add back 'const' to inptr.
97415
97416 2001-01-20  Jim Meyering  <meyering@lucent.com>
97417
97418         Be sure that headers are checked before used in code compiled
97419         for the type checks.
97420         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97421         In place of that, invoke jm_CHECK_ALL_TYPES.
97422         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97423         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97424         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97425         The check for ssize_t was mistakenly run before the test for unistd.h.
97426
97427         The configure-time check for stdbool.h was missing.
97428         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97429         (jm_PREREQ_HASH): New function.
97430
97431 2001-01-17  Jim Meyering  <meyering@lucent.com>
97432
97433         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97434         for autoconf-2.49c.
97435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97436
97437 2001-01-16  Jim Meyering  <meyering@lucent.com>
97438
97439         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97440         From Bruno Haible.
97441
97442 2001-01-14  Jim Meyering  <meyering@lucent.com>
97443
97444         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97445         foo and bar.  Create conftestdir/ in the script, not in the C code.
97446         Remove directories in the script, not in the C code.
97447         Remove conftestdir{,2} before trying to create the directory.
97448         Make the entire configure script fail if the mkdir fails.
97449
97450 2001-01-14  Jim Meyering  <meyering@lucent.com>
97451
97452         * lib/rename.c: New file.  From Volker Borchert.
97453         Include stdlib.h, string.h or strings.h, and xalloc.h.
97454         Use strip_trailing_slashes rather than open-coding it.
97455
97456 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97457
97458         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97459
97460 2001-01-03  Jim Meyering  <meyering@lucent.com>
97461
97462         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97463         of local `inptr' to avoid warning with some system declarations of
97464         iconv.
97465
97466 2001-01-02  Volker Borchert  <bt@teknon.de>
97467
97468         * m4/rename.m4: New file.
97469         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97470
97471 2001-01-01  Jim Meyering  <meyering@lucent.com>
97472
97473         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97474         even on systems with utmpx.h.  It's necessary for the declaration of
97475         utmp's ut_user member.  Reported by Andreas Jaeger.
97476
97477         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97478         available. They are required for the declarations of getgrgid and
97479         getpwuid resp.
97480         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97481         Reported by Andreas Jaeger.
97482
97483 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97484
97485         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97486         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97487         so `make install' also works in VPATH builds.
97488
97489 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97490
97491         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97492         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97493         can be used in subdirectories.
97494
97495 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97496
97497         * lib/modechange.c: Do not assume that mode_t uses the
97498         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97499         the other-execute bit of FOO even if S_IXOTH != 1.
97500
97501         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97502         WOTH, XOTH, ALLM): New macros.
97503         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97504          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97505         Use them.
97506         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97507         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97508         (mode_compile):
97509         No need to use uintmax_t; unsigned long is long enough.
97510         Don't bother to get suffix since we don't use it.
97511
97512 2000-12-26  Jim Meyering  <meyering@lucent.com>
97513
97514         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97515         better with autoheader.
97516
97517 2000-12-24  Jim Meyering  <meyering@lucent.com>
97518
97519         * lib/hash.c (is_prime): Return explicit boolean values.
97520         (hash_get_first): Return NULL to appease Irix5.6's 89.
97521         Reported by Nelson Beebe.
97522
97523 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97524
97525         * lib/localcharset.c (locale_charset): Add support for Win32.
97526
97527 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97528
97529         * lib/physmem.h, lib/physmem.c: New files.
97530
97531         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97532         (noinst_HEADERS): Add physmem.h.
97533
97534         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97535         't' for compatibility with Solaris 8 sort.
97536
97537 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97538
97539         * lib/config.charset: Add support for BeOS.
97540
97541 2000-12-17  Jim Meyering  <meyering@lucent.com>
97542
97543         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97544         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97545
97546 2000-12-16  Jim Meyering  <meyering@lucent.com>
97547
97548         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97549         N and M) would have treated it like `chown N:N FILE'.
97550
97551         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97552
97553 2000-12-16  Jim Meyering  <meyering@lucent.com>
97554
97555         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97556         SHELLS_FILE to a file name that's useful on djgpp systems.
97557         Include stdlib.h.
97558         (ADDITIONAL_DEFAULT_SHELLS): Define.
97559         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97560         Based mostly on a patch from Prashant TR.
97561
97562 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97563
97564         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97565         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97566         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97567
97568 2000-12-08  Andreas Schwab  <schwab@suse.de>
97569
97570         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97571         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97572
97573 2000-12-07  Jim Meyering  <meyering@lucent.com>
97574
97575         * lib/stripslash.c (ISSLASH): Define.
97576         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97577         `/'.
97578         From Prashant TR.
97579
97580         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97581         (dir_name_r): Declare this function as static.
97582         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97583         manifest itself on a name containing a mix of slashes and
97584         backslashes.
97585         Make this function work with names starting with a DOS-style
97586         drive letter and colon prefix.
97587         (dir_name): Append `.' if necessary.
97588         Based mostly on patches from Prashant TR and Eli Zaretskii.
97589
97590         * lib/dirname.h (dir_name_r): Remove prototype.
97591
97592 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97593
97594         * m4/off_t-format.m4: Remove this file.
97595         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97596
97597 2000-12-06  Jim Meyering  <meyering@lucent.com>
97598
97599         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97600         replacement strtoull, we may well need the replacement strtoul, too.
97601         Check for declarations of strtoul and strtoull.
97602         Check for strtol.  Mainly as a cue to cause automake to include
97603         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97604         Check for limits.h -- strtol.c needs it.
97605
97606 2000-12-05  Jim Meyering  <meyering@lucent.com>
97607
97608         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97609
97610 2000-12-04  Jim Meyering  <meyering@lucent.com>
97611
97612         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97613         Also include memory.h, stdlib.h, unistd.h if appropriate.
97614         Reported by Andreas Jaeger (conflicting declaration of malloc).
97615
97616 2000-12-02  Jim Meyering  <meyering@lucent.com>
97617
97618         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97619         * m4/jm-macros.m4 (jm_MACROS): require it.
97620
97621 2000-12-02  Jim Meyering  <meyering@lucent.com>
97622
97623         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97624
97625 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97626
97627         * lib/memrchr.c: Include <config.h> before any system include file.
97628
97629 2000-11-30  Jim Meyering  <meyering@lucent.com>
97630
97631         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97632
97633 2000-11-30  Jim Meyering  <meyering@lucent.com>
97634
97635         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97636
97637 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97638
97639         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97640
97641 2000-11-26  Jim Meyering  <meyering@lucent.com>
97642
97643         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97644
97645 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97646
97647         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97648         size of (size_t) -1; it's not portable.
97649
97650 2000-11-17  Jim Meyering  <meyering@lucent.com>
97651
97652         * lib/strstr.c: Update from GNU libc.
97653
97654 2000-11-17  Akim Demaille  <akim@epita.fr>
97655
97656         * lib/obstack.h: Formatting changes.
97657         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97658         prevent type checking.
97659         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97660         cast the value to (void *): assigning a `foo *' to a `void *'
97661         variable is valid.
97662         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97663
97664 2000-11-16  Jim Meyering  <meyering@lucent.com>
97665
97666         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97667
97668 2000-11-11  Jim Meyering  <meyering@lucent.com>
97669
97670         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97671
97672 2000-11-10  Jim Meyering  <meyering@lucent.com>
97673
97674         * lib/obstack.h: Update from GNU libc.
97675         * lib/obstack.c: Likewise.
97676
97677 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97678
97679         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97680
97681 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97682
97683         * lib/getusershell.c (setusershell): Use rewind rather than
97684         fseek/fseeko, to avoid configuration hassles with fseeko.
97685         Don't bother opening SHELLS_FILE if shellstream is NULL;
97686         it's not necessary.
97687
97688 2000-11-05  Jim Meyering  <meyering@lucent.com>
97689
97690         * lib/makepath.h (make_dir): Declare.
97691         * lib/makepath.c (make_dir): Remove `static' attribute.
97692         Tweak a comment.
97693
97694 2000-11-04  Jim Meyering  <meyering@lucent.com>
97695
97696         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97697
97698 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97699
97700         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97701         last one in a bucket, advance to the next bucket.
97702
97703 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97704
97705         * lib/fnmatch.c: Do not comment out all the code if we are using
97706         the GNU C library, because in some cases we are replacing buggy
97707         code in the GNU C library itself.
97708
97709 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97710
97711         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97712         (regex_compile): Catch bogus \(\1\).
97713
97714 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97715
97716         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97717         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97718         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97719
97720 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97721
97722         * lib/error.h, getline.h, modechange.h:
97723         Remove "2000" from Copyright line, as the file hasn't been
97724         changed this year other than in the copyright notice.
97725
97726         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97727         was changed this year.
97728
97729 2000-10-29  Jim Meyering  <meyering@lucent.com>
97730
97731         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97732         renaming.
97733         * m4/ls-mntd-fs.m4: Likewise
97734
97735 2000-10-29  Jim Meyering  <meyering@lucent.com>
97736
97737         * lib/xstat.in: Fix grammar in comment.
97738
97739 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97740
97741         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97742         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97743         doesn't define __restrict_arr.
97744
97745 2000-10-28  Jim Meyering  <meyering@lucent.com>
97746
97747         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97748         (jm_PREREQ_MEMCHR): New function.
97749
97750 2000-10-28  Jim Meyering  <meyering@lucent.com>
97751
97752         * lib/memchr.c: Update from libc.
97753         Adjust for portability:
97754         [HAVE_STDLIB_H]: Include stdlib.h.
97755         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97756         Undef __memchr, too.
97757         [!weak_alias]: Define __memchr to memchr.
97758
97759         * lib/regex.c: Update from libc.
97760         * lib/regex.h: Likewise.
97761         * lib/getopt1.c: Likewise.
97762         * lib/memcmp.c: Likewise.
97763
97764         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97765         Avoid using fseek, when possible -- it's broken by design.
97766         Patch by Ulrich Drepper.
97767
97768 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97769
97770         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97771         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97772         Giving in to popular pressure to shut up the compiler with casts.
97773
97774 2000-10-26  Jim Meyering  <meyering@lucent.com>
97775
97776         * lib/strftime.c: Update from libc.
97777
97778 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97779
97780         * regex.c: More `unsigned char' -> `re_char' changes.
97781         Also change several `int' into `re_wchar_t'.
97782         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97783         (PUSH_FAILURE_POINTER): Don't cast any more.
97784         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97785         We want GCC to complain, since this piece of code makes
97786         re_match non-reentrant, which *should* be fixed.
97787         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97788         (EXTEND_BUFFER): Use RETALLOC.
97789         (SET_LIST_BIT): Don't cast.
97790         (re_wchar_t): New type.
97791         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97792         that those two functions will always properly return.
97793         (IMMEDIATE_QUIT_CHECK): Cast to void.
97794         (analyse_first): Use recursion rather than an explicit stack.
97795         (re_compile_fastmap): Can't fail anymore.
97796         (re_search_2): Don't check re_compile_fastmap for failure.
97797         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97798         Now also sets the new value (passed in a new argument).
97799         (re_match_2_internal): Use it.
97800         Also, use a new var `reg' of type size_t when looping through regs
97801         rather than reuse the inappropriate `mcnt'.
97802
97803 2000-10-25  Jim Meyering  <meyering@lucent.com>
97804
97805         * lib/obstack.c: Update from libc.
97806
97807 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97808
97809         * regex.c (regex_compile): Change the way of handling a range from
97810         a char less than 256 to a char not less than 256.
97811
97812 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97813
97814         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97815         NT-Emacs only.
97816         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97817         so that re_search functions only quit when callers expect them to.
97818
97819 2000-10-23  Jim Meyering  <meyering@lucent.com>
97820
97821         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97822         wrong.  That set_locale call must not have any side effects.
97823         From Paul Eggert.
97824
97825 2000-10-22  Jim Meyering  <meyering@lucent.com>
97826
97827         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97828         [CYCLIC]: Remove now-unused definition.
97829
97830         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97831         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97832         Suggestion from Ulrich Drepper.
97833
97834 2000-10-21  Jim Meyering  <meyering@lucent.com>
97835
97836         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97837         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97838         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97839
97840 2000-10-21  Jim Meyering  <meyering@lucent.com>
97841
97842         * lib/dirname.c (memrchr): Declare if necessary.
97843         (dir_name): Remove the restriction that there be no
97844         trailing slashes.  Now, this code skips past them, effectively
97845         ignoring them.
97846         [TEST_DIRNAME] (main): New unit tests.
97847
97848         * lib/memrchr.c: New file from GNU libc.
97849         Undef __memrchr, too.
97850         [!weak_alias]: Define __memrchr to memrchr.
97851         Guard weak_alias use with `#ifdef weak_alias'.
97852
97853 2000-10-21  Jim Meyering  <meyering@lucent.com>
97854
97855         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97856         (dir_name): Use dir_name_r.
97857         * lib/dirname.h (dir_name_r): Declare it.
97858
97859 2000-10-17  Jim Meyering  <meyering@lucent.com>
97860
97861         * lib/quote.h (PARAMS): Define and use.
97862         Reported by Akim Demaille.
97863
97864         * lib/getopt.c: Update from libc.
97865
97866 2000-10-16  Jim Meyering  <meyering@lucent.com>
97867
97868         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97869         setlocale.
97870         From Jan Fedak.
97871
97872 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97873
97874         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97875
97876 2000-09-25  Jim Meyering  <meyering@lucent.com>
97877
97878         * lib/md5.h (rol): Define (from GnuPG).
97879
97880         * lib/sha.c: Give credit (GnuPG) where due.
97881         (M): Use rol rather than open-coding it.
97882         Add a FIXME comment.
97883
97884 2000-09-21  Jim Meyering  <meyering@lucent.com>
97885
97886         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97887         Reported by Michael Stone.
97888
97889 2000-09-20  Jim Meyering  <meyering@lucent.com>
97890
97891         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97892         (noinst_HEADERS): Add sha.h.
97893         Based on code from Scott G. Miller and from GnuPG.
97894
97895 2000-09-18  Jim Meyering  <meyering@lucent.com>
97896
97897         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97898         LIBS. Otherwise, everyone ends up linking with -lelf for some
97899         configurations.
97900         Reported by Mike Stone.
97901
97902 2000-09-15  Jim Meyering  <meyering@lucent.com>
97903
97904         * lib/regex.c: Update from libc.
97905
97906 2000-09-10  Jim Meyering  <meyering@lucent.com>
97907
97908         * lib/getopt.c (_getopt_internal): Update from glibc.
97909
97910 2000-09-09  Jim Meyering  <meyering@lucent.com>
97911
97912         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97913         think it should be used as a general replacement for isascii.
97914         * lib/fnmatch.c: Likewise.
97915         * lib/mbswidth.c: Likewise
97916         * lib/regex.c: Likewise.
97917
97918         Don't use atoi.
97919         * lib/userspec.c: Include sys/param.h and limits.h.
97920         Include xstrtol.h.
97921         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97922         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97923         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97924         UID, GID.  Check range.
97925
97926 2000-09-06  Jim Meyering  <meyering@lucent.com>
97927
97928         * lib/getopt.c (_getopt_internal): Update from glibc.
97929
97930 2000-08-30  Jim Meyering  <meyering@lucent.com>
97931
97932         * lib/strftime.c: Merge in changes from GNU libc.
97933
97934 2000-08-26  Jim Meyering  <meyering@lucent.com>
97935
97936         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97937         * m4/fpending.m4: New file.
97938
97939 2000-08-26  Jim Meyering  <meyering@lucent.com>
97940
97941         * lib/closeout.c: Include "__fpending.h".
97942         (close_stdout_status): Return right away if there's nothing to flush.
97943
97944         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97945         * lib/__fpending.c: New file.
97946         * lib/__fpending.h: New file.
97947
97948 2000-08-20  Jim Meyering  <meyering@lucent.com>
97949
97950         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97951         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97952         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97953
97954 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97955
97956         Improve fileutils installation on systems where running
97957         programs (like install) can't be unlinked.
97958         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97959         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97960
97961 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97962
97963         Standardize on "memory exhausted" instead of "Memory exhausted"
97964         or "virtual memory exhausted".
97965         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97966         "virtual memory exhausted".
97967         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97968         our own message.
97969         * lib/userspec.c (parse_user_spec): Likewise.
97970         * lib/bumpalloc.h: comment fix
97971         * lib/same.c, userspec.c: Include xalloc.h.
97972
97973         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97974         not char *const and pointing to a constant array.
97975         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97976         (xrealloc): Comment fix.
97977
97978         * lib/userspec.c (parse_user_spec):
97979         Don't translate a message until just before returning,
97980         to avoid unnecessary translation.
97981
97982 2000-08-07  Jim Meyering  <meyering@lucent.com>
97983
97984         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97985         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97986         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97987         getgroups.c, gethostname.c, getopt.h, group-member.c,
97988         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97989         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97990         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97991         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97992         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97993         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97994         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97995         yesno.c: Back out Copyright date changes for each file with no change
97996         this year.  This eases coordination with other programs using the same
97997         source code modules.  From Paul Eggert.
97998
97999 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98000
98001         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98002         not char, for compatibility with glibc 2.1.3 strftime.c.
98003
98004 2000-08-03  Greg McGary  <greg@mcgary.org>
98005
98006         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98007         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98008         (EXTEND_BUFFER): Use them.
98009
98010 2000-08-01  Jim Meyering  <meyering@lucent.com>
98011
98012         * lib/dirname.c (ISSLASH): Define.
98013         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98014         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98015         both `\' and `/' may be use as path separators.
98016         Based on a patch from Prashant TR.
98017
98018 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98019
98020         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98021         slot vector a constant, since it might get modified.
98022
98023 2000-07-31  Jim Meyering  <meyering@lucent.com>
98024
98025         * lib/xmalloc.c: Use `virtual memory exhausted', not
98026         `Memory exhausted'.
98027         * lib/obstack.c (print_and_abort): Likewise.
98028
98029 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98030
98031         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98032         buffer, so that the caller can always quote one small
98033         component of a "memory exhausted" message in slot 0.
98034         From a suggestion by Jim Meyering.
98035
98036 2000-07-30  Jim Meyering  <meyering@lucent.com>
98037
98038         * lib/makepath.c (make_path): Quote the other instance, too.
98039
98040         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98041         (STATIC_BUF_SIZE): Define.
98042         (quotearg_n_options): Use only statically allocated storage when
98043         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98044         than STATIC_BUF_SIZE.
98045
98046 2000-07-29  Jim Meyering  <meyering@lucent.com>
98047
98048         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98049         * lib/dirname.c (dir_name): Likewise.
98050
98051         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98052         `/'.
98053
98054         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98055         (dir_name): Assert that there are no trailing slashes.
98056
98057 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98058
98059         * lib/mbswidth.h (mbswidth): Add a flags argument.
98060         (mbswidth): New declaration.
98061         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98062         * lib/mbswidth.c (mbswidth): Add a flags argument.
98063         (mbsnwidth): New function.
98064
98065 2000-07-24  Jim Meyering  <meyering@lucent.com>
98066
98067         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98068
98069 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98070
98071         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98072
98073 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98074
98075         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98076         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98077         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98078         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98079         invoke multibyte primitives.
98080
98081 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98082
98083         * lib/quotearg.c:
98084         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98085         so that mbstate_t is always defined.
98086
98087         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98088         be 1 in at least one GCC installation, and this configuration
98089         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98090         performance on hosts that have mbrtowc but have only unibyte
98091         locales, but I assume these hosts are rare.
98092
98093 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98094
98095         * lib/mbswidth.c (_XOPEN_SOURCE):
98096         Don't define; this causes problems on Solaris 7.
98097         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98098
98099 2000-07-23  Jim Meyering  <meyering@lucent.com>
98100
98101         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98102         too: getgrgid, getpwuid, getuid.
98103
98104 2000-07-23  Jim Meyering  <meyering@lucent.com>
98105
98106         * lib/basename.c (base_name): Add an assertion.
98107
98108 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98109
98110         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98111         shadow its mbsinit function.
98112
98113 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98114
98115         * lib/mbswidth.h: New file.
98116         * lib/mbswidth.c: New file.
98117         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98118         (noinst_HEADERS): Add mbswidth.h.
98119
98120 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98121
98122         * lib/config.charset: Add support for FreeBSD. Improve support for
98123         HP-UX and IRIX 6.
98124
98125 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98126
98127         * m4/mbswidth.m4: New file.
98128         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98129
98130 2000-07-15  Jim Meyering  <meyering@lucent.com>
98131
98132         * lib/makepath.c: Include quote.h.
98133         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98134         corresponding argument in a `quote (...)' call.
98135         Give better diagnostics.
98136
98137         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98138         (noinst_HEADERS): Add quote.h.
98139
98140         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98141         from tar's src/misc.c.
98142         * lib/quote.h: New file.  Prototypes for same.
98143
98144 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98145
98146         From a suggestion by Bruno Haible.
98147         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98148         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98149         to decide whether to define the BeOS workaround macro;
98150         this adjusts to the change to AC_MBSTATE_T.
98151
98152 2000-07-14  Jim Meyering  <meyering@lucent.com>
98153
98154         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98155         jm_AC_TYPE_UINTMAX_T.
98156
98157 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98158
98159         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98160
98161         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98162         quotearg_buffer_restyled): Add support for
98163         clocale_quoting_style.  Undo previous change to
98164         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98165         and "{RIGHT QUOTATION MARK}" msgids.
98166
98167 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98168
98169         From a suggestion by Bruno Haible.
98170         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98171         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98172         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98173         and mbstate_t, to a single-part test that simply defines mbstate_t.
98174         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98175         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98176
98177 2000-07-10  Jim Meyering  <meyering@lucent.com>
98178
98179         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98180
98181         * m4/gnu-source.m4: Output to confdefs.h directly.
98182         Suggestion from Akim Demaille.
98183
98184 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98185
98186         The old behavior of quoting `like this' doesn't look good with
98187         newer, ISO-style fonts.  See:
98188         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98189
98190         Instead, quote "like this" by default.  Let the translator
98191         tailor the locale-specific quoting behavior by providing
98192         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98193
98194         * lib/quotearg.c (N_): New macro.
98195         (gettext_default): New function.
98196         (quotearg_buffer_restyled): Use
98197         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98198         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98199
98200 2000-07-09  Jim Meyering  <meyering@lucent.com>
98201
98202         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98203         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98204
98205         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98206         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98207
98208 2000-07-09  Jim Meyering  <meyering@lucent.com>
98209
98210         * lib/Most files: Update copyright dates to include 2000.
98211
98212 2000-07-08  Jim Meyering  <meyering@lucent.com>
98213
98214         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98215         if not defined.
98216         (xgethostname): Remove now-unnecessary #ifdef.
98217         Move declaration of `err' into loop where it's used.
98218
98219 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98220         and Bruno Haible  <haible@clisp.cons.org>
98221
98222         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98223         only if the test for an object-type mbstate_t fails.  This
98224         prevents us from mistakenly reporting that mbstate_t is a
98225         system object type after we "#define mbstate_t int" to work
98226         around its lack.
98227
98228 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98229         and Bruno Haible  <haible@clisp.cons.org>
98230
98231         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98232
98233 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98234
98235         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98236         to strerror_r.
98237         Include <ctype.h> for use of isalpha.
98238
98239 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98240
98241         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98242         by allocating a larger buffer. Test the gethostname return value for
98243         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98244         returns an error and ENAMETOOLONG isn't defined.
98245
98246 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98247
98248         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98249         dimension.
98250
98251 2000-07-04  Jim Meyering  <meyering@lucent.com>
98252
98253         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98254         of the deprecated AC_CHECKING.
98255
98256 2000-07-04  Jim Meyering  <meyering@lucent.com>
98257
98258         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98259         Reported by Bruno Haible.
98260
98261 2000-07-04  Jim Meyering  <meyering@lucent.com>
98262
98263         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98264         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98265         lacks mbrtowc.
98266
98267 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98268
98269         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98270         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98271
98272 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98273         and Bruno Haible  <haible@clisp.cons.org>
98274
98275         * lib/quotearg.c (mbrtowc):
98276         Assign to *pwc, and return 1 only if result is nonzero.
98277         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98278
98279 2000-07-03  Jim Meyering  <meyering@lucent.com>
98280
98281         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98282
98283 2000-07-03  Jim Meyering  <meyering@lucent.com>
98284
98285         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98286         This is necessary to get a definition of e.g., UTMP_FILE on
98287         HP-UX 10.20.
98288         From Bob Proulx.
98289
98290 2000-07-02  Jim Meyering  <meyering@lucent.com>
98291
98292         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98293
98294         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98295         AC_LIBOBJ(function_name).
98296         * m4/chown.m4: Likewise.
98297         * m4/fnmatch.m4: Likewise.
98298         * m4/ftruncate.m4: Likewise.
98299         * m4/getgroups.m4: Likewise.
98300         * m4/getline.m4: Likewise.
98301         * m4/group-member.m4: Likewise.
98302         * m4/jm-macros.m4: Likewise.
98303         * m4/lstat.m4: Likewise.
98304         * m4/malloc.m4: Likewise.
98305         * m4/memcmp.m4: Likewise.
98306         * m4/nanosleep.m4: Likewise.
98307         * m4/putenv.m4: Likewise.
98308         * m4/realloc.m4: Likewise.
98309         * m4/regex.m4: Likewise.
98310         * m4/stat.m4: Likewise.
98311         * m4/strftime.m4: Likewise.
98312
98313 2000-07-02  Jim Meyering  <meyering@lucent.com>
98314
98315         * lib/quotearg.c (mbstate_t): Don't define here.
98316
98317 2000-07-02  Jim Meyering  <meyering@lucent.com>
98318
98319         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98320
98321 2000-07-01  Jim Meyering  <meyering@lucent.com>
98322
98323         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98324
98325 2000-07-01  Jim Meyering  <meyering@lucent.com>
98326
98327         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98328         problem.
98329
98330 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98331
98332         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98333         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98334
98335 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98336
98337         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98338         per change in ../m4/ls-mntd-fs.m4.
98339         (read_filesystem_list): Ignore symbolic links.
98340
98341 2000-06-29  Jim Meyering  <meyering@lucent.com>
98342
98343         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98344         for declaration of strcmp.
98345
98346         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98347
98348         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98349         Avoid warning by casting result to `char *' to remove `const'.
98350
98351 2000-06-28  Jim Meyering  <meyering@lucent.com>
98352
98353         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98354         included by quotearg.c, for which we perform this test.  From
98355         Bruno Haible.
98356
98357 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98358
98359         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98360         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98361         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98362
98363 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98364
98365         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98366
98367 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98368
98369         savedir now sets errno on failure and invokes xmalloc to get memory.
98370         Fix a couple of other minor bugs while we're at it.
98371
98372         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98373         (NAMLEN): Remove macro.
98374         (malloc, realloc): Remove decls.
98375         (stpcpy): Likewise.
98376         ("xalloc.h"): Include.
98377         (NAME_SIZE_DEFAULT): New macro.
98378         (savedir): Use xmalloc / xrealloc to allocate memory.
98379         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98380         Skip "" directory entries.
98381         Use strlen to calculate directory entry length, since the old method
98382         is rarely used these days and isn't worth supporting.
98383         Don't use a pointer after freeing it.
98384         Check for integer overflow when calculating allocation size.
98385         Use memcpy to copy entries, instead of stpcpy.
98386         Set errno properly when returning NULL.
98387         Check for readdir error.
98388
98389 2000-06-26  Jim Meyering  <meyering@lucent.com>
98390
98391         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98392
98393 2000-06-25  Jim Meyering  <meyering@lucent.com>
98394
98395         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98396         Linux header bug when _XOPEN_SOURCE is defined to 500.
98397
98398 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98399
98400         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98401         deficiency.
98402
98403 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98404
98405         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98406         Include xalloc.h.
98407         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98408
98409 2000-06-24  Jim Meyering  <meyering@lucent.com>
98410
98411         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98412         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98413         for which strerror does return char*, but which lacks a conveniently
98414         accessible declaration of the function.  If the compile-test says
98415         strerror_r doesn't work, then resort to a `run'-test that works on
98416         BeOS and segfaults on DEC Unix.
98417
98418 2000-06-24  Jim Meyering  <meyering@lucent.com>
98419
98420         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98421
98422 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98423
98424         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98425         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98426
98427 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98428
98429         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98430         (mbrtowc, mbstate_t): Define substitutes if
98431         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98432         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98433         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98434
98435 2000-06-23  Jim Meyering  <meyering@lucent.com>
98436
98437         * m4/afs.m4: Add missing AC_MSG_RESULT.
98438         Reported by Bruno Haible.
98439
98440         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98441         Suggestion from Bruno Haible.
98442
98443 2000-06-23  Jim Meyering  <meyering@lucent.com>
98444
98445         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98446
98447 2000-06-21  Jim Meyering  <meyering@lucent.com>
98448
98449         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98450
98451 2000-06-21  Jim Meyering  <meyering@lucent.com>
98452
98453         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98454         (noinst_HEADERS): Add getstr.h.
98455
98456         * lib/getline.c (getstr): Move into a separate file.
98457         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98458         the following changes: new parameter, delim2; both delim[12]
98459         parameters have type `int', not `char'.  The latter would lose
98460         with 8-bit delimiters.
98461         * lib/getstr.h: New file.
98462
98463 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98464
98465         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98466         than 1024, return a memory chunk of least possible size, instead
98467         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98468         Use free/xmalloc instead of xrealloc to avoid copying for very long
98469         paths.
98470
98471 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98472
98473         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98474         the empty string.
98475
98476 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98477
98478         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98479         address, not strdup.  Include <stdlib.h> and don't declare free().
98480
98481 2000-06-19  Jim Meyering  <meyering@lucent.com>
98482
98483         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98484
98485 2000-06-18  Jim Meyering  <meyering@lucent.com>
98486
98487         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98488
98489         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98490         `checking whether...' message to be consistent with that of the
98491         lstat test.
98492
98493 2000-06-18  Jim Meyering  <meyering@lucent.com>
98494
98495         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98496         Besides, these days every porting target provides a mkdir function.
98497
98498         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98499         needed. (this snippet comes from src/system.h).
98500
98501 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98502
98503         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98504
98505 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98506
98507         * lib/human.c (adjust_value): New function.
98508         (human_readable_inexact): Apply rounding style even when
98509         printing approximate values.
98510
98511 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98512
98513         * lib/human.c (human_readable_inexact): Allow an input block
98514         size that is not a multiple of the output block size, and vice versa.
98515         Reported by Piergiorgio Sartor.
98516
98517 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98518
98519         * lib/getdate.y (get_date): Apply relative times after time
98520         zone indicator, not before.  Reported by Todd A. Jacobs.
98521
98522 2000-06-13  Jim Meyering  <meyering@lucent.com>
98523
98524         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98525
98526         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98527
98528 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98529
98530         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98531
98532 2000-06-12  Jim Meyering  <meyering@lucent.com>
98533
98534         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98535         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98536         optional argument.
98537         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98538         the optional argument, `lib'.
98539
98540 2000-06-08  Jim Meyering  <meyering@lucent.com>
98541
98542         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98543
98544 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98545
98546         Rewrite largefile configuration so that we don't need to run
98547         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98548         AC_CANONICAL_HOST in configure.in -- jmm]
98549
98550         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98551         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98552         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98553         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98554         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98555         All uses changed.
98556         Instead of inspecting the output of getconf, try to compile the
98557         test program without and with the macro definition.
98558         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98559         for getconf.  Instead, check for the needed flags by compiling
98560         test programs.
98561
98562 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98563
98564         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98565
98566 2000-06-04  Jim Meyering  <meyering@lucent.com>
98567
98568         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98569         SunOS 4.1.4 for which gid_t is an unsigned type.
98570
98571 2000-06-03  Jim Meyering  <meyering@lucent.com>
98572
98573         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98574         now that autoconf requires that.
98575
98576         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98577         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98578         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98579
98580 2000-06-03  Jim Meyering  <meyering@lucent.com>
98581
98582         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98583
98584 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98585
98586         * m4/glibc21.m4: New file.
98587         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98588
98589 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98590
98591         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98592         newer, don't install charset.alias.
98593         * lib/config.charset: Change the Linux/glibc rules so they become empty
98594         on glibc-2.1 or newer.
98595
98596 2000-06-02  Jim Meyering  <meyering@lucent.com>
98597
98598         * lib/mountlist.c: Back out last change.  Instead, do this...
98599         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98600         me_dummy member using the same `ignore'-testing code.
98601         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98602         fs_type strings.
98603         From Mark D. Roth.
98604
98605 2000-05-29  Jim Meyering  <meyering@lucent.com>
98606
98607         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98608         mounts with the `ignore' attribute.  Based on a patch from
98609         Mark D. Roth.
98610
98611 2000-05-28  Jim Meyering  <meyering@lucent.com>
98612
98613         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98614         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98615         * m4/stat.m4: Likewise.
98616         * m4/lstat.m4: Likewise.
98617         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98618
98619         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98620         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98621
98622 2000-05-26  Jim Meyering  <meyering@lucent.com>
98623
98624         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98625
98626 2000-05-24  Jim Meyering  <meyering@lucent.com>
98627
98628         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98629         autoconf requires that.
98630         * m4/lib-check.m4: Likewise.
98631         * m4/jm-macros.m4: Likewise.
98632         * m4/strftime.m4: Likewise.
98633
98634         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98635         AC_CHECK_DECLS, now that autoconf requires that.
98636
98637 2000-05-22  Jim Meyering  <meyering@lucent.com>
98638
98639         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98640         * m4/lstat.m4: Likewise.
98641
98642 2000-05-22  Jim Meyering  <meyering@lucent.com>
98643
98644         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98645
98646 2000-05-20  Jim Meyering  <meyering@lucent.com>
98647
98648         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98649         (jm_PREREQ): Use it.
98650
98651 2000-05-18  Jim Meyering  <meyering@lucent.com>
98652
98653         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98654         back, too, since it may have been modified by allocate_entry.
98655         (hash_delete): Rewrite to use neither the assignment operator
98656         nor the comma operator in an if-expression.
98657
98658 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98659
98660         * lib/closeout.c:
98661         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98662         Remove; no longer needed.
98663         "quotearg.h": Add include.
98664         (file_name): Do not bother to explicitly initialize to NULL; it's less
98665         efficient on some hosts.
98666         (close_stdout_status): Remove test as to whether stdout was already
98667         closed; it breaks for the case "echo x | sort >&-".
98668         Quote file name colons.
98669         Do not assume that _("write error") lacks format strings.
98670
98671 2000-05-15  Jim Meyering  <meyering@lucent.com>
98672
98673         * lib/version-etc.c (version_etc_copyright): Update the copyright
98674         string used in all --version output.
98675
98676 2000-05-14  Jim Meyering  <meyering@lucent.com>
98677
98678         * lib/closeout.c (close_stdout_set_file_name): New function.
98679         (close_stdout_status): Use new file-scoped global.
98680         Return right away if fstat says the stdout file descriptor is invalid.
98681         * lib/closeout.h (close_stdout_set_file_name): Declare.
98682
98683 2000-05-10  Jim Meyering  <meyering@lucent.com>
98684
98685         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98686         (close_stdout_set_status): New function.
98687         * lib/closeout.h (close_stdout_set_status): Declare.
98688
98689 2000-05-09  Jim Meyering  <meyering@lucent.com>
98690
98691         * m4/gettext.m4: Rename this...
98692         * m4/libintl.m4: ...to this.
98693
98694 2000-05-08  Jim Meyering  <meyering@lucent.com>
98695
98696         * lib/long-options.c: Don't include closeout.h.
98697         (parse_long_options): Don't call close_stdout for --version.
98698
98699 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98700
98701         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98702         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98703         2.1.3 bug.  This avoids a clash when files like regex.c define
98704         _GNU_SOURCE.
98705
98706 2000-05-06  Jim Meyering  <meyering@lucent.com>
98707
98708         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98709         (AC_REPLACE_FUNCS): Add strnlen.
98710
98711         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98712         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98713
98714         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98715         AC_SEARCH_LIBS call for nanosleep.
98716         (LIB_NANOSLEEP): Set and AC_SUBST.
98717
98718 2000-05-06  Jim Meyering  <meyering@lucent.com>
98719
98720         * lib/strnlen.c: Undefine __strnlen and strnlen.
98721         [!weak_alias]: Define __strnlen to strnlen.
98722
98723         * lib/atexit.c: New file, from libiberty.
98724
98725 2000-05-06  Jim Meyering  <meyering@lucent.com>
98726
98727         * lib/closeout.c (close_stdout_status): Also check for errors on the
98728         stderr stream.
98729
98730 2000-05-05  Jim Meyering  <meyering@lucent.com>
98731
98732         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98733         AC_SEARCH_LIBS call for clock_gettime.
98734         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98735
98736         * m4/search-libs.m4: Update from autoconf.
98737
98738         su doesn't work on Solaris 2.6.
98739         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98740         <shadow.h>.  Reported by Dragos Harabor.
98741
98742 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98743
98744         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98745         memcpy instead of xmalloc, xrealloc, path_concat.
98746         (locale_charset): Treat empty environment variables as absent.
98747         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98748
98749 2000-05-04  Jim Meyering  <meyering@lucent.com>
98750
98751         * lib/getopt.c: Update from glibc.
98752         * lib/obstack.c: Likewise.
98753         * lib/obstack.h: Likewise.
98754         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98755         file
98756
98757         * lib/regex.h: Likewise.
98758         * lib/strndup.c: Likewise.
98759         * lib/strnlen.c: New file, from glibc.
98760
98761 2000-05-03  Jim Meyering  <meyering@lucent.com>
98762
98763         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98764
98765 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98766
98767         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98768         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98769         compile-time test, rather than inspecting host and OS, to
98770         decide whether to define _LARGEFILE_SOURCE.
98771
98772 2000-05-01  Jim Meyering  <meyering@lucent.com>
98773
98774         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98775
98776         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98777         Based on a patch from Bruno Haible.
98778
98779 2000-05-01  Jim Meyering  <meyering@lucent.com>
98780
98781         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98782
98783 2000-04-29  Jim Meyering  <meyering@lucent.com>
98784
98785         * lib/path-concat.c: Declare strdup only if it's not defined.
98786         * lib/canon-host.c: Likewise.
98787
98788 2000-04-28  Jim Meyering  <meyering@lucent.com>
98789
98790         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98791         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98792         is included first, then limits.h is included by locale.h by libintl.h.
98793         From John David Anglin.
98794
98795 2000-04-25  Jim Meyering  <meyering@lucent.com>
98796
98797         * lib/makepath.c (S_IRWXUGO): Define.
98798         (make_path): Always perform explicit chmod if MODE specifies any
98799         of the `special' permission bits.  Prompted by a bug report against
98800         install from Mate Wierdl and Joost van Baal.
98801
98802 2000-04-18  Jim Meyering  <meyering@lucent.com>
98803
98804         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98805         (jm_PREREQ): Use it.
98806
98807 2000-04-18  Jim Meyering  <meyering@lucent.com>
98808
98809         * lib/README: New file.
98810
98811         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98812         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98813
98814 2000-04-17  Jim Meyering  <meyering@lucent.com>
98815
98816         Get it right :-)
98817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98818         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98819         Suggestion from Akim Demaille.
98820
98821 2000-04-17  Jim Meyering  <meyering@lucent.com>
98822
98823         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98824         the definition of it to rpl_strftime also defined-away the system's
98825         declaration.
98826
98827 2000-04-15  Jim Meyering  <meyering@lucent.com>
98828
98829         Use `C' to denote so-called `contiguous' files, the same way
98830         that tar does.
98831         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98832         (ftypelet): Use S_ISCTG.
98833         From Michael Deutschmann.
98834
98835 2000-04-14  Jim Meyering  <meyering@lucent.com>
98836
98837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98838         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98839         clobbered.
98840
98841 2000-04-14  Jim Meyering  <meyering@lucent.com>
98842
98843         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98844
98845 2000-04-13  Jim Meyering  <meyering@lucent.com>
98846
98847         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98848         AH_VERBATIM to insert required #ifndef into config.h.in.
98849         Suggestion from Akim Demaille.
98850
98851 2000-04-12  Jim Meyering  <meyering@lucent.com>
98852
98853         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98854         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98855         Christian Krackowizer.
98856
98857         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98858         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98859         (AC_SYS_LARGEFILE): Require.
98860         (AM_C_PROTOTYPES): Require.
98861
98862 2000-04-08  Jim Meyering  <meyering@lucent.com>
98863
98864         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98865         names don't conflict.  Reported by Eli Zaretskii.
98866
98867 2000-04-07  Jim Meyering  <meyering@lucent.com>
98868
98869         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98870         sys/types.h, to work around system header problems on AIX 3.2.5.
98871         From Bruno Haible.
98872
98873 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98874
98875         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98876         bug.  Deal with the different error behavior of Irix iconv.
98877
98878 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98879
98880         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98881         IRIX if the installer said otherwise.
98882
98883 2000-04-05  Jim Meyering  <meyering@lucent.com>
98884
98885         Portability tweaks required for ultrix4.3.
98886         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98887         (jm_CHECK_DECLS): Add getutent to the list of functions.
98888         (_jm_DECL_HEADERS): Add utmpx.h.
98889         From John David Anglin.
98890
98891         * m4/strftime.m4: Back out the 2000-04-02 change.
98892         Instead of that change, simply undefine putenv in the test program.
98893
98894 2000-04-05  Jim Meyering  <meyering@lucent.com>
98895
98896         Portability tweaks required for ultrix4.3.
98897         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98898         getutent.
98899         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98900         * lib/canon-host.c: Declare strdup.
98901         * lib/path-concat.c: Likewise.
98902         From John David Anglin.
98903
98904 2000-04-04  Jim Meyering  <meyering@lucent.com>
98905
98906         Be more DOS 8.3-friendly.
98907         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98908         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98909         * lib/Makefile.am: Reflect renaming.
98910         Reported by Eli Zaretskii.
98911
98912         Use a temporary file name that won't clash with `charset.alias'
98913         in the DOS 8.3 name space.
98914         * lib/Makefile.am (charset_tmp): Define.
98915         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98916         (uninstall-local): Likewise.
98917         Reported by Eli Zaretskii.
98918
98919 2000-04-03  Jim Meyering  <meyering@lucent.com>
98920
98921         * m4/gettext.m4: Fix typo in comment.
98922
98923         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98924         textutils/configure.in).  Suggestion from Paul Eggert.
98925         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98926
98927 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98928
98929         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98930         variable in the shell rather than using putenv, which isn't
98931         portable.  This avoids the configure-time inter-test dependency
98932         on the potentially-renamed putenv function.
98933
98934 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98935
98936         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98937         before checking struct stat.st_blksize, so that
98938         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98939
98940 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98941
98942         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98943         since strftime.c uses HAVE_STRFTIME to decide whether to use
98944         the underlying strftime.
98945
98946 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98947
98948         * lib/time/strftime.c (my_strftime): Make sure we call the system
98949         strftime, not ourselves, when invoking the underlying strftime.
98950
98951 2000-03-24  Jim Meyering  <meyering@lucent.com>
98952
98953         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98954         (charset_alias): Define.
98955         (install-exec-local): Factor out common code.
98956         (uninstall-local): Split lines longer than 80.
98957         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98958         (SUFFIXES): Define.
98959         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98960         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98961
98962 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98963
98964         * lib/config.charset: Output a line containing "Packages using this
98965         file".
98966         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98967         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98968         ref-del.sed): New rules.
98969
98970 2000-03-17  Jim Meyering  <meyering@lucent.com>
98971
98972         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98973         Otherwise, include <strings.h>
98974
98975 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98976
98977         * lib/unicodeio.c (utf8_wctomb): New function.
98978         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98979         format instead of in UCS-4 with platform dependent endianness.
98980
98981 2000-03-10  Jim Meyering  <meyering@lucent.com>
98982
98983         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98984         From Marco Franzen.
98985
98986 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98987
98988         * lib/savedir.c (savedir): Work even if directory size is
98989         negative; this can happen with some screwy NFS configurations.
98990
98991 2000-03-06  Jim Meyering  <meyering@lucent.com>
98992
98993         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98994         if it's NULL (because we ran out of memory).  From Bruno Haible.
98995
98996 2000-03-05  Jim Meyering  <meyering@lucent.com>
98997
98998         * lib/localcharset.c ("path-concat.h"): Include.
98999         (get_charset_aliases): Use path_concat instead of ANSI string
99000         concatenation.
99001
99002         * lib/unicodeio.h (PARAMS): Define.
99003         Use it to guard prototype.
99004
99005 2000-03-04  Jim Meyering  <meyering@lucent.com>
99006
99007         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99008         for lib/localcharset.c.
99009
99010 2000-03-04  Jim Meyering  <meyering@lucent.com>
99011
99012         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99013         installing into it.
99014         (uninstall-local): Uncomment this rule so `make distcheck' works
99015         once again.
99016
99017         * lib/unicodeio.c (<errno.h>): Include it.
99018         (errno): Declare if not defined.
99019
99020         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99021
99022         * lib/config.charset: New version, incorporating remarks from a linux
99023         i18n mailing list.  From Bruno Haible.
99024
99025 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99026
99027         * m4/codeset.m4: New file.
99028         * m4/iconv.m4: New file.
99029         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99030
99031 2000-03-03  Jim Meyering  <meyering@lucent.com>
99032
99033         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99034
99035 2000-03-02  Jim Meyering  <meyering@lucent.com>
99036
99037         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99038         the messages come out on separate lines.
99039
99040         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99041         rather than jm_CHECK_DECLARATIONS.
99042         * m4/decl.m4: Remove now-unused file.
99043
99044         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99045         geteuid.
99046
99047 2000-03-02  Jim Meyering  <meyering@lucent.com>
99048
99049         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99050
99051 2000-03-01  Jim Meyering  <meyering@lucent.com>
99052
99053         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99054         * lib/unicodeio.c: Likewise.
99055
99056 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99057
99058         * lib/config.charset: New file.
99059         * lib/localcharset.c: New file.
99060         * lib/unicodeio.h, lib/unicodeio.c: New files.
99061         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99062         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99063         (noinst_HEADERS): Add unicodeio.h.
99064         (all-local, install-exec-local, charset.alias): New targets.
99065
99066 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99067
99068         * lib/quotearg.c (ALERT_CHAR): New macro.
99069         (quotearg_buffer_restyled): Use it.
99070
99071 2000-02-27  Jim Meyering  <meyering@lucent.com>
99072
99073         * m4/check-decl.m4: Add getenv to the list.
99074
99075 2000-02-27  Jim Meyering  <meyering@lucent.com>
99076
99077         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99078         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99079
99080         * lib/backupfile.c: Guard inclusion of stdlib.h with
99081         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99082         Declare malloc if needed.
99083
99084         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99085         `#ifndef HAVE_DECL..'
99086         now that autoconf always defines the HAVE_DECL_ symbols.
99087         * lib/human.c: Likewise.
99088         * lib/same.c: Likewise.
99089         * lib/strtoumax.c: Likewise.
99090
99091         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99092         declaration check was not run.
99093         * lib/hash.c: Likewise.
99094         * lib/human.c: Likewise.
99095         * lib/same.c: Likewise.
99096         * lib/strtoumax.c: Likewise.
99097
99098         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99099         `.', then first look up the entire `.'-containing string as a login
99100         name.
99101
99102 2000-02-23  Jim Meyering  <meyering@lucent.com>
99103
99104         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99105         in place of my hack.
99106
99107 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99108
99109         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99110         (textint): New typedef.
99111         (parser_control): Member year changed from int to textint.
99112         All uses changed.
99113         (YYSTYPE): Removed; replaced by %union with int and textint members.
99114         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99115         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99116         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99117         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99118         (date, number, to_year): Use width of number in digits, not its value,
99119         to determine whether it's a 2-digit year, or a 2-digit time.
99120         (yylex): Store number of digits of numeric tokens.
99121         Reported by John Kendall.
99122
99123         (parser_control): Changed from struct parser_control to typedef (for
99124         consistency).  All uses changed.
99125
99126         (tID): Removed; not used.
99127         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99128
99129 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99130
99131         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99132         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99133
99134 2000-02-12  Jim Meyering  <meyering@lucent.com>
99135
99136         * lib/userspec.c (ISDIGIT): Define it.
99137         (isdigit): Remove definition.
99138         (is_number): Use ISDIGIT, not isdigit.
99139         <libintl.h>: Include.
99140         (_ and N_): Define.
99141         (parse_user_spec): Mark translatable strings.
99142
99143 2000-02-10  Jim Meyering  <meyering@lucent.com>
99144
99145         With these changes, nanosleep.[ch] are finally enough like the other
99146         lib/* replacement files to compile on a few more losing systems.
99147
99148         * lib/nanosleep.h: Don't include config.h.
99149         Remove prototype from declaration of nanosleep.
99150         (PARAMS): Remove now-unneeded definition.
99151         * lib/nanosleep.c: #undef nanosleep.
99152         (rpl_nanosleep): Rename from nanosleep.
99153
99154 2000-02-10  Jim Meyering  <meyering@lucent.com>
99155
99156         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99157         gnu_nanosleep to rpl_nanosleep.
99158
99159 2000-02-09  Jim Meyering  <meyering@lucent.com>
99160
99161         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99162         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99163
99164 2000-02-08  Akim Demaille  <akim@epita.fr>
99165
99166         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99167         `[' and `]' and remove uses of `changequote'.
99168         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99169         (AC_SYS_LARGEFILE): Likewise.
99170         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99171         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99172         of changequote.
99173         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99174         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99175         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99176         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99177
99178 2000-02-05  Jim Meyering  <meyering@lucent.com>
99179
99180         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99181         Remove explicit use of AC_HEADER_TIME.  It is required by
99182         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99183         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99184         in autoconf whereby the expansion of the latter ended up preceding
99185         the expansion of its prerequisite, AC_HEADER_TIME.
99186         Reported by Volker Borchert.
99187
99188 2000-02-03  Jim Meyering  <meyering@lucent.com>
99189
99190         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99191
99192 2000-02-03  Jim Meyering  <meyering@lucent.com>
99193
99194         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99195         rather than with `#if HAVE_UTMPNAME'.
99196
99197 2000-02-02  Jim Meyering  <meyering@lucent.com>
99198
99199         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99200         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99201         Reported by Eli Zaretskii.
99202
99203 2000-02-01  Jim Meyering  <meyering@lucent.com>
99204
99205         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99206
99207 2000-01-31  Jim Meyering  <meyering@lucent.com>
99208
99209         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99210         functions.  Add the time.h and sys/time.h headers along with the
99211         AC_REQUIRE'ment of AC_HEADER_TIME.
99212
99213 2000-01-31  Jim Meyering  <meyering@lucent.com>
99214
99215         * lib/nanosleep.h (nanosleep): Guard declaration with
99216         `#if ! HAVE_DECL_NANOSLEEP'.
99217         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99218         the declaration in that vendor's sys/timers.h.
99219         Reported by Christian Krackowizer.
99220
99221         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99222         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99223         (ISPRINT): Likewise.
99224         Reported by Tom Tromey.
99225
99226 2000-01-30  Jim Meyering  <meyering@lucent.com>
99227
99228         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99229
99230         * m4/prereq.m4 (utmp_includes): Define.
99231         Check for ut_user and ut_name members in both struct utmpx
99232         and struct utmp.
99233
99234 2000-01-30  Jim Meyering  <meyering@lucent.com>
99235
99236         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99237         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99238         header files where only utmpx.ut_user is declared.
99239
99240         * lib/readutmp.h (UT_USER): Define.
99241
99242 2000-01-29  Jim Meyering  <meyering@lucent.com>
99243
99244         * m4/lib-check.m4: New file containing library-related checks from
99245         fileutils and sh-utils (textutils had none).
99246
99247 2000-01-28  Jim Meyering  <meyering@lucent.com>
99248
99249         * m4/perl.m4: Change format of warning message to look more like that
99250         from the missing script.  Suggestion from François Pinard.
99251
99252 2000-01-25  Jim Meyering  <meyering@lucent.com>
99253
99254         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99255         well as time.h in the compile check.
99256         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99257         Fix typo in cross-compiling case: s/yes/no/.
99258
99259 2000-01-23  Jim Meyering  <meyering@lucent.com>
99260
99261         * m4/jm-macros.m4: Move df-related tests here from
99262         fileutils/configure.in
99263
99264         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99265         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99266
99267         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99268         s/space/ac_fsusage_space/.
99269         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99270
99271         * m4/ftruncate.m4: New file (derived from part of
99272         fileutils/configure.in).
99273         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99274         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99275
99276         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99277         AC_SUBST these here, rather than just in sh-util/configure.in, so
99278         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99279         all the same.
99280         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99281         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99282         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99283         (AC_SUBST(POW_LIBM)): Likewise.
99284         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99285
99286 2000-01-23  Jim Meyering  <meyering@lucent.com>
99287
99288         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99289         obstack.c.
99290
99291 2000-01-22  Jim Meyering  <meyering@lucent.com>
99292
99293         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99294
99295         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99296
99297         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99298         configure.in
99299         (AC_CHECK_HEADERS): Likewise for sh-utils.
99300         (AC_CHECK_HEADERS): Likewise for textutils.
99301         Merge the three lists of headers.
99302
99303         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99304         from fileutils' configure.in.
99305
99306         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99307         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99308         check-decl.m4.
99309
99310         * m4/check-decl.m4: Use #if rather than #ifdef.
99311         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99312         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99313         (_jm_DECL_HEADERS): Define new function.
99314         (jm_CHECK_DECLARATIONS): Require it.
99315
99316 2000-01-22  Jim Meyering  <meyering@lucent.com>
99317
99318         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99319         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99320         Required for some AIX systems.  Reported by Christian Krackowizer.
99321         [TESTING] (main): New function.
99322
99323         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99324         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99325         letters.
99326
99327         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99328         iswprint.
99329
99330         * lib/strverscmp.c (ISDIGIT): Define.
99331         (strverscmp): Use ISDIGIT, not isdigit.
99332
99333 2000-01-19  Jim Meyering  <meyering@lucent.com>
99334
99335         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99336         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99337         defines `struct timespec' in <sys/time.h>
99338
99339         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99340         Thanks to Akim for explaining.
99341
99342 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99343
99344         * lib/nanosleep.c (nanosleep):
99345         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99346         POSIX.1 doesn't require SA_INTERRUPT and some systems
99347         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99348         it's been part of POSIX.1 since day 1 (in 1988).
99349
99350 2000-01-17  Jim Meyering  <meyering@lucent.com>
99351
99352         * lib/interlock: Remove unused file.  Reported by François Pinard.
99353
99354 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99355
99356         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99357         alert, backslash, formfeed, and vertical tab unnecessarily in
99358         shell quoting style.
99359
99360 2000-01-16  Jim Meyering  <meyering@lucent.com>
99361
99362         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99363         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99364         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99365         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99366
99367 2000-01-16  Jim Meyering  <meyering@lucent.com>
99368
99369         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99370         because the latter didn't work.
99371
99372 2000-01-15  Jim Meyering  <meyering@lucent.com>
99373
99374         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99375         (AC_REPLACE_FUNCS): Add memcpy and memset.
99376         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99377         Add strpbrk.
99378         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99379
99380 2000-01-12  Jim Meyering  <meyering@lucent.com>
99381
99382         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99383         (jm_PREREQ): Use it.
99384         (jm_PREREQ_READUTMP): New macro.
99385         (jm_PREREQ): Use it.
99386
99387 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99388
99389         Quote multibyte characters correctly.
99390         * m4/c-bs-a.m4: New file.
99391         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99392         (jm_PREREQ): Use it.
99393
99394 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99395
99396         * m4/uintmax_t.m4: Port to autoconf 2.13.
99397
99398 2000-01-08  Jim Meyering  <meyering@ascend.com>
99399
99400         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99401         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99402
99403 2000-01-04  Jim Meyering  <meyering@ascend.com>
99404
99405         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99406         jm_STRUCT_DIRENT_D_TYPE.
99407         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99408         jm_STRUCT_DIRENT_D_INO.
99409         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99410         jm_STRUCT_UTIMBUF.
99411         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99412         renamings.
99413         * m4/utime.m4: Likewise.
99414
99415         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99416         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99417
99418 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99419
99420         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99421         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99422
99423 2000-01-02  Jim Meyering  <meyering@ascend.com>
99424
99425         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99426         remember if this is necessary.
99427
99428 1999-12-26  Jim Meyering  <meyering@ascend.com>
99429
99430         * m4/jm-macros.m4: Use it here.
99431         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99432
99433 1999-12-23  Jim Meyering  <meyering@ascend.com>
99434
99435         * m4/jm-macros.m4: Check for clock_gettime (moved from
99436         fileutils/configure.in)
99437         Check for gettimeofday.
99438
99439 1999-12-20  Jim Meyering  <meyering@ascend.com>
99440
99441         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99442         autoconf-2.14a-1999-12-20.
99443
99444 1999-12-19  Jim Meyering  <meyering@ascend.com>
99445
99446         * m4/lstat-slash.m4: New file.
99447         * m4/jm-macros.m4: Use the new macro:
99448         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99449
99450 1999-12-07  Jim Meyering  <meyering@ascend.com>
99451
99452         * m4/perl.m4: Require that File::Compare be available, too.
99453         Too many systems seem to lack it.
99454
99455         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99456         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99457
99458 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99459
99460         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99461         problem with the QNX 4.25 shell, which doesn't propagate exit
99462         status of failed commands inside shell assignments.
99463
99464 1999-11-17  Jim Meyering  <meyering@ascend.com>
99465
99466         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99467
99468 1999-11-07  Jim Meyering  <meyering@ascend.com>
99469
99470         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99471
99472 1999-11-06  Jim Meyering  <meyering@ascend.com>
99473
99474         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99475         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99476
99477 1999-11-05  Jim Meyering  <meyering@ascend.com>
99478
99479         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99480         configure.in of textutils, fileutils, and sh-utils into this one
99481         (shared between those packages) file.
99482         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99483         AC_STRUCT_ST_BLKSIZE.
99484
99485 1999-11-03  Jim Meyering  <meyering@ascend.com>
99486
99487         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99488         of AC_CHECK_TYPE checks includes unistd.h.
99489         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99490         Suggestion from Akim Demaille.
99491
99492 1999-10-30  Jim Meyering  <meyering@ascend.com>
99493
99494         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99495         m4-quoted string.
99496         * m4/ls-mntd-fs.m4: Likewise.
99497         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99498         * m4/jm-winsz1.m4: Likewise.
99499
99500         * m4/const.m4: Remove file, since the fix made it into the experimental
99501         version of autoconf.
99502         * m4/mktime.m4: Likewise.
99503
99504         * m4/check-type.m4: Remove file, now that the latest version of
99505         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99506
99507         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99508         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99509         AC_CHECK_TYPE.
99510
99511 1999-10-04  Jim Meyering  <meyering@ascend.com>
99512
99513         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99514
99515 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99516
99517         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99518         2.95.1 bug with HP-UX 10.20.
99519
99520 1999-09-17  Jim Meyering  <meyering@ascend.com>
99521
99522         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99523         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99524         due to missing strdup (against sh-utils-2.0).
99525
99526 1999-08-29  Jim Meyering  <meyering@ascend.com>
99527
99528         * m4/jm-macros.m4: Require jm_BISON.
99529         * m4/bison.m4: New file.
99530
99531 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99532
99533         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99534         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99535
99536 1999-08-05  Jim Meyering  <meyering@ascend.com>
99537
99538         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99539         to avoid conflicts with `conftest' on 8+3 filesystems.
99540         Suggestion from Eli Zaretskii.
99541
99542 1999-08-04  Jim Meyering  <meyering@ascend.com>
99543
99544         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99545         fileutils and sh-utils (textutils's getline test was inadequate).
99546         (AM_FUNC_GETLINE): Run this test.
99547         (AC_CHECK_FUNCS): Check for getdelim.
99548         Reported by Bob Proulx.
99549
99550 1999-08-02  Jim Meyering  <meyering@ascend.com>
99551
99552         * m4/jm-macros.m4: Add a comment.
99553
99554 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99555
99556         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99557         <inttypes.h> defines strtoumax as a macro (and not as a
99558         function).
99559
99560 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99561
99562         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99563         that we can shift, multiply and divide unsigned long long
99564         values; Ultrix cc can't do it.
99565
99566 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99567
99568         * m4/mktime.m4: New file, which is a preview of what should appear
99569         in the next public autoconf release.
99570
99571 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99572
99573         * m4/lfs.m4: Remove this file.
99574         * m4/largefile.m4: New file.  It contains the old contents of
99575         lfs.m4, except that all names with prefix AC_LFS have been
99576         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99577         compatible with future autoconf versions.  Also, some minor m4
99578         quoting problems have been fixed.
99579
99580 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99581
99582         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99583         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99584         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99585         and simplify the shell code.
99586
99587 1999-08-01  Jim Meyering  <meyering@ascend.com>
99588
99589         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99590         m4.
99591
99592 1999-07-20  Jim Meyering  <meyering@ascend.com>
99593
99594         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99595
99596 1999-07-15  Jim Meyering  <meyering@ascend.com>
99597
99598         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99599
99600 1999-05-22  Jim Meyering  <meyering@ascend.com>
99601
99602         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99603
99604 1999-05-20  Jim Meyering  <meyering@ascend.com>
99605
99606         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99607         Add a colon after each `then' in case $4 is empty.
99608
99609 1999-05-16  Jim Meyering  <meyering@ascend.com>
99610
99611         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99612
99613 1999-05-10  Jim Meyering  <meyering@ascend.com>
99614
99615         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99616
99617         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99618         AC_FUNC_MKTIME.
99619
99620 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99621
99622         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99623
99624 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99625
99626         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99627         not CPPFLAGS, so that linking works correctly in IRIX.
99628
99629 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99630
99631         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99632
99633 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99634
99635         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99636         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99637         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99638         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99639         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99640
99641         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99642
99643 1999-04-20  Jim Meyering  <meyering@ascend.com>
99644
99645         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99646         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99647         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99648
99649 1999-04-18  Jim Meyering  <meyering@ascend.com>
99650
99651         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99652         * m4/jm-macros.m4: Use it.
99653
99654 1999-04-06  Jim Meyering  <meyering@ascend.com>
99655
99656         * m4/strftime.m4: Remove test for %f.
99657
99658 1999-03-29  Jim Meyering  <meyering@ascend.com>
99659
99660         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99661         superset of the AC_TYPE_* checks in the textutils, fileutils,
99662         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99663         AC_TYPE_PID_T.
99664
99665 1999-03-28  Jim Meyering  <meyering@ascend.com>
99666
99667         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99668         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99669         replaced e.g., in the *.sh files of the sh-utils.
99670
99671 1999-03-20  Jim Meyering  <meyering@ascend.com>
99672
99673         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99674         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99675         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99676
99677 1999-03-19  Jim Meyering  <meyering@ascend.com>
99678
99679         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99680
99681 1999-03-12  Jim Meyering  <meyering@ascend.com>
99682
99683         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99684
99685 1999-03-07  Jim Meyering  <meyering@ascend.com>
99686
99687         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99688         declared.
99689
99690 1999-02-17  Jim Meyering  <meyering@ascend.com>
99691
99692         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99693         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99694
99695 1999-02-07  Jim Meyering  <meyering@ascend.com>
99696
99697         * m4/group-member.m4: New file -- extracted from sh-utils'
99698         configure.in.
99699
99700         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99701         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99702
99703 1999-02-06  Jim Meyering  <meyering@ascend.com>
99704
99705         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99706         * m4/fnmatch.m4: Likewise.
99707         * m4/getgroups.m4: Likewise.
99708         * m4/lstat.m4: Likewise.
99709         * m4/malloc.m4: Likewise.
99710         * m4/putenv.m4: Likewise.
99711         * m4/realloc.m4: Likewise.
99712         * m4/regex.m4: Likewise.
99713         * m4/stat.m4: Likewise.
99714         * m4/strftime.m4: Likewise.
99715         Suggestion from Alain Magloire.
99716
99717         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99718         * m4/fnmatch.m4: Likewise.
99719         * m4/getgroups.m4: Likewise.
99720         * m4/getline.m4: Likewise.
99721         * m4/lstat.m4: Likewise.
99722         * m4/malloc.m4: Likewise.
99723         * m4/memcmp.m4: Likewise.
99724         * m4/putenv.m4: Likewise.
99725         * m4/realloc.m4: Likewise.
99726         * m4/regex.m4: Likewise.
99727         * m4/stat.m4: Likewise.
99728         * m4/strftime.m4: Likewise.
99729         Suggestion from Alain Magloire.
99730
99731         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99732         an argument.
99733
99734         * m4/regex.m4: Add a run-time Test for proper operation of
99735         re_compile_pattern.
99736
99737 1999-01-31  Jim Meyering  <meyering@ascend.com>
99738
99739         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99740
99741 1999-01-30  Jim Meyering  <meyering@ascend.com>
99742
99743         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99744
99745         * m4/jm-mktime.m4: Make this a wrapper around the official
99746         AM_FUNC_MKTIME rather than my private copy, now that the official one
99747         is up to date.
99748         * m4/mktime.m4: Remove file.
99749
99750         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99751         * m4/uptime.m4: Likewise.
99752         * m4/uintmax_t.m4: Likewise.
99753
99754 1999-01-28  Jim Meyering  <meyering@ascend.com>
99755
99756         * m4/jm-macros.m4: Use jm_AFS.
99757         * m4/afs.m4: New file (from fileutils' configure.in).
99758
99759         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99760         * m4/chown.m4: Likewise.
99761         * m4/d-ino.m4: Likewise.
99762         * m4/d-type.m4: Likewise.
99763         * m4/fnmatch.m4: Likewise.
99764         * m4/getgroups.m4: Likewise.
99765         * m4/gettext.m4: Likewise.
99766         * m4/jm-mktime.m4: Likewise.
99767         * m4/jm-winsz2.m4: Likewise.
99768         * m4/lcmessage.m4: Likewise.
99769         * m4/ls-mntd-fs.m4: Likewise.
99770         * m4/malloc.m4: Likewise.
99771         * m4/memcmp.m4: Likewise.
99772         * m4/putenv.m4: Likewise.
99773         * m4/realloc.m4: Likewise.
99774         * m4/st_mtim.m4: Likewise.
99775         * m4/strftime.m4: Likewise.
99776
99777 1999-01-16  Jim Meyering  <meyering@ascend.com>
99778
99779         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99780         (ARGMATCH_DIE_DECL): Define.
99781
99782 1999-01-12  Jim Meyering  <meyering@ascend.com>
99783
99784         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99785         Reported by Lars Hecking.
99786
99787 1999-01-10  Jim Meyering  <meyering@ascend.com>
99788
99789         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99790         gross kludge.
99791         * m4/inttypes_h.m4: Likewise.
99792         * m4/lstat.m4: Likewise.
99793         * m4/malloc.m4: Likewise.
99794         * m4/readdir.m4: Likewise.
99795         * m4/realloc.m4: Likewise.
99796         * m4/st_dm_mode.m4: Likewise.
99797         * m4/stat.m4: Likewise.
99798         * m4/utimbuf.m4: Likewise.
99799         * m4/utimes.m4: Likewise.
99800
99801         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99802         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99803         comments in config.h.in are meaningful.
99804
99805         * m4/jm-macros.m4: Require autoconf-2.13 here.
99806
99807         * m4/regex.m4: By default, don't use the included regex.c on systems
99808         with glibc 2.  Suggestion from Uli Drepper.
99809
99810 1999-01-02  Jim Meyering  <meyering@ascend.com>
99811
99812         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99813
99814 1998-12-18  Jim Meyering  <meyering@ascend.com>
99815
99816         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99817         Based on a suggestion from Lars Hecking.
99818
99819 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99820
99821         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99822
99823 1998-11-16  Jim Meyering  <meyering@ascend.com>
99824
99825         * m4/lfs.m4: Double-quote the `uname...` expression.
99826
99827 1998-11-14  Jim Meyering  <meyering@ascend.com>
99828
99829         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99830         * m4/stat.m4: Likewise.
99831
99832 1998-11-03  Jim Meyering  <meyering@ascend.com>
99833
99834         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99835         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99836
99837 1998-10-18  Jim Meyering  <meyering@ascend.com>
99838
99839         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99840
99841 1998-10-17  Jim Meyering  <meyering@ascend.com>
99842
99843         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99844         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99845         calls for those previously hard-coded headers.  Instead, take a new
99846         parameter.
99847         (jm_CHECK_DECLARATIONS): Reflect interface change.
99848         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99849         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99850
99851         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99852
99853 1998-10-14  Jim Meyering  <meyering@ascend.com>
99854
99855         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99856         instead of "TZ=America/Vancouver".  From Paul Eggert.
99857
99858 1998-10-11  Jim Meyering  <meyering@ascend.com>
99859
99860         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99861         This adds a test for a recently added compatibility fix for mktime.c.
99862         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99863
99864 1998-09-27  Jim Meyering  <meyering@ascend.com>
99865
99866         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99867
99868         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99869         ../configure.in, including a change from Gordon Matzigkeit to allow
99870         cross-compiling for the Hurd.
99871
99872         * m4/glibc.m4: New file/macro to test for the GNU C Library
99873         versions 1 and 2.  From Gordon Matzigkeit.
99874         Indent.
99875
99876 1998-09-21  Jim Meyering  <meyering@ascend.com>
99877
99878         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99879
99880 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99881
99882         Port nanosecond-resolution times to UnixWare 2.1.2 and
99883         pedantic Solaris 2.6.
99884
99885         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99886         AC_STRUCT_ST_MTIM.
99887         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99888         Generate name of ns member, instead of just 1 or undef.
99889         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99890
99891 1998-08-15  Jim Meyering  <meyering@ascend.com>
99892
99893         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99894         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99895         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99896         instead of jm_TYPE_SSIZE_T.
99897
99898 1998-08-12  Jim Meyering  <meyering@ascend.com>
99899
99900         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99901
99902 1998-08-02  Jim Meyering  <meyering@ascend.com>
99903
99904         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99905         in acconfig.h manually.
99906
99907 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99908
99909         * m4/st_mtim.m4: New file.
99910
99911 1998-07-28  Jim Meyering  <meyering@ascend.com>
99912
99913         * m4/utimes.m4: Undef stat.
99914
99915 1998-07-25  Jim Meyering  <meyering@ascend.com>
99916
99917         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99918         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99919
99920 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99921
99922         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99923         uid and gid actually remain unchanged.
99924
99925 1998-07-07  Jim Meyering  <meyering@ascend.com>
99926
99927         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99928
99929 1998-07-04  Jim Meyering  <meyering@ascend.com>
99930
99931         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99932         to prove that this macro can be used in packages without regex.c.
99933
99934 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99935
99936         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99937         is to be used.
99938
99939 1998-07-03  Jim Meyering  <meyering@ascend.com>
99940
99941         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99942
99943         * m4/gettext.m4: New file -- from gettext-0.10.35.
99944         * m4/lcmessage.m4: Likewise.
99945         * m4/progtest.m4: Likewise.
99946
99947         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99948         * m4/jm-macros.m4: Require the new macro.
99949
99950 1998-06-29  Jim Meyering  <meyering@ascend.com>
99951
99952         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99953         for the definition of NGROUPS (used in a system header included
99954         by sys/mount.h).
99955
99956 1998-06-28  Jim Meyering  <meyering@ascend.com>
99957
99958         * m4/ls-mntd-fs.m4: New file.
99959         * m4/fstypename.m4: New file.
99960
99961         * m4/jm-macros.m4: Require the new macro.
99962         * m4/jm-glibc-io.m4: New file.
99963
99964 1998-05-19  Jim Meyering  <meyering@ascend.com>
99965
99966         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99967         * m4/lchown.m4: New file.
99968
99969         * m4/Makefile.am.in: New file.
99970         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99971
99972 1998-05-14  Jim Meyering  <meyering@ascend.com>
99973
99974         * m4/Makefile.am (EXTRA_DIST): Add them.
99975         * m4/jm-macros.m4: New file.
99976         * m4/utimbuf.m4: New file.
99977
99978 1998-05-12  Jim Meyering  <meyering@ascend.com>
99979
99980         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99981
99982 1998-05-11  Jim Meyering  <meyering@ascend.com>
99983
99984         * m4/isc-posix.m4: New file.
99985
99986 1998-05-10  Jim Meyering  <meyering@ascend.com>
99987
99988         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99989
99990 1998-05-09  Jim Meyering  <meyering@ascend.com>
99991
99992         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99993         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99994         with automake.
99995
99996         * m4/ssize_t.m4: New file.
99997         * m4/mktime.m4: Remove file -- the new automake has this now.
99998
99999 1998-04-26  Jim Meyering  <meyering@ascend.com>
100000
100001         * m4/assert.m4: New file.
100002         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100003
100004 1998-04-05  Jim Meyering  <meyering@ascend.com>
100005
100006         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100007         (jm_PREREQ): Use it here.
100008
100009 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100010
100011         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100012         in acconfig.h.
100013
100014 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100015
100016         * m4/prereq.m4: New file.
100017         * m4/error.m4: New file.
100018         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100019
100020 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100021
100022         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100023         cache-check for the same variable -- that defeated the purpose of
100024         the test; the test program was never run.  This was a problem only
100025         on systems with losing getline functions -- HP-UX 10.20 is one.
100026         Reported by Bjorn Helgaas.
100027
100028 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100029
100030         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100031
100032 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100033
100034         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100035
100036         * m4/const.m4: New file.  Use an initializer in this declaration
100037         typedef int charset[2]; const charset x;
100038         Reported by Bob Glickstein.
100039
100040 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100041
100042         * m4/chown.m4: Fix reversed types on -1 args to chown.
100043         From Kaveh Ghazi.
100044
100045 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100046
100047         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100048         Add lseek and memchr.
100049
100050         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100051         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100052         have a 20-character limit on names.
100053
100054 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100055
100056         * m4/inttypes_h.m4: New file.
100057         * m4/uintmax_t.m4: New file.
100058         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100059
100060
100061         -----
100062
100063         Local Variables:
100064         coding: utf-8
100065         End:
100066
100067         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100068
100069         Copying and distribution of this file, with or without
100070         modification, are permitted provided the copyright notice
100071         and this notice are preserved.